@tai42/api-client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -896,125 +896,252 @@ export declare const backendInfo: z.ZodObject<{
896
896
  export type BackendInfo = z.infer<typeof backendInfo>;
897
897
  /** The two worker kinds that join the bus: an ASGI `serve` worker or a
898
898
  * `backend` runtime process. A drift throws `ApiSchemaError`. */
899
- export declare const originKind: z.ZodEnum<["serve", "backend"]>;
900
- export type OriginKind = z.infer<typeof originKind>;
899
+ export declare const workerKind: z.ZodEnum<["serve", "backend"]>;
900
+ export type WorkerKind = z.infer<typeof workerKind>;
901
+ /** The lifecycle state a worker advertises in its presence value: `ready` once its
902
+ * resync has converged, `resyncing` while a boot/reconnect resync runs, `recycling`
903
+ * once it has begun a graceful self-exit. A drift throws `ApiSchemaError`. */
904
+ export declare const workerState: z.ZodEnum<["ready", "resyncing", "recycling"]>;
905
+ export type WorkerState = z.infer<typeof workerState>;
906
+ /** The last op a worker applied, stamped onto its presence row after the terminal
907
+ * reply. `outcome` is the free op-outcome string; `at` is the ISO instant it landed. */
908
+ export declare const workerLastOp: z.ZodObject<{
909
+ op: z.ZodString;
910
+ outcome: z.ZodString;
911
+ at: z.ZodString;
912
+ }, "strip", z.ZodTypeAny, {
913
+ at: string;
914
+ op: string;
915
+ outcome: string;
916
+ }, {
917
+ at: string;
918
+ op: string;
919
+ outcome: string;
920
+ }>;
921
+ export type WorkerLastOp = z.infer<typeof workerLastOp>;
901
922
  /**
902
- * One live worker on the bus — a presence-census entry. `origin` is the
903
- * `{kind}-{uuid}` identity used as a reload target; `kind` tells the two worker
904
- * kinds apart; `pid` is the process id the presence key carries.
923
+ * One live worker on the bus — a presence-census row. `name` is the stable slot
924
+ * (`{kind}-{n}`) that doubles as a reload target; `generation` is the monotonic life
925
+ * counter minted with the worker's claim; `kind` tells the two worker kinds apart;
926
+ * `pid` is the process id. `joined_at`/`beat_at` are ISO instants (first-seen and last
927
+ * heartbeat) for the cosmetic seen-since display; `state` is the advertised lifecycle
928
+ * state; `stale` is SERVER-computed from the row's remaining presence TTL against the
929
+ * bus cadence (a quiet row past the freshness bound — reconnecting or dead) and is the
930
+ * only freshness signal a client reads, never a client-side threshold; `last_op` is the
931
+ * worker's last applied op, or `null` before it has applied one.
905
932
  */
906
- export declare const fleetOrigin: z.ZodObject<{
907
- origin: z.ZodString;
933
+ export declare const fleetWorker: z.ZodObject<{
934
+ name: z.ZodString;
908
935
  kind: z.ZodEnum<["serve", "backend"]>;
909
936
  pid: z.ZodNumber;
937
+ generation: z.ZodNumber;
938
+ joined_at: z.ZodString;
939
+ beat_at: z.ZodString;
940
+ state: z.ZodEnum<["ready", "resyncing", "recycling"]>;
941
+ stale: z.ZodBoolean;
942
+ last_op: z.ZodNullable<z.ZodObject<{
943
+ op: z.ZodString;
944
+ outcome: z.ZodString;
945
+ at: z.ZodString;
946
+ }, "strip", z.ZodTypeAny, {
947
+ at: string;
948
+ op: string;
949
+ outcome: string;
950
+ }, {
951
+ at: string;
952
+ op: string;
953
+ outcome: string;
954
+ }>>;
910
955
  }, "strip", z.ZodTypeAny, {
956
+ name: string;
911
957
  kind: "backend" | "serve";
912
- origin: string;
913
958
  pid: number;
959
+ generation: number;
960
+ joined_at: string;
961
+ beat_at: string;
962
+ state: "ready" | "resyncing" | "recycling";
963
+ stale: boolean;
964
+ last_op: {
965
+ at: string;
966
+ op: string;
967
+ outcome: string;
968
+ } | null;
914
969
  }, {
970
+ name: string;
915
971
  kind: "backend" | "serve";
916
- origin: string;
917
972
  pid: number;
973
+ generation: number;
974
+ joined_at: string;
975
+ beat_at: string;
976
+ state: "ready" | "resyncing" | "recycling";
977
+ stale: boolean;
978
+ last_op: {
979
+ at: string;
980
+ op: string;
981
+ outcome: string;
982
+ } | null;
918
983
  }>;
919
- export type FleetOrigin = z.infer<typeof fleetOrigin>;
984
+ export type FleetWorker = z.infer<typeof fleetWorker>;
920
985
  /**
921
986
  * `GET /api/fleet/workers` — the live worker fleet from the bus presence census.
922
- * The census lists ALL subscribed origins (ASGI `serve` workers and backend-runtime
987
+ * The census lists ALL subscribed workers (ASGI `serve` workers and backend-runtime
923
988
  * processes alike), not only backend workers. A census read that fails surfaces as a
924
989
  * loud 500, never a fabricated empty fleet.
925
990
  */
926
991
  export declare const fleetWorkers: z.ZodObject<{
927
992
  workers: z.ZodArray<z.ZodObject<{
928
- origin: z.ZodString;
993
+ name: z.ZodString;
929
994
  kind: z.ZodEnum<["serve", "backend"]>;
930
995
  pid: z.ZodNumber;
996
+ generation: z.ZodNumber;
997
+ joined_at: z.ZodString;
998
+ beat_at: z.ZodString;
999
+ state: z.ZodEnum<["ready", "resyncing", "recycling"]>;
1000
+ stale: z.ZodBoolean;
1001
+ last_op: z.ZodNullable<z.ZodObject<{
1002
+ op: z.ZodString;
1003
+ outcome: z.ZodString;
1004
+ at: z.ZodString;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ at: string;
1007
+ op: string;
1008
+ outcome: string;
1009
+ }, {
1010
+ at: string;
1011
+ op: string;
1012
+ outcome: string;
1013
+ }>>;
931
1014
  }, "strip", z.ZodTypeAny, {
1015
+ name: string;
932
1016
  kind: "backend" | "serve";
933
- origin: string;
934
1017
  pid: number;
1018
+ generation: number;
1019
+ joined_at: string;
1020
+ beat_at: string;
1021
+ state: "ready" | "resyncing" | "recycling";
1022
+ stale: boolean;
1023
+ last_op: {
1024
+ at: string;
1025
+ op: string;
1026
+ outcome: string;
1027
+ } | null;
935
1028
  }, {
1029
+ name: string;
936
1030
  kind: "backend" | "serve";
937
- origin: string;
938
1031
  pid: number;
1032
+ generation: number;
1033
+ joined_at: string;
1034
+ beat_at: string;
1035
+ state: "ready" | "resyncing" | "recycling";
1036
+ stale: boolean;
1037
+ last_op: {
1038
+ at: string;
1039
+ op: string;
1040
+ outcome: string;
1041
+ } | null;
939
1042
  }>, "many">;
940
1043
  }, "strip", z.ZodTypeAny, {
941
1044
  workers: {
1045
+ name: string;
942
1046
  kind: "backend" | "serve";
943
- origin: string;
944
1047
  pid: number;
1048
+ generation: number;
1049
+ joined_at: string;
1050
+ beat_at: string;
1051
+ state: "ready" | "resyncing" | "recycling";
1052
+ stale: boolean;
1053
+ last_op: {
1054
+ at: string;
1055
+ op: string;
1056
+ outcome: string;
1057
+ } | null;
945
1058
  }[];
946
1059
  }, {
947
1060
  workers: {
1061
+ name: string;
948
1062
  kind: "backend" | "serve";
949
- origin: string;
950
1063
  pid: number;
1064
+ generation: number;
1065
+ joined_at: string;
1066
+ beat_at: string;
1067
+ state: "ready" | "resyncing" | "recycling";
1068
+ stale: boolean;
1069
+ last_op: {
1070
+ at: string;
1071
+ op: string;
1072
+ outcome: string;
1073
+ } | null;
951
1074
  }[];
952
1075
  }>;
953
1076
  export type FleetWorkers = z.infer<typeof fleetWorkers>;
954
1077
  /**
955
- * One origin's outcome within a fleet broadcast. `applied`/`failed` are terminal
956
- * wire replies from a subscriber; `missing`/`departed`/`timed_out` are
957
- * publisher-computed from the presence census (a silent origin never sends them).
1078
+ * One worker's outcome within a fleet broadcast. `applied`/`failed` are terminal wire
1079
+ * replies from a subscriber; `missing`/`departed`/`timed_out` are publisher-computed
1080
+ * from the presence census (a silent worker never sends them); `resyncing`/`recycling`/
1081
+ * `stale` are the gap outcomes for a row that failed the ready+fresh gate — reported as
1082
+ * its own actual condition rather than dropped (`resyncing` converges on its resync,
1083
+ * `recycling` is departing, `stale` is a quiet row past the freshness bound carrying no
1084
+ * convergence promise).
958
1085
  */
959
- export declare const fleetOutcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1086
+ export declare const fleetOutcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
960
1087
  export type FleetOutcome = z.infer<typeof fleetOutcome>;
961
1088
  /**
962
- * One origin's result within a {@link fleetResult}. `payload` carries query-op data
1089
+ * One worker's result within a {@link fleetResult}. `payload` carries query-op data
963
1090
  * (opaque to the UI); `error` carries a failed apply's message; `detail` carries the
964
- * publisher's report text for a computed `missing`/`departed`/`timed_out`. A drift
965
- * throws `ApiSchemaError`.
1091
+ * publisher's report text for a computed gap outcome (`missing`/`departed`/`timed_out`/
1092
+ * `resyncing`/`recycling`/`stale`). A drift throws `ApiSchemaError`.
966
1093
  */
967
- export declare const fleetOriginResult: z.ZodObject<{
968
- origin: z.ZodString;
969
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1094
+ export declare const fleetWorkerResult: z.ZodObject<{
1095
+ name: z.ZodString;
1096
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
970
1097
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
971
1098
  error: z.ZodNullable<z.ZodString>;
972
1099
  detail: z.ZodNullable<z.ZodString>;
973
1100
  }, "strip", z.ZodTypeAny, {
974
1101
  error: string | null;
975
- origin: string;
976
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1102
+ name: string;
1103
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
977
1104
  detail: string | null;
978
1105
  payload?: unknown;
979
1106
  }, {
980
1107
  error: string | null;
981
- origin: string;
982
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1108
+ name: string;
1109
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
983
1110
  detail: string | null;
984
1111
  payload?: unknown;
985
1112
  }>;
986
- export type FleetOriginResult = z.infer<typeof fleetOriginResult>;
1113
+ export type FleetWorkerResult = z.infer<typeof fleetWorkerResult>;
987
1114
  /**
988
- * The awaited per-origin report of one fleet broadcast. Two honest shapes ride the
1115
+ * The awaited per-worker report of one fleet broadcast. Two honest shapes ride the
989
1116
  * same schema. Reachable (`reachable: true`): `results` holds one entry per expected
990
- * origin (the serving worker's own entry included), so an unconfirmed sibling is a
991
- * visible `failed`/`missing`/`departed`/`timed_out` entry, never a silent stale
992
- * worker. Bus-unreachable (`reachable: false`): the transport failed before any
993
- * origin could reply, so `results` is empty and only `error` is carried. This is the
994
- * bare body of `POST /api/fleet/reload-config` and the single-MCP reload; it is also
995
- * the body the mode-wrapped {@link fleetReportFanout} carries under its `fleet` /
996
- * `unreachable` modes.
1117
+ * worker (the serving worker's own entry included) plus the gap rows, so an unconfirmed
1118
+ * sibling is a visible `failed`/`missing`/`departed`/`timed_out`/`resyncing`/`recycling`/
1119
+ * `stale` entry, never a silent stale worker. Bus-unreachable (`reachable: false`): the
1120
+ * transport failed before any worker could reply, so `results` is empty and only `error`
1121
+ * is carried. This is the bare body of `POST /api/fleet/reload-config` and the single-MCP
1122
+ * reload; it is also the body the mode-wrapped {@link fleetReportFanout} carries under its
1123
+ * `fleet` / `unreachable` modes.
997
1124
  */
998
1125
  export declare const fleetResult: z.ZodObject<{
999
1126
  op: z.ZodString;
1000
1127
  reachable: z.ZodBoolean;
1001
1128
  local_only: z.ZodBoolean;
1002
1129
  results: z.ZodArray<z.ZodObject<{
1003
- origin: z.ZodString;
1004
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1130
+ name: z.ZodString;
1131
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1005
1132
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1006
1133
  error: z.ZodNullable<z.ZodString>;
1007
1134
  detail: z.ZodNullable<z.ZodString>;
1008
1135
  }, "strip", z.ZodTypeAny, {
1009
1136
  error: string | null;
1010
- origin: string;
1011
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1137
+ name: string;
1138
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1012
1139
  detail: string | null;
1013
1140
  payload?: unknown;
1014
1141
  }, {
1015
1142
  error: string | null;
1016
- origin: string;
1017
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1143
+ name: string;
1144
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1018
1145
  detail: string | null;
1019
1146
  payload?: unknown;
1020
1147
  }>, "many">;
@@ -1026,8 +1153,8 @@ export declare const fleetResult: z.ZodObject<{
1026
1153
  local_only: boolean;
1027
1154
  results: {
1028
1155
  error: string | null;
1029
- origin: string;
1030
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1156
+ name: string;
1157
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1031
1158
  detail: string | null;
1032
1159
  payload?: unknown;
1033
1160
  }[];
@@ -1038,17 +1165,17 @@ export declare const fleetResult: z.ZodObject<{
1038
1165
  local_only: boolean;
1039
1166
  results: {
1040
1167
  error: string | null;
1041
- origin: string;
1042
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1168
+ name: string;
1169
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1043
1170
  detail: string | null;
1044
1171
  payload?: unknown;
1045
1172
  }[];
1046
1173
  }>;
1047
1174
  export type FleetResult = z.infer<typeof fleetResult>;
1048
1175
  /**
1049
- * `POST /api/fleet/reload-config` — soft-restart the fleet and report per-origin. The
1176
+ * `POST /api/fleet/reload-config` — soft-restart the fleet and report per-worker. The
1050
1177
  * serving worker applies its own reload first, then broadcasts; the returned report
1051
- * names every origin's outcome. A failed local apply does not abort the broadcast, so
1178
+ * names every worker's outcome. A failed local apply does not abort the broadcast, so
1052
1179
  * the report is embedded even on the convergence-failure path.
1053
1180
  */
1054
1181
  export declare const fleetReloadResult: z.ZodObject<{
@@ -1056,21 +1183,21 @@ export declare const fleetReloadResult: z.ZodObject<{
1056
1183
  reachable: z.ZodBoolean;
1057
1184
  local_only: z.ZodBoolean;
1058
1185
  results: z.ZodArray<z.ZodObject<{
1059
- origin: z.ZodString;
1060
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1186
+ name: z.ZodString;
1187
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1061
1188
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1062
1189
  error: z.ZodNullable<z.ZodString>;
1063
1190
  detail: z.ZodNullable<z.ZodString>;
1064
1191
  }, "strip", z.ZodTypeAny, {
1065
1192
  error: string | null;
1066
- origin: string;
1067
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1193
+ name: string;
1194
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1068
1195
  detail: string | null;
1069
1196
  payload?: unknown;
1070
1197
  }, {
1071
1198
  error: string | null;
1072
- origin: string;
1073
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1199
+ name: string;
1200
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1074
1201
  detail: string | null;
1075
1202
  payload?: unknown;
1076
1203
  }>, "many">;
@@ -1082,8 +1209,8 @@ export declare const fleetReloadResult: z.ZodObject<{
1082
1209
  local_only: boolean;
1083
1210
  results: {
1084
1211
  error: string | null;
1085
- origin: string;
1086
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1212
+ name: string;
1213
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1087
1214
  detail: string | null;
1088
1215
  payload?: unknown;
1089
1216
  }[];
@@ -1094,8 +1221,8 @@ export declare const fleetReloadResult: z.ZodObject<{
1094
1221
  local_only: boolean;
1095
1222
  results: {
1096
1223
  error: string | null;
1097
- origin: string;
1098
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1224
+ name: string;
1225
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1099
1226
  detail: string | null;
1100
1227
  payload?: unknown;
1101
1228
  }[];
@@ -1109,7 +1236,7 @@ export type FleetReloadResult = z.infer<typeof fleetReloadResult>;
1109
1236
  * - `fleet` — a reachable multi-worker broadcast; carries the full {@link
1110
1237
  * fleetResult} so an unconfirmed sibling is visible.
1111
1238
  * - `unreachable` — the bus itself could not be reached; carries the
1112
- * bus-unreachable {@link fleetResult} (no origin list, only `error`).
1239
+ * bus-unreachable {@link fleetResult} (no worker list, only `error`).
1113
1240
  *
1114
1241
  * Every mutation whose response embeds this parses it EXPLICITLY: zod's default
1115
1242
  * unknown-key stripping would otherwise silently drop the field, hiding a failed
@@ -1129,21 +1256,21 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1129
1256
  reachable: z.ZodBoolean;
1130
1257
  local_only: z.ZodBoolean;
1131
1258
  results: z.ZodArray<z.ZodObject<{
1132
- origin: z.ZodString;
1133
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1259
+ name: z.ZodString;
1260
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1134
1261
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1135
1262
  error: z.ZodNullable<z.ZodString>;
1136
1263
  detail: z.ZodNullable<z.ZodString>;
1137
1264
  }, "strip", z.ZodTypeAny, {
1138
1265
  error: string | null;
1139
- origin: string;
1140
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1266
+ name: string;
1267
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1141
1268
  detail: string | null;
1142
1269
  payload?: unknown;
1143
1270
  }, {
1144
1271
  error: string | null;
1145
- origin: string;
1146
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1272
+ name: string;
1273
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1147
1274
  detail: string | null;
1148
1275
  payload?: unknown;
1149
1276
  }>, "many">;
@@ -1157,8 +1284,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1157
1284
  local_only: boolean;
1158
1285
  results: {
1159
1286
  error: string | null;
1160
- origin: string;
1161
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1287
+ name: string;
1288
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1162
1289
  detail: string | null;
1163
1290
  payload?: unknown;
1164
1291
  }[];
@@ -1170,8 +1297,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1170
1297
  local_only: boolean;
1171
1298
  results: {
1172
1299
  error: string | null;
1173
- origin: string;
1174
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1300
+ name: string;
1301
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1175
1302
  detail: string | null;
1176
1303
  payload?: unknown;
1177
1304
  }[];
@@ -1181,21 +1308,21 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1181
1308
  reachable: z.ZodBoolean;
1182
1309
  local_only: z.ZodBoolean;
1183
1310
  results: z.ZodArray<z.ZodObject<{
1184
- origin: z.ZodString;
1185
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1311
+ name: z.ZodString;
1312
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1186
1313
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1187
1314
  error: z.ZodNullable<z.ZodString>;
1188
1315
  detail: z.ZodNullable<z.ZodString>;
1189
1316
  }, "strip", z.ZodTypeAny, {
1190
1317
  error: string | null;
1191
- origin: string;
1192
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1318
+ name: string;
1319
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1193
1320
  detail: string | null;
1194
1321
  payload?: unknown;
1195
1322
  }, {
1196
1323
  error: string | null;
1197
- origin: string;
1198
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1324
+ name: string;
1325
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1199
1326
  detail: string | null;
1200
1327
  payload?: unknown;
1201
1328
  }>, "many">;
@@ -1209,8 +1336,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1209
1336
  local_only: boolean;
1210
1337
  results: {
1211
1338
  error: string | null;
1212
- origin: string;
1213
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1339
+ name: string;
1340
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1214
1341
  detail: string | null;
1215
1342
  payload?: unknown;
1216
1343
  }[];
@@ -1222,8 +1349,8 @@ export declare const fleetReportFanout: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
1222
1349
  local_only: boolean;
1223
1350
  results: {
1224
1351
  error: string | null;
1225
- origin: string;
1226
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1352
+ name: string;
1353
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1227
1354
  detail: string | null;
1228
1355
  payload?: unknown;
1229
1356
  }[];
@@ -1407,21 +1534,21 @@ export declare const reloadConfigResult: z.ZodObject<{
1407
1534
  reachable: z.ZodBoolean;
1408
1535
  local_only: z.ZodBoolean;
1409
1536
  results: z.ZodArray<z.ZodObject<{
1410
- origin: z.ZodString;
1411
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1537
+ name: z.ZodString;
1538
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1412
1539
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1413
1540
  error: z.ZodNullable<z.ZodString>;
1414
1541
  detail: z.ZodNullable<z.ZodString>;
1415
1542
  }, "strip", z.ZodTypeAny, {
1416
1543
  error: string | null;
1417
- origin: string;
1418
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1544
+ name: string;
1545
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1419
1546
  detail: string | null;
1420
1547
  payload?: unknown;
1421
1548
  }, {
1422
1549
  error: string | null;
1423
- origin: string;
1424
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1550
+ name: string;
1551
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1425
1552
  detail: string | null;
1426
1553
  payload?: unknown;
1427
1554
  }>, "many">;
@@ -1435,8 +1562,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1435
1562
  local_only: boolean;
1436
1563
  results: {
1437
1564
  error: string | null;
1438
- origin: string;
1439
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1565
+ name: string;
1566
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1440
1567
  detail: string | null;
1441
1568
  payload?: unknown;
1442
1569
  }[];
@@ -1448,8 +1575,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1448
1575
  local_only: boolean;
1449
1576
  results: {
1450
1577
  error: string | null;
1451
- origin: string;
1452
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1578
+ name: string;
1579
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1453
1580
  detail: string | null;
1454
1581
  payload?: unknown;
1455
1582
  }[];
@@ -1459,21 +1586,21 @@ export declare const reloadConfigResult: z.ZodObject<{
1459
1586
  reachable: z.ZodBoolean;
1460
1587
  local_only: z.ZodBoolean;
1461
1588
  results: z.ZodArray<z.ZodObject<{
1462
- origin: z.ZodString;
1463
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1589
+ name: z.ZodString;
1590
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1464
1591
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1465
1592
  error: z.ZodNullable<z.ZodString>;
1466
1593
  detail: z.ZodNullable<z.ZodString>;
1467
1594
  }, "strip", z.ZodTypeAny, {
1468
1595
  error: string | null;
1469
- origin: string;
1470
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1596
+ name: string;
1597
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1471
1598
  detail: string | null;
1472
1599
  payload?: unknown;
1473
1600
  }, {
1474
1601
  error: string | null;
1475
- origin: string;
1476
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1602
+ name: string;
1603
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1477
1604
  detail: string | null;
1478
1605
  payload?: unknown;
1479
1606
  }>, "many">;
@@ -1487,8 +1614,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1487
1614
  local_only: boolean;
1488
1615
  results: {
1489
1616
  error: string | null;
1490
- origin: string;
1491
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1617
+ name: string;
1618
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1492
1619
  detail: string | null;
1493
1620
  payload?: unknown;
1494
1621
  }[];
@@ -1500,8 +1627,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1500
1627
  local_only: boolean;
1501
1628
  results: {
1502
1629
  error: string | null;
1503
- origin: string;
1504
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1630
+ name: string;
1631
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1505
1632
  detail: string | null;
1506
1633
  payload?: unknown;
1507
1634
  }[];
@@ -1520,8 +1647,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1520
1647
  local_only: boolean;
1521
1648
  results: {
1522
1649
  error: string | null;
1523
- origin: string;
1524
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1650
+ name: string;
1651
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1525
1652
  detail: string | null;
1526
1653
  payload?: unknown;
1527
1654
  }[];
@@ -1533,8 +1660,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1533
1660
  local_only: boolean;
1534
1661
  results: {
1535
1662
  error: string | null;
1536
- origin: string;
1537
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1663
+ name: string;
1664
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1538
1665
  detail: string | null;
1539
1666
  payload?: unknown;
1540
1667
  }[];
@@ -1553,8 +1680,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1553
1680
  local_only: boolean;
1554
1681
  results: {
1555
1682
  error: string | null;
1556
- origin: string;
1557
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1683
+ name: string;
1684
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1558
1685
  detail: string | null;
1559
1686
  payload?: unknown;
1560
1687
  }[];
@@ -1566,8 +1693,8 @@ export declare const reloadConfigResult: z.ZodObject<{
1566
1693
  local_only: boolean;
1567
1694
  results: {
1568
1695
  error: string | null;
1569
- origin: string;
1570
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1696
+ name: string;
1697
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1571
1698
  detail: string | null;
1572
1699
  payload?: unknown;
1573
1700
  }[];
@@ -1582,13 +1709,13 @@ export declare const kindStatus: z.ZodObject<{
1582
1709
  detail: z.ZodString;
1583
1710
  }, "strip", z.ZodTypeAny, {
1584
1711
  kind: string;
1585
- detail: string;
1586
1712
  state: "active" | "default" | "off";
1713
+ detail: string;
1587
1714
  plugin: string | null;
1588
1715
  }, {
1589
1716
  kind: string;
1590
- detail: string;
1591
1717
  state: "active" | "default" | "off";
1718
+ detail: string;
1592
1719
  plugin: string | null;
1593
1720
  }>;
1594
1721
  export declare const kindStatusList: z.ZodArray<z.ZodObject<{
@@ -1598,13 +1725,13 @@ export declare const kindStatusList: z.ZodArray<z.ZodObject<{
1598
1725
  detail: z.ZodString;
1599
1726
  }, "strip", z.ZodTypeAny, {
1600
1727
  kind: string;
1601
- detail: string;
1602
1728
  state: "active" | "default" | "off";
1729
+ detail: string;
1603
1730
  plugin: string | null;
1604
1731
  }, {
1605
1732
  kind: string;
1606
- detail: string;
1607
1733
  state: "active" | "default" | "off";
1734
+ detail: string;
1608
1735
  plugin: string | null;
1609
1736
  }>, "many">;
1610
1737
  export type KindStatus = z.infer<typeof kindStatus>;
@@ -1634,21 +1761,21 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1634
1761
  reachable: z.ZodBoolean;
1635
1762
  local_only: z.ZodBoolean;
1636
1763
  results: z.ZodArray<z.ZodObject<{
1637
- origin: z.ZodString;
1638
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1764
+ name: z.ZodString;
1765
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1639
1766
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1640
1767
  error: z.ZodNullable<z.ZodString>;
1641
1768
  detail: z.ZodNullable<z.ZodString>;
1642
1769
  }, "strip", z.ZodTypeAny, {
1643
1770
  error: string | null;
1644
- origin: string;
1645
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1771
+ name: string;
1772
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1646
1773
  detail: string | null;
1647
1774
  payload?: unknown;
1648
1775
  }, {
1649
1776
  error: string | null;
1650
- origin: string;
1651
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1777
+ name: string;
1778
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1652
1779
  detail: string | null;
1653
1780
  payload?: unknown;
1654
1781
  }>, "many">;
@@ -1662,8 +1789,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1662
1789
  local_only: boolean;
1663
1790
  results: {
1664
1791
  error: string | null;
1665
- origin: string;
1666
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1792
+ name: string;
1793
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1667
1794
  detail: string | null;
1668
1795
  payload?: unknown;
1669
1796
  }[];
@@ -1675,8 +1802,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1675
1802
  local_only: boolean;
1676
1803
  results: {
1677
1804
  error: string | null;
1678
- origin: string;
1679
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1805
+ name: string;
1806
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1680
1807
  detail: string | null;
1681
1808
  payload?: unknown;
1682
1809
  }[];
@@ -1686,21 +1813,21 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1686
1813
  reachable: z.ZodBoolean;
1687
1814
  local_only: z.ZodBoolean;
1688
1815
  results: z.ZodArray<z.ZodObject<{
1689
- origin: z.ZodString;
1690
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1816
+ name: z.ZodString;
1817
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1691
1818
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1692
1819
  error: z.ZodNullable<z.ZodString>;
1693
1820
  detail: z.ZodNullable<z.ZodString>;
1694
1821
  }, "strip", z.ZodTypeAny, {
1695
1822
  error: string | null;
1696
- origin: string;
1697
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1823
+ name: string;
1824
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1698
1825
  detail: string | null;
1699
1826
  payload?: unknown;
1700
1827
  }, {
1701
1828
  error: string | null;
1702
- origin: string;
1703
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1829
+ name: string;
1830
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1704
1831
  detail: string | null;
1705
1832
  payload?: unknown;
1706
1833
  }>, "many">;
@@ -1714,8 +1841,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1714
1841
  local_only: boolean;
1715
1842
  results: {
1716
1843
  error: string | null;
1717
- origin: string;
1718
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1844
+ name: string;
1845
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1719
1846
  detail: string | null;
1720
1847
  payload?: unknown;
1721
1848
  }[];
@@ -1727,8 +1854,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1727
1854
  local_only: boolean;
1728
1855
  results: {
1729
1856
  error: string | null;
1730
- origin: string;
1731
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1857
+ name: string;
1858
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1732
1859
  detail: string | null;
1733
1860
  payload?: unknown;
1734
1861
  }[];
@@ -1747,8 +1874,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1747
1874
  local_only: boolean;
1748
1875
  results: {
1749
1876
  error: string | null;
1750
- origin: string;
1751
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1877
+ name: string;
1878
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1752
1879
  detail: string | null;
1753
1880
  payload?: unknown;
1754
1881
  }[];
@@ -1760,8 +1887,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1760
1887
  local_only: boolean;
1761
1888
  results: {
1762
1889
  error: string | null;
1763
- origin: string;
1764
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1890
+ name: string;
1891
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1765
1892
  detail: string | null;
1766
1893
  payload?: unknown;
1767
1894
  }[];
@@ -1780,8 +1907,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1780
1907
  local_only: boolean;
1781
1908
  results: {
1782
1909
  error: string | null;
1783
- origin: string;
1784
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1910
+ name: string;
1911
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1785
1912
  detail: string | null;
1786
1913
  payload?: unknown;
1787
1914
  }[];
@@ -1793,8 +1920,8 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
1793
1920
  local_only: boolean;
1794
1921
  results: {
1795
1922
  error: string | null;
1796
- origin: string;
1797
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1923
+ name: string;
1924
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1798
1925
  detail: string | null;
1799
1926
  payload?: unknown;
1800
1927
  }[];
@@ -1829,7 +1956,7 @@ export declare const mcpStatus: z.ZodObject<{
1829
1956
  }>;
1830
1957
  /**
1831
1958
  * `POST /api/mcp-status/{title}/reload` — re-probe a single MCP server and broadcast
1832
- * the reload to the fleet. The response is the bare per-origin {@link fleetResult}
1959
+ * the reload to the fleet. The response is the bare per-worker {@link fleetResult}
1833
1960
  * (the serving worker's re-probe rides its own `results` entry as the payload); there
1834
1961
  * is no local/workers split. A drift throws `ApiSchemaError`.
1835
1962
  */
@@ -1838,21 +1965,21 @@ export declare const mcpReloadResult: z.ZodObject<{
1838
1965
  reachable: z.ZodBoolean;
1839
1966
  local_only: z.ZodBoolean;
1840
1967
  results: z.ZodArray<z.ZodObject<{
1841
- origin: z.ZodString;
1842
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
1968
+ name: z.ZodString;
1969
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
1843
1970
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1844
1971
  error: z.ZodNullable<z.ZodString>;
1845
1972
  detail: z.ZodNullable<z.ZodString>;
1846
1973
  }, "strip", z.ZodTypeAny, {
1847
1974
  error: string | null;
1848
- origin: string;
1849
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1975
+ name: string;
1976
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1850
1977
  detail: string | null;
1851
1978
  payload?: unknown;
1852
1979
  }, {
1853
1980
  error: string | null;
1854
- origin: string;
1855
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1981
+ name: string;
1982
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1856
1983
  detail: string | null;
1857
1984
  payload?: unknown;
1858
1985
  }>, "many">;
@@ -1864,8 +1991,8 @@ export declare const mcpReloadResult: z.ZodObject<{
1864
1991
  local_only: boolean;
1865
1992
  results: {
1866
1993
  error: string | null;
1867
- origin: string;
1868
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
1994
+ name: string;
1995
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1869
1996
  detail: string | null;
1870
1997
  payload?: unknown;
1871
1998
  }[];
@@ -1876,8 +2003,8 @@ export declare const mcpReloadResult: z.ZodObject<{
1876
2003
  local_only: boolean;
1877
2004
  results: {
1878
2005
  error: string | null;
1879
- origin: string;
1880
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2006
+ name: string;
2007
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1881
2008
  detail: string | null;
1882
2009
  payload?: unknown;
1883
2010
  }[];
@@ -2089,27 +2216,47 @@ export type SettingsProfileDiff = z.infer<typeof settingsProfileDiff>;
2089
2216
  * `POST /api/config/profiles/{name}/apply` — the dedicated `profile_apply_response`
2090
2217
  * (action=fenced, destructive). NAMES-ONLY (no env value in any
2091
2218
  * section): `hot` is the hot-swapped key names; `recycle` is the orchestrator's
2092
- * per-origin section — the applier's OWN entry carries the `self-deferred` status
2093
- * literal when the diff has serve-affecting recycle keys; `refused` is `[]` on
2094
- * success by construction (populated `{key, reason}` only on a refusal), the
2095
- * populated refusal surfaces being the diff preview and the refusal error report.
2096
- * `fanout` is the mode-wrapped fleet broadcast, parsed EXPLICITLY so a failed
2097
- * propagation reaches the shared fleet-report handler. A drift throws `ApiSchemaError`.
2219
+ * per-worker section — one `{name, kind, status, generation_before}` row per recycled
2220
+ * target, `generation_before` the life that was recycled, the applier's OWN row carrying
2221
+ * the `self-deferred` status literal when the diff has serve-affecting recycle keys;
2222
+ * `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot
2223
+ * (each `{name, kind, generation}`), evidence of fresh capacity and never claimed as any
2224
+ * target's successor; `refused` is `[]` on success by construction (populated
2225
+ * `{key, reason}` only on a refusal), the populated refusal surfaces being the diff
2226
+ * preview and the refusal error report. `fanout` is the mode-wrapped fleet broadcast,
2227
+ * parsed EXPLICITLY so a failed propagation reaches the shared fleet-report handler. A
2228
+ * drift throws `ApiSchemaError`.
2098
2229
  */
2099
2230
  export declare const profileApplyResponse: z.ZodObject<{
2100
2231
  hot: z.ZodArray<z.ZodString, "many">;
2101
2232
  recycle: z.ZodArray<z.ZodObject<{
2102
- origin: z.ZodString;
2233
+ name: z.ZodString;
2103
2234
  kind: z.ZodString;
2104
2235
  status: z.ZodString;
2236
+ generation_before: z.ZodNumber;
2105
2237
  }, "strip", z.ZodTypeAny, {
2238
+ name: string;
2106
2239
  status: string;
2107
2240
  kind: string;
2108
- origin: string;
2241
+ generation_before: number;
2109
2242
  }, {
2243
+ name: string;
2110
2244
  status: string;
2111
2245
  kind: string;
2112
- origin: string;
2246
+ generation_before: number;
2247
+ }>, "many">;
2248
+ fresh: z.ZodArray<z.ZodObject<{
2249
+ name: z.ZodString;
2250
+ kind: z.ZodString;
2251
+ generation: z.ZodNumber;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ name: string;
2254
+ kind: string;
2255
+ generation: number;
2256
+ }, {
2257
+ name: string;
2258
+ kind: string;
2259
+ generation: number;
2113
2260
  }>, "many">;
2114
2261
  refused: z.ZodArray<z.ZodObject<{
2115
2262
  key: z.ZodString;
@@ -2135,21 +2282,21 @@ export declare const profileApplyResponse: z.ZodObject<{
2135
2282
  reachable: z.ZodBoolean;
2136
2283
  local_only: z.ZodBoolean;
2137
2284
  results: z.ZodArray<z.ZodObject<{
2138
- origin: z.ZodString;
2139
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
2285
+ name: z.ZodString;
2286
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
2140
2287
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
2141
2288
  error: z.ZodNullable<z.ZodString>;
2142
2289
  detail: z.ZodNullable<z.ZodString>;
2143
2290
  }, "strip", z.ZodTypeAny, {
2144
2291
  error: string | null;
2145
- origin: string;
2146
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2292
+ name: string;
2293
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2147
2294
  detail: string | null;
2148
2295
  payload?: unknown;
2149
2296
  }, {
2150
2297
  error: string | null;
2151
- origin: string;
2152
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2298
+ name: string;
2299
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2153
2300
  detail: string | null;
2154
2301
  payload?: unknown;
2155
2302
  }>, "many">;
@@ -2163,8 +2310,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2163
2310
  local_only: boolean;
2164
2311
  results: {
2165
2312
  error: string | null;
2166
- origin: string;
2167
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2313
+ name: string;
2314
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2168
2315
  detail: string | null;
2169
2316
  payload?: unknown;
2170
2317
  }[];
@@ -2176,8 +2323,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2176
2323
  local_only: boolean;
2177
2324
  results: {
2178
2325
  error: string | null;
2179
- origin: string;
2180
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2326
+ name: string;
2327
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2181
2328
  detail: string | null;
2182
2329
  payload?: unknown;
2183
2330
  }[];
@@ -2187,21 +2334,21 @@ export declare const profileApplyResponse: z.ZodObject<{
2187
2334
  reachable: z.ZodBoolean;
2188
2335
  local_only: z.ZodBoolean;
2189
2336
  results: z.ZodArray<z.ZodObject<{
2190
- origin: z.ZodString;
2191
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
2337
+ name: z.ZodString;
2338
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
2192
2339
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
2193
2340
  error: z.ZodNullable<z.ZodString>;
2194
2341
  detail: z.ZodNullable<z.ZodString>;
2195
2342
  }, "strip", z.ZodTypeAny, {
2196
2343
  error: string | null;
2197
- origin: string;
2198
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2344
+ name: string;
2345
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2199
2346
  detail: string | null;
2200
2347
  payload?: unknown;
2201
2348
  }, {
2202
2349
  error: string | null;
2203
- origin: string;
2204
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2350
+ name: string;
2351
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2205
2352
  detail: string | null;
2206
2353
  payload?: unknown;
2207
2354
  }>, "many">;
@@ -2215,8 +2362,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2215
2362
  local_only: boolean;
2216
2363
  results: {
2217
2364
  error: string | null;
2218
- origin: string;
2219
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2365
+ name: string;
2366
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2220
2367
  detail: string | null;
2221
2368
  payload?: unknown;
2222
2369
  }[];
@@ -2228,8 +2375,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2228
2375
  local_only: boolean;
2229
2376
  results: {
2230
2377
  error: string | null;
2231
- origin: string;
2232
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2378
+ name: string;
2379
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2233
2380
  detail: string | null;
2234
2381
  payload?: unknown;
2235
2382
  }[];
@@ -2246,8 +2393,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2246
2393
  local_only: boolean;
2247
2394
  results: {
2248
2395
  error: string | null;
2249
- origin: string;
2250
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2396
+ name: string;
2397
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2251
2398
  detail: string | null;
2252
2399
  payload?: unknown;
2253
2400
  }[];
@@ -2259,8 +2406,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2259
2406
  local_only: boolean;
2260
2407
  results: {
2261
2408
  error: string | null;
2262
- origin: string;
2263
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2409
+ name: string;
2410
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2264
2411
  detail: string | null;
2265
2412
  payload?: unknown;
2266
2413
  }[];
@@ -2268,9 +2415,15 @@ export declare const profileApplyResponse: z.ZodObject<{
2268
2415
  };
2269
2416
  hot: string[];
2270
2417
  recycle: {
2418
+ name: string;
2271
2419
  status: string;
2272
2420
  kind: string;
2273
- origin: string;
2421
+ generation_before: number;
2422
+ }[];
2423
+ fresh: {
2424
+ name: string;
2425
+ kind: string;
2426
+ generation: number;
2274
2427
  }[];
2275
2428
  refused: {
2276
2429
  key: string;
@@ -2287,8 +2440,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2287
2440
  local_only: boolean;
2288
2441
  results: {
2289
2442
  error: string | null;
2290
- origin: string;
2291
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2443
+ name: string;
2444
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2292
2445
  detail: string | null;
2293
2446
  payload?: unknown;
2294
2447
  }[];
@@ -2300,8 +2453,8 @@ export declare const profileApplyResponse: z.ZodObject<{
2300
2453
  local_only: boolean;
2301
2454
  results: {
2302
2455
  error: string | null;
2303
- origin: string;
2304
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
2456
+ name: string;
2457
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2305
2458
  detail: string | null;
2306
2459
  payload?: unknown;
2307
2460
  }[];
@@ -2309,9 +2462,15 @@ export declare const profileApplyResponse: z.ZodObject<{
2309
2462
  };
2310
2463
  hot: string[];
2311
2464
  recycle: {
2465
+ name: string;
2312
2466
  status: string;
2313
2467
  kind: string;
2314
- origin: string;
2468
+ generation_before: number;
2469
+ }[];
2470
+ fresh: {
2471
+ name: string;
2472
+ kind: string;
2473
+ generation: number;
2315
2474
  }[];
2316
2475
  refused: {
2317
2476
  key: string;
@@ -2486,8 +2645,8 @@ export declare const providerView: z.ZodObject<{
2486
2645
  kind: "oauth" | "none";
2487
2646
  id: string;
2488
2647
  display_name: string;
2489
- origin: "system" | "community";
2490
2648
  icon_url: string;
2649
+ origin: "system" | "community";
2491
2650
  category: string;
2492
2651
  sub_services: {
2493
2652
  description: string;
@@ -2507,8 +2666,8 @@ export declare const providerView: z.ZodObject<{
2507
2666
  kind: "oauth" | "none";
2508
2667
  id: string;
2509
2668
  display_name: string;
2510
- origin: "system" | "community";
2511
2669
  icon_url: string;
2670
+ origin: "system" | "community";
2512
2671
  category: string;
2513
2672
  sub_services: {
2514
2673
  description: string;
@@ -2598,8 +2757,8 @@ export declare const providers: z.ZodObject<{
2598
2757
  kind: "oauth" | "none";
2599
2758
  id: string;
2600
2759
  display_name: string;
2601
- origin: "system" | "community";
2602
2760
  icon_url: string;
2761
+ origin: "system" | "community";
2603
2762
  category: string;
2604
2763
  sub_services: {
2605
2764
  description: string;
@@ -2619,8 +2778,8 @@ export declare const providers: z.ZodObject<{
2619
2778
  kind: "oauth" | "none";
2620
2779
  id: string;
2621
2780
  display_name: string;
2622
- origin: "system" | "community";
2623
2781
  icon_url: string;
2782
+ origin: "system" | "community";
2624
2783
  category: string;
2625
2784
  sub_services: {
2626
2785
  description: string;
@@ -2655,8 +2814,8 @@ export declare const providers: z.ZodObject<{
2655
2814
  kind: "oauth" | "none";
2656
2815
  id: string;
2657
2816
  display_name: string;
2658
- origin: "system" | "community";
2659
2817
  icon_url: string;
2818
+ origin: "system" | "community";
2660
2819
  category: string;
2661
2820
  sub_services: {
2662
2821
  description: string;
@@ -2683,8 +2842,8 @@ export declare const providers: z.ZodObject<{
2683
2842
  kind: "oauth" | "none";
2684
2843
  id: string;
2685
2844
  display_name: string;
2686
- origin: "system" | "community";
2687
2845
  icon_url: string;
2846
+ origin: "system" | "community";
2688
2847
  category: string;
2689
2848
  sub_services: {
2690
2849
  description: string;
@@ -2836,21 +2995,21 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2836
2995
  reachable: z.ZodBoolean;
2837
2996
  local_only: z.ZodBoolean;
2838
2997
  results: z.ZodArray<z.ZodObject<{
2839
- origin: z.ZodString;
2840
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
2998
+ name: z.ZodString;
2999
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
2841
3000
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
2842
3001
  error: z.ZodNullable<z.ZodString>;
2843
3002
  detail: z.ZodNullable<z.ZodString>;
2844
3003
  }, "strip", z.ZodTypeAny, {
2845
3004
  error: string | null;
2846
- origin: string;
2847
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3005
+ name: string;
3006
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2848
3007
  detail: string | null;
2849
3008
  payload?: unknown;
2850
3009
  }, {
2851
3010
  error: string | null;
2852
- origin: string;
2853
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3011
+ name: string;
3012
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2854
3013
  detail: string | null;
2855
3014
  payload?: unknown;
2856
3015
  }>, "many">;
@@ -2864,8 +3023,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2864
3023
  local_only: boolean;
2865
3024
  results: {
2866
3025
  error: string | null;
2867
- origin: string;
2868
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3026
+ name: string;
3027
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2869
3028
  detail: string | null;
2870
3029
  payload?: unknown;
2871
3030
  }[];
@@ -2877,8 +3036,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2877
3036
  local_only: boolean;
2878
3037
  results: {
2879
3038
  error: string | null;
2880
- origin: string;
2881
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3039
+ name: string;
3040
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2882
3041
  detail: string | null;
2883
3042
  payload?: unknown;
2884
3043
  }[];
@@ -2888,21 +3047,21 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2888
3047
  reachable: z.ZodBoolean;
2889
3048
  local_only: z.ZodBoolean;
2890
3049
  results: z.ZodArray<z.ZodObject<{
2891
- origin: z.ZodString;
2892
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3050
+ name: z.ZodString;
3051
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
2893
3052
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
2894
3053
  error: z.ZodNullable<z.ZodString>;
2895
3054
  detail: z.ZodNullable<z.ZodString>;
2896
3055
  }, "strip", z.ZodTypeAny, {
2897
3056
  error: string | null;
2898
- origin: string;
2899
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3057
+ name: string;
3058
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2900
3059
  detail: string | null;
2901
3060
  payload?: unknown;
2902
3061
  }, {
2903
3062
  error: string | null;
2904
- origin: string;
2905
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3063
+ name: string;
3064
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2906
3065
  detail: string | null;
2907
3066
  payload?: unknown;
2908
3067
  }>, "many">;
@@ -2916,8 +3075,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2916
3075
  local_only: boolean;
2917
3076
  results: {
2918
3077
  error: string | null;
2919
- origin: string;
2920
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3078
+ name: string;
3079
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2921
3080
  detail: string | null;
2922
3081
  payload?: unknown;
2923
3082
  }[];
@@ -2929,8 +3088,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2929
3088
  local_only: boolean;
2930
3089
  results: {
2931
3090
  error: string | null;
2932
- origin: string;
2933
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3091
+ name: string;
3092
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2934
3093
  detail: string | null;
2935
3094
  payload?: unknown;
2936
3095
  }[];
@@ -2948,8 +3107,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2948
3107
  local_only: boolean;
2949
3108
  results: {
2950
3109
  error: string | null;
2951
- origin: string;
2952
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3110
+ name: string;
3111
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2953
3112
  detail: string | null;
2954
3113
  payload?: unknown;
2955
3114
  }[];
@@ -2961,8 +3120,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2961
3120
  local_only: boolean;
2962
3121
  results: {
2963
3122
  error: string | null;
2964
- origin: string;
2965
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3123
+ name: string;
3124
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2966
3125
  detail: string | null;
2967
3126
  payload?: unknown;
2968
3127
  }[];
@@ -2981,8 +3140,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2981
3140
  local_only: boolean;
2982
3141
  results: {
2983
3142
  error: string | null;
2984
- origin: string;
2985
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3143
+ name: string;
3144
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2986
3145
  detail: string | null;
2987
3146
  payload?: unknown;
2988
3147
  }[];
@@ -2994,8 +3153,8 @@ export declare const startConnectResult: z.ZodUnion<[z.ZodObject<{
2994
3153
  local_only: boolean;
2995
3154
  results: {
2996
3155
  error: string | null;
2997
- origin: string;
2998
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3156
+ name: string;
3157
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2999
3158
  detail: string | null;
3000
3159
  payload?: unknown;
3001
3160
  }[];
@@ -3032,21 +3191,21 @@ export declare const disconnectResult: z.ZodObject<{
3032
3191
  reachable: z.ZodBoolean;
3033
3192
  local_only: z.ZodBoolean;
3034
3193
  results: z.ZodArray<z.ZodObject<{
3035
- origin: z.ZodString;
3036
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3194
+ name: z.ZodString;
3195
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3037
3196
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3038
3197
  error: z.ZodNullable<z.ZodString>;
3039
3198
  detail: z.ZodNullable<z.ZodString>;
3040
3199
  }, "strip", z.ZodTypeAny, {
3041
3200
  error: string | null;
3042
- origin: string;
3043
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3201
+ name: string;
3202
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3044
3203
  detail: string | null;
3045
3204
  payload?: unknown;
3046
3205
  }, {
3047
3206
  error: string | null;
3048
- origin: string;
3049
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3207
+ name: string;
3208
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3050
3209
  detail: string | null;
3051
3210
  payload?: unknown;
3052
3211
  }>, "many">;
@@ -3060,8 +3219,8 @@ export declare const disconnectResult: z.ZodObject<{
3060
3219
  local_only: boolean;
3061
3220
  results: {
3062
3221
  error: string | null;
3063
- origin: string;
3064
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3222
+ name: string;
3223
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3065
3224
  detail: string | null;
3066
3225
  payload?: unknown;
3067
3226
  }[];
@@ -3073,8 +3232,8 @@ export declare const disconnectResult: z.ZodObject<{
3073
3232
  local_only: boolean;
3074
3233
  results: {
3075
3234
  error: string | null;
3076
- origin: string;
3077
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3235
+ name: string;
3236
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3078
3237
  detail: string | null;
3079
3238
  payload?: unknown;
3080
3239
  }[];
@@ -3084,21 +3243,21 @@ export declare const disconnectResult: z.ZodObject<{
3084
3243
  reachable: z.ZodBoolean;
3085
3244
  local_only: z.ZodBoolean;
3086
3245
  results: z.ZodArray<z.ZodObject<{
3087
- origin: z.ZodString;
3088
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3246
+ name: z.ZodString;
3247
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3089
3248
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3090
3249
  error: z.ZodNullable<z.ZodString>;
3091
3250
  detail: z.ZodNullable<z.ZodString>;
3092
3251
  }, "strip", z.ZodTypeAny, {
3093
3252
  error: string | null;
3094
- origin: string;
3095
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3253
+ name: string;
3254
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3096
3255
  detail: string | null;
3097
3256
  payload?: unknown;
3098
3257
  }, {
3099
3258
  error: string | null;
3100
- origin: string;
3101
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3259
+ name: string;
3260
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3102
3261
  detail: string | null;
3103
3262
  payload?: unknown;
3104
3263
  }>, "many">;
@@ -3112,8 +3271,8 @@ export declare const disconnectResult: z.ZodObject<{
3112
3271
  local_only: boolean;
3113
3272
  results: {
3114
3273
  error: string | null;
3115
- origin: string;
3116
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3274
+ name: string;
3275
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3117
3276
  detail: string | null;
3118
3277
  payload?: unknown;
3119
3278
  }[];
@@ -3125,8 +3284,8 @@ export declare const disconnectResult: z.ZodObject<{
3125
3284
  local_only: boolean;
3126
3285
  results: {
3127
3286
  error: string | null;
3128
- origin: string;
3129
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3287
+ name: string;
3288
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3130
3289
  detail: string | null;
3131
3290
  payload?: unknown;
3132
3291
  }[];
@@ -3144,8 +3303,8 @@ export declare const disconnectResult: z.ZodObject<{
3144
3303
  local_only: boolean;
3145
3304
  results: {
3146
3305
  error: string | null;
3147
- origin: string;
3148
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3306
+ name: string;
3307
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3149
3308
  detail: string | null;
3150
3309
  payload?: unknown;
3151
3310
  }[];
@@ -3157,8 +3316,8 @@ export declare const disconnectResult: z.ZodObject<{
3157
3316
  local_only: boolean;
3158
3317
  results: {
3159
3318
  error: string | null;
3160
- origin: string;
3161
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3319
+ name: string;
3320
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3162
3321
  detail: string | null;
3163
3322
  payload?: unknown;
3164
3323
  }[];
@@ -3179,8 +3338,8 @@ export declare const disconnectResult: z.ZodObject<{
3179
3338
  local_only: boolean;
3180
3339
  results: {
3181
3340
  error: string | null;
3182
- origin: string;
3183
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3341
+ name: string;
3342
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3184
3343
  detail: string | null;
3185
3344
  payload?: unknown;
3186
3345
  }[];
@@ -3192,8 +3351,8 @@ export declare const disconnectResult: z.ZodObject<{
3192
3351
  local_only: boolean;
3193
3352
  results: {
3194
3353
  error: string | null;
3195
- origin: string;
3196
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3354
+ name: string;
3355
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3197
3356
  detail: string | null;
3198
3357
  payload?: unknown;
3199
3358
  }[];
@@ -3225,21 +3384,21 @@ export declare const patchSubServicesResult: z.ZodObject<{
3225
3384
  reachable: z.ZodBoolean;
3226
3385
  local_only: z.ZodBoolean;
3227
3386
  results: z.ZodArray<z.ZodObject<{
3228
- origin: z.ZodString;
3229
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3387
+ name: z.ZodString;
3388
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3230
3389
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3231
3390
  error: z.ZodNullable<z.ZodString>;
3232
3391
  detail: z.ZodNullable<z.ZodString>;
3233
3392
  }, "strip", z.ZodTypeAny, {
3234
3393
  error: string | null;
3235
- origin: string;
3236
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3394
+ name: string;
3395
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3237
3396
  detail: string | null;
3238
3397
  payload?: unknown;
3239
3398
  }, {
3240
3399
  error: string | null;
3241
- origin: string;
3242
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3400
+ name: string;
3401
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3243
3402
  detail: string | null;
3244
3403
  payload?: unknown;
3245
3404
  }>, "many">;
@@ -3253,8 +3412,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3253
3412
  local_only: boolean;
3254
3413
  results: {
3255
3414
  error: string | null;
3256
- origin: string;
3257
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3415
+ name: string;
3416
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3258
3417
  detail: string | null;
3259
3418
  payload?: unknown;
3260
3419
  }[];
@@ -3266,8 +3425,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3266
3425
  local_only: boolean;
3267
3426
  results: {
3268
3427
  error: string | null;
3269
- origin: string;
3270
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3428
+ name: string;
3429
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3271
3430
  detail: string | null;
3272
3431
  payload?: unknown;
3273
3432
  }[];
@@ -3277,21 +3436,21 @@ export declare const patchSubServicesResult: z.ZodObject<{
3277
3436
  reachable: z.ZodBoolean;
3278
3437
  local_only: z.ZodBoolean;
3279
3438
  results: z.ZodArray<z.ZodObject<{
3280
- origin: z.ZodString;
3281
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3439
+ name: z.ZodString;
3440
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3282
3441
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3283
3442
  error: z.ZodNullable<z.ZodString>;
3284
3443
  detail: z.ZodNullable<z.ZodString>;
3285
3444
  }, "strip", z.ZodTypeAny, {
3286
3445
  error: string | null;
3287
- origin: string;
3288
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3446
+ name: string;
3447
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3289
3448
  detail: string | null;
3290
3449
  payload?: unknown;
3291
3450
  }, {
3292
3451
  error: string | null;
3293
- origin: string;
3294
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3452
+ name: string;
3453
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3295
3454
  detail: string | null;
3296
3455
  payload?: unknown;
3297
3456
  }>, "many">;
@@ -3305,8 +3464,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3305
3464
  local_only: boolean;
3306
3465
  results: {
3307
3466
  error: string | null;
3308
- origin: string;
3309
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3467
+ name: string;
3468
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3310
3469
  detail: string | null;
3311
3470
  payload?: unknown;
3312
3471
  }[];
@@ -3318,8 +3477,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3318
3477
  local_only: boolean;
3319
3478
  results: {
3320
3479
  error: string | null;
3321
- origin: string;
3322
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3480
+ name: string;
3481
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3323
3482
  detail: string | null;
3324
3483
  payload?: unknown;
3325
3484
  }[];
@@ -3337,8 +3496,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3337
3496
  local_only: boolean;
3338
3497
  results: {
3339
3498
  error: string | null;
3340
- origin: string;
3341
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3499
+ name: string;
3500
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3342
3501
  detail: string | null;
3343
3502
  payload?: unknown;
3344
3503
  }[];
@@ -3350,8 +3509,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3350
3509
  local_only: boolean;
3351
3510
  results: {
3352
3511
  error: string | null;
3353
- origin: string;
3354
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3512
+ name: string;
3513
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3355
3514
  detail: string | null;
3356
3515
  payload?: unknown;
3357
3516
  }[];
@@ -3375,8 +3534,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3375
3534
  local_only: boolean;
3376
3535
  results: {
3377
3536
  error: string | null;
3378
- origin: string;
3379
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3537
+ name: string;
3538
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3380
3539
  detail: string | null;
3381
3540
  payload?: unknown;
3382
3541
  }[];
@@ -3388,8 +3547,8 @@ export declare const patchSubServicesResult: z.ZodObject<{
3388
3547
  local_only: boolean;
3389
3548
  results: {
3390
3549
  error: string | null;
3391
- origin: string;
3392
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3550
+ name: string;
3551
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3393
3552
  detail: string | null;
3394
3553
  payload?: unknown;
3395
3554
  }[];
@@ -3420,21 +3579,21 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3420
3579
  reachable: z.ZodBoolean;
3421
3580
  local_only: z.ZodBoolean;
3422
3581
  results: z.ZodArray<z.ZodObject<{
3423
- origin: z.ZodString;
3424
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3582
+ name: z.ZodString;
3583
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3425
3584
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3426
3585
  error: z.ZodNullable<z.ZodString>;
3427
3586
  detail: z.ZodNullable<z.ZodString>;
3428
3587
  }, "strip", z.ZodTypeAny, {
3429
3588
  error: string | null;
3430
- origin: string;
3431
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3589
+ name: string;
3590
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3432
3591
  detail: string | null;
3433
3592
  payload?: unknown;
3434
3593
  }, {
3435
3594
  error: string | null;
3436
- origin: string;
3437
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3595
+ name: string;
3596
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3438
3597
  detail: string | null;
3439
3598
  payload?: unknown;
3440
3599
  }>, "many">;
@@ -3448,8 +3607,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3448
3607
  local_only: boolean;
3449
3608
  results: {
3450
3609
  error: string | null;
3451
- origin: string;
3452
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3610
+ name: string;
3611
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3453
3612
  detail: string | null;
3454
3613
  payload?: unknown;
3455
3614
  }[];
@@ -3461,8 +3620,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3461
3620
  local_only: boolean;
3462
3621
  results: {
3463
3622
  error: string | null;
3464
- origin: string;
3465
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3623
+ name: string;
3624
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3466
3625
  detail: string | null;
3467
3626
  payload?: unknown;
3468
3627
  }[];
@@ -3472,21 +3631,21 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3472
3631
  reachable: z.ZodBoolean;
3473
3632
  local_only: z.ZodBoolean;
3474
3633
  results: z.ZodArray<z.ZodObject<{
3475
- origin: z.ZodString;
3476
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
3634
+ name: z.ZodString;
3635
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
3477
3636
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
3478
3637
  error: z.ZodNullable<z.ZodString>;
3479
3638
  detail: z.ZodNullable<z.ZodString>;
3480
3639
  }, "strip", z.ZodTypeAny, {
3481
3640
  error: string | null;
3482
- origin: string;
3483
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3641
+ name: string;
3642
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3484
3643
  detail: string | null;
3485
3644
  payload?: unknown;
3486
3645
  }, {
3487
3646
  error: string | null;
3488
- origin: string;
3489
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3647
+ name: string;
3648
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3490
3649
  detail: string | null;
3491
3650
  payload?: unknown;
3492
3651
  }>, "many">;
@@ -3500,8 +3659,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3500
3659
  local_only: boolean;
3501
3660
  results: {
3502
3661
  error: string | null;
3503
- origin: string;
3504
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3662
+ name: string;
3663
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3505
3664
  detail: string | null;
3506
3665
  payload?: unknown;
3507
3666
  }[];
@@ -3513,8 +3672,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3513
3672
  local_only: boolean;
3514
3673
  results: {
3515
3674
  error: string | null;
3516
- origin: string;
3517
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3675
+ name: string;
3676
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3518
3677
  detail: string | null;
3519
3678
  payload?: unknown;
3520
3679
  }[];
@@ -3533,8 +3692,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3533
3692
  local_only: boolean;
3534
3693
  results: {
3535
3694
  error: string | null;
3536
- origin: string;
3537
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3695
+ name: string;
3696
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3538
3697
  detail: string | null;
3539
3698
  payload?: unknown;
3540
3699
  }[];
@@ -3546,8 +3705,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3546
3705
  local_only: boolean;
3547
3706
  results: {
3548
3707
  error: string | null;
3549
- origin: string;
3550
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3708
+ name: string;
3709
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3551
3710
  detail: string | null;
3552
3711
  payload?: unknown;
3553
3712
  }[];
@@ -3567,8 +3726,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3567
3726
  local_only: boolean;
3568
3727
  results: {
3569
3728
  error: string | null;
3570
- origin: string;
3571
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3729
+ name: string;
3730
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3572
3731
  detail: string | null;
3573
3732
  payload?: unknown;
3574
3733
  }[];
@@ -3580,8 +3739,8 @@ export declare const oauthCompleteResult: z.ZodDiscriminatedUnion<"kind", [z.Zod
3580
3739
  local_only: boolean;
3581
3740
  results: {
3582
3741
  error: string | null;
3583
- origin: string;
3584
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
3742
+ name: string;
3743
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
3585
3744
  detail: string | null;
3586
3745
  payload?: unknown;
3587
3746
  }[];
@@ -3802,6 +3961,408 @@ export declare const channels: z.ZodObject<{
3802
3961
  channels: string[];
3803
3962
  }>;
3804
3963
  export type Channels = z.infer<typeof channels>;
3964
+ /** The inbound door a route is bound to: the authed API, or a channel medium. */
3965
+ export declare const conversationDoor: z.ZodEnum<["api", "channel"]>;
3966
+ export type ConversationDoor = z.infer<typeof conversationDoor>;
3967
+ /** What a route's turn runs: a registered agent, or a tool dispatch. */
3968
+ export declare const conversationTargetKind: z.ZodEnum<["agent", "tool"]>;
3969
+ export type ConversationTargetKind = z.infer<typeof conversationTargetKind>;
3970
+ /**
3971
+ * Where a record sits between intake and a terminal outcome. `failed` is the one
3972
+ * the monitor surfaces loudly; `shed` and `silent` are terminal by design and
3973
+ * never send.
3974
+ */
3975
+ export declare const conversationDeliveryStatus: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
3976
+ export type ConversationDeliveryStatus = z.infer<typeof conversationDeliveryStatus>;
3977
+ /** The nature of a turn's outcome, orthogonal to where its delivery stands. */
3978
+ export declare const conversationAnswerStatus: z.ZodEnum<["answered", "error", "silent"]>;
3979
+ export type ConversationAnswerStatus = z.infer<typeof conversationAnswerStatus>;
3980
+ /** A stored routing row as a read door returns it, its `callback_secret` withheld. */
3981
+ export declare const conversationRoute: z.ZodObject<{
3982
+ route_name: z.ZodString;
3983
+ door: z.ZodEnum<["api", "channel"]>;
3984
+ target_kind: z.ZodEnum<["agent", "tool"]>;
3985
+ target_name: z.ZodString;
3986
+ payload_expr: z.ZodNullable<z.ZodString>;
3987
+ reply_expr: z.ZodNullable<z.ZodString>;
3988
+ execution_key: z.ZodString;
3989
+ channel: z.ZodNullable<z.ZodString>;
3990
+ our_identity: z.ZodNullable<z.ZodString>;
3991
+ callback_url: z.ZodNullable<z.ZodString>;
3992
+ execution_key_fingerprint: z.ZodString;
3993
+ }, "strip", z.ZodTypeAny, {
3994
+ channel: string | null;
3995
+ route_name: string;
3996
+ door: "channel" | "api";
3997
+ target_kind: "tool" | "agent";
3998
+ target_name: string;
3999
+ payload_expr: string | null;
4000
+ reply_expr: string | null;
4001
+ execution_key: string;
4002
+ our_identity: string | null;
4003
+ callback_url: string | null;
4004
+ execution_key_fingerprint: string;
4005
+ }, {
4006
+ channel: string | null;
4007
+ route_name: string;
4008
+ door: "channel" | "api";
4009
+ target_kind: "tool" | "agent";
4010
+ target_name: string;
4011
+ payload_expr: string | null;
4012
+ reply_expr: string | null;
4013
+ execution_key: string;
4014
+ our_identity: string | null;
4015
+ callback_url: string | null;
4016
+ execution_key_fingerprint: string;
4017
+ }>;
4018
+ export type ConversationRoute = z.infer<typeof conversationRoute>;
4019
+ export declare const conversationRoutes: z.ZodObject<{
4020
+ items: z.ZodArray<z.ZodObject<{
4021
+ route_name: z.ZodString;
4022
+ door: z.ZodEnum<["api", "channel"]>;
4023
+ target_kind: z.ZodEnum<["agent", "tool"]>;
4024
+ target_name: z.ZodString;
4025
+ payload_expr: z.ZodNullable<z.ZodString>;
4026
+ reply_expr: z.ZodNullable<z.ZodString>;
4027
+ execution_key: z.ZodString;
4028
+ channel: z.ZodNullable<z.ZodString>;
4029
+ our_identity: z.ZodNullable<z.ZodString>;
4030
+ callback_url: z.ZodNullable<z.ZodString>;
4031
+ execution_key_fingerprint: z.ZodString;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ channel: string | null;
4034
+ route_name: string;
4035
+ door: "channel" | "api";
4036
+ target_kind: "tool" | "agent";
4037
+ target_name: string;
4038
+ payload_expr: string | null;
4039
+ reply_expr: string | null;
4040
+ execution_key: string;
4041
+ our_identity: string | null;
4042
+ callback_url: string | null;
4043
+ execution_key_fingerprint: string;
4044
+ }, {
4045
+ channel: string | null;
4046
+ route_name: string;
4047
+ door: "channel" | "api";
4048
+ target_kind: "tool" | "agent";
4049
+ target_name: string;
4050
+ payload_expr: string | null;
4051
+ reply_expr: string | null;
4052
+ execution_key: string;
4053
+ our_identity: string | null;
4054
+ callback_url: string | null;
4055
+ execution_key_fingerprint: string;
4056
+ }>, "many">;
4057
+ total: z.ZodNumber;
4058
+ }, "strip", z.ZodTypeAny, {
4059
+ items: {
4060
+ channel: string | null;
4061
+ route_name: string;
4062
+ door: "channel" | "api";
4063
+ target_kind: "tool" | "agent";
4064
+ target_name: string;
4065
+ payload_expr: string | null;
4066
+ reply_expr: string | null;
4067
+ execution_key: string;
4068
+ our_identity: string | null;
4069
+ callback_url: string | null;
4070
+ execution_key_fingerprint: string;
4071
+ }[];
4072
+ total: number;
4073
+ }, {
4074
+ items: {
4075
+ channel: string | null;
4076
+ route_name: string;
4077
+ door: "channel" | "api";
4078
+ target_kind: "tool" | "agent";
4079
+ target_name: string;
4080
+ payload_expr: string | null;
4081
+ reply_expr: string | null;
4082
+ execution_key: string;
4083
+ our_identity: string | null;
4084
+ callback_url: string | null;
4085
+ execution_key_fingerprint: string;
4086
+ }[];
4087
+ total: number;
4088
+ }>;
4089
+ export type ConversationRoutes = z.infer<typeof conversationRoutes>;
4090
+ /**
4091
+ * One thread of a route, summarized from its newest record. A `thread_id` holds
4092
+ * an api-door address (`{principal}/{end user}`, percent-encoded), so it never
4093
+ * goes back into a URL as a path segment — the transcript door takes it as a
4094
+ * query value.
4095
+ */
4096
+ export declare const conversationThread: z.ZodObject<{
4097
+ thread_id: z.ZodString;
4098
+ client_address: z.ZodString;
4099
+ last_activity_at: z.ZodNumber;
4100
+ message_count: z.ZodNumber;
4101
+ last_delivery_status: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ thread_id: string;
4104
+ client_address: string;
4105
+ last_activity_at: number;
4106
+ message_count: number;
4107
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4108
+ }, {
4109
+ thread_id: string;
4110
+ client_address: string;
4111
+ last_activity_at: number;
4112
+ message_count: number;
4113
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4114
+ }>;
4115
+ export type ConversationThread = z.infer<typeof conversationThread>;
4116
+ export declare const conversationThreadsPage: z.ZodObject<{
4117
+ total: z.ZodNumber;
4118
+ page: z.ZodNumber;
4119
+ page_size: z.ZodNumber;
4120
+ next_page: z.ZodNullable<z.ZodNumber>;
4121
+ items: z.ZodArray<z.ZodObject<{
4122
+ thread_id: z.ZodString;
4123
+ client_address: z.ZodString;
4124
+ last_activity_at: z.ZodNumber;
4125
+ message_count: z.ZodNumber;
4126
+ last_delivery_status: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
4127
+ }, "strip", z.ZodTypeAny, {
4128
+ thread_id: string;
4129
+ client_address: string;
4130
+ last_activity_at: number;
4131
+ message_count: number;
4132
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4133
+ }, {
4134
+ thread_id: string;
4135
+ client_address: string;
4136
+ last_activity_at: number;
4137
+ message_count: number;
4138
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4139
+ }>, "many">;
4140
+ }, "strip", z.ZodTypeAny, {
4141
+ items: {
4142
+ thread_id: string;
4143
+ client_address: string;
4144
+ last_activity_at: number;
4145
+ message_count: number;
4146
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4147
+ }[];
4148
+ total: number;
4149
+ page: number;
4150
+ page_size: number;
4151
+ next_page: number | null;
4152
+ }, {
4153
+ items: {
4154
+ thread_id: string;
4155
+ client_address: string;
4156
+ last_activity_at: number;
4157
+ message_count: number;
4158
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4159
+ }[];
4160
+ total: number;
4161
+ page: number;
4162
+ page_size: number;
4163
+ next_page: number | null;
4164
+ }>;
4165
+ export type ConversationThreadsPage = z.infer<typeof conversationThreadsPage>;
4166
+ /**
4167
+ * One exchange: the visitor's `inbound_text` — every record answers a message, so
4168
+ * both projections always carry it — and the agent's `answer`, plus where that
4169
+ * answer's delivery stands. The fields after `updated_at` are ADMIN ONLY —
4170
+ * the same door serves a caller-scoped projection that withholds them — so they
4171
+ * are optional here and absence means "not published to this reader".
4172
+ */
4173
+ export declare const conversationMessage: z.ZodObject<{
4174
+ message_id: z.ZodString;
4175
+ route_name: z.ZodString;
4176
+ door: z.ZodEnum<["api", "channel"]>;
4177
+ thread_id: z.ZodString;
4178
+ client_address: z.ZodString;
4179
+ caller_principal: z.ZodNullable<z.ZodString>;
4180
+ inbound_text: z.ZodString;
4181
+ answer_status: z.ZodNullable<z.ZodEnum<["answered", "error", "silent"]>>;
4182
+ answer: z.ZodNullable<z.ZodString>;
4183
+ delivery_status: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
4184
+ created_at: z.ZodNumber;
4185
+ updated_at: z.ZodNumber;
4186
+ channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4187
+ our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4188
+ provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4189
+ callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4190
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4191
+ outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4192
+ attempts: z.ZodOptional<z.ZodNumber>;
4193
+ }, "strip", z.ZodTypeAny, {
4194
+ created_at: number;
4195
+ route_name: string;
4196
+ door: "channel" | "api";
4197
+ thread_id: string;
4198
+ client_address: string;
4199
+ message_id: string;
4200
+ caller_principal: string | null;
4201
+ inbound_text: string;
4202
+ answer_status: "error" | "silent" | "answered" | null;
4203
+ answer: string | null;
4204
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4205
+ updated_at: number;
4206
+ error?: string | null | undefined;
4207
+ channel?: string | null | undefined;
4208
+ our_identity?: string | null | undefined;
4209
+ callback_url?: string | null | undefined;
4210
+ provider_message_id?: string | null | undefined;
4211
+ outbound_message_ids?: string[] | undefined;
4212
+ attempts?: number | undefined;
4213
+ }, {
4214
+ created_at: number;
4215
+ route_name: string;
4216
+ door: "channel" | "api";
4217
+ thread_id: string;
4218
+ client_address: string;
4219
+ message_id: string;
4220
+ caller_principal: string | null;
4221
+ inbound_text: string;
4222
+ answer_status: "error" | "silent" | "answered" | null;
4223
+ answer: string | null;
4224
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4225
+ updated_at: number;
4226
+ error?: string | null | undefined;
4227
+ channel?: string | null | undefined;
4228
+ our_identity?: string | null | undefined;
4229
+ callback_url?: string | null | undefined;
4230
+ provider_message_id?: string | null | undefined;
4231
+ outbound_message_ids?: string[] | undefined;
4232
+ attempts?: number | undefined;
4233
+ }>;
4234
+ export type ConversationMessage = z.infer<typeof conversationMessage>;
4235
+ /**
4236
+ * The direction a transcript page reads in. `asc` is the reading order (oldest
4237
+ * first); `desc` is the live-tail order, where page 1 is always the newest page
4238
+ * and paging forward walks BACKWARDS through the thread's history.
4239
+ */
4240
+ export declare const transcriptOrder: z.ZodEnum<["asc", "desc"]>;
4241
+ export type TranscriptOrder = z.infer<typeof transcriptOrder>;
4242
+ /** A transcript page, echoing the order it was read in. */
4243
+ export declare const conversationTranscriptPage: z.ZodObject<{
4244
+ order: z.ZodEnum<["asc", "desc"]>;
4245
+ total: z.ZodNumber;
4246
+ page: z.ZodNumber;
4247
+ page_size: z.ZodNumber;
4248
+ next_page: z.ZodNullable<z.ZodNumber>;
4249
+ items: z.ZodArray<z.ZodObject<{
4250
+ message_id: z.ZodString;
4251
+ route_name: z.ZodString;
4252
+ door: z.ZodEnum<["api", "channel"]>;
4253
+ thread_id: z.ZodString;
4254
+ client_address: z.ZodString;
4255
+ caller_principal: z.ZodNullable<z.ZodString>;
4256
+ inbound_text: z.ZodString;
4257
+ answer_status: z.ZodNullable<z.ZodEnum<["answered", "error", "silent"]>>;
4258
+ answer: z.ZodNullable<z.ZodString>;
4259
+ delivery_status: z.ZodEnum<["accepted", "pending_delivery", "provisional", "delivered", "failed", "shed", "silent"]>;
4260
+ created_at: z.ZodNumber;
4261
+ updated_at: z.ZodNumber;
4262
+ channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4263
+ our_identity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4264
+ provider_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4265
+ callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4266
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4267
+ outbound_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4268
+ attempts: z.ZodOptional<z.ZodNumber>;
4269
+ }, "strip", z.ZodTypeAny, {
4270
+ created_at: number;
4271
+ route_name: string;
4272
+ door: "channel" | "api";
4273
+ thread_id: string;
4274
+ client_address: string;
4275
+ message_id: string;
4276
+ caller_principal: string | null;
4277
+ inbound_text: string;
4278
+ answer_status: "error" | "silent" | "answered" | null;
4279
+ answer: string | null;
4280
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4281
+ updated_at: number;
4282
+ error?: string | null | undefined;
4283
+ channel?: string | null | undefined;
4284
+ our_identity?: string | null | undefined;
4285
+ callback_url?: string | null | undefined;
4286
+ provider_message_id?: string | null | undefined;
4287
+ outbound_message_ids?: string[] | undefined;
4288
+ attempts?: number | undefined;
4289
+ }, {
4290
+ created_at: number;
4291
+ route_name: string;
4292
+ door: "channel" | "api";
4293
+ thread_id: string;
4294
+ client_address: string;
4295
+ message_id: string;
4296
+ caller_principal: string | null;
4297
+ inbound_text: string;
4298
+ answer_status: "error" | "silent" | "answered" | null;
4299
+ answer: string | null;
4300
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4301
+ updated_at: number;
4302
+ error?: string | null | undefined;
4303
+ channel?: string | null | undefined;
4304
+ our_identity?: string | null | undefined;
4305
+ callback_url?: string | null | undefined;
4306
+ provider_message_id?: string | null | undefined;
4307
+ outbound_message_ids?: string[] | undefined;
4308
+ attempts?: number | undefined;
4309
+ }>, "many">;
4310
+ }, "strip", z.ZodTypeAny, {
4311
+ items: {
4312
+ created_at: number;
4313
+ route_name: string;
4314
+ door: "channel" | "api";
4315
+ thread_id: string;
4316
+ client_address: string;
4317
+ message_id: string;
4318
+ caller_principal: string | null;
4319
+ inbound_text: string;
4320
+ answer_status: "error" | "silent" | "answered" | null;
4321
+ answer: string | null;
4322
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4323
+ updated_at: number;
4324
+ error?: string | null | undefined;
4325
+ channel?: string | null | undefined;
4326
+ our_identity?: string | null | undefined;
4327
+ callback_url?: string | null | undefined;
4328
+ provider_message_id?: string | null | undefined;
4329
+ outbound_message_ids?: string[] | undefined;
4330
+ attempts?: number | undefined;
4331
+ }[];
4332
+ total: number;
4333
+ page: number;
4334
+ page_size: number;
4335
+ next_page: number | null;
4336
+ order: "asc" | "desc";
4337
+ }, {
4338
+ items: {
4339
+ created_at: number;
4340
+ route_name: string;
4341
+ door: "channel" | "api";
4342
+ thread_id: string;
4343
+ client_address: string;
4344
+ message_id: string;
4345
+ caller_principal: string | null;
4346
+ inbound_text: string;
4347
+ answer_status: "error" | "silent" | "answered" | null;
4348
+ answer: string | null;
4349
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
4350
+ updated_at: number;
4351
+ error?: string | null | undefined;
4352
+ channel?: string | null | undefined;
4353
+ our_identity?: string | null | undefined;
4354
+ callback_url?: string | null | undefined;
4355
+ provider_message_id?: string | null | undefined;
4356
+ outbound_message_ids?: string[] | undefined;
4357
+ attempts?: number | undefined;
4358
+ }[];
4359
+ total: number;
4360
+ page: number;
4361
+ page_size: number;
4362
+ next_page: number | null;
4363
+ order: "asc" | "desc";
4364
+ }>;
4365
+ export type ConversationTranscriptPage = z.infer<typeof conversationTranscriptPage>;
3805
4366
  export declare const notification: z.ZodObject<{
3806
4367
  id: z.ZodString;
3807
4368
  message: z.ZodString;
@@ -3870,8 +4431,8 @@ export declare const hookParams: z.ZodObject<{
3870
4431
  }, "strip", z.ZodTypeAny, {
3871
4432
  name: string;
3872
4433
  tool: string;
3873
- topic: string;
3874
4434
  execution_key: string;
4435
+ topic: string;
3875
4436
  tool_kwargs: Record<string, unknown>;
3876
4437
  condition: string | null;
3877
4438
  condition_id: string | null;
@@ -3882,8 +4443,8 @@ export declare const hookParams: z.ZodObject<{
3882
4443
  }, {
3883
4444
  name: string;
3884
4445
  tool: string;
3885
- topic: string;
3886
4446
  execution_key: string;
4447
+ topic: string;
3887
4448
  tool_kwargs?: Record<string, unknown> | undefined;
3888
4449
  condition?: string | null | undefined;
3889
4450
  condition_id?: string | null | undefined;
@@ -3909,8 +4470,8 @@ export declare const hookList: z.ZodObject<{
3909
4470
  }, "strip", z.ZodTypeAny, {
3910
4471
  name: string;
3911
4472
  tool: string;
3912
- topic: string;
3913
4473
  execution_key: string;
4474
+ topic: string;
3914
4475
  tool_kwargs: Record<string, unknown>;
3915
4476
  condition: string | null;
3916
4477
  condition_id: string | null;
@@ -3921,8 +4482,8 @@ export declare const hookList: z.ZodObject<{
3921
4482
  }, {
3922
4483
  name: string;
3923
4484
  tool: string;
3924
- topic: string;
3925
4485
  execution_key: string;
4486
+ topic: string;
3926
4487
  tool_kwargs?: Record<string, unknown> | undefined;
3927
4488
  condition?: string | null | undefined;
3928
4489
  condition_id?: string | null | undefined;
@@ -3947,8 +4508,8 @@ export declare const hookList: z.ZodObject<{
3947
4508
  items: {
3948
4509
  name: string;
3949
4510
  tool: string;
3950
- topic: string;
3951
4511
  execution_key: string;
4512
+ topic: string;
3952
4513
  tool_kwargs: Record<string, unknown>;
3953
4514
  condition: string | null;
3954
4515
  condition_id: string | null;
@@ -3967,8 +4528,8 @@ export declare const hookList: z.ZodObject<{
3967
4528
  items: {
3968
4529
  name: string;
3969
4530
  tool: string;
3970
- topic: string;
3971
4531
  execution_key: string;
4532
+ topic: string;
3972
4533
  tool_kwargs?: Record<string, unknown> | undefined;
3973
4534
  condition?: string | null | undefined;
3974
4535
  condition_id?: string | null | undefined;
@@ -4075,8 +4636,8 @@ export declare const triggerLinkRecord: z.ZodObject<{
4075
4636
  }, "strip", z.ZodTypeAny, {
4076
4637
  name: string;
4077
4638
  created_at: string;
4078
- topic: string;
4079
4639
  execution_key: string;
4640
+ topic: string;
4080
4641
  tool_kwargs: Record<string, unknown> | null;
4081
4642
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4082
4643
  expires_at: string | null;
@@ -4085,8 +4646,8 @@ export declare const triggerLinkRecord: z.ZodObject<{
4085
4646
  }, {
4086
4647
  name: string;
4087
4648
  created_at: string;
4088
- topic: string;
4089
4649
  execution_key: string;
4650
+ topic: string;
4090
4651
  tool_kwargs: Record<string, unknown> | null;
4091
4652
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4092
4653
  expires_at: string | null;
@@ -4109,8 +4670,8 @@ export declare const triggerLinkList: z.ZodObject<{
4109
4670
  }, "strip", z.ZodTypeAny, {
4110
4671
  name: string;
4111
4672
  created_at: string;
4112
- topic: string;
4113
4673
  execution_key: string;
4674
+ topic: string;
4114
4675
  tool_kwargs: Record<string, unknown> | null;
4115
4676
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4116
4677
  expires_at: string | null;
@@ -4119,8 +4680,8 @@ export declare const triggerLinkList: z.ZodObject<{
4119
4680
  }, {
4120
4681
  name: string;
4121
4682
  created_at: string;
4122
- topic: string;
4123
4683
  execution_key: string;
4684
+ topic: string;
4124
4685
  tool_kwargs: Record<string, unknown> | null;
4125
4686
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4126
4687
  expires_at: string | null;
@@ -4132,8 +4693,8 @@ export declare const triggerLinkList: z.ZodObject<{
4132
4693
  items: {
4133
4694
  name: string;
4134
4695
  created_at: string;
4135
- topic: string;
4136
4696
  execution_key: string;
4697
+ topic: string;
4137
4698
  tool_kwargs: Record<string, unknown> | null;
4138
4699
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4139
4700
  expires_at: string | null;
@@ -4145,8 +4706,8 @@ export declare const triggerLinkList: z.ZodObject<{
4145
4706
  items: {
4146
4707
  name: string;
4147
4708
  created_at: string;
4148
- topic: string;
4149
4709
  execution_key: string;
4710
+ topic: string;
4150
4711
  tool_kwargs: Record<string, unknown> | null;
4151
4712
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
4152
4713
  expires_at: string | null;
@@ -5501,21 +6062,21 @@ export declare const backupImportReport: z.ZodObject<{
5501
6062
  reachable: z.ZodBoolean;
5502
6063
  local_only: z.ZodBoolean;
5503
6064
  results: z.ZodArray<z.ZodObject<{
5504
- origin: z.ZodString;
5505
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
6065
+ name: z.ZodString;
6066
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
5506
6067
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
5507
6068
  error: z.ZodNullable<z.ZodString>;
5508
6069
  detail: z.ZodNullable<z.ZodString>;
5509
6070
  }, "strip", z.ZodTypeAny, {
5510
6071
  error: string | null;
5511
- origin: string;
5512
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6072
+ name: string;
6073
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5513
6074
  detail: string | null;
5514
6075
  payload?: unknown;
5515
6076
  }, {
5516
6077
  error: string | null;
5517
- origin: string;
5518
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6078
+ name: string;
6079
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5519
6080
  detail: string | null;
5520
6081
  payload?: unknown;
5521
6082
  }>, "many">;
@@ -5529,8 +6090,8 @@ export declare const backupImportReport: z.ZodObject<{
5529
6090
  local_only: boolean;
5530
6091
  results: {
5531
6092
  error: string | null;
5532
- origin: string;
5533
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6093
+ name: string;
6094
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5534
6095
  detail: string | null;
5535
6096
  payload?: unknown;
5536
6097
  }[];
@@ -5542,8 +6103,8 @@ export declare const backupImportReport: z.ZodObject<{
5542
6103
  local_only: boolean;
5543
6104
  results: {
5544
6105
  error: string | null;
5545
- origin: string;
5546
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6106
+ name: string;
6107
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5547
6108
  detail: string | null;
5548
6109
  payload?: unknown;
5549
6110
  }[];
@@ -5553,21 +6114,21 @@ export declare const backupImportReport: z.ZodObject<{
5553
6114
  reachable: z.ZodBoolean;
5554
6115
  local_only: z.ZodBoolean;
5555
6116
  results: z.ZodArray<z.ZodObject<{
5556
- origin: z.ZodString;
5557
- outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out"]>;
6117
+ name: z.ZodString;
6118
+ outcome: z.ZodEnum<["applied", "failed", "missing", "departed", "timed_out", "resyncing", "recycling", "stale"]>;
5558
6119
  payload: z.ZodType<unknown, z.ZodTypeDef, unknown>;
5559
6120
  error: z.ZodNullable<z.ZodString>;
5560
6121
  detail: z.ZodNullable<z.ZodString>;
5561
6122
  }, "strip", z.ZodTypeAny, {
5562
6123
  error: string | null;
5563
- origin: string;
5564
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6124
+ name: string;
6125
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5565
6126
  detail: string | null;
5566
6127
  payload?: unknown;
5567
6128
  }, {
5568
6129
  error: string | null;
5569
- origin: string;
5570
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6130
+ name: string;
6131
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5571
6132
  detail: string | null;
5572
6133
  payload?: unknown;
5573
6134
  }>, "many">;
@@ -5581,8 +6142,8 @@ export declare const backupImportReport: z.ZodObject<{
5581
6142
  local_only: boolean;
5582
6143
  results: {
5583
6144
  error: string | null;
5584
- origin: string;
5585
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6145
+ name: string;
6146
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5586
6147
  detail: string | null;
5587
6148
  payload?: unknown;
5588
6149
  }[];
@@ -5594,8 +6155,8 @@ export declare const backupImportReport: z.ZodObject<{
5594
6155
  local_only: boolean;
5595
6156
  results: {
5596
6157
  error: string | null;
5597
- origin: string;
5598
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6158
+ name: string;
6159
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5599
6160
  detail: string | null;
5600
6161
  payload?: unknown;
5601
6162
  }[];
@@ -5616,8 +6177,8 @@ export declare const backupImportReport: z.ZodObject<{
5616
6177
  local_only: boolean;
5617
6178
  results: {
5618
6179
  error: string | null;
5619
- origin: string;
5620
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6180
+ name: string;
6181
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5621
6182
  detail: string | null;
5622
6183
  payload?: unknown;
5623
6184
  }[];
@@ -5629,8 +6190,8 @@ export declare const backupImportReport: z.ZodObject<{
5629
6190
  local_only: boolean;
5630
6191
  results: {
5631
6192
  error: string | null;
5632
- origin: string;
5633
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6193
+ name: string;
6194
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5634
6195
  detail: string | null;
5635
6196
  payload?: unknown;
5636
6197
  }[];
@@ -5656,8 +6217,8 @@ export declare const backupImportReport: z.ZodObject<{
5656
6217
  local_only: boolean;
5657
6218
  results: {
5658
6219
  error: string | null;
5659
- origin: string;
5660
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6220
+ name: string;
6221
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5661
6222
  detail: string | null;
5662
6223
  payload?: unknown;
5663
6224
  }[];
@@ -5669,8 +6230,8 @@ export declare const backupImportReport: z.ZodObject<{
5669
6230
  local_only: boolean;
5670
6231
  results: {
5671
6232
  error: string | null;
5672
- origin: string;
5673
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6233
+ name: string;
6234
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5674
6235
  detail: string | null;
5675
6236
  payload?: unknown;
5676
6237
  }[];
@@ -5699,8 +6260,8 @@ export declare const backupImportReport: z.ZodObject<{
5699
6260
  local_only: boolean;
5700
6261
  results: {
5701
6262
  error: string | null;
5702
- origin: string;
5703
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6263
+ name: string;
6264
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5704
6265
  detail: string | null;
5705
6266
  payload?: unknown;
5706
6267
  }[];
@@ -5712,8 +6273,8 @@ export declare const backupImportReport: z.ZodObject<{
5712
6273
  local_only: boolean;
5713
6274
  results: {
5714
6275
  error: string | null;
5715
- origin: string;
5716
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6276
+ name: string;
6277
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5717
6278
  detail: string | null;
5718
6279
  payload?: unknown;
5719
6280
  }[];
@@ -5742,8 +6303,8 @@ export declare const backupImportReport: z.ZodObject<{
5742
6303
  local_only: boolean;
5743
6304
  results: {
5744
6305
  error: string | null;
5745
- origin: string;
5746
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6306
+ name: string;
6307
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5747
6308
  detail: string | null;
5748
6309
  payload?: unknown;
5749
6310
  }[];
@@ -5755,8 +6316,8 @@ export declare const backupImportReport: z.ZodObject<{
5755
6316
  local_only: boolean;
5756
6317
  results: {
5757
6318
  error: string | null;
5758
- origin: string;
5759
- outcome: "failed" | "applied" | "missing" | "departed" | "timed_out";
6319
+ name: string;
6320
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
5760
6321
  detail: string | null;
5761
6322
  payload?: unknown;
5762
6323
  }[];
@@ -6295,6 +6856,7 @@ export declare const marketplaceSearchRow: z.ZodObject<{
6295
6856
  display_name: string | null;
6296
6857
  icon_url: string | null;
6297
6858
  categories: string[];
6859
+ updated_at: string;
6298
6860
  item: {
6299
6861
  name: string;
6300
6862
  description: string;
@@ -6308,7 +6870,6 @@ export declare const marketplaceSearchRow: z.ZodObject<{
6308
6870
  pricing: string;
6309
6871
  latest_version: string | null;
6310
6872
  downloads: number;
6311
- updated_at: string;
6312
6873
  }, {
6313
6874
  name: string;
6314
6875
  description: string;
@@ -6316,6 +6877,7 @@ export declare const marketplaceSearchRow: z.ZodObject<{
6316
6877
  display_name: string | null;
6317
6878
  icon_url: string | null;
6318
6879
  categories: string[];
6880
+ updated_at: string;
6319
6881
  item: {
6320
6882
  name: string;
6321
6883
  description: string;
@@ -6329,7 +6891,6 @@ export declare const marketplaceSearchRow: z.ZodObject<{
6329
6891
  pricing: string;
6330
6892
  latest_version: string | null;
6331
6893
  downloads: number;
6332
- updated_at: string;
6333
6894
  }>;
6334
6895
  export type MarketplaceSearchRow = z.infer<typeof marketplaceSearchRow>;
6335
6896
  /**
@@ -6375,6 +6936,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6375
6936
  display_name: string | null;
6376
6937
  icon_url: string | null;
6377
6938
  categories: string[];
6939
+ updated_at: string;
6378
6940
  item: {
6379
6941
  name: string;
6380
6942
  description: string;
@@ -6388,7 +6950,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6388
6950
  pricing: string;
6389
6951
  latest_version: string | null;
6390
6952
  downloads: number;
6391
- updated_at: string;
6392
6953
  }, {
6393
6954
  name: string;
6394
6955
  description: string;
@@ -6396,6 +6957,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6396
6957
  display_name: string | null;
6397
6958
  icon_url: string | null;
6398
6959
  categories: string[];
6960
+ updated_at: string;
6399
6961
  item: {
6400
6962
  name: string;
6401
6963
  description: string;
@@ -6409,7 +6971,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6409
6971
  pricing: string;
6410
6972
  latest_version: string | null;
6411
6973
  downloads: number;
6412
- updated_at: string;
6413
6974
  }>, "many">;
6414
6975
  total: z.ZodNumber;
6415
6976
  page: z.ZodNumber;
@@ -6422,6 +6983,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6422
6983
  display_name: string | null;
6423
6984
  icon_url: string | null;
6424
6985
  categories: string[];
6986
+ updated_at: string;
6425
6987
  item: {
6426
6988
  name: string;
6427
6989
  description: string;
@@ -6435,7 +6997,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6435
6997
  pricing: string;
6436
6998
  latest_version: string | null;
6437
6999
  downloads: number;
6438
- updated_at: string;
6439
7000
  }[];
6440
7001
  total: number;
6441
7002
  page: number;
@@ -6448,6 +7009,7 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6448
7009
  display_name: string | null;
6449
7010
  icon_url: string | null;
6450
7011
  categories: string[];
7012
+ updated_at: string;
6451
7013
  item: {
6452
7014
  name: string;
6453
7015
  description: string;
@@ -6461,7 +7023,6 @@ export declare const marketplaceSearchPage: z.ZodObject<{
6461
7023
  pricing: string;
6462
7024
  latest_version: string | null;
6463
7025
  downloads: number;
6464
- updated_at: string;
6465
7026
  }[];
6466
7027
  total: number;
6467
7028
  page: number;