@runneth/cli 0.0.0-sha.516ebb0b01bb.production → 0.0.0-sha.55427aa0dde9.production

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +1172 -429
  2. package/dist/src.js +616 -1421
  3. package/package.json +1 -2
package/dist/index.d.ts CHANGED
@@ -2156,104 +2156,173 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
2156
2156
  startedAt: ZodOptional<ZodNumber>;
2157
2157
  durationMs: ZodOptional<ZodNumber>;
2158
2158
  }, $strict>, ZodObject<{
2159
- type: ZodLiteral<"data-spec">;
2159
+ type: ZodLiteral<"data-widget">;
2160
2160
  id: ZodOptional<ZodString>;
2161
2161
  data: ZodDiscriminatedUnion<[ZodObject<{
2162
- type: ZodLiteral<"patch">;
2163
- patch: ZodObject<{
2164
- op: ZodEnum<{
2165
- copy: "copy";
2166
- move: "move";
2167
- remove: "remove";
2168
- replace: "replace";
2169
- add: "add";
2170
- test: "test";
2162
+ type: ZodLiteral<"set">;
2163
+ widgetId: ZodString;
2164
+ source: ZodEnum<{
2165
+ harness: "harness";
2166
+ model: "model";
2167
+ }>;
2168
+ widget: ZodUnion<readonly [ZodObject<{
2169
+ type: ZodLiteral<"creative-gallery">;
2170
+ creatives: ZodArray<ZodUnion<readonly [ZodObject<{
2171
+ id: ZodString;
2172
+ creativeOrigin: ZodOptional<ZodEnum<{
2173
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
2174
+ linkedinCreativeAsset: "linkedinCreativeAsset";
2175
+ metaAdLibraryCreative: "metaAdLibraryCreative";
2176
+ metaCreativeAsset: "metaCreativeAsset";
2177
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
2178
+ tiktokCreativeAsset: "tiktokCreativeAsset";
2179
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
2180
+ userUploadCreative: "userUploadCreative";
2181
+ youtubeCreativeAsset: "youtubeCreativeAsset";
2182
+ }>>;
2183
+ motionUrl: ZodOptional<ZodString>;
2184
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
2185
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
2186
+ brandName: ZodOptional<ZodString>;
2187
+ format: ZodEnum<{
2188
+ image: "image";
2189
+ video: "video";
2190
+ }>;
2191
+ thumbnailUrl: ZodOptional<ZodString>;
2192
+ url: ZodString;
2193
+ }, $strict>, ZodObject<{
2194
+ id: ZodString;
2195
+ creativeOrigin: ZodOptional<ZodEnum<{
2196
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
2197
+ linkedinCreativeAsset: "linkedinCreativeAsset";
2198
+ metaAdLibraryCreative: "metaAdLibraryCreative";
2199
+ metaCreativeAsset: "metaCreativeAsset";
2200
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
2201
+ tiktokCreativeAsset: "tiktokCreativeAsset";
2202
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
2203
+ userUploadCreative: "userUploadCreative";
2204
+ youtubeCreativeAsset: "youtubeCreativeAsset";
2205
+ }>>;
2206
+ motionUrl: ZodOptional<ZodString>;
2207
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
2208
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
2209
+ brandName: ZodOptional<ZodString>;
2210
+ carouselItems: ZodArray<ZodObject<{
2211
+ id: ZodString;
2212
+ format: ZodEnum<{
2213
+ image: "image";
2214
+ video: "video";
2215
+ }>;
2216
+ url: ZodString;
2217
+ thumbnailUrl: ZodOptional<ZodString>;
2218
+ }, $strict>>;
2219
+ format: ZodLiteral<"carousel">;
2220
+ thumbnailUrl: ZodOptional<ZodString>;
2221
+ url: ZodOptional<ZodString>;
2222
+ }, $strict>]>>;
2223
+ excludedCreatives: ZodOptional<ZodArray<ZodObject<{
2224
+ id: ZodString;
2225
+ reason: ZodEnum<{
2226
+ missing_url: "missing_url";
2227
+ }>;
2228
+ }, $strict>>>;
2229
+ notFound: ZodOptional<ZodArray<ZodString>>;
2230
+ unresolvedFields: ZodOptional<ZodArray<ZodString>>;
2231
+ }, $strict>, ZodObject<{
2232
+ type: ZodLiteral<"concept">;
2233
+ concepts: ZodArray<ZodObject<{
2234
+ title: ZodString;
2235
+ description: ZodString;
2236
+ tags: ZodArray<ZodObject<{
2237
+ categoryId: ZodString;
2238
+ tagName: ZodString;
2239
+ }, $strict>>;
2240
+ verbatim: ZodObject<{
2241
+ headline: ZodOptional<ZodString>;
2242
+ hook: ZodOptional<ZodString>;
2243
+ }, $strict>;
2244
+ whyItCanWork: ZodString;
2245
+ }, $strict>>;
2246
+ }, $strict>, ZodObject<{
2247
+ type: ZodLiteral<"google-drive-access">;
2248
+ }, $strict>, ZodObject<{
2249
+ type: ZodLiteral<"kpi-card">;
2250
+ title: ZodOptional<ZodString>;
2251
+ metrics: ZodArray<ZodObject<{
2252
+ label: ZodString;
2253
+ value: ZodUnion<readonly [ZodNumber, ZodString]>;
2254
+ unit: ZodOptional<ZodString>;
2255
+ goodDirection: ZodOptional<ZodEnum<{
2256
+ higher: "higher";
2257
+ lower: "lower";
2258
+ neutral: "neutral";
2259
+ }>>;
2260
+ trend: ZodOptional<ZodObject<{
2261
+ deltaPercent: ZodNumber;
2262
+ comparisonLabel: ZodOptional<ZodString>;
2263
+ }, $strict>>;
2264
+ }, $strict>>;
2265
+ }, $strict>, ZodUnion<readonly [ZodObject<{
2266
+ type: ZodLiteral<"oauth-connect">;
2267
+ provider: ZodEnum<{
2268
+ slack: "slack";
2269
+ google: "google";
2270
+ github: "github";
2271
+ notion: "notion";
2272
+ }>;
2273
+ }, $strict>, ZodObject<{
2274
+ appName: ZodString;
2275
+ appSlug: ZodString;
2276
+ type: ZodLiteral<"oauth-connect">;
2277
+ provider: ZodLiteral<"pipedream">;
2278
+ }, $strict>]>, ZodObject<{
2279
+ type: ZodLiteral<"secret-input">;
2280
+ title: ZodOptional<ZodString>;
2281
+ description: ZodOptional<ZodString>;
2282
+ fields: ZodArray<ZodObject<{
2283
+ requestId: ZodString;
2284
+ secretKey: ZodString;
2285
+ label: ZodOptional<ZodString>;
2286
+ reason: ZodOptional<ZodString>;
2287
+ allowedHosts: ZodDefault<ZodArray<ZodString>>;
2288
+ allowedCliCommands: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<"*">, ZodString]>>>;
2289
+ }, $strict>>;
2290
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
2291
+ type: ZodLiteral<"link">;
2292
+ kind: ZodEnum<{
2293
+ app: "app";
2294
+ }>;
2295
+ appId: ZodOptional<ZodString>;
2296
+ authorizationRequired: ZodOptional<ZodBoolean>;
2297
+ href: ZodString;
2298
+ label: ZodString;
2299
+ }, $strict>, ZodObject<{
2300
+ type: ZodLiteral<"link">;
2301
+ kind: ZodEnum<{
2302
+ file: "file";
2303
+ }>;
2304
+ label: ZodOptional<ZodString>;
2305
+ fileType: ZodEnum<{
2306
+ pdf: "pdf";
2307
+ xls: "xls";
2308
+ csv: "csv";
2309
+ html: "html";
2310
+ json: "json";
2311
+ image: "image";
2312
+ other: "other";
2171
2313
  }>;
2172
2314
  path: ZodString;
2173
- from: ZodOptional<ZodString>;
2174
- value: ZodOptional<ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
2175
- }, $strict>;
2176
- }, $strict>, ZodObject<{
2177
- type: ZodLiteral<"flat">;
2178
- spec: ZodObject<{
2179
- root: ZodString;
2180
- elements: ZodRecord<ZodString, ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
2181
- state: ZodOptional<ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
2182
- }, $strict>;
2315
+ }, $strict>], "kind">]>;
2316
+ toolUseId: ZodOptional<ZodString>;
2183
2317
  }, $strict>, ZodObject<{
2184
- type: ZodLiteral<"nested">;
2185
- spec: ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
2318
+ type: ZodLiteral<"clear">;
2319
+ widgetId: ZodString;
2320
+ source: ZodEnum<{
2321
+ harness: "harness";
2322
+ model: "model";
2323
+ }>;
2324
+ toolUseId: ZodOptional<ZodString>;
2186
2325
  }, $strict>], "type">;
2187
- }, $strict>, ZodObject<{
2188
- type: ZodLiteral<"data-slack-response">;
2189
- id: ZodOptional<ZodString>;
2190
- data: ZodDiscriminatedUnion<[ZodObject<{
2191
- kind: ZodLiteral<"no_response">;
2192
- }, $strict>, ZodObject<{
2193
- kind: ZodLiteral<"preparing_response">;
2194
- }, $strict>, ZodObject<{
2195
- content: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2196
- text: ZodString;
2197
- type: ZodLiteral<"markdown_text">;
2198
- }, $strict>, ZodObject<{
2199
- blocks: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2200
- text: ZodString;
2201
- type: ZodLiteral<"markdown">;
2202
- }, $strict>, ZodObject<{
2203
- type: ZodLiteral<"divider">;
2204
- }, $strict>, ZodObject<{
2205
- text: ZodString;
2206
- type: ZodLiteral<"header">;
2207
- }, $strict>, ZodObject<{
2208
- accessoryImage: ZodOptional<ZodObject<{
2209
- altText: ZodString;
2210
- imageUrl: ZodString;
2211
- }, $strict>>;
2212
- fields: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2213
- text: ZodString;
2214
- type: ZodLiteral<"mrkdwn">;
2215
- }, $strict>, ZodObject<{
2216
- text: ZodString;
2217
- type: ZodLiteral<"plain_text">;
2218
- }, $strict>], "type">>>;
2219
- text: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
2220
- text: ZodString;
2221
- type: ZodLiteral<"mrkdwn">;
2222
- }, $strict>, ZodObject<{
2223
- text: ZodString;
2224
- type: ZodLiteral<"plain_text">;
2225
- }, $strict>], "type">>;
2226
- type: ZodLiteral<"section">;
2227
- }, $strict>, ZodObject<{
2228
- elements: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2229
- text: ZodString;
2230
- type: ZodLiteral<"mrkdwn">;
2231
- }, $strict>, ZodObject<{
2232
- text: ZodString;
2233
- type: ZodLiteral<"plain_text">;
2234
- }, $strict>], "type">>;
2235
- type: ZodLiteral<"context">;
2236
- }, $strict>, ZodObject<{
2237
- altText: ZodString;
2238
- imageUrl: ZodString;
2239
- title: ZodOptional<ZodString>;
2240
- type: ZodLiteral<"image">;
2241
- }, $strict>, ZodObject<{
2242
- items: ZodArray<ZodObject<{
2243
- altText: ZodString;
2244
- ctaUrl: ZodOptional<ZodString>;
2245
- imageUrl: ZodString;
2246
- metadata: ZodOptional<ZodArray<ZodString>>;
2247
- text: ZodOptional<ZodString>;
2248
- title: ZodString;
2249
- }, $strict>>;
2250
- title: ZodOptional<ZodString>;
2251
- type: ZodLiteral<"creative_gallery">;
2252
- }, $strict>], "type">>;
2253
- type: ZodLiteral<"blocks">;
2254
- }, $strict>], "type">>;
2255
- kind: ZodLiteral<"response">;
2256
- }, $strict>], "kind">;
2257
2326
  }, $strict>, ZodObject<{
2258
2327
  type: ZodLiteral<"data-agent-turn-input">;
2259
2328
  id: ZodOptional<ZodString>;
@@ -2481,12 +2550,12 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
2481
2550
  path: ZodString;
2482
2551
  filename: ZodString;
2483
2552
  fileType: ZodEnum<{
2484
- image: "image";
2485
2553
  pdf: "pdf";
2486
2554
  xls: "xls";
2487
2555
  csv: "csv";
2488
2556
  html: "html";
2489
2557
  json: "json";
2558
+ image: "image";
2490
2559
  other: "other";
2491
2560
  }>;
2492
2561
  op: ZodEnum<{
@@ -2523,11 +2592,11 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
2523
2592
  filename: ZodString;
2524
2593
  mimeType: ZodString;
2525
2594
  fileType: ZodEnum<{
2526
- text: "text";
2527
- image: "image";
2528
2595
  pdf: "pdf";
2596
+ image: "image";
2529
2597
  other: "other";
2530
2598
  video: "video";
2599
+ text: "text";
2531
2600
  excel: "excel";
2532
2601
  }>;
2533
2602
  accessMode: ZodLiteral<"sandbox_read">;
@@ -2648,104 +2717,173 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
2648
2717
  startedAt: ZodOptional<ZodNumber>;
2649
2718
  durationMs: ZodOptional<ZodNumber>;
2650
2719
  }, $strict>, ZodObject<{
2651
- type: ZodLiteral<"data-spec">;
2720
+ type: ZodLiteral<"data-widget">;
2652
2721
  id: ZodOptional<ZodString>;
2653
2722
  data: ZodDiscriminatedUnion<[ZodObject<{
2654
- type: ZodLiteral<"patch">;
2655
- patch: ZodObject<{
2656
- op: ZodEnum<{
2657
- copy: "copy";
2658
- move: "move";
2659
- remove: "remove";
2660
- replace: "replace";
2661
- add: "add";
2662
- test: "test";
2723
+ type: ZodLiteral<"set">;
2724
+ widgetId: ZodString;
2725
+ source: ZodEnum<{
2726
+ harness: "harness";
2727
+ model: "model";
2728
+ }>;
2729
+ widget: ZodUnion<readonly [ZodObject<{
2730
+ type: ZodLiteral<"creative-gallery">;
2731
+ creatives: ZodArray<ZodUnion<readonly [ZodObject<{
2732
+ id: ZodString;
2733
+ creativeOrigin: ZodOptional<ZodEnum<{
2734
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
2735
+ linkedinCreativeAsset: "linkedinCreativeAsset";
2736
+ metaAdLibraryCreative: "metaAdLibraryCreative";
2737
+ metaCreativeAsset: "metaCreativeAsset";
2738
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
2739
+ tiktokCreativeAsset: "tiktokCreativeAsset";
2740
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
2741
+ userUploadCreative: "userUploadCreative";
2742
+ youtubeCreativeAsset: "youtubeCreativeAsset";
2743
+ }>>;
2744
+ motionUrl: ZodOptional<ZodString>;
2745
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
2746
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
2747
+ brandName: ZodOptional<ZodString>;
2748
+ format: ZodEnum<{
2749
+ image: "image";
2750
+ video: "video";
2751
+ }>;
2752
+ thumbnailUrl: ZodOptional<ZodString>;
2753
+ url: ZodString;
2754
+ }, $strict>, ZodObject<{
2755
+ id: ZodString;
2756
+ creativeOrigin: ZodOptional<ZodEnum<{
2757
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
2758
+ linkedinCreativeAsset: "linkedinCreativeAsset";
2759
+ metaAdLibraryCreative: "metaAdLibraryCreative";
2760
+ metaCreativeAsset: "metaCreativeAsset";
2761
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
2762
+ tiktokCreativeAsset: "tiktokCreativeAsset";
2763
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
2764
+ userUploadCreative: "userUploadCreative";
2765
+ youtubeCreativeAsset: "youtubeCreativeAsset";
2766
+ }>>;
2767
+ motionUrl: ZodOptional<ZodString>;
2768
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
2769
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
2770
+ brandName: ZodOptional<ZodString>;
2771
+ carouselItems: ZodArray<ZodObject<{
2772
+ id: ZodString;
2773
+ format: ZodEnum<{
2774
+ image: "image";
2775
+ video: "video";
2776
+ }>;
2777
+ url: ZodString;
2778
+ thumbnailUrl: ZodOptional<ZodString>;
2779
+ }, $strict>>;
2780
+ format: ZodLiteral<"carousel">;
2781
+ thumbnailUrl: ZodOptional<ZodString>;
2782
+ url: ZodOptional<ZodString>;
2783
+ }, $strict>]>>;
2784
+ excludedCreatives: ZodOptional<ZodArray<ZodObject<{
2785
+ id: ZodString;
2786
+ reason: ZodEnum<{
2787
+ missing_url: "missing_url";
2788
+ }>;
2789
+ }, $strict>>>;
2790
+ notFound: ZodOptional<ZodArray<ZodString>>;
2791
+ unresolvedFields: ZodOptional<ZodArray<ZodString>>;
2792
+ }, $strict>, ZodObject<{
2793
+ type: ZodLiteral<"concept">;
2794
+ concepts: ZodArray<ZodObject<{
2795
+ title: ZodString;
2796
+ description: ZodString;
2797
+ tags: ZodArray<ZodObject<{
2798
+ categoryId: ZodString;
2799
+ tagName: ZodString;
2800
+ }, $strict>>;
2801
+ verbatim: ZodObject<{
2802
+ headline: ZodOptional<ZodString>;
2803
+ hook: ZodOptional<ZodString>;
2804
+ }, $strict>;
2805
+ whyItCanWork: ZodString;
2806
+ }, $strict>>;
2807
+ }, $strict>, ZodObject<{
2808
+ type: ZodLiteral<"google-drive-access">;
2809
+ }, $strict>, ZodObject<{
2810
+ type: ZodLiteral<"kpi-card">;
2811
+ title: ZodOptional<ZodString>;
2812
+ metrics: ZodArray<ZodObject<{
2813
+ label: ZodString;
2814
+ value: ZodUnion<readonly [ZodNumber, ZodString]>;
2815
+ unit: ZodOptional<ZodString>;
2816
+ goodDirection: ZodOptional<ZodEnum<{
2817
+ higher: "higher";
2818
+ lower: "lower";
2819
+ neutral: "neutral";
2820
+ }>>;
2821
+ trend: ZodOptional<ZodObject<{
2822
+ deltaPercent: ZodNumber;
2823
+ comparisonLabel: ZodOptional<ZodString>;
2824
+ }, $strict>>;
2825
+ }, $strict>>;
2826
+ }, $strict>, ZodUnion<readonly [ZodObject<{
2827
+ type: ZodLiteral<"oauth-connect">;
2828
+ provider: ZodEnum<{
2829
+ slack: "slack";
2830
+ google: "google";
2831
+ github: "github";
2832
+ notion: "notion";
2833
+ }>;
2834
+ }, $strict>, ZodObject<{
2835
+ appName: ZodString;
2836
+ appSlug: ZodString;
2837
+ type: ZodLiteral<"oauth-connect">;
2838
+ provider: ZodLiteral<"pipedream">;
2839
+ }, $strict>]>, ZodObject<{
2840
+ type: ZodLiteral<"secret-input">;
2841
+ title: ZodOptional<ZodString>;
2842
+ description: ZodOptional<ZodString>;
2843
+ fields: ZodArray<ZodObject<{
2844
+ requestId: ZodString;
2845
+ secretKey: ZodString;
2846
+ label: ZodOptional<ZodString>;
2847
+ reason: ZodOptional<ZodString>;
2848
+ allowedHosts: ZodDefault<ZodArray<ZodString>>;
2849
+ allowedCliCommands: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<"*">, ZodString]>>>;
2850
+ }, $strict>>;
2851
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
2852
+ type: ZodLiteral<"link">;
2853
+ kind: ZodEnum<{
2854
+ app: "app";
2855
+ }>;
2856
+ appId: ZodOptional<ZodString>;
2857
+ authorizationRequired: ZodOptional<ZodBoolean>;
2858
+ href: ZodString;
2859
+ label: ZodString;
2860
+ }, $strict>, ZodObject<{
2861
+ type: ZodLiteral<"link">;
2862
+ kind: ZodEnum<{
2863
+ file: "file";
2864
+ }>;
2865
+ label: ZodOptional<ZodString>;
2866
+ fileType: ZodEnum<{
2867
+ pdf: "pdf";
2868
+ xls: "xls";
2869
+ csv: "csv";
2870
+ html: "html";
2871
+ json: "json";
2872
+ image: "image";
2873
+ other: "other";
2663
2874
  }>;
2664
2875
  path: ZodString;
2665
- from: ZodOptional<ZodString>;
2666
- value: ZodOptional<ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
2667
- }, $strict>;
2876
+ }, $strict>], "kind">]>;
2877
+ toolUseId: ZodOptional<ZodString>;
2668
2878
  }, $strict>, ZodObject<{
2669
- type: ZodLiteral<"flat">;
2670
- spec: ZodObject<{
2671
- root: ZodString;
2672
- elements: ZodRecord<ZodString, ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
2673
- state: ZodOptional<ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
2674
- }, $strict>;
2675
- }, $strict>, ZodObject<{
2676
- type: ZodLiteral<"nested">;
2677
- spec: ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
2879
+ type: ZodLiteral<"clear">;
2880
+ widgetId: ZodString;
2881
+ source: ZodEnum<{
2882
+ harness: "harness";
2883
+ model: "model";
2884
+ }>;
2885
+ toolUseId: ZodOptional<ZodString>;
2678
2886
  }, $strict>], "type">;
2679
- }, $strict>, ZodObject<{
2680
- type: ZodLiteral<"data-slack-response">;
2681
- id: ZodOptional<ZodString>;
2682
- data: ZodDiscriminatedUnion<[ZodObject<{
2683
- kind: ZodLiteral<"no_response">;
2684
- }, $strict>, ZodObject<{
2685
- kind: ZodLiteral<"preparing_response">;
2686
- }, $strict>, ZodObject<{
2687
- content: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2688
- text: ZodString;
2689
- type: ZodLiteral<"markdown_text">;
2690
- }, $strict>, ZodObject<{
2691
- blocks: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2692
- text: ZodString;
2693
- type: ZodLiteral<"markdown">;
2694
- }, $strict>, ZodObject<{
2695
- type: ZodLiteral<"divider">;
2696
- }, $strict>, ZodObject<{
2697
- text: ZodString;
2698
- type: ZodLiteral<"header">;
2699
- }, $strict>, ZodObject<{
2700
- accessoryImage: ZodOptional<ZodObject<{
2701
- altText: ZodString;
2702
- imageUrl: ZodString;
2703
- }, $strict>>;
2704
- fields: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2705
- text: ZodString;
2706
- type: ZodLiteral<"mrkdwn">;
2707
- }, $strict>, ZodObject<{
2708
- text: ZodString;
2709
- type: ZodLiteral<"plain_text">;
2710
- }, $strict>], "type">>>;
2711
- text: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
2712
- text: ZodString;
2713
- type: ZodLiteral<"mrkdwn">;
2714
- }, $strict>, ZodObject<{
2715
- text: ZodString;
2716
- type: ZodLiteral<"plain_text">;
2717
- }, $strict>], "type">>;
2718
- type: ZodLiteral<"section">;
2719
- }, $strict>, ZodObject<{
2720
- elements: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2721
- text: ZodString;
2722
- type: ZodLiteral<"mrkdwn">;
2723
- }, $strict>, ZodObject<{
2724
- text: ZodString;
2725
- type: ZodLiteral<"plain_text">;
2726
- }, $strict>], "type">>;
2727
- type: ZodLiteral<"context">;
2728
- }, $strict>, ZodObject<{
2729
- altText: ZodString;
2730
- imageUrl: ZodString;
2731
- title: ZodOptional<ZodString>;
2732
- type: ZodLiteral<"image">;
2733
- }, $strict>, ZodObject<{
2734
- items: ZodArray<ZodObject<{
2735
- altText: ZodString;
2736
- ctaUrl: ZodOptional<ZodString>;
2737
- imageUrl: ZodString;
2738
- metadata: ZodOptional<ZodArray<ZodString>>;
2739
- text: ZodOptional<ZodString>;
2740
- title: ZodString;
2741
- }, $strict>>;
2742
- title: ZodOptional<ZodString>;
2743
- type: ZodLiteral<"creative_gallery">;
2744
- }, $strict>], "type">>;
2745
- type: ZodLiteral<"blocks">;
2746
- }, $strict>], "type">>;
2747
- kind: ZodLiteral<"response">;
2748
- }, $strict>], "kind">;
2749
2887
  }, $strict>, ZodObject<{
2750
2888
  type: ZodLiteral<"data-agent-turn-input">;
2751
2889
  id: ZodOptional<ZodString>;
@@ -2973,12 +3111,12 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
2973
3111
  path: ZodString;
2974
3112
  filename: ZodString;
2975
3113
  fileType: ZodEnum<{
2976
- image: "image";
2977
3114
  pdf: "pdf";
2978
3115
  xls: "xls";
2979
3116
  csv: "csv";
2980
3117
  html: "html";
2981
3118
  json: "json";
3119
+ image: "image";
2982
3120
  other: "other";
2983
3121
  }>;
2984
3122
  op: ZodEnum<{
@@ -3015,11 +3153,11 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
3015
3153
  filename: ZodString;
3016
3154
  mimeType: ZodString;
3017
3155
  fileType: ZodEnum<{
3018
- text: "text";
3019
- image: "image";
3020
3156
  pdf: "pdf";
3157
+ image: "image";
3021
3158
  other: "other";
3022
3159
  video: "video";
3160
+ text: "text";
3023
3161
  excel: "excel";
3024
3162
  }>;
3025
3163
  accessMode: ZodLiteral<"sandbox_read">;
@@ -3028,6 +3166,97 @@ declare const agentMessageSchema: ZodDiscriminatedUnion<[ZodObject<{
3028
3166
  createdDate: ZodString;
3029
3167
  updatedDate: ZodString;
3030
3168
  }, $strict>>>;
3169
+ readonly modelFallback?: ZodDefault<ZodNullable<ZodObject<{
3170
+ activatedAt: ZodString;
3171
+ activatedByExecutionId: ZodString;
3172
+ activatedByMessageId: ZodString;
3173
+ config: ZodDiscriminatedUnion<[ZodObject<{
3174
+ model: ZodLiteral<"claude-opus-4-7">;
3175
+ anthropic: ZodObject<{
3176
+ thinkingLevel: ZodEnum<{
3177
+ medium: "medium";
3178
+ low: "low";
3179
+ high: "high";
3180
+ }>;
3181
+ }, $strict>;
3182
+ }, $strict>, ZodObject<{
3183
+ model: ZodLiteral<"claude-opus-4-8">;
3184
+ anthropic: ZodObject<{
3185
+ thinkingLevel: ZodEnum<{
3186
+ medium: "medium";
3187
+ low: "low";
3188
+ high: "high";
3189
+ }>;
3190
+ }, $strict>;
3191
+ }, $strict>, ZodObject<{
3192
+ model: ZodLiteral<"claude-sonnet-4-6">;
3193
+ anthropic: ZodObject<{
3194
+ thinkingLevel: ZodEnum<{
3195
+ medium: "medium";
3196
+ low: "low";
3197
+ high: "high";
3198
+ }>;
3199
+ }, $strict>;
3200
+ }, $strict>, ZodObject<{
3201
+ model: ZodLiteral<"gpt-5.4">;
3202
+ openai: ZodObject<{
3203
+ reasoningEffort: ZodEnum<{
3204
+ medium: "medium";
3205
+ low: "low";
3206
+ high: "high";
3207
+ xhigh: "xhigh";
3208
+ minimal: "minimal";
3209
+ }>;
3210
+ }, $strict>;
3211
+ }, $strict>, ZodObject<{
3212
+ model: ZodLiteral<"gpt-5.5">;
3213
+ openai: ZodObject<{
3214
+ reasoningEffort: ZodEnum<{
3215
+ medium: "medium";
3216
+ low: "low";
3217
+ high: "high";
3218
+ xhigh: "xhigh";
3219
+ minimal: "minimal";
3220
+ }>;
3221
+ }, $strict>;
3222
+ }, $strict>, ZodObject<{
3223
+ model: ZodLiteral<"gpt-5.4-mini">;
3224
+ openai: ZodObject<{
3225
+ reasoningEffort: ZodEnum<{
3226
+ medium: "medium";
3227
+ low: "low";
3228
+ high: "high";
3229
+ xhigh: "xhigh";
3230
+ minimal: "minimal";
3231
+ }>;
3232
+ }, $strict>;
3233
+ }, $strict>, ZodObject<{
3234
+ model: ZodLiteral<"gemini-3.1-pro-preview">;
3235
+ google: ZodObject<{
3236
+ thinkingLevel: ZodEnum<{
3237
+ low: "low";
3238
+ high: "high";
3239
+ }>;
3240
+ }, $strict>;
3241
+ }, $strict>, ZodObject<{
3242
+ model: ZodLiteral<"glm-5.2">;
3243
+ glm: ZodObject<{
3244
+ thinkingLevel: ZodEnum<{
3245
+ high: "high";
3246
+ xhigh: "xhigh";
3247
+ }>;
3248
+ }, $strict>;
3249
+ }, $strict>], "model">;
3250
+ reason: ZodObject<{
3251
+ kind: ZodEnum<{
3252
+ provider_error: "provider_error";
3253
+ provider_unavailable: "provider_unavailable";
3254
+ provider_rate_limited: "provider_rate_limited";
3255
+ }>;
3256
+ providerErrorType: ZodOptional<ZodString>;
3257
+ providerStatusCode: ZodOptional<ZodNumber>;
3258
+ }, $strict>;
3259
+ }, $strict>>> | undefined;
3031
3260
  readonly role: ZodLiteral<"assistant">;
3032
3261
  readonly deliveryState: ZodOptional<ZodUndefined>;
3033
3262
  }, $strict>], "role">;
@@ -3058,104 +3287,173 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3058
3287
  startedAt: ZodOptional<ZodNumber>;
3059
3288
  durationMs: ZodOptional<ZodNumber>;
3060
3289
  }, $strict>, ZodObject<{
3061
- type: ZodLiteral<"data-spec">;
3290
+ type: ZodLiteral<"data-widget">;
3062
3291
  id: ZodOptional<ZodString>;
3063
3292
  data: ZodDiscriminatedUnion<[ZodObject<{
3064
- type: ZodLiteral<"patch">;
3065
- patch: ZodObject<{
3066
- op: ZodEnum<{
3067
- copy: "copy";
3068
- move: "move";
3069
- remove: "remove";
3070
- replace: "replace";
3071
- add: "add";
3072
- test: "test";
3293
+ type: ZodLiteral<"set">;
3294
+ widgetId: ZodString;
3295
+ source: ZodEnum<{
3296
+ harness: "harness";
3297
+ model: "model";
3298
+ }>;
3299
+ widget: ZodUnion<readonly [ZodObject<{
3300
+ type: ZodLiteral<"creative-gallery">;
3301
+ creatives: ZodArray<ZodUnion<readonly [ZodObject<{
3302
+ id: ZodString;
3303
+ creativeOrigin: ZodOptional<ZodEnum<{
3304
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
3305
+ linkedinCreativeAsset: "linkedinCreativeAsset";
3306
+ metaAdLibraryCreative: "metaAdLibraryCreative";
3307
+ metaCreativeAsset: "metaCreativeAsset";
3308
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
3309
+ tiktokCreativeAsset: "tiktokCreativeAsset";
3310
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
3311
+ userUploadCreative: "userUploadCreative";
3312
+ youtubeCreativeAsset: "youtubeCreativeAsset";
3313
+ }>>;
3314
+ motionUrl: ZodOptional<ZodString>;
3315
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
3316
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
3317
+ brandName: ZodOptional<ZodString>;
3318
+ format: ZodEnum<{
3319
+ image: "image";
3320
+ video: "video";
3321
+ }>;
3322
+ thumbnailUrl: ZodOptional<ZodString>;
3323
+ url: ZodString;
3324
+ }, $strict>, ZodObject<{
3325
+ id: ZodString;
3326
+ creativeOrigin: ZodOptional<ZodEnum<{
3327
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
3328
+ linkedinCreativeAsset: "linkedinCreativeAsset";
3329
+ metaAdLibraryCreative: "metaAdLibraryCreative";
3330
+ metaCreativeAsset: "metaCreativeAsset";
3331
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
3332
+ tiktokCreativeAsset: "tiktokCreativeAsset";
3333
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
3334
+ userUploadCreative: "userUploadCreative";
3335
+ youtubeCreativeAsset: "youtubeCreativeAsset";
3336
+ }>>;
3337
+ motionUrl: ZodOptional<ZodString>;
3338
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
3339
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
3340
+ brandName: ZodOptional<ZodString>;
3341
+ carouselItems: ZodArray<ZodObject<{
3342
+ id: ZodString;
3343
+ format: ZodEnum<{
3344
+ image: "image";
3345
+ video: "video";
3346
+ }>;
3347
+ url: ZodString;
3348
+ thumbnailUrl: ZodOptional<ZodString>;
3349
+ }, $strict>>;
3350
+ format: ZodLiteral<"carousel">;
3351
+ thumbnailUrl: ZodOptional<ZodString>;
3352
+ url: ZodOptional<ZodString>;
3353
+ }, $strict>]>>;
3354
+ excludedCreatives: ZodOptional<ZodArray<ZodObject<{
3355
+ id: ZodString;
3356
+ reason: ZodEnum<{
3357
+ missing_url: "missing_url";
3358
+ }>;
3359
+ }, $strict>>>;
3360
+ notFound: ZodOptional<ZodArray<ZodString>>;
3361
+ unresolvedFields: ZodOptional<ZodArray<ZodString>>;
3362
+ }, $strict>, ZodObject<{
3363
+ type: ZodLiteral<"concept">;
3364
+ concepts: ZodArray<ZodObject<{
3365
+ title: ZodString;
3366
+ description: ZodString;
3367
+ tags: ZodArray<ZodObject<{
3368
+ categoryId: ZodString;
3369
+ tagName: ZodString;
3370
+ }, $strict>>;
3371
+ verbatim: ZodObject<{
3372
+ headline: ZodOptional<ZodString>;
3373
+ hook: ZodOptional<ZodString>;
3374
+ }, $strict>;
3375
+ whyItCanWork: ZodString;
3376
+ }, $strict>>;
3377
+ }, $strict>, ZodObject<{
3378
+ type: ZodLiteral<"google-drive-access">;
3379
+ }, $strict>, ZodObject<{
3380
+ type: ZodLiteral<"kpi-card">;
3381
+ title: ZodOptional<ZodString>;
3382
+ metrics: ZodArray<ZodObject<{
3383
+ label: ZodString;
3384
+ value: ZodUnion<readonly [ZodNumber, ZodString]>;
3385
+ unit: ZodOptional<ZodString>;
3386
+ goodDirection: ZodOptional<ZodEnum<{
3387
+ higher: "higher";
3388
+ lower: "lower";
3389
+ neutral: "neutral";
3390
+ }>>;
3391
+ trend: ZodOptional<ZodObject<{
3392
+ deltaPercent: ZodNumber;
3393
+ comparisonLabel: ZodOptional<ZodString>;
3394
+ }, $strict>>;
3395
+ }, $strict>>;
3396
+ }, $strict>, ZodUnion<readonly [ZodObject<{
3397
+ type: ZodLiteral<"oauth-connect">;
3398
+ provider: ZodEnum<{
3399
+ slack: "slack";
3400
+ google: "google";
3401
+ github: "github";
3402
+ notion: "notion";
3403
+ }>;
3404
+ }, $strict>, ZodObject<{
3405
+ appName: ZodString;
3406
+ appSlug: ZodString;
3407
+ type: ZodLiteral<"oauth-connect">;
3408
+ provider: ZodLiteral<"pipedream">;
3409
+ }, $strict>]>, ZodObject<{
3410
+ type: ZodLiteral<"secret-input">;
3411
+ title: ZodOptional<ZodString>;
3412
+ description: ZodOptional<ZodString>;
3413
+ fields: ZodArray<ZodObject<{
3414
+ requestId: ZodString;
3415
+ secretKey: ZodString;
3416
+ label: ZodOptional<ZodString>;
3417
+ reason: ZodOptional<ZodString>;
3418
+ allowedHosts: ZodDefault<ZodArray<ZodString>>;
3419
+ allowedCliCommands: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<"*">, ZodString]>>>;
3420
+ }, $strict>>;
3421
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
3422
+ type: ZodLiteral<"link">;
3423
+ kind: ZodEnum<{
3424
+ app: "app";
3425
+ }>;
3426
+ appId: ZodOptional<ZodString>;
3427
+ authorizationRequired: ZodOptional<ZodBoolean>;
3428
+ href: ZodString;
3429
+ label: ZodString;
3430
+ }, $strict>, ZodObject<{
3431
+ type: ZodLiteral<"link">;
3432
+ kind: ZodEnum<{
3433
+ file: "file";
3434
+ }>;
3435
+ label: ZodOptional<ZodString>;
3436
+ fileType: ZodEnum<{
3437
+ pdf: "pdf";
3438
+ xls: "xls";
3439
+ csv: "csv";
3440
+ html: "html";
3441
+ json: "json";
3442
+ image: "image";
3443
+ other: "other";
3073
3444
  }>;
3074
3445
  path: ZodString;
3075
- from: ZodOptional<ZodString>;
3076
- value: ZodOptional<ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
3077
- }, $strict>;
3446
+ }, $strict>], "kind">]>;
3447
+ toolUseId: ZodOptional<ZodString>;
3078
3448
  }, $strict>, ZodObject<{
3079
- type: ZodLiteral<"flat">;
3080
- spec: ZodObject<{
3081
- root: ZodString;
3082
- elements: ZodRecord<ZodString, ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
3083
- state: ZodOptional<ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
3084
- }, $strict>;
3085
- }, $strict>, ZodObject<{
3086
- type: ZodLiteral<"nested">;
3087
- spec: ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
3449
+ type: ZodLiteral<"clear">;
3450
+ widgetId: ZodString;
3451
+ source: ZodEnum<{
3452
+ harness: "harness";
3453
+ model: "model";
3454
+ }>;
3455
+ toolUseId: ZodOptional<ZodString>;
3088
3456
  }, $strict>], "type">;
3089
- }, $strict>, ZodObject<{
3090
- type: ZodLiteral<"data-slack-response">;
3091
- id: ZodOptional<ZodString>;
3092
- data: ZodDiscriminatedUnion<[ZodObject<{
3093
- kind: ZodLiteral<"no_response">;
3094
- }, $strict>, ZodObject<{
3095
- kind: ZodLiteral<"preparing_response">;
3096
- }, $strict>, ZodObject<{
3097
- content: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3098
- text: ZodString;
3099
- type: ZodLiteral<"markdown_text">;
3100
- }, $strict>, ZodObject<{
3101
- blocks: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3102
- text: ZodString;
3103
- type: ZodLiteral<"markdown">;
3104
- }, $strict>, ZodObject<{
3105
- type: ZodLiteral<"divider">;
3106
- }, $strict>, ZodObject<{
3107
- text: ZodString;
3108
- type: ZodLiteral<"header">;
3109
- }, $strict>, ZodObject<{
3110
- accessoryImage: ZodOptional<ZodObject<{
3111
- altText: ZodString;
3112
- imageUrl: ZodString;
3113
- }, $strict>>;
3114
- fields: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3115
- text: ZodString;
3116
- type: ZodLiteral<"mrkdwn">;
3117
- }, $strict>, ZodObject<{
3118
- text: ZodString;
3119
- type: ZodLiteral<"plain_text">;
3120
- }, $strict>], "type">>>;
3121
- text: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
3122
- text: ZodString;
3123
- type: ZodLiteral<"mrkdwn">;
3124
- }, $strict>, ZodObject<{
3125
- text: ZodString;
3126
- type: ZodLiteral<"plain_text">;
3127
- }, $strict>], "type">>;
3128
- type: ZodLiteral<"section">;
3129
- }, $strict>, ZodObject<{
3130
- elements: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3131
- text: ZodString;
3132
- type: ZodLiteral<"mrkdwn">;
3133
- }, $strict>, ZodObject<{
3134
- text: ZodString;
3135
- type: ZodLiteral<"plain_text">;
3136
- }, $strict>], "type">>;
3137
- type: ZodLiteral<"context">;
3138
- }, $strict>, ZodObject<{
3139
- altText: ZodString;
3140
- imageUrl: ZodString;
3141
- title: ZodOptional<ZodString>;
3142
- type: ZodLiteral<"image">;
3143
- }, $strict>, ZodObject<{
3144
- items: ZodArray<ZodObject<{
3145
- altText: ZodString;
3146
- ctaUrl: ZodOptional<ZodString>;
3147
- imageUrl: ZodString;
3148
- metadata: ZodOptional<ZodArray<ZodString>>;
3149
- text: ZodOptional<ZodString>;
3150
- title: ZodString;
3151
- }, $strict>>;
3152
- title: ZodOptional<ZodString>;
3153
- type: ZodLiteral<"creative_gallery">;
3154
- }, $strict>], "type">>;
3155
- type: ZodLiteral<"blocks">;
3156
- }, $strict>], "type">>;
3157
- kind: ZodLiteral<"response">;
3158
- }, $strict>], "kind">;
3159
3457
  }, $strict>, ZodObject<{
3160
3458
  type: ZodLiteral<"data-agent-turn-input">;
3161
3459
  id: ZodOptional<ZodString>;
@@ -3383,12 +3681,12 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3383
3681
  path: ZodString;
3384
3682
  filename: ZodString;
3385
3683
  fileType: ZodEnum<{
3386
- image: "image";
3387
3684
  pdf: "pdf";
3388
3685
  xls: "xls";
3389
3686
  csv: "csv";
3390
3687
  html: "html";
3391
3688
  json: "json";
3689
+ image: "image";
3392
3690
  other: "other";
3393
3691
  }>;
3394
3692
  op: ZodEnum<{
@@ -3425,11 +3723,11 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3425
3723
  filename: ZodString;
3426
3724
  mimeType: ZodString;
3427
3725
  fileType: ZodEnum<{
3428
- text: "text";
3429
- image: "image";
3430
3726
  pdf: "pdf";
3727
+ image: "image";
3431
3728
  other: "other";
3432
3729
  video: "video";
3730
+ text: "text";
3433
3731
  excel: "excel";
3434
3732
  }>;
3435
3733
  accessMode: ZodLiteral<"sandbox_read">;
@@ -3550,104 +3848,173 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3550
3848
  startedAt: ZodOptional<ZodNumber>;
3551
3849
  durationMs: ZodOptional<ZodNumber>;
3552
3850
  }, $strict>, ZodObject<{
3553
- type: ZodLiteral<"data-spec">;
3851
+ type: ZodLiteral<"data-widget">;
3554
3852
  id: ZodOptional<ZodString>;
3555
3853
  data: ZodDiscriminatedUnion<[ZodObject<{
3556
- type: ZodLiteral<"patch">;
3557
- patch: ZodObject<{
3558
- op: ZodEnum<{
3559
- copy: "copy";
3560
- move: "move";
3561
- remove: "remove";
3562
- replace: "replace";
3563
- add: "add";
3564
- test: "test";
3854
+ type: ZodLiteral<"set">;
3855
+ widgetId: ZodString;
3856
+ source: ZodEnum<{
3857
+ harness: "harness";
3858
+ model: "model";
3859
+ }>;
3860
+ widget: ZodUnion<readonly [ZodObject<{
3861
+ type: ZodLiteral<"creative-gallery">;
3862
+ creatives: ZodArray<ZodUnion<readonly [ZodObject<{
3863
+ id: ZodString;
3864
+ creativeOrigin: ZodOptional<ZodEnum<{
3865
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
3866
+ linkedinCreativeAsset: "linkedinCreativeAsset";
3867
+ metaAdLibraryCreative: "metaAdLibraryCreative";
3868
+ metaCreativeAsset: "metaCreativeAsset";
3869
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
3870
+ tiktokCreativeAsset: "tiktokCreativeAsset";
3871
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
3872
+ userUploadCreative: "userUploadCreative";
3873
+ youtubeCreativeAsset: "youtubeCreativeAsset";
3874
+ }>>;
3875
+ motionUrl: ZodOptional<ZodString>;
3876
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
3877
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
3878
+ brandName: ZodOptional<ZodString>;
3879
+ format: ZodEnum<{
3880
+ image: "image";
3881
+ video: "video";
3882
+ }>;
3883
+ thumbnailUrl: ZodOptional<ZodString>;
3884
+ url: ZodString;
3885
+ }, $strict>, ZodObject<{
3886
+ id: ZodString;
3887
+ creativeOrigin: ZodOptional<ZodEnum<{
3888
+ instagramAdLibraryCreative: "instagramAdLibraryCreative";
3889
+ linkedinCreativeAsset: "linkedinCreativeAsset";
3890
+ metaAdLibraryCreative: "metaAdLibraryCreative";
3891
+ metaCreativeAsset: "metaCreativeAsset";
3892
+ tiktokAdLibraryCreative: "tiktokAdLibraryCreative";
3893
+ tiktokCreativeAsset: "tiktokCreativeAsset";
3894
+ tiktokOrganicAdLibraryCreative: "tiktokOrganicAdLibraryCreative";
3895
+ userUploadCreative: "userUploadCreative";
3896
+ youtubeCreativeAsset: "youtubeCreativeAsset";
3897
+ }>>;
3898
+ motionUrl: ZodOptional<ZodString>;
3899
+ fields: ZodRecord<ZodString, ZodUnion<readonly [ZodNumber, ZodString, ZodBoolean]>>;
3900
+ fieldDeltas: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
3901
+ brandName: ZodOptional<ZodString>;
3902
+ carouselItems: ZodArray<ZodObject<{
3903
+ id: ZodString;
3904
+ format: ZodEnum<{
3905
+ image: "image";
3906
+ video: "video";
3907
+ }>;
3908
+ url: ZodString;
3909
+ thumbnailUrl: ZodOptional<ZodString>;
3910
+ }, $strict>>;
3911
+ format: ZodLiteral<"carousel">;
3912
+ thumbnailUrl: ZodOptional<ZodString>;
3913
+ url: ZodOptional<ZodString>;
3914
+ }, $strict>]>>;
3915
+ excludedCreatives: ZodOptional<ZodArray<ZodObject<{
3916
+ id: ZodString;
3917
+ reason: ZodEnum<{
3918
+ missing_url: "missing_url";
3919
+ }>;
3920
+ }, $strict>>>;
3921
+ notFound: ZodOptional<ZodArray<ZodString>>;
3922
+ unresolvedFields: ZodOptional<ZodArray<ZodString>>;
3923
+ }, $strict>, ZodObject<{
3924
+ type: ZodLiteral<"concept">;
3925
+ concepts: ZodArray<ZodObject<{
3926
+ title: ZodString;
3927
+ description: ZodString;
3928
+ tags: ZodArray<ZodObject<{
3929
+ categoryId: ZodString;
3930
+ tagName: ZodString;
3931
+ }, $strict>>;
3932
+ verbatim: ZodObject<{
3933
+ headline: ZodOptional<ZodString>;
3934
+ hook: ZodOptional<ZodString>;
3935
+ }, $strict>;
3936
+ whyItCanWork: ZodString;
3937
+ }, $strict>>;
3938
+ }, $strict>, ZodObject<{
3939
+ type: ZodLiteral<"google-drive-access">;
3940
+ }, $strict>, ZodObject<{
3941
+ type: ZodLiteral<"kpi-card">;
3942
+ title: ZodOptional<ZodString>;
3943
+ metrics: ZodArray<ZodObject<{
3944
+ label: ZodString;
3945
+ value: ZodUnion<readonly [ZodNumber, ZodString]>;
3946
+ unit: ZodOptional<ZodString>;
3947
+ goodDirection: ZodOptional<ZodEnum<{
3948
+ higher: "higher";
3949
+ lower: "lower";
3950
+ neutral: "neutral";
3951
+ }>>;
3952
+ trend: ZodOptional<ZodObject<{
3953
+ deltaPercent: ZodNumber;
3954
+ comparisonLabel: ZodOptional<ZodString>;
3955
+ }, $strict>>;
3956
+ }, $strict>>;
3957
+ }, $strict>, ZodUnion<readonly [ZodObject<{
3958
+ type: ZodLiteral<"oauth-connect">;
3959
+ provider: ZodEnum<{
3960
+ slack: "slack";
3961
+ google: "google";
3962
+ github: "github";
3963
+ notion: "notion";
3964
+ }>;
3965
+ }, $strict>, ZodObject<{
3966
+ appName: ZodString;
3967
+ appSlug: ZodString;
3968
+ type: ZodLiteral<"oauth-connect">;
3969
+ provider: ZodLiteral<"pipedream">;
3970
+ }, $strict>]>, ZodObject<{
3971
+ type: ZodLiteral<"secret-input">;
3972
+ title: ZodOptional<ZodString>;
3973
+ description: ZodOptional<ZodString>;
3974
+ fields: ZodArray<ZodObject<{
3975
+ requestId: ZodString;
3976
+ secretKey: ZodString;
3977
+ label: ZodOptional<ZodString>;
3978
+ reason: ZodOptional<ZodString>;
3979
+ allowedHosts: ZodDefault<ZodArray<ZodString>>;
3980
+ allowedCliCommands: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<"*">, ZodString]>>>;
3981
+ }, $strict>>;
3982
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
3983
+ type: ZodLiteral<"link">;
3984
+ kind: ZodEnum<{
3985
+ app: "app";
3986
+ }>;
3987
+ appId: ZodOptional<ZodString>;
3988
+ authorizationRequired: ZodOptional<ZodBoolean>;
3989
+ href: ZodString;
3990
+ label: ZodString;
3991
+ }, $strict>, ZodObject<{
3992
+ type: ZodLiteral<"link">;
3993
+ kind: ZodEnum<{
3994
+ file: "file";
3995
+ }>;
3996
+ label: ZodOptional<ZodString>;
3997
+ fileType: ZodEnum<{
3998
+ pdf: "pdf";
3999
+ xls: "xls";
4000
+ csv: "csv";
4001
+ html: "html";
4002
+ json: "json";
4003
+ image: "image";
4004
+ other: "other";
3565
4005
  }>;
3566
4006
  path: ZodString;
3567
- from: ZodOptional<ZodString>;
3568
- value: ZodOptional<ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
3569
- }, $strict>;
3570
- }, $strict>, ZodObject<{
3571
- type: ZodLiteral<"flat">;
3572
- spec: ZodObject<{
3573
- root: ZodString;
3574
- elements: ZodRecord<ZodString, ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
3575
- state: ZodOptional<ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>>;
3576
- }, $strict>;
4007
+ }, $strict>], "kind">]>;
4008
+ toolUseId: ZodOptional<ZodString>;
3577
4009
  }, $strict>, ZodObject<{
3578
- type: ZodLiteral<"nested">;
3579
- spec: ZodRecord<ZodString, ZodType<JsonValue, unknown, $ZodTypeInternals<JsonValue, unknown>>>;
4010
+ type: ZodLiteral<"clear">;
4011
+ widgetId: ZodString;
4012
+ source: ZodEnum<{
4013
+ harness: "harness";
4014
+ model: "model";
4015
+ }>;
4016
+ toolUseId: ZodOptional<ZodString>;
3580
4017
  }, $strict>], "type">;
3581
- }, $strict>, ZodObject<{
3582
- type: ZodLiteral<"data-slack-response">;
3583
- id: ZodOptional<ZodString>;
3584
- data: ZodDiscriminatedUnion<[ZodObject<{
3585
- kind: ZodLiteral<"no_response">;
3586
- }, $strict>, ZodObject<{
3587
- kind: ZodLiteral<"preparing_response">;
3588
- }, $strict>, ZodObject<{
3589
- content: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3590
- text: ZodString;
3591
- type: ZodLiteral<"markdown_text">;
3592
- }, $strict>, ZodObject<{
3593
- blocks: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3594
- text: ZodString;
3595
- type: ZodLiteral<"markdown">;
3596
- }, $strict>, ZodObject<{
3597
- type: ZodLiteral<"divider">;
3598
- }, $strict>, ZodObject<{
3599
- text: ZodString;
3600
- type: ZodLiteral<"header">;
3601
- }, $strict>, ZodObject<{
3602
- accessoryImage: ZodOptional<ZodObject<{
3603
- altText: ZodString;
3604
- imageUrl: ZodString;
3605
- }, $strict>>;
3606
- fields: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3607
- text: ZodString;
3608
- type: ZodLiteral<"mrkdwn">;
3609
- }, $strict>, ZodObject<{
3610
- text: ZodString;
3611
- type: ZodLiteral<"plain_text">;
3612
- }, $strict>], "type">>>;
3613
- text: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
3614
- text: ZodString;
3615
- type: ZodLiteral<"mrkdwn">;
3616
- }, $strict>, ZodObject<{
3617
- text: ZodString;
3618
- type: ZodLiteral<"plain_text">;
3619
- }, $strict>], "type">>;
3620
- type: ZodLiteral<"section">;
3621
- }, $strict>, ZodObject<{
3622
- elements: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
3623
- text: ZodString;
3624
- type: ZodLiteral<"mrkdwn">;
3625
- }, $strict>, ZodObject<{
3626
- text: ZodString;
3627
- type: ZodLiteral<"plain_text">;
3628
- }, $strict>], "type">>;
3629
- type: ZodLiteral<"context">;
3630
- }, $strict>, ZodObject<{
3631
- altText: ZodString;
3632
- imageUrl: ZodString;
3633
- title: ZodOptional<ZodString>;
3634
- type: ZodLiteral<"image">;
3635
- }, $strict>, ZodObject<{
3636
- items: ZodArray<ZodObject<{
3637
- altText: ZodString;
3638
- ctaUrl: ZodOptional<ZodString>;
3639
- imageUrl: ZodString;
3640
- metadata: ZodOptional<ZodArray<ZodString>>;
3641
- text: ZodOptional<ZodString>;
3642
- title: ZodString;
3643
- }, $strict>>;
3644
- title: ZodOptional<ZodString>;
3645
- type: ZodLiteral<"creative_gallery">;
3646
- }, $strict>], "type">>;
3647
- type: ZodLiteral<"blocks">;
3648
- }, $strict>], "type">>;
3649
- kind: ZodLiteral<"response">;
3650
- }, $strict>], "kind">;
3651
4018
  }, $strict>, ZodObject<{
3652
4019
  type: ZodLiteral<"data-agent-turn-input">;
3653
4020
  id: ZodOptional<ZodString>;
@@ -3875,12 +4242,12 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3875
4242
  path: ZodString;
3876
4243
  filename: ZodString;
3877
4244
  fileType: ZodEnum<{
3878
- image: "image";
3879
4245
  pdf: "pdf";
3880
4246
  xls: "xls";
3881
4247
  csv: "csv";
3882
4248
  html: "html";
3883
4249
  json: "json";
4250
+ image: "image";
3884
4251
  other: "other";
3885
4252
  }>;
3886
4253
  op: ZodEnum<{
@@ -3917,11 +4284,11 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3917
4284
  filename: ZodString;
3918
4285
  mimeType: ZodString;
3919
4286
  fileType: ZodEnum<{
3920
- text: "text";
3921
- image: "image";
3922
4287
  pdf: "pdf";
4288
+ image: "image";
3923
4289
  other: "other";
3924
4290
  video: "video";
4291
+ text: "text";
3925
4292
  excel: "excel";
3926
4293
  }>;
3927
4294
  accessMode: ZodLiteral<"sandbox_read">;
@@ -3930,32 +4297,218 @@ declare const agentMessageResponseSchema: ZodDiscriminatedUnion<[ZodObject<{
3930
4297
  createdDate: ZodString;
3931
4298
  updatedDate: ZodString;
3932
4299
  }, $strip>>>;
4300
+ readonly modelFallback?: ZodDefault<ZodNullable<ZodObject<{
4301
+ activatedAt: ZodString;
4302
+ activatedByExecutionId: ZodString;
4303
+ activatedByMessageId: ZodString;
4304
+ config: ZodDiscriminatedUnion<[ZodObject<{
4305
+ model: ZodLiteral<"claude-opus-4-7">;
4306
+ anthropic: ZodObject<{
4307
+ thinkingLevel: ZodEnum<{
4308
+ medium: "medium";
4309
+ low: "low";
4310
+ high: "high";
4311
+ }>;
4312
+ }, $strict>;
4313
+ }, $strict>, ZodObject<{
4314
+ model: ZodLiteral<"claude-opus-4-8">;
4315
+ anthropic: ZodObject<{
4316
+ thinkingLevel: ZodEnum<{
4317
+ medium: "medium";
4318
+ low: "low";
4319
+ high: "high";
4320
+ }>;
4321
+ }, $strict>;
4322
+ }, $strict>, ZodObject<{
4323
+ model: ZodLiteral<"claude-sonnet-4-6">;
4324
+ anthropic: ZodObject<{
4325
+ thinkingLevel: ZodEnum<{
4326
+ medium: "medium";
4327
+ low: "low";
4328
+ high: "high";
4329
+ }>;
4330
+ }, $strict>;
4331
+ }, $strict>, ZodObject<{
4332
+ model: ZodLiteral<"gpt-5.4">;
4333
+ openai: ZodObject<{
4334
+ reasoningEffort: ZodEnum<{
4335
+ medium: "medium";
4336
+ low: "low";
4337
+ high: "high";
4338
+ xhigh: "xhigh";
4339
+ minimal: "minimal";
4340
+ }>;
4341
+ }, $strict>;
4342
+ }, $strict>, ZodObject<{
4343
+ model: ZodLiteral<"gpt-5.5">;
4344
+ openai: ZodObject<{
4345
+ reasoningEffort: ZodEnum<{
4346
+ medium: "medium";
4347
+ low: "low";
4348
+ high: "high";
4349
+ xhigh: "xhigh";
4350
+ minimal: "minimal";
4351
+ }>;
4352
+ }, $strict>;
4353
+ }, $strict>, ZodObject<{
4354
+ model: ZodLiteral<"gpt-5.4-mini">;
4355
+ openai: ZodObject<{
4356
+ reasoningEffort: ZodEnum<{
4357
+ medium: "medium";
4358
+ low: "low";
4359
+ high: "high";
4360
+ xhigh: "xhigh";
4361
+ minimal: "minimal";
4362
+ }>;
4363
+ }, $strict>;
4364
+ }, $strict>, ZodObject<{
4365
+ model: ZodLiteral<"gemini-3.1-pro-preview">;
4366
+ google: ZodObject<{
4367
+ thinkingLevel: ZodEnum<{
4368
+ low: "low";
4369
+ high: "high";
4370
+ }>;
4371
+ }, $strict>;
4372
+ }, $strict>, ZodObject<{
4373
+ model: ZodLiteral<"glm-5.2">;
4374
+ glm: ZodObject<{
4375
+ thinkingLevel: ZodEnum<{
4376
+ high: "high";
4377
+ xhigh: "xhigh";
4378
+ }>;
4379
+ }, $strict>;
4380
+ }, $strict>], "model">;
4381
+ reason: ZodObject<{
4382
+ kind: ZodEnum<{
4383
+ provider_error: "provider_error";
4384
+ provider_unavailable: "provider_unavailable";
4385
+ provider_rate_limited: "provider_rate_limited";
4386
+ }>;
4387
+ providerErrorType: ZodOptional<ZodString>;
4388
+ providerStatusCode: ZodOptional<ZodNumber>;
4389
+ }, $strict>;
4390
+ }, $strict>>> | undefined;
3933
4391
  readonly role: ZodLiteral<"assistant">;
3934
4392
  readonly deliveryState: ZodOptional<ZodUndefined>;
3935
4393
  }, $strip>], "role">;
3936
4394
  type AgentMessageResponse = output<typeof agentMessageResponseSchema>;
3937
- declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
4395
+ declare const agentConversationResponseSchema: ZodPipe<ZodTransform<unknown, unknown>, ZodDiscriminatedUnion<[ZodObject<{
3938
4396
  status: ZodEnum<{
3939
4397
  active: "active";
3940
4398
  terminated: "terminated";
3941
4399
  }>;
3942
4400
  id: ZodString;
3943
- readonly origin: ZodLiteral<"web">;
3944
4401
  title: ZodNullable<ZodString>;
3945
4402
  harness: ZodEnum<{
3946
4403
  harneth: "harneth";
3947
4404
  claude_agent_sdk: "claude_agent_sdk";
3948
4405
  pi_coding_agent: "pi_coding_agent";
3949
4406
  }>;
4407
+ readonly origin: ZodLiteral<"web">;
3950
4408
  createdDate: ZodString;
3951
4409
  updatedDate: ZodString;
3952
4410
  readonly slackSurface: ZodNull;
3953
4411
  organizationId: ZodString;
3954
4412
  userId: ZodNullable<ZodString>;
4413
+ modelFallback: ZodNullable<ZodObject<{
4414
+ activatedAt: ZodString;
4415
+ activatedByExecutionId: ZodString;
4416
+ activatedByMessageId: ZodString;
4417
+ reason: ZodObject<{
4418
+ kind: ZodEnum<{
4419
+ provider_error: "provider_error";
4420
+ provider_unavailable: "provider_unavailable";
4421
+ provider_rate_limited: "provider_rate_limited";
4422
+ }>;
4423
+ providerErrorType: ZodOptional<ZodString>;
4424
+ providerStatusCode: ZodOptional<ZodNumber>;
4425
+ }, $strict>;
4426
+ config: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
4427
+ model: ZodLiteral<"claude-opus-4-7">;
4428
+ anthropic: ZodObject<{
4429
+ thinkingLevel: ZodEnum<{
4430
+ medium: "medium";
4431
+ low: "low";
4432
+ high: "high";
4433
+ }>;
4434
+ }, $strict>;
4435
+ }, $strict>, ZodObject<{
4436
+ model: ZodLiteral<"claude-opus-4-8">;
4437
+ anthropic: ZodObject<{
4438
+ thinkingLevel: ZodEnum<{
4439
+ medium: "medium";
4440
+ low: "low";
4441
+ high: "high";
4442
+ }>;
4443
+ }, $strict>;
4444
+ }, $strict>, ZodObject<{
4445
+ model: ZodLiteral<"claude-sonnet-4-6">;
4446
+ anthropic: ZodObject<{
4447
+ thinkingLevel: ZodEnum<{
4448
+ medium: "medium";
4449
+ low: "low";
4450
+ high: "high";
4451
+ }>;
4452
+ }, $strict>;
4453
+ }, $strict>, ZodObject<{
4454
+ model: ZodLiteral<"gpt-5.4">;
4455
+ openai: ZodObject<{
4456
+ reasoningEffort: ZodEnum<{
4457
+ medium: "medium";
4458
+ low: "low";
4459
+ high: "high";
4460
+ xhigh: "xhigh";
4461
+ minimal: "minimal";
4462
+ }>;
4463
+ }, $strict>;
4464
+ }, $strict>, ZodObject<{
4465
+ model: ZodLiteral<"gpt-5.5">;
4466
+ openai: ZodObject<{
4467
+ reasoningEffort: ZodEnum<{
4468
+ medium: "medium";
4469
+ low: "low";
4470
+ high: "high";
4471
+ xhigh: "xhigh";
4472
+ minimal: "minimal";
4473
+ }>;
4474
+ }, $strict>;
4475
+ }, $strict>, ZodObject<{
4476
+ model: ZodLiteral<"gpt-5.4-mini">;
4477
+ openai: ZodObject<{
4478
+ reasoningEffort: ZodEnum<{
4479
+ medium: "medium";
4480
+ low: "low";
4481
+ high: "high";
4482
+ xhigh: "xhigh";
4483
+ minimal: "minimal";
4484
+ }>;
4485
+ }, $strict>;
4486
+ }, $strict>, ZodObject<{
4487
+ model: ZodLiteral<"gemini-3.1-pro-preview">;
4488
+ google: ZodObject<{
4489
+ thinkingLevel: ZodEnum<{
4490
+ low: "low";
4491
+ high: "high";
4492
+ }>;
4493
+ }, $strict>;
4494
+ }, $strict>, ZodObject<{
4495
+ model: ZodLiteral<"glm-5.2">;
4496
+ glm: ZodObject<{
4497
+ thinkingLevel: ZodEnum<{
4498
+ high: "high";
4499
+ xhigh: "xhigh";
4500
+ }>;
4501
+ }, $strict>;
4502
+ }, $strict>], "model">, ZodObject<{
4503
+ model: ZodString;
4504
+ }, $catchall<ZodJSONSchema>>]>;
4505
+ }, $strict>>;
3955
4506
  organization: ZodOptional<ZodObject<{
3956
4507
  id: ZodString;
3957
4508
  name: ZodString;
3958
- }, $strict>>;
4509
+ }, $strip>>;
4510
+ modelFallbackExpiresAt: ZodDefault<ZodNullable<ZodString>>;
4511
+ modelFallbackLastAssistantMessageAt: ZodDefault<ZodNullable<ZodString>>;
3959
4512
  harnessConfig: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
3960
4513
  harness: ZodLiteral<"claude_agent_sdk">;
3961
4514
  model: ZodLiteral<"claude-opus-4-6">;
@@ -4968,65 +5521,160 @@ declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
4968
5521
  }>;
4969
5522
  readonly externalProvider: ZodNull;
4970
5523
  readonly slackConversationContext: ZodNull;
5524
+ workspace: ZodNullable<ZodObject<{
5525
+ id: ZodString;
5526
+ name: ZodString;
5527
+ }, $strip>>;
4971
5528
  hasSandbox: ZodBoolean;
4972
5529
  sandboxId: ZodNullable<ZodString>;
4973
5530
  metadata: ZodObject<{
4974
5531
  workspaceId: ZodNullable<ZodString>;
4975
5532
  }, $strict>;
4976
- workspace: ZodNullable<ZodObject<{
4977
- id: ZodString;
4978
- name: ZodString;
4979
- }, $strict>>;
4980
5533
  organizationBilling: ZodObject<{
4981
5534
  breakdowns: ZodReadonly<ZodObject<{
4982
5535
  origin: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
4983
5536
  origin: ZodEnum<{
4984
5537
  web: "web";
4985
- routine: "routine";
4986
5538
  slack: "slack";
5539
+ routine: "routine";
4987
5540
  }>;
4988
5541
  usagePercent: ZodNumber;
4989
- }, $strict>>>>;
5542
+ }, $strip>>>>;
4990
5543
  slackChannels: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
4991
5544
  id: ZodString;
4992
5545
  name: ZodNullable<ZodString>;
4993
5546
  usagePercent: ZodNumber;
4994
- }, $strict>>>>;
5547
+ }, $strip>>>>;
4995
5548
  users: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
4996
5549
  email: ZodString;
4997
5550
  usagePercent: ZodNumber;
4998
- }, $strict>>>>;
5551
+ }, $strip>>>>;
4999
5552
  workspaces: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
5000
5553
  id: ZodString;
5001
5554
  name: ZodString;
5002
5555
  usagePercent: ZodNumber;
5003
- }, $strict>>>>;
5004
- }, $strict>>;
5556
+ }, $strip>>>>;
5557
+ }, $strip>>;
5005
5558
  periodEndAt: ZodNullable<ZodString>;
5006
5559
  usagePercent: ZodNullable<ZodNumber>;
5007
- }, $strict>;
5008
- }, $strict>, ZodObject<{
5560
+ }, $strip>;
5561
+ }, $strip>, ZodObject<{
5009
5562
  status: ZodEnum<{
5010
5563
  active: "active";
5011
5564
  terminated: "terminated";
5012
5565
  }>;
5013
5566
  id: ZodString;
5014
- readonly origin: ZodLiteral<"routine">;
5015
5567
  title: ZodNullable<ZodString>;
5016
5568
  harness: ZodEnum<{
5017
5569
  harneth: "harneth";
5018
5570
  claude_agent_sdk: "claude_agent_sdk";
5019
5571
  pi_coding_agent: "pi_coding_agent";
5020
5572
  }>;
5573
+ readonly origin: ZodLiteral<"routine">;
5021
5574
  createdDate: ZodString;
5022
5575
  updatedDate: ZodString;
5023
5576
  readonly slackSurface: ZodNull;
5024
5577
  organizationId: ZodString;
5025
5578
  userId: ZodNullable<ZodString>;
5579
+ modelFallback: ZodNullable<ZodObject<{
5580
+ activatedAt: ZodString;
5581
+ activatedByExecutionId: ZodString;
5582
+ activatedByMessageId: ZodString;
5583
+ reason: ZodObject<{
5584
+ kind: ZodEnum<{
5585
+ provider_error: "provider_error";
5586
+ provider_unavailable: "provider_unavailable";
5587
+ provider_rate_limited: "provider_rate_limited";
5588
+ }>;
5589
+ providerErrorType: ZodOptional<ZodString>;
5590
+ providerStatusCode: ZodOptional<ZodNumber>;
5591
+ }, $strict>;
5592
+ config: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
5593
+ model: ZodLiteral<"claude-opus-4-7">;
5594
+ anthropic: ZodObject<{
5595
+ thinkingLevel: ZodEnum<{
5596
+ medium: "medium";
5597
+ low: "low";
5598
+ high: "high";
5599
+ }>;
5600
+ }, $strict>;
5601
+ }, $strict>, ZodObject<{
5602
+ model: ZodLiteral<"claude-opus-4-8">;
5603
+ anthropic: ZodObject<{
5604
+ thinkingLevel: ZodEnum<{
5605
+ medium: "medium";
5606
+ low: "low";
5607
+ high: "high";
5608
+ }>;
5609
+ }, $strict>;
5610
+ }, $strict>, ZodObject<{
5611
+ model: ZodLiteral<"claude-sonnet-4-6">;
5612
+ anthropic: ZodObject<{
5613
+ thinkingLevel: ZodEnum<{
5614
+ medium: "medium";
5615
+ low: "low";
5616
+ high: "high";
5617
+ }>;
5618
+ }, $strict>;
5619
+ }, $strict>, ZodObject<{
5620
+ model: ZodLiteral<"gpt-5.4">;
5621
+ openai: ZodObject<{
5622
+ reasoningEffort: ZodEnum<{
5623
+ medium: "medium";
5624
+ low: "low";
5625
+ high: "high";
5626
+ xhigh: "xhigh";
5627
+ minimal: "minimal";
5628
+ }>;
5629
+ }, $strict>;
5630
+ }, $strict>, ZodObject<{
5631
+ model: ZodLiteral<"gpt-5.5">;
5632
+ openai: ZodObject<{
5633
+ reasoningEffort: ZodEnum<{
5634
+ medium: "medium";
5635
+ low: "low";
5636
+ high: "high";
5637
+ xhigh: "xhigh";
5638
+ minimal: "minimal";
5639
+ }>;
5640
+ }, $strict>;
5641
+ }, $strict>, ZodObject<{
5642
+ model: ZodLiteral<"gpt-5.4-mini">;
5643
+ openai: ZodObject<{
5644
+ reasoningEffort: ZodEnum<{
5645
+ medium: "medium";
5646
+ low: "low";
5647
+ high: "high";
5648
+ xhigh: "xhigh";
5649
+ minimal: "minimal";
5650
+ }>;
5651
+ }, $strict>;
5652
+ }, $strict>, ZodObject<{
5653
+ model: ZodLiteral<"gemini-3.1-pro-preview">;
5654
+ google: ZodObject<{
5655
+ thinkingLevel: ZodEnum<{
5656
+ low: "low";
5657
+ high: "high";
5658
+ }>;
5659
+ }, $strict>;
5660
+ }, $strict>, ZodObject<{
5661
+ model: ZodLiteral<"glm-5.2">;
5662
+ glm: ZodObject<{
5663
+ thinkingLevel: ZodEnum<{
5664
+ high: "high";
5665
+ xhigh: "xhigh";
5666
+ }>;
5667
+ }, $strict>;
5668
+ }, $strict>], "model">, ZodObject<{
5669
+ model: ZodString;
5670
+ }, $catchall<ZodJSONSchema>>]>;
5671
+ }, $strict>>;
5026
5672
  organization: ZodOptional<ZodObject<{
5027
5673
  id: ZodString;
5028
5674
  name: ZodString;
5029
- }, $strict>>;
5675
+ }, $strip>>;
5676
+ modelFallbackExpiresAt: ZodDefault<ZodNullable<ZodString>>;
5677
+ modelFallbackLastAssistantMessageAt: ZodDefault<ZodNullable<ZodString>>;
5030
5678
  harnessConfig: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
5031
5679
  harness: ZodLiteral<"claude_agent_sdk">;
5032
5680
  model: ZodLiteral<"claude-opus-4-6">;
@@ -6042,54 +6690,54 @@ declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
6042
6690
  isDefault: ZodBoolean;
6043
6691
  }, $strict>>;
6044
6692
  routineId: ZodString;
6045
- }, $strict>;
6693
+ }, $strip>;
6046
6694
  readonly hasSandbox: ZodBoolean;
6047
6695
  readonly sandboxId: ZodNullable<ZodString>;
6048
6696
  readonly metadata: ZodObject<{
6049
6697
  workspaceId: ZodNull;
6050
- }, $strict>;
6698
+ }, $strip>;
6051
6699
  readonly workspace: ZodNull;
6052
6700
  organizationBilling: ZodObject<{
6053
6701
  breakdowns: ZodReadonly<ZodObject<{
6054
6702
  origin: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
6055
6703
  origin: ZodEnum<{
6056
6704
  web: "web";
6057
- routine: "routine";
6058
6705
  slack: "slack";
6706
+ routine: "routine";
6059
6707
  }>;
6060
6708
  usagePercent: ZodNumber;
6061
- }, $strict>>>>;
6709
+ }, $strip>>>>;
6062
6710
  slackChannels: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
6063
6711
  id: ZodString;
6064
6712
  name: ZodNullable<ZodString>;
6065
6713
  usagePercent: ZodNumber;
6066
- }, $strict>>>>;
6714
+ }, $strip>>>>;
6067
6715
  users: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
6068
6716
  email: ZodString;
6069
6717
  usagePercent: ZodNumber;
6070
- }, $strict>>>>;
6718
+ }, $strip>>>>;
6071
6719
  workspaces: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
6072
6720
  id: ZodString;
6073
6721
  name: ZodString;
6074
6722
  usagePercent: ZodNumber;
6075
- }, $strict>>>>;
6076
- }, $strict>>;
6723
+ }, $strip>>>>;
6724
+ }, $strip>>;
6077
6725
  periodEndAt: ZodNullable<ZodString>;
6078
6726
  usagePercent: ZodNullable<ZodNumber>;
6079
- }, $strict>;
6080
- }, $strict>, ZodObject<{
6727
+ }, $strip>;
6728
+ }, $strip>, ZodObject<{
6081
6729
  status: ZodEnum<{
6082
6730
  active: "active";
6083
6731
  terminated: "terminated";
6084
6732
  }>;
6085
6733
  id: ZodString;
6086
- readonly origin: ZodLiteral<"external">;
6087
6734
  title: ZodNullable<ZodString>;
6088
6735
  harness: ZodEnum<{
6089
6736
  harneth: "harneth";
6090
6737
  claude_agent_sdk: "claude_agent_sdk";
6091
6738
  pi_coding_agent: "pi_coding_agent";
6092
6739
  }>;
6740
+ readonly origin: ZodLiteral<"external">;
6093
6741
  createdDate: ZodString;
6094
6742
  updatedDate: ZodString;
6095
6743
  readonly slackSurface: ZodEnum<{
@@ -6098,10 +6746,105 @@ declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
6098
6746
  }>;
6099
6747
  organizationId: ZodString;
6100
6748
  userId: ZodNullable<ZodString>;
6749
+ modelFallback: ZodNullable<ZodObject<{
6750
+ activatedAt: ZodString;
6751
+ activatedByExecutionId: ZodString;
6752
+ activatedByMessageId: ZodString;
6753
+ reason: ZodObject<{
6754
+ kind: ZodEnum<{
6755
+ provider_error: "provider_error";
6756
+ provider_unavailable: "provider_unavailable";
6757
+ provider_rate_limited: "provider_rate_limited";
6758
+ }>;
6759
+ providerErrorType: ZodOptional<ZodString>;
6760
+ providerStatusCode: ZodOptional<ZodNumber>;
6761
+ }, $strict>;
6762
+ config: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
6763
+ model: ZodLiteral<"claude-opus-4-7">;
6764
+ anthropic: ZodObject<{
6765
+ thinkingLevel: ZodEnum<{
6766
+ medium: "medium";
6767
+ low: "low";
6768
+ high: "high";
6769
+ }>;
6770
+ }, $strict>;
6771
+ }, $strict>, ZodObject<{
6772
+ model: ZodLiteral<"claude-opus-4-8">;
6773
+ anthropic: ZodObject<{
6774
+ thinkingLevel: ZodEnum<{
6775
+ medium: "medium";
6776
+ low: "low";
6777
+ high: "high";
6778
+ }>;
6779
+ }, $strict>;
6780
+ }, $strict>, ZodObject<{
6781
+ model: ZodLiteral<"claude-sonnet-4-6">;
6782
+ anthropic: ZodObject<{
6783
+ thinkingLevel: ZodEnum<{
6784
+ medium: "medium";
6785
+ low: "low";
6786
+ high: "high";
6787
+ }>;
6788
+ }, $strict>;
6789
+ }, $strict>, ZodObject<{
6790
+ model: ZodLiteral<"gpt-5.4">;
6791
+ openai: ZodObject<{
6792
+ reasoningEffort: ZodEnum<{
6793
+ medium: "medium";
6794
+ low: "low";
6795
+ high: "high";
6796
+ xhigh: "xhigh";
6797
+ minimal: "minimal";
6798
+ }>;
6799
+ }, $strict>;
6800
+ }, $strict>, ZodObject<{
6801
+ model: ZodLiteral<"gpt-5.5">;
6802
+ openai: ZodObject<{
6803
+ reasoningEffort: ZodEnum<{
6804
+ medium: "medium";
6805
+ low: "low";
6806
+ high: "high";
6807
+ xhigh: "xhigh";
6808
+ minimal: "minimal";
6809
+ }>;
6810
+ }, $strict>;
6811
+ }, $strict>, ZodObject<{
6812
+ model: ZodLiteral<"gpt-5.4-mini">;
6813
+ openai: ZodObject<{
6814
+ reasoningEffort: ZodEnum<{
6815
+ medium: "medium";
6816
+ low: "low";
6817
+ high: "high";
6818
+ xhigh: "xhigh";
6819
+ minimal: "minimal";
6820
+ }>;
6821
+ }, $strict>;
6822
+ }, $strict>, ZodObject<{
6823
+ model: ZodLiteral<"gemini-3.1-pro-preview">;
6824
+ google: ZodObject<{
6825
+ thinkingLevel: ZodEnum<{
6826
+ low: "low";
6827
+ high: "high";
6828
+ }>;
6829
+ }, $strict>;
6830
+ }, $strict>, ZodObject<{
6831
+ model: ZodLiteral<"glm-5.2">;
6832
+ glm: ZodObject<{
6833
+ thinkingLevel: ZodEnum<{
6834
+ high: "high";
6835
+ xhigh: "xhigh";
6836
+ }>;
6837
+ }, $strict>;
6838
+ }, $strict>], "model">, ZodObject<{
6839
+ model: ZodString;
6840
+ }, $catchall<ZodJSONSchema>>]>;
6841
+ }, $strict>>;
6101
6842
  organization: ZodOptional<ZodObject<{
6102
6843
  id: ZodString;
6103
6844
  name: ZodString;
6104
- }, $strict>>;
6845
+ }, $strip>>;
6846
+ modelFallbackExpiresAt: ZodDefault<ZodNullable<ZodString>>;
6847
+ modelFallbackLastAssistantMessageAt: ZodDefault<ZodNullable<ZodString>>;
6105
6848
  harnessConfig: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
6106
6849
  harness: ZodLiteral<"claude_agent_sdk">;
6107
6850
  model: ZodLiteral<"claude-opus-4-6">;
@@ -7119,7 +7862,7 @@ declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
7119
7862
  sourceChannelName: ZodNullable<ZodString>;
7120
7863
  surface: ZodLiteral<"app_thread">;
7121
7864
  threadTs: ZodString;
7122
- }, $strict>, ZodObject<{
7865
+ }, $strip>, ZodObject<{
7123
7866
  conversationName: ZodString;
7124
7867
  slackConversationId: ZodString;
7125
7868
  teamId: ZodOptional<ZodString>;
@@ -7127,46 +7870,46 @@ declare const agentConversationSchema: ZodDiscriminatedUnion<[ZodObject<{
7127
7870
  sourceChannelName: ZodNullable<ZodString>;
7128
7871
  surface: ZodLiteral<"channel_thread">;
7129
7872
  threadTs: ZodString;
7130
- }, $strict>], "surface">;
7873
+ }, $strip>], "surface">;
7874
+ workspace: ZodNullable<ZodObject<{
7875
+ id: ZodString;
7876
+ name: ZodString;
7877
+ }, $strip>>;
7131
7878
  hasSandbox: ZodBoolean;
7132
7879
  sandboxId: ZodNullable<ZodString>;
7133
7880
  metadata: ZodObject<{
7134
7881
  workspaceId: ZodNullable<ZodString>;
7135
7882
  }, $strict>;
7136
- workspace: ZodNullable<ZodObject<{
7137
- id: ZodString;
7138
- name: ZodString;
7139
- }, $strict>>;
7140
7883
  organizationBilling: ZodObject<{
7141
7884
  breakdowns: ZodReadonly<ZodObject<{
7142
7885
  origin: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
7143
7886
  origin: ZodEnum<{
7144
7887
  web: "web";
7145
- routine: "routine";
7146
7888
  slack: "slack";
7889
+ routine: "routine";
7147
7890
  }>;
7148
7891
  usagePercent: ZodNumber;
7149
- }, $strict>>>>;
7892
+ }, $strip>>>>;
7150
7893
  slackChannels: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
7151
7894
  id: ZodString;
7152
7895
  name: ZodNullable<ZodString>;
7153
7896
  usagePercent: ZodNumber;
7154
- }, $strict>>>>;
7897
+ }, $strip>>>>;
7155
7898
  users: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
7156
7899
  email: ZodString;
7157
7900
  usagePercent: ZodNumber;
7158
- }, $strict>>>>;
7901
+ }, $strip>>>>;
7159
7902
  workspaces: ZodReadonly<ZodArray<ZodReadonly<ZodObject<{
7160
7903
  id: ZodString;
7161
7904
  name: ZodString;
7162
7905
  usagePercent: ZodNumber;
7163
- }, $strict>>>>;
7164
- }, $strict>>;
7906
+ }, $strip>>>>;
7907
+ }, $strip>>;
7165
7908
  periodEndAt: ZodNullable<ZodString>;
7166
7909
  usagePercent: ZodNullable<ZodNumber>;
7167
- }, $strict>;
7168
- }, $strict>], "origin">;
7169
- type AgentConversation = output<typeof agentConversationSchema>;
7910
+ }, $strip>;
7911
+ }, $strip>], "origin">>;
7912
+ type AgentConversationResponse = output<typeof agentConversationResponseSchema>;
7170
7913
  declare const agentConversationExecutionSchema: ZodObject<{
7171
7914
  active: ZodNullable<ZodObject<{
7172
7915
  executionId: ZodString;
@@ -7197,12 +7940,12 @@ declare const availableSecretMetadataSchema: ZodObject<{
7197
7940
  updatedAtMs: ZodNumber;
7198
7941
  }, $strict>;
7199
7942
  type AvailableSecretMetadata = output<typeof availableSecretMetadataSchema>;
7200
- type ConversationState<TConversation, TMessage = AgentMessage> = Readonly<{
7943
+ type ConversationState<TConversation, TMessage = AgentMessage, TExecution = AgentConversationExecution, TSecret = AvailableSecretMetadata> = Readonly<{
7201
7944
  conversation: TConversation;
7202
7945
  cursor: AgentConversationCursor;
7203
- execution: AgentConversationExecution;
7946
+ execution: TExecution;
7204
7947
  messages: TMessage[];
7205
- availableSecrets: readonly AvailableSecretMetadata[];
7948
+ availableSecrets: readonly TSecret[];
7206
7949
  }>;
7207
7950
  //#endregion
7208
7951
  //#region src/conversation.d.ts
@@ -7235,11 +7978,11 @@ type RunnethConversationParsedOptions = Readonly<{
7235
7978
  values: readonly string[];
7236
7979
  workspaceId?: string;
7237
7980
  }>;
7238
- type RunnethConversationState = ConversationState<AgentConversation, AgentMessageResponse>;
7981
+ type RunnethConversationState = ConversationState<AgentConversationResponse, AgentMessageResponse>;
7239
7982
  declare const normalizeRunnethApiBaseUrl: (value: string) => string;
7240
7983
  declare const parseRunnethConversationArgs: (argv: readonly string[], parseNumber: (rawValue: string, label: string) => number) => RunnethConversationParsedOptions;
7241
7984
  declare const resolveRunnethConversationOptions: (parsed: RunnethConversationParsedOptions) => Promise<RunnethConversationOptions>;
7242
- declare const createConversation: (options: RunnethConversationOptions) => Promise<AgentConversation>;
7985
+ declare const createConversation: (options: RunnethConversationOptions) => Promise<AgentConversationResponse>;
7243
7986
  declare const fetchConversationState: (options: RunnethConversationOptions, conversationId: string) => Promise<RunnethConversationState>;
7244
7987
  declare const sendMessage: (options: RunnethConversationOptions, input: Readonly<{
7245
7988
  conversationId: string;