@archastro/sdk 0.11.1 → 0.12.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.
@@ -10161,16 +10161,18 @@ export interface SlackChannelBinding {
10161
10161
  is_ext_shared_cached?: boolean | undefined;
10162
10162
  /** Cached value of Slack's `is_private` flag for this channel. May be stale relative to Slack's current state. Private channels are member-managed: mutating the binding requires in-channel evidence. */
10163
10163
  is_private_cached?: boolean | undefined;
10164
+ /** IDs of every mirror thread this channel's messages land in (`thr_…` public IDs) that the caller can read, including any legacy peel or chain threads. Empty for a caller with no membership on any of them, and for a channel that has not mirrored anything yet. IDs only: reading a mirror's contents still requires membership on it. */
10165
+ mirrors?: string[] | undefined;
10164
10166
  /** Whether the resident agent is currently muted. A muted resident keeps mirroring the channel (reading) but stops replying. A timed mute expires automatically at `muted_until`; this reflects the effective state as of now. Defaults to `false`. */
10165
10167
  muted: boolean;
10166
10168
  /** ISO 8601 timestamp when a timed mute expires and replies resume. `null` for an indefinite mute (until an explicit unmute) or when not muted. */
10167
10169
  muted_until?: string | undefined;
10168
10170
  /** How the resident agent's replies post to Slack: `thread` (default) threads a reply under the message that triggered it; `top_level` posts it flat in the channel. */
10169
10171
  reply_style: string;
10170
- /** ID of the non-concierge agent selected by Slack ingress. `null` when ingress falls back to the concierge. */
10172
+ /** ID of the resident agent selected by Slack ingress. `null` when no resident is attached and the channel is an observer. */
10171
10173
  resident_agent?: string | undefined;
10172
- /** Effective Slack ingress route: `fda` for a team-bound resident, `resident` for an unbound resident, or `concierge` when no non-concierge agent is attached. */
10173
- route_kind: "fda" | "resident" | "concierge";
10174
+ /** Effective Slack ingress route. `fda` a resident on a team-bound channel, replying through the Forward Deployed Agent chain. `resident` a resident on an internal channel, replying through the channel mirror. `observer` — no resident is attached, so the channel is recorded and nobody replies. `concierge` no longer returned anywhere; until Track F it was the value for a channel with no resident, meaning the shared concierge agent answered there. The value is retained in this enum so consumers matching on it do not break, and its removal rides a deliberate API change. */
10175
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10174
10176
  /** The customer key this channel's agent is locked to, written when adding the customer finishes. A `posted` binding whose `scope_key` is still null has been accepted but not finished — the addition is either in flight or was refused. */
10175
10177
  scope_key?: string | undefined;
10176
10178
  /** ID of the ArchAstro team this channel is bound to. */
@@ -10200,16 +10202,18 @@ export declare const slackChannelBindingSchema: z.ZodObject<{
10200
10202
  is_ext_shared_cached: z.ZodOptional<z.ZodBoolean>;
10201
10203
  /** Cached value of Slack's `is_private` flag for this channel. May be stale relative to Slack's current state. Private channels are member-managed: mutating the binding requires in-channel evidence. */
10202
10204
  is_private_cached: z.ZodOptional<z.ZodBoolean>;
10205
+ /** IDs of every mirror thread this channel's messages land in (`thr_…` public IDs) that the caller can read, including any legacy peel or chain threads. Empty for a caller with no membership on any of them, and for a channel that has not mirrored anything yet. IDs only: reading a mirror's contents still requires membership on it. */
10206
+ mirrors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10203
10207
  /** Whether the resident agent is currently muted. A muted resident keeps mirroring the channel (reading) but stops replying. A timed mute expires automatically at `muted_until`; this reflects the effective state as of now. Defaults to `false`. */
10204
10208
  muted: z.ZodBoolean;
10205
10209
  /** ISO 8601 timestamp when a timed mute expires and replies resume. `null` for an indefinite mute (until an explicit unmute) or when not muted. */
10206
10210
  muted_until: z.ZodOptional<z.ZodString>;
10207
10211
  /** How the resident agent's replies post to Slack: `thread` (default) threads a reply under the message that triggered it; `top_level` posts it flat in the channel. */
10208
10212
  reply_style: z.ZodString;
10209
- /** ID of the non-concierge agent selected by Slack ingress. `null` when ingress falls back to the concierge. */
10213
+ /** ID of the resident agent selected by Slack ingress. `null` when no resident is attached and the channel is an observer. */
10210
10214
  resident_agent: z.ZodOptional<z.ZodString>;
10211
- /** Effective Slack ingress route: `fda` for a team-bound resident, `resident` for an unbound resident, or `concierge` when no non-concierge agent is attached. */
10212
- route_kind: z.ZodEnum<["fda", "resident", "concierge"]>;
10215
+ /** Effective Slack ingress route. `fda` a resident on a team-bound channel, replying through the Forward Deployed Agent chain. `resident` a resident on an internal channel, replying through the channel mirror. `observer` — no resident is attached, so the channel is recorded and nobody replies. `concierge` no longer returned anywhere; until Track F it was the value for a channel with no resident, meaning the shared concierge agent answered there. The value is retained in this enum so consumers matching on it do not break, and its removal rides a deliberate API change. */
10216
+ route_kind: z.ZodEnum<["fda", "resident", "observer", "concierge"]>;
10213
10217
  /** The customer key this channel's agent is locked to, written when adding the customer finishes. A `posted` binding whose `scope_key` is still null has been accepted but not finished — the addition is either in flight or was refused. */
10214
10218
  scope_key: z.ZodOptional<z.ZodString>;
10215
10219
  /** ID of the ArchAstro team this channel is bound to. */
@@ -10221,7 +10225,7 @@ export declare const slackChannelBindingSchema: z.ZodObject<{
10221
10225
  allow_bot_conversations: boolean;
10222
10226
  muted: boolean;
10223
10227
  reply_style: string;
10224
- route_kind: "fda" | "resident" | "concierge";
10228
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10225
10229
  team?: string | undefined;
10226
10230
  agents?: string[] | undefined;
10227
10231
  channel?: string | undefined;
@@ -10231,6 +10235,7 @@ export declare const slackChannelBindingSchema: z.ZodObject<{
10231
10235
  integration?: string | undefined;
10232
10236
  is_ext_shared_cached?: boolean | undefined;
10233
10237
  is_private_cached?: boolean | undefined;
10238
+ mirrors?: string[] | undefined;
10234
10239
  muted_until?: string | undefined;
10235
10240
  resident_agent?: string | undefined;
10236
10241
  scope_key?: string | undefined;
@@ -10240,7 +10245,7 @@ export declare const slackChannelBindingSchema: z.ZodObject<{
10240
10245
  allow_bot_conversations: boolean;
10241
10246
  muted: boolean;
10242
10247
  reply_style: string;
10243
- route_kind: "fda" | "resident" | "concierge";
10248
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10244
10249
  team?: string | undefined;
10245
10250
  agents?: string[] | undefined;
10246
10251
  channel?: string | undefined;
@@ -10250,6 +10255,7 @@ export declare const slackChannelBindingSchema: z.ZodObject<{
10250
10255
  integration?: string | undefined;
10251
10256
  is_ext_shared_cached?: boolean | undefined;
10252
10257
  is_private_cached?: boolean | undefined;
10258
+ mirrors?: string[] | undefined;
10253
10259
  muted_until?: string | undefined;
10254
10260
  resident_agent?: string | undefined;
10255
10261
  scope_key?: string | undefined;
@@ -10292,16 +10298,18 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10292
10298
  is_ext_shared_cached: z.ZodOptional<z.ZodBoolean>;
10293
10299
  /** Cached value of Slack's `is_private` flag for this channel. May be stale relative to Slack's current state. Private channels are member-managed: mutating the binding requires in-channel evidence. */
10294
10300
  is_private_cached: z.ZodOptional<z.ZodBoolean>;
10301
+ /** IDs of every mirror thread this channel's messages land in (`thr_…` public IDs) that the caller can read, including any legacy peel or chain threads. Empty for a caller with no membership on any of them, and for a channel that has not mirrored anything yet. IDs only: reading a mirror's contents still requires membership on it. */
10302
+ mirrors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10295
10303
  /** Whether the resident agent is currently muted. A muted resident keeps mirroring the channel (reading) but stops replying. A timed mute expires automatically at `muted_until`; this reflects the effective state as of now. Defaults to `false`. */
10296
10304
  muted: z.ZodBoolean;
10297
10305
  /** ISO 8601 timestamp when a timed mute expires and replies resume. `null` for an indefinite mute (until an explicit unmute) or when not muted. */
10298
10306
  muted_until: z.ZodOptional<z.ZodString>;
10299
10307
  /** How the resident agent's replies post to Slack: `thread` (default) threads a reply under the message that triggered it; `top_level` posts it flat in the channel. */
10300
10308
  reply_style: z.ZodString;
10301
- /** ID of the non-concierge agent selected by Slack ingress. `null` when ingress falls back to the concierge. */
10309
+ /** ID of the resident agent selected by Slack ingress. `null` when no resident is attached and the channel is an observer. */
10302
10310
  resident_agent: z.ZodOptional<z.ZodString>;
10303
- /** Effective Slack ingress route: `fda` for a team-bound resident, `resident` for an unbound resident, or `concierge` when no non-concierge agent is attached. */
10304
- route_kind: z.ZodEnum<["fda", "resident", "concierge"]>;
10311
+ /** Effective Slack ingress route. `fda` a resident on a team-bound channel, replying through the Forward Deployed Agent chain. `resident` a resident on an internal channel, replying through the channel mirror. `observer` — no resident is attached, so the channel is recorded and nobody replies. `concierge` no longer returned anywhere; until Track F it was the value for a channel with no resident, meaning the shared concierge agent answered there. The value is retained in this enum so consumers matching on it do not break, and its removal rides a deliberate API change. */
10312
+ route_kind: z.ZodEnum<["fda", "resident", "observer", "concierge"]>;
10305
10313
  /** The customer key this channel's agent is locked to, written when adding the customer finishes. A `posted` binding whose `scope_key` is still null has been accepted but not finished — the addition is either in flight or was refused. */
10306
10314
  scope_key: z.ZodOptional<z.ZodString>;
10307
10315
  /** ID of the ArchAstro team this channel is bound to. */
@@ -10313,7 +10321,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10313
10321
  allow_bot_conversations: boolean;
10314
10322
  muted: boolean;
10315
10323
  reply_style: string;
10316
- route_kind: "fda" | "resident" | "concierge";
10324
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10317
10325
  team?: string | undefined;
10318
10326
  agents?: string[] | undefined;
10319
10327
  channel?: string | undefined;
@@ -10323,6 +10331,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10323
10331
  integration?: string | undefined;
10324
10332
  is_ext_shared_cached?: boolean | undefined;
10325
10333
  is_private_cached?: boolean | undefined;
10334
+ mirrors?: string[] | undefined;
10326
10335
  muted_until?: string | undefined;
10327
10336
  resident_agent?: string | undefined;
10328
10337
  scope_key?: string | undefined;
@@ -10332,7 +10341,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10332
10341
  allow_bot_conversations: boolean;
10333
10342
  muted: boolean;
10334
10343
  reply_style: string;
10335
- route_kind: "fda" | "resident" | "concierge";
10344
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10336
10345
  team?: string | undefined;
10337
10346
  agents?: string[] | undefined;
10338
10347
  channel?: string | undefined;
@@ -10342,6 +10351,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10342
10351
  integration?: string | undefined;
10343
10352
  is_ext_shared_cached?: boolean | undefined;
10344
10353
  is_private_cached?: boolean | undefined;
10354
+ mirrors?: string[] | undefined;
10345
10355
  muted_until?: string | undefined;
10346
10356
  resident_agent?: string | undefined;
10347
10357
  scope_key?: string | undefined;
@@ -10361,7 +10371,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10361
10371
  allow_bot_conversations: boolean;
10362
10372
  muted: boolean;
10363
10373
  reply_style: string;
10364
- route_kind: "fda" | "resident" | "concierge";
10374
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10365
10375
  team?: string | undefined;
10366
10376
  agents?: string[] | undefined;
10367
10377
  channel?: string | undefined;
@@ -10371,6 +10381,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10371
10381
  integration?: string | undefined;
10372
10382
  is_ext_shared_cached?: boolean | undefined;
10373
10383
  is_private_cached?: boolean | undefined;
10384
+ mirrors?: string[] | undefined;
10374
10385
  muted_until?: string | undefined;
10375
10386
  resident_agent?: string | undefined;
10376
10387
  scope_key?: string | undefined;
@@ -10386,7 +10397,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10386
10397
  allow_bot_conversations: boolean;
10387
10398
  muted: boolean;
10388
10399
  reply_style: string;
10389
- route_kind: "fda" | "resident" | "concierge";
10400
+ route_kind: "fda" | "resident" | "observer" | "concierge";
10390
10401
  team?: string | undefined;
10391
10402
  agents?: string[] | undefined;
10392
10403
  channel?: string | undefined;
@@ -10396,6 +10407,7 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10396
10407
  integration?: string | undefined;
10397
10408
  is_ext_shared_cached?: boolean | undefined;
10398
10409
  is_private_cached?: boolean | undefined;
10410
+ mirrors?: string[] | undefined;
10399
10411
  muted_until?: string | undefined;
10400
10412
  resident_agent?: string | undefined;
10401
10413
  scope_key?: string | undefined;
@@ -10406,6 +10418,195 @@ export declare const slackChannelBindingListResponseSchema: z.ZodObject<{
10406
10418
  total_count: number;
10407
10419
  per_page: number;
10408
10420
  }>;
10421
+ /** What happened to one agent message this platform sent to a Slack channel. Lets you confirm delivery, or find out why a reply never arrived, without reading the channel's mirrored conversation. */
10422
+ export interface SlackDeliveryOutcome {
10423
+ /** ID of the agent whose message this was. */
10424
+ agent?: string | undefined;
10425
+ /** ID of the Slack channel binding in force for this send. `null` when no binding could be resolved, in which case the send was treated as cross-org and floored on that basis. */
10426
+ binding?: string | undefined;
10427
+ /** Slack channel ID the send was addressed to. */
10428
+ channel: string;
10429
+ /** For a `failed` send, a short machine-readable cause — `slack:<slack_error_code>` when Slack rejected the call, or `floor_config` when the content floor could not be evaluated and the send failed closed. */
10430
+ failure_reason?: string | undefined;
10431
+ /** For a withheld send, the kind of guard that stopped it — `RegexMatch`, `ContainsAny`, `ContainsString`, or `LLMJudge`. `null` when the send was not withheld by a guard. */
10432
+ guard_kind?: string | undefined;
10433
+ /** For a withheld send, the labels of the guards that stopped it (for example `Contains AWS access key ID`). These are the content policy's own descriptions, recorded as they read at the time of the send; they never contain the withheld message. */
10434
+ guard_labels?: string[] | undefined;
10435
+ /** Unique identifier for this delivery outcome. */
10436
+ id: string;
10437
+ /** ID of the platform message this attempt was carrying. Reading that message still requires access to its thread — this field correlates, it does not grant. */
10438
+ message?: string | undefined;
10439
+ /** Whether the attempt posted a new Slack message or updated an existing one (replacing a thinking placeholder). */
10440
+ operation: "post" | "update";
10441
+ /** What happened to the send. `delivered` — Slack accepted the message. `floored` — a deterministic content guard withheld it, so it never left. `judge_refused` — the cross-org judge decided it was not appropriate for this channel's audience. `failed` — Slack rejected the call, or the content floor could not be evaluated and the send failed closed. */
10442
+ outcome: "delivered" | "floored" | "judge_refused" | "failed";
10443
+ /** When the send was attempted. */
10444
+ recorded_at: string;
10445
+ /** Slack thread timestamp the send targeted, letting attempts be grouped into the conversation they belong to. `null` for a top-level channel post. */
10446
+ thread_ts?: string | undefined;
10447
+ }
10448
+ /** Runtime validator for {@link SlackDeliveryOutcome}. */
10449
+ export declare const slackDeliveryOutcomeSchema: z.ZodObject<{
10450
+ /** ID of the agent whose message this was. */
10451
+ agent: z.ZodOptional<z.ZodString>;
10452
+ /** ID of the Slack channel binding in force for this send. `null` when no binding could be resolved, in which case the send was treated as cross-org and floored on that basis. */
10453
+ binding: z.ZodOptional<z.ZodString>;
10454
+ /** Slack channel ID the send was addressed to. */
10455
+ channel: z.ZodString;
10456
+ /** For a `failed` send, a short machine-readable cause — `slack:<slack_error_code>` when Slack rejected the call, or `floor_config` when the content floor could not be evaluated and the send failed closed. */
10457
+ failure_reason: z.ZodOptional<z.ZodString>;
10458
+ /** For a withheld send, the kind of guard that stopped it — `RegexMatch`, `ContainsAny`, `ContainsString`, or `LLMJudge`. `null` when the send was not withheld by a guard. */
10459
+ guard_kind: z.ZodOptional<z.ZodString>;
10460
+ /** For a withheld send, the labels of the guards that stopped it (for example `Contains AWS access key ID`). These are the content policy's own descriptions, recorded as they read at the time of the send; they never contain the withheld message. */
10461
+ guard_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10462
+ /** Unique identifier for this delivery outcome. */
10463
+ id: z.ZodString;
10464
+ /** ID of the platform message this attempt was carrying. Reading that message still requires access to its thread — this field correlates, it does not grant. */
10465
+ message: z.ZodOptional<z.ZodString>;
10466
+ /** Whether the attempt posted a new Slack message or updated an existing one (replacing a thinking placeholder). */
10467
+ operation: z.ZodEnum<["post", "update"]>;
10468
+ /** What happened to the send. `delivered` — Slack accepted the message. `floored` — a deterministic content guard withheld it, so it never left. `judge_refused` — the cross-org judge decided it was not appropriate for this channel's audience. `failed` — Slack rejected the call, or the content floor could not be evaluated and the send failed closed. */
10469
+ outcome: z.ZodEnum<["delivered", "floored", "judge_refused", "failed"]>;
10470
+ /** When the send was attempted. */
10471
+ recorded_at: z.ZodString;
10472
+ /** Slack thread timestamp the send targeted, letting attempts be grouped into the conversation they belong to. `null` for a top-level channel post. */
10473
+ thread_ts: z.ZodOptional<z.ZodString>;
10474
+ }, "strip", z.ZodTypeAny, {
10475
+ id: string;
10476
+ channel: string;
10477
+ operation: "post" | "update";
10478
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10479
+ recorded_at: string;
10480
+ message?: string | undefined;
10481
+ agent?: string | undefined;
10482
+ binding?: string | undefined;
10483
+ failure_reason?: string | undefined;
10484
+ guard_kind?: string | undefined;
10485
+ guard_labels?: string[] | undefined;
10486
+ thread_ts?: string | undefined;
10487
+ }, {
10488
+ id: string;
10489
+ channel: string;
10490
+ operation: "post" | "update";
10491
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10492
+ recorded_at: string;
10493
+ message?: string | undefined;
10494
+ agent?: string | undefined;
10495
+ binding?: string | undefined;
10496
+ failure_reason?: string | undefined;
10497
+ guard_kind?: string | undefined;
10498
+ guard_labels?: string[] | undefined;
10499
+ thread_ts?: string | undefined;
10500
+ }>;
10501
+ /** A page of delivery outcomes for one Slack channel, newest first. Page through history with the returned cursors; `since` and `outcome` are filters, not paging controls. */
10502
+ export interface SlackDeliveryOutcomeListResponse {
10503
+ /** Opaque cursor for the page of newer outcomes. Pass back as `after_cursor` to poll for attempts recorded since. `null` when the page is empty. */
10504
+ after_cursor?: string | undefined;
10505
+ /** Opaque cursor for the page of older outcomes. Pass back as `before_cursor` to continue into history. `null` when the page is empty. */
10506
+ before_cursor?: string | undefined;
10507
+ /** Delivery outcomes matching the query, newest attempt first. */
10508
+ data: SlackDeliveryOutcome[];
10509
+ /** True when more outcomes exist beyond this page. */
10510
+ has_more: boolean;
10511
+ }
10512
+ /** Runtime validator for {@link SlackDeliveryOutcomeListResponse}. */
10513
+ export declare const slackDeliveryOutcomeListResponseSchema: z.ZodObject<{
10514
+ /** Opaque cursor for the page of newer outcomes. Pass back as `after_cursor` to poll for attempts recorded since. `null` when the page is empty. */
10515
+ after_cursor: z.ZodOptional<z.ZodString>;
10516
+ /** Opaque cursor for the page of older outcomes. Pass back as `before_cursor` to continue into history. `null` when the page is empty. */
10517
+ before_cursor: z.ZodOptional<z.ZodString>;
10518
+ /** Delivery outcomes matching the query, newest attempt first. */
10519
+ data: z.ZodArray<z.ZodObject<{
10520
+ /** ID of the agent whose message this was. */
10521
+ agent: z.ZodOptional<z.ZodString>;
10522
+ /** ID of the Slack channel binding in force for this send. `null` when no binding could be resolved, in which case the send was treated as cross-org and floored on that basis. */
10523
+ binding: z.ZodOptional<z.ZodString>;
10524
+ /** Slack channel ID the send was addressed to. */
10525
+ channel: z.ZodString;
10526
+ /** For a `failed` send, a short machine-readable cause — `slack:<slack_error_code>` when Slack rejected the call, or `floor_config` when the content floor could not be evaluated and the send failed closed. */
10527
+ failure_reason: z.ZodOptional<z.ZodString>;
10528
+ /** For a withheld send, the kind of guard that stopped it — `RegexMatch`, `ContainsAny`, `ContainsString`, or `LLMJudge`. `null` when the send was not withheld by a guard. */
10529
+ guard_kind: z.ZodOptional<z.ZodString>;
10530
+ /** For a withheld send, the labels of the guards that stopped it (for example `Contains AWS access key ID`). These are the content policy's own descriptions, recorded as they read at the time of the send; they never contain the withheld message. */
10531
+ guard_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10532
+ /** Unique identifier for this delivery outcome. */
10533
+ id: z.ZodString;
10534
+ /** ID of the platform message this attempt was carrying. Reading that message still requires access to its thread — this field correlates, it does not grant. */
10535
+ message: z.ZodOptional<z.ZodString>;
10536
+ /** Whether the attempt posted a new Slack message or updated an existing one (replacing a thinking placeholder). */
10537
+ operation: z.ZodEnum<["post", "update"]>;
10538
+ /** What happened to the send. `delivered` — Slack accepted the message. `floored` — a deterministic content guard withheld it, so it never left. `judge_refused` — the cross-org judge decided it was not appropriate for this channel's audience. `failed` — Slack rejected the call, or the content floor could not be evaluated and the send failed closed. */
10539
+ outcome: z.ZodEnum<["delivered", "floored", "judge_refused", "failed"]>;
10540
+ /** When the send was attempted. */
10541
+ recorded_at: z.ZodString;
10542
+ /** Slack thread timestamp the send targeted, letting attempts be grouped into the conversation they belong to. `null` for a top-level channel post. */
10543
+ thread_ts: z.ZodOptional<z.ZodString>;
10544
+ }, "strip", z.ZodTypeAny, {
10545
+ id: string;
10546
+ channel: string;
10547
+ operation: "post" | "update";
10548
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10549
+ recorded_at: string;
10550
+ message?: string | undefined;
10551
+ agent?: string | undefined;
10552
+ binding?: string | undefined;
10553
+ failure_reason?: string | undefined;
10554
+ guard_kind?: string | undefined;
10555
+ guard_labels?: string[] | undefined;
10556
+ thread_ts?: string | undefined;
10557
+ }, {
10558
+ id: string;
10559
+ channel: string;
10560
+ operation: "post" | "update";
10561
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10562
+ recorded_at: string;
10563
+ message?: string | undefined;
10564
+ agent?: string | undefined;
10565
+ binding?: string | undefined;
10566
+ failure_reason?: string | undefined;
10567
+ guard_kind?: string | undefined;
10568
+ guard_labels?: string[] | undefined;
10569
+ thread_ts?: string | undefined;
10570
+ }>, "many">;
10571
+ /** True when more outcomes exist beyond this page. */
10572
+ has_more: z.ZodBoolean;
10573
+ }, "strip", z.ZodTypeAny, {
10574
+ data: {
10575
+ id: string;
10576
+ channel: string;
10577
+ operation: "post" | "update";
10578
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10579
+ recorded_at: string;
10580
+ message?: string | undefined;
10581
+ agent?: string | undefined;
10582
+ binding?: string | undefined;
10583
+ failure_reason?: string | undefined;
10584
+ guard_kind?: string | undefined;
10585
+ guard_labels?: string[] | undefined;
10586
+ thread_ts?: string | undefined;
10587
+ }[];
10588
+ has_more: boolean;
10589
+ before_cursor?: string | undefined;
10590
+ after_cursor?: string | undefined;
10591
+ }, {
10592
+ data: {
10593
+ id: string;
10594
+ channel: string;
10595
+ operation: "post" | "update";
10596
+ outcome: "failed" | "delivered" | "floored" | "judge_refused";
10597
+ recorded_at: string;
10598
+ message?: string | undefined;
10599
+ agent?: string | undefined;
10600
+ binding?: string | undefined;
10601
+ failure_reason?: string | undefined;
10602
+ guard_kind?: string | undefined;
10603
+ guard_labels?: string[] | undefined;
10604
+ thread_ts?: string | undefined;
10605
+ }[];
10606
+ has_more: boolean;
10607
+ before_cursor?: string | undefined;
10608
+ after_cursor?: string | undefined;
10609
+ }>;
10409
10610
  /** A recorded sequence of AI messages and tool interactions representing a single AI reasoning session. Trajectories are stored as structured message logs and can be replayed or inspected after execution. */
10410
10611
  export interface Trajectory {
10411
10612
  /** When the trajectory was recorded (ISO 8601). */
@@ -20112,7 +20313,7 @@ export declare const agentRoutineRunDeliverySchema: z.ZodObject<{
20112
20313
  type: z.ZodEnum<["none", "thread", "reply"]>;
20113
20314
  }, "strip", z.ZodTypeAny, {
20114
20315
  type: "thread" | "none" | "reply";
20115
- status: "pending" | "failed" | "not_requested" | "delivered";
20316
+ status: "pending" | "failed" | "delivered" | "not_requested";
20116
20317
  message?: string | undefined;
20117
20318
  thread?: string | undefined;
20118
20319
  delivered_at?: string | undefined;
@@ -20120,7 +20321,7 @@ export declare const agentRoutineRunDeliverySchema: z.ZodObject<{
20120
20321
  last_error?: string | undefined;
20121
20322
  }, {
20122
20323
  type: "thread" | "none" | "reply";
20123
- status: "pending" | "failed" | "not_requested" | "delivered";
20324
+ status: "pending" | "failed" | "delivered" | "not_requested";
20124
20325
  message?: string | undefined;
20125
20326
  thread?: string | undefined;
20126
20327
  delivered_at?: string | undefined;
@@ -20270,7 +20471,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
20270
20471
  type: z.ZodEnum<["none", "thread", "reply"]>;
20271
20472
  }, "strip", z.ZodTypeAny, {
20272
20473
  type: "thread" | "none" | "reply";
20273
- status: "pending" | "failed" | "not_requested" | "delivered";
20474
+ status: "pending" | "failed" | "delivered" | "not_requested";
20274
20475
  message?: string | undefined;
20275
20476
  thread?: string | undefined;
20276
20477
  delivered_at?: string | undefined;
@@ -20278,7 +20479,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
20278
20479
  last_error?: string | undefined;
20279
20480
  }, {
20280
20481
  type: "thread" | "none" | "reply";
20281
- status: "pending" | "failed" | "not_requested" | "delivered";
20482
+ status: "pending" | "failed" | "delivered" | "not_requested";
20282
20483
  message?: string | undefined;
20283
20484
  thread?: string | undefined;
20284
20485
  delivered_at?: string | undefined;
@@ -20354,7 +20555,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
20354
20555
  } | undefined;
20355
20556
  delivery?: {
20356
20557
  type: "thread" | "none" | "reply";
20357
- status: "pending" | "failed" | "not_requested" | "delivered";
20558
+ status: "pending" | "failed" | "delivered" | "not_requested";
20358
20559
  message?: string | undefined;
20359
20560
  thread?: string | undefined;
20360
20561
  delivered_at?: string | undefined;
@@ -20399,7 +20600,7 @@ export declare const agentRoutineRunSchema: z.ZodObject<{
20399
20600
  } | undefined;
20400
20601
  delivery?: {
20401
20602
  type: "thread" | "none" | "reply";
20402
- status: "pending" | "failed" | "not_requested" | "delivered";
20603
+ status: "pending" | "failed" | "delivered" | "not_requested";
20403
20604
  message?: string | undefined;
20404
20605
  thread?: string | undefined;
20405
20606
  delivered_at?: string | undefined;
@@ -20536,7 +20737,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20536
20737
  type: z.ZodEnum<["none", "thread", "reply"]>;
20537
20738
  }, "strip", z.ZodTypeAny, {
20538
20739
  type: "thread" | "none" | "reply";
20539
- status: "pending" | "failed" | "not_requested" | "delivered";
20740
+ status: "pending" | "failed" | "delivered" | "not_requested";
20540
20741
  message?: string | undefined;
20541
20742
  thread?: string | undefined;
20542
20743
  delivered_at?: string | undefined;
@@ -20544,7 +20745,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20544
20745
  last_error?: string | undefined;
20545
20746
  }, {
20546
20747
  type: "thread" | "none" | "reply";
20547
- status: "pending" | "failed" | "not_requested" | "delivered";
20748
+ status: "pending" | "failed" | "delivered" | "not_requested";
20548
20749
  message?: string | undefined;
20549
20750
  thread?: string | undefined;
20550
20751
  delivered_at?: string | undefined;
@@ -20620,7 +20821,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20620
20821
  } | undefined;
20621
20822
  delivery?: {
20622
20823
  type: "thread" | "none" | "reply";
20623
- status: "pending" | "failed" | "not_requested" | "delivered";
20824
+ status: "pending" | "failed" | "delivered" | "not_requested";
20624
20825
  message?: string | undefined;
20625
20826
  thread?: string | undefined;
20626
20827
  delivered_at?: string | undefined;
@@ -20665,7 +20866,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20665
20866
  } | undefined;
20666
20867
  delivery?: {
20667
20868
  type: "thread" | "none" | "reply";
20668
- status: "pending" | "failed" | "not_requested" | "delivered";
20869
+ status: "pending" | "failed" | "delivered" | "not_requested";
20669
20870
  message?: string | undefined;
20670
20871
  thread?: string | undefined;
20671
20872
  delivered_at?: string | undefined;
@@ -20712,7 +20913,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20712
20913
  } | undefined;
20713
20914
  delivery?: {
20714
20915
  type: "thread" | "none" | "reply";
20715
- status: "pending" | "failed" | "not_requested" | "delivered";
20916
+ status: "pending" | "failed" | "delivered" | "not_requested";
20716
20917
  message?: string | undefined;
20717
20918
  thread?: string | undefined;
20718
20919
  delivered_at?: string | undefined;
@@ -20761,7 +20962,7 @@ export declare const agentRoutineRunListResponseSchema: z.ZodObject<{
20761
20962
  } | undefined;
20762
20963
  delivery?: {
20763
20964
  type: "thread" | "none" | "reply";
20764
- status: "pending" | "failed" | "not_requested" | "delivered";
20965
+ status: "pending" | "failed" | "delivered" | "not_requested";
20765
20966
  message?: string | undefined;
20766
20967
  thread?: string | undefined;
20767
20968
  delivered_at?: string | undefined;