@get-bb/plugin-sdk 0.6.37 → 0.6.39

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.
@@ -708,6 +708,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
708
708
  type: z$1.ZodLiteral<"turn/input/accepted">;
709
709
  }, z$1.core.$strict>, z$1.ZodObject<{
710
710
  providerThreadId: z$1.ZodString;
711
+ source: z$1.ZodOptional<z$1.ZodLiteral<"agent">>;
711
712
  threadId: z$1.ZodString;
712
713
  threadName: z$1.ZodString;
713
714
  type: z$1.ZodLiteral<"thread/name/updated">;
@@ -2635,6 +2636,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2635
2636
  type: z$1.ZodLiteral<"thread/tokenUsage/updated">;
2636
2637
  }, z$1.core.$strip>, z$1.ZodObject<{
2637
2638
  contextWindowUsage: z$1.ZodObject<{
2639
+ cost: z$1.ZodOptional<z$1.ZodObject<{
2640
+ amount: z$1.ZodNumber;
2641
+ currency: z$1.ZodString;
2642
+ }, z$1.core.$strip>>;
2638
2643
  estimated: z$1.ZodBoolean;
2639
2644
  modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
2640
2645
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -2857,16 +2862,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2857
2862
  full: "full";
2858
2863
  readonly: "readonly";
2859
2864
  }>;
2860
- reasoningLevel: z$1.ZodEnum<{
2861
- high: "high";
2862
- low: "low";
2863
- max: "max";
2864
- medium: "medium";
2865
- none: "none";
2866
- ultra: "ultra";
2867
- ultracode: "ultracode";
2868
- xhigh: "xhigh";
2869
- }>;
2865
+ reasoningLevel: z$1.ZodString;
2870
2866
  seq: z$1.ZodOptional<z$1.ZodNumber>;
2871
2867
  serviceTier: z$1.ZodString;
2872
2868
  source: z$1.ZodEnum<{
@@ -3945,16 +3941,7 @@ declare const projectSourceSchema: z$1.ZodObject<{
3945
3941
  }, z$1.core.$strip>;
3946
3942
  type ProjectSource = z$1.infer<typeof projectSourceSchema>;
3947
3943
 
3948
- declare const reasoningLevelSchema: z$1.ZodEnum<{
3949
- high: "high";
3950
- low: "low";
3951
- max: "max";
3952
- medium: "medium";
3953
- none: "none";
3954
- ultra: "ultra";
3955
- ultracode: "ultracode";
3956
- xhigh: "xhigh";
3957
- }>;
3944
+ declare const reasoningLevelSchema: z$1.ZodString;
3958
3945
  type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
3959
3946
  declare const serviceTierSchema: z$1.ZodString;
3960
3947
  type ServiceTier = z$1.infer<typeof serviceTierSchema>;
@@ -4067,16 +4054,7 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4067
4054
  auto: "auto";
4068
4055
  full: "full";
4069
4056
  }>;
4070
- reasoningLevel: z$1.ZodEnum<{
4071
- high: "high";
4072
- low: "low";
4073
- max: "max";
4074
- medium: "medium";
4075
- none: "none";
4076
- ultra: "ultra";
4077
- ultracode: "ultracode";
4078
- xhigh: "xhigh";
4079
- }>;
4057
+ reasoningLevel: z$1.ZodString;
4080
4058
  seq: z$1.ZodOptional<z$1.ZodNumber>;
4081
4059
  serviceTier: z$1.ZodString;
4082
4060
  source: z$1.ZodEnum<{
@@ -4086,6 +4064,8 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4086
4064
  }>;
4087
4065
  }, z$1.core.$strip>;
4088
4066
  type ResolvedThreadExecutionOptions = z$1.infer<typeof resolvedThreadExecutionOptionsSchema>;
4067
+ declare const sessionOptionSelectionsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>;
4068
+ type SessionOptionSelections = z$1.infer<typeof sessionOptionSelectionsSchema>;
4089
4069
  declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4090
4070
  model: z$1.ZodString;
4091
4071
  permissionMode: z$1.ZodEnum<{
@@ -4094,16 +4074,7 @@ declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4094
4074
  full: "full";
4095
4075
  }>;
4096
4076
  providerId: z$1.ZodString;
4097
- reasoningLevel: z$1.ZodEnum<{
4098
- high: "high";
4099
- low: "low";
4100
- max: "max";
4101
- medium: "medium";
4102
- none: "none";
4103
- ultra: "ultra";
4104
- ultracode: "ultracode";
4105
- xhigh: "xhigh";
4106
- }>;
4077
+ reasoningLevel: z$1.ZodString;
4107
4078
  serviceTier: z$1.ZodString;
4108
4079
  }, z$1.core.$strip>;
4109
4080
  type ProjectExecutionDefaults = z$1.infer<typeof projectExecutionDefaultsSchema>;
@@ -4418,16 +4389,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4418
4389
  auto: "auto";
4419
4390
  full: "full";
4420
4391
  }>;
4421
- reasoningLevel: z$1.ZodEnum<{
4422
- high: "high";
4423
- low: "low";
4424
- max: "max";
4425
- medium: "medium";
4426
- none: "none";
4427
- ultra: "ultra";
4428
- ultracode: "ultracode";
4429
- xhigh: "xhigh";
4430
- }>;
4392
+ reasoningLevel: z$1.ZodString;
4431
4393
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
4432
4394
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
4433
4395
  serviceTier: z$1.ZodString;
@@ -4477,6 +4439,10 @@ interface EnvironmentRemoval {
4477
4439
 
4478
4440
  declare const threadContextResponseSchema: z$1.ZodObject<{
4479
4441
  usage: z$1.ZodNullable<z$1.ZodObject<{
4442
+ cost: z$1.ZodOptional<z$1.ZodObject<{
4443
+ amount: z$1.ZodNumber;
4444
+ currency: z$1.ZodString;
4445
+ }, z$1.core.$strip>>;
4480
4446
  estimated: z$1.ZodBoolean;
4481
4447
  modelContextWindow: z$1.ZodNumber;
4482
4448
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -4922,16 +4888,7 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4922
4888
  full: "full";
4923
4889
  }>;
4924
4890
  providerId: z$1.ZodString;
4925
- reasoningLevel: z$1.ZodEnum<{
4926
- high: "high";
4927
- low: "low";
4928
- max: "max";
4929
- medium: "medium";
4930
- none: "none";
4931
- ultra: "ultra";
4932
- ultracode: "ultracode";
4933
- xhigh: "xhigh";
4934
- }>;
4891
+ reasoningLevel: z$1.ZodString;
4935
4892
  serviceTier: z$1.ZodString;
4936
4893
  }, z$1.core.$strip>>;
4937
4894
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5037,16 +4994,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5037
4994
  full: "full";
5038
4995
  }>;
5039
4996
  providerId: z$1.ZodString;
5040
- reasoningLevel: z$1.ZodEnum<{
5041
- high: "high";
5042
- low: "low";
5043
- max: "max";
5044
- medium: "medium";
5045
- none: "none";
5046
- ultra: "ultra";
5047
- ultracode: "ultracode";
5048
- xhigh: "xhigh";
5049
- }>;
4997
+ reasoningLevel: z$1.ZodString;
5050
4998
  serviceTier: z$1.ZodString;
5051
4999
  }, z$1.core.$strip>>;
5052
5000
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5150,16 +5098,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5150
5098
  full: "full";
5151
5099
  }>;
5152
5100
  providerId: z$1.ZodString;
5153
- reasoningLevel: z$1.ZodEnum<{
5154
- high: "high";
5155
- low: "low";
5156
- max: "max";
5157
- medium: "medium";
5158
- none: "none";
5159
- ultra: "ultra";
5160
- ultracode: "ultracode";
5161
- xhigh: "xhigh";
5162
- }>;
5101
+ reasoningLevel: z$1.ZodString;
5163
5102
  serviceTier: z$1.ZodString;
5164
5103
  }, z$1.core.$strip>>;
5165
5104
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -6286,17 +6225,9 @@ declare const hostDaemonCommandRegistry: {
6286
6225
  model: z$1.ZodString;
6287
6226
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6288
6227
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6289
- reasoningLevel: z$1.ZodEnum<{
6290
- high: "high";
6291
- low: "low";
6292
- max: "max";
6293
- medium: "medium";
6294
- none: "none";
6295
- ultra: "ultra";
6296
- ultracode: "ultracode";
6297
- xhigh: "xhigh";
6298
- }>;
6228
+ reasoningLevel: z$1.ZodString;
6299
6229
  serviceTier: z$1.ZodString;
6230
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6300
6231
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6301
6232
  approvalReviewer: z$1.ZodLiteral<"user">;
6302
6233
  permissionEscalation: z$1.ZodEnum<{
@@ -6626,17 +6557,9 @@ declare const hostDaemonCommandRegistry: {
6626
6557
  model: z$1.ZodString;
6627
6558
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6628
6559
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6629
- reasoningLevel: z$1.ZodEnum<{
6630
- high: "high";
6631
- low: "low";
6632
- max: "max";
6633
- medium: "medium";
6634
- none: "none";
6635
- ultra: "ultra";
6636
- ultracode: "ultracode";
6637
- xhigh: "xhigh";
6638
- }>;
6560
+ reasoningLevel: z$1.ZodString;
6639
6561
  serviceTier: z$1.ZodString;
6562
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6640
6563
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6641
6564
  approvalReviewer: z$1.ZodLiteral<"user">;
6642
6565
  permissionEscalation: z$1.ZodEnum<{
@@ -6883,17 +6806,9 @@ declare const hostDaemonCommandRegistry: {
6883
6806
  model: z$1.ZodString;
6884
6807
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6885
6808
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6886
- reasoningLevel: z$1.ZodEnum<{
6887
- high: "high";
6888
- low: "low";
6889
- max: "max";
6890
- medium: "medium";
6891
- none: "none";
6892
- ultra: "ultra";
6893
- ultracode: "ultracode";
6894
- xhigh: "xhigh";
6895
- }>;
6809
+ reasoningLevel: z$1.ZodString;
6896
6810
  serviceTier: z$1.ZodString;
6811
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6897
6812
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6898
6813
  approvalReviewer: z$1.ZodLiteral<"user">;
6899
6814
  permissionEscalation: z$1.ZodEnum<{
@@ -7108,17 +7023,9 @@ declare const hostDaemonCommandRegistry: {
7108
7023
  model: z$1.ZodString;
7109
7024
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
7110
7025
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
7111
- reasoningLevel: z$1.ZodEnum<{
7112
- high: "high";
7113
- low: "low";
7114
- max: "max";
7115
- medium: "medium";
7116
- none: "none";
7117
- ultra: "ultra";
7118
- ultracode: "ultracode";
7119
- xhigh: "xhigh";
7120
- }>;
7026
+ reasoningLevel: z$1.ZodString;
7121
7027
  serviceTier: z$1.ZodString;
7028
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
7122
7029
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7123
7030
  approvalReviewer: z$1.ZodLiteral<"user">;
7124
7031
  permissionEscalation: z$1.ZodEnum<{
@@ -8186,34 +8093,39 @@ declare const hostDaemonCommandRegistry: {
8186
8093
  type: z$1.ZodLiteral<"provider.list_models">;
8187
8094
  }, z$1.core.$strip>, z$1.ZodObject<{
8188
8095
  models: z$1.ZodArray<z$1.ZodObject<{
8189
- defaultReasoningEffort: z$1.ZodEnum<{
8190
- high: "high";
8191
- low: "low";
8192
- max: "max";
8193
- medium: "medium";
8194
- none: "none";
8195
- ultra: "ultra";
8196
- ultracode: "ultracode";
8197
- xhigh: "xhigh";
8198
- }>;
8096
+ defaultReasoningEffort: z$1.ZodString;
8199
8097
  description: z$1.ZodString;
8200
8098
  displayName: z$1.ZodString;
8201
8099
  id: z$1.ZodString;
8202
8100
  isDefault: z$1.ZodBoolean;
8203
8101
  model: z$1.ZodString;
8204
8102
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8103
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8104
+ category: z$1.ZodOptional<z$1.ZodString>;
8105
+ description: z$1.ZodOptional<z$1.ZodString>;
8106
+ id: z$1.ZodString;
8107
+ label: z$1.ZodString;
8108
+ type: z$1.ZodLiteral<"select">;
8109
+ value: z$1.ZodString;
8110
+ values: z$1.ZodArray<z$1.ZodObject<{
8111
+ description: z$1.ZodOptional<z$1.ZodString>;
8112
+ group: z$1.ZodOptional<z$1.ZodString>;
8113
+ id: z$1.ZodString;
8114
+ label: z$1.ZodString;
8115
+ }, z$1.core.$strip>>;
8116
+ }, z$1.core.$strip>, z$1.ZodObject<{
8117
+ category: z$1.ZodOptional<z$1.ZodString>;
8118
+ description: z$1.ZodOptional<z$1.ZodString>;
8119
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8120
+ id: z$1.ZodString;
8121
+ label: z$1.ZodString;
8122
+ type: z$1.ZodLiteral<"boolean">;
8123
+ value: z$1.ZodBoolean;
8124
+ }, z$1.core.$strip>], "type">>>;
8205
8125
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8206
8126
  description: z$1.ZodString;
8207
- reasoningEffort: z$1.ZodEnum<{
8208
- high: "high";
8209
- low: "low";
8210
- max: "max";
8211
- medium: "medium";
8212
- none: "none";
8213
- ultra: "ultra";
8214
- ultracode: "ultracode";
8215
- xhigh: "xhigh";
8216
- }>;
8127
+ label: z$1.ZodOptional<z$1.ZodString>;
8128
+ reasoningEffort: z$1.ZodString;
8217
8129
  }, z$1.core.$strip>>;
8218
8130
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8219
8131
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -8222,34 +8134,39 @@ declare const hostDaemonCommandRegistry: {
8222
8134
  }, z$1.core.$strip>>>;
8223
8135
  }, z$1.core.$strip>>;
8224
8136
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
8225
- defaultReasoningEffort: z$1.ZodEnum<{
8226
- high: "high";
8227
- low: "low";
8228
- max: "max";
8229
- medium: "medium";
8230
- none: "none";
8231
- ultra: "ultra";
8232
- ultracode: "ultracode";
8233
- xhigh: "xhigh";
8234
- }>;
8137
+ defaultReasoningEffort: z$1.ZodString;
8235
8138
  description: z$1.ZodString;
8236
8139
  displayName: z$1.ZodString;
8237
8140
  id: z$1.ZodString;
8238
8141
  isDefault: z$1.ZodBoolean;
8239
8142
  model: z$1.ZodString;
8240
8143
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8144
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8145
+ category: z$1.ZodOptional<z$1.ZodString>;
8146
+ description: z$1.ZodOptional<z$1.ZodString>;
8147
+ id: z$1.ZodString;
8148
+ label: z$1.ZodString;
8149
+ type: z$1.ZodLiteral<"select">;
8150
+ value: z$1.ZodString;
8151
+ values: z$1.ZodArray<z$1.ZodObject<{
8152
+ description: z$1.ZodOptional<z$1.ZodString>;
8153
+ group: z$1.ZodOptional<z$1.ZodString>;
8154
+ id: z$1.ZodString;
8155
+ label: z$1.ZodString;
8156
+ }, z$1.core.$strip>>;
8157
+ }, z$1.core.$strip>, z$1.ZodObject<{
8158
+ category: z$1.ZodOptional<z$1.ZodString>;
8159
+ description: z$1.ZodOptional<z$1.ZodString>;
8160
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8161
+ id: z$1.ZodString;
8162
+ label: z$1.ZodString;
8163
+ type: z$1.ZodLiteral<"boolean">;
8164
+ value: z$1.ZodBoolean;
8165
+ }, z$1.core.$strip>], "type">>>;
8241
8166
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8242
8167
  description: z$1.ZodString;
8243
- reasoningEffort: z$1.ZodEnum<{
8244
- high: "high";
8245
- low: "low";
8246
- max: "max";
8247
- medium: "medium";
8248
- none: "none";
8249
- ultra: "ultra";
8250
- ultracode: "ultracode";
8251
- xhigh: "xhigh";
8252
- }>;
8168
+ label: z$1.ZodOptional<z$1.ZodString>;
8169
+ reasoningEffort: z$1.ZodString;
8253
8170
  }, z$1.core.$strip>>;
8254
8171
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8255
8172
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10304,34 +10221,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10304
10221
  providerId: z$1.ZodString;
10305
10222
  }, z$1.core.$strip>>;
10306
10223
  models: z$1.ZodArray<z$1.ZodObject<{
10307
- defaultReasoningEffort: z$1.ZodEnum<{
10308
- high: "high";
10309
- low: "low";
10310
- max: "max";
10311
- medium: "medium";
10312
- none: "none";
10313
- ultra: "ultra";
10314
- ultracode: "ultracode";
10315
- xhigh: "xhigh";
10316
- }>;
10224
+ defaultReasoningEffort: z$1.ZodString;
10317
10225
  description: z$1.ZodString;
10318
10226
  displayName: z$1.ZodString;
10319
10227
  id: z$1.ZodString;
10320
10228
  isDefault: z$1.ZodBoolean;
10321
10229
  model: z$1.ZodString;
10322
10230
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10231
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10232
+ category: z$1.ZodOptional<z$1.ZodString>;
10233
+ description: z$1.ZodOptional<z$1.ZodString>;
10234
+ id: z$1.ZodString;
10235
+ label: z$1.ZodString;
10236
+ type: z$1.ZodLiteral<"select">;
10237
+ value: z$1.ZodString;
10238
+ values: z$1.ZodArray<z$1.ZodObject<{
10239
+ description: z$1.ZodOptional<z$1.ZodString>;
10240
+ group: z$1.ZodOptional<z$1.ZodString>;
10241
+ id: z$1.ZodString;
10242
+ label: z$1.ZodString;
10243
+ }, z$1.core.$strip>>;
10244
+ }, z$1.core.$strip>, z$1.ZodObject<{
10245
+ category: z$1.ZodOptional<z$1.ZodString>;
10246
+ description: z$1.ZodOptional<z$1.ZodString>;
10247
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10248
+ id: z$1.ZodString;
10249
+ label: z$1.ZodString;
10250
+ type: z$1.ZodLiteral<"boolean">;
10251
+ value: z$1.ZodBoolean;
10252
+ }, z$1.core.$strip>], "type">>>;
10323
10253
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10324
10254
  description: z$1.ZodString;
10325
- reasoningEffort: z$1.ZodEnum<{
10326
- high: "high";
10327
- low: "low";
10328
- max: "max";
10329
- medium: "medium";
10330
- none: "none";
10331
- ultra: "ultra";
10332
- ultracode: "ultracode";
10333
- xhigh: "xhigh";
10334
- }>;
10255
+ label: z$1.ZodOptional<z$1.ZodString>;
10256
+ reasoningEffort: z$1.ZodString;
10335
10257
  }, z$1.core.$strip>>;
10336
10258
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10337
10259
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10434,34 +10356,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10434
10356
  }, z$1.core.$strip>>;
10435
10357
  }, z$1.core.$strip>>;
10436
10358
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
10437
- defaultReasoningEffort: z$1.ZodEnum<{
10438
- high: "high";
10439
- low: "low";
10440
- max: "max";
10441
- medium: "medium";
10442
- none: "none";
10443
- ultra: "ultra";
10444
- ultracode: "ultracode";
10445
- xhigh: "xhigh";
10446
- }>;
10359
+ defaultReasoningEffort: z$1.ZodString;
10447
10360
  description: z$1.ZodString;
10448
10361
  displayName: z$1.ZodString;
10449
10362
  id: z$1.ZodString;
10450
10363
  isDefault: z$1.ZodBoolean;
10451
10364
  model: z$1.ZodString;
10452
10365
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10366
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10367
+ category: z$1.ZodOptional<z$1.ZodString>;
10368
+ description: z$1.ZodOptional<z$1.ZodString>;
10369
+ id: z$1.ZodString;
10370
+ label: z$1.ZodString;
10371
+ type: z$1.ZodLiteral<"select">;
10372
+ value: z$1.ZodString;
10373
+ values: z$1.ZodArray<z$1.ZodObject<{
10374
+ description: z$1.ZodOptional<z$1.ZodString>;
10375
+ group: z$1.ZodOptional<z$1.ZodString>;
10376
+ id: z$1.ZodString;
10377
+ label: z$1.ZodString;
10378
+ }, z$1.core.$strip>>;
10379
+ }, z$1.core.$strip>, z$1.ZodObject<{
10380
+ category: z$1.ZodOptional<z$1.ZodString>;
10381
+ description: z$1.ZodOptional<z$1.ZodString>;
10382
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10383
+ id: z$1.ZodString;
10384
+ label: z$1.ZodString;
10385
+ type: z$1.ZodLiteral<"boolean">;
10386
+ value: z$1.ZodBoolean;
10387
+ }, z$1.core.$strip>], "type">>>;
10453
10388
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10454
10389
  description: z$1.ZodString;
10455
- reasoningEffort: z$1.ZodEnum<{
10456
- high: "high";
10457
- low: "low";
10458
- max: "max";
10459
- medium: "medium";
10460
- none: "none";
10461
- ultra: "ultra";
10462
- ultracode: "ultracode";
10463
- xhigh: "xhigh";
10464
- }>;
10390
+ label: z$1.ZodOptional<z$1.ZodString>;
10391
+ reasoningEffort: z$1.ZodString;
10465
10392
  }, z$1.core.$strip>>;
10466
10393
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10467
10394
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -12917,19 +12844,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12917
12844
  }, z$1.core.$strip>>;
12918
12845
  projectId: z$1.ZodString;
12919
12846
  providerId: z$1.ZodOptional<z$1.ZodString>;
12920
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
12921
- high: "high";
12922
- low: "low";
12923
- max: "max";
12924
- medium: "medium";
12925
- none: "none";
12926
- ultra: "ultra";
12927
- ultracode: "ultracode";
12928
- xhigh: "xhigh";
12929
- }>>;
12847
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
12930
12848
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
12931
12849
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
12932
12850
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
12851
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
12933
12852
  sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
12934
12853
  sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
12935
12854
  startedOnBehalfOf: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
@@ -13320,16 +13239,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13320
13239
  data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
13321
13240
  pluginId: z$1.ZodString;
13322
13241
  }, z$1.core.$strip>>;
13323
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13324
- high: "high";
13325
- low: "low";
13326
- max: "max";
13327
- medium: "medium";
13328
- none: "none";
13329
- ultra: "ultra";
13330
- ultracode: "ultracode";
13331
- xhigh: "xhigh";
13332
- }>>;
13242
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13333
13243
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
13334
13244
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13335
13245
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
@@ -13468,16 +13378,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13468
13378
  auto: "auto";
13469
13379
  full: "full";
13470
13380
  }>;
13471
- reasoningLevel: z$1.ZodEnum<{
13472
- high: "high";
13473
- low: "low";
13474
- max: "max";
13475
- medium: "medium";
13476
- none: "none";
13477
- ultra: "ultra";
13478
- ultracode: "ultracode";
13479
- xhigh: "xhigh";
13480
- }>;
13381
+ reasoningLevel: z$1.ZodString;
13481
13382
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13482
13383
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13483
13384
  serviceTier: z$1.ZodString;
@@ -13623,16 +13524,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13623
13524
  auto: "auto";
13624
13525
  full: "full";
13625
13526
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13626
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13627
- high: "high";
13628
- low: "low";
13629
- max: "max";
13630
- medium: "medium";
13631
- none: "none";
13632
- ultra: "ultra";
13633
- ultracode: "ultracode";
13634
- xhigh: "xhigh";
13635
- }>>;
13527
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13636
13528
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13637
13529
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13638
13530
  }, z$1.core.$strict>;
@@ -13799,16 +13691,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13799
13691
  auto: "auto";
13800
13692
  full: "full";
13801
13693
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13802
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13803
- high: "high";
13804
- low: "low";
13805
- max: "max";
13806
- medium: "medium";
13807
- none: "none";
13808
- ultra: "ultra";
13809
- ultracode: "ultracode";
13810
- xhigh: "xhigh";
13811
- }>>;
13694
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13812
13695
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13813
13696
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13814
13697
  }, z$1.core.$strip>;
@@ -14057,16 +13940,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
14057
13940
  auto: "auto";
14058
13941
  full: "full";
14059
13942
  }>;
14060
- reasoningLevel: z$1.ZodEnum<{
14061
- high: "high";
14062
- low: "low";
14063
- max: "max";
14064
- medium: "medium";
14065
- none: "none";
14066
- ultra: "ultra";
14067
- ultracode: "ultracode";
14068
- xhigh: "xhigh";
14069
- }>;
13943
+ reasoningLevel: z$1.ZodString;
14070
13944
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14071
13945
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14072
13946
  serviceTier: z$1.ZodString;
@@ -14436,6 +14310,13 @@ declare const threadAncestorsListResponseSchema: z$1.ZodObject<{
14436
14310
  }, z$1.core.$strict>>;
14437
14311
  }, z$1.core.$strict>;
14438
14312
  type ThreadAncestorsListResponse = z$1.infer<typeof threadAncestorsListResponseSchema>;
14313
+ declare const threadDescendantsListResponseSchema: z$1.ZodObject<{
14314
+ threads: z$1.ZodArray<z$1.ZodObject<{
14315
+ descendantIds: z$1.ZodArray<z$1.ZodString>;
14316
+ threadId: z$1.ZodString;
14317
+ }, z$1.core.$strict>>;
14318
+ }, z$1.core.$strict>;
14319
+ type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListResponseSchema>;
14439
14320
  declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14440
14321
  activeBackgroundAgentCount: z$1.ZodNumber;
14441
14322
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -15006,16 +14887,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
15006
14887
  auto: "auto";
15007
14888
  full: "full";
15008
14889
  }>;
15009
- reasoningLevel: z$1.ZodEnum<{
15010
- high: "high";
15011
- low: "low";
15012
- max: "max";
15013
- medium: "medium";
15014
- none: "none";
15015
- ultra: "ultra";
15016
- ultracode: "ultracode";
15017
- xhigh: "xhigh";
15018
- }>;
14890
+ reasoningLevel: z$1.ZodString;
15019
14891
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
15020
14892
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
15021
14893
  serviceTier: z$1.ZodString;
@@ -15055,17 +14927,9 @@ type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
15055
14927
  declare const updateThreadRequestSchema: z$1.ZodObject<{
15056
14928
  model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15057
14929
  parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15058
- reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
15059
- high: "high";
15060
- low: "low";
15061
- max: "max";
15062
- medium: "medium";
15063
- none: "none";
15064
- ultra: "ultra";
15065
- ultracode: "ultracode";
15066
- xhigh: "xhigh";
15067
- }>>>;
14930
+ reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15068
14931
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14932
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>>;
15069
14933
  title: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15070
14934
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
15071
14935
  hidden: "hidden";
@@ -16017,6 +15881,10 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16017
15881
  }>;
16018
15882
  contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
16019
15883
  contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
15884
+ cost: z$1.ZodOptional<z$1.ZodObject<{
15885
+ amount: z$1.ZodNumber;
15886
+ currency: z$1.ZodString;
15887
+ }, z$1.core.$strip>>;
16020
15888
  estimated: z$1.ZodBoolean;
16021
15889
  modelContextWindow: z$1.ZodNumber;
16022
15890
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -16090,7 +15958,44 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16090
15958
  sourceSeq: z$1.ZodNumber;
16091
15959
  updatedAt: z$1.ZodNumber;
16092
15960
  }, z$1.core.$strip>>;
15961
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
15962
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
15963
+ description: z$1.ZodNullable<z$1.ZodString>;
15964
+ name: z$1.ZodString;
15965
+ origin: z$1.ZodEnum<{
15966
+ builtin: "builtin";
15967
+ project: "project";
15968
+ user: "user";
15969
+ }>;
15970
+ source: z$1.ZodEnum<{
15971
+ command: "command";
15972
+ skill: "skill";
15973
+ }>;
15974
+ }, z$1.core.$strip>>>;
16093
15975
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
15976
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15977
+ category: z$1.ZodNullable<z$1.ZodString>;
15978
+ description: z$1.ZodNullable<z$1.ZodString>;
15979
+ id: z$1.ZodString;
15980
+ label: z$1.ZodString;
15981
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
15982
+ type: z$1.ZodLiteral<"select">;
15983
+ value: z$1.ZodString;
15984
+ values: z$1.ZodArray<z$1.ZodObject<{
15985
+ description: z$1.ZodNullable<z$1.ZodString>;
15986
+ group: z$1.ZodNullable<z$1.ZodString>;
15987
+ id: z$1.ZodString;
15988
+ label: z$1.ZodString;
15989
+ }, z$1.core.$strip>>;
15990
+ }, z$1.core.$strip>, z$1.ZodObject<{
15991
+ category: z$1.ZodNullable<z$1.ZodString>;
15992
+ description: z$1.ZodNullable<z$1.ZodString>;
15993
+ id: z$1.ZodString;
15994
+ label: z$1.ZodString;
15995
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
15996
+ type: z$1.ZodLiteral<"boolean">;
15997
+ value: z$1.ZodBoolean;
15998
+ }, z$1.core.$strip>], "type">>>;
16094
15999
  timelinePage: z$1.ZodObject<{
16095
16000
  contentPage: z$1.ZodOptional<z$1.ZodObject<{
16096
16001
  anchorSeq: z$1.ZodNumber;
@@ -17957,6 +17862,7 @@ type ThreadMutationResult = ThreadResponse;
17957
17862
  type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
17958
17863
  type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
17959
17864
  type ThreadAncestorsListResult = ThreadAncestorsListResponse;
17865
+ type ThreadDescendantsListResult = ThreadDescendantsListResponse;
17960
17866
  type ThreadSpawnResult = ThreadResponse;
17961
17867
  type ThreadForkResult = ThreadResponse;
17962
17868
  type ThreadInteractionGetResult = PendingInteraction;
@@ -18050,6 +17956,12 @@ interface ThreadAncestorsListArgs {
18050
17956
  threadIds: readonly string[];
18051
17957
  signal?: AbortSignal;
18052
17958
  }
17959
+ interface ThreadDescendantsListArgs {
17960
+ threadIds: readonly string[];
17961
+ includeArchived?: boolean;
17962
+ includeHidden?: boolean;
17963
+ signal?: AbortSignal;
17964
+ }
18053
17965
  interface ThreadPluginMetadataUpdateArgs {
18054
17966
  threadId: string;
18055
17967
  pluginId: string;
@@ -18302,6 +18214,15 @@ interface ThreadsArea {
18302
18214
  * Experimental: see docs/api_to_audit.md.
18303
18215
  */
18304
18216
  experimental_listAncestors(args: ThreadAncestorsListArgs): Promise<ThreadAncestorsListResult>;
18217
+ /**
18218
+ * Each of `threadIds` (1–200 per request) that exists and is not deleted,
18219
+ * with `descendantIds` for every thread below it, children first (empty
18220
+ * for a leaf). Archived and hidden descendants are omitted unless
18221
+ * `includeArchived` / `includeHidden` is true; threads below them are still
18222
+ * returned. Deleted threads and unknown ids are always omitted.
18223
+ * Experimental: see docs/api_to_audit.md.
18224
+ */
18225
+ experimental_listDescendants(args: ThreadDescendantsListArgs): Promise<ThreadDescendantsListResult>;
18305
18226
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
18306
18227
  queue: ThreadQueueArea;
18307
18228
  interactions: ThreadInteractionsArea;
@@ -21256,6 +21177,12 @@ interface NewThreadRequest {
21256
21177
  permissionMode: PermissionMode;
21257
21178
  /** Omitted when the selected provider has no service tiers. */
21258
21179
  serviceTier?: ServiceTier;
21180
+ /**
21181
+ * Agent options the user chose in the model picker or the mode menu, keyed
21182
+ * by option id. Present only when the user changed at least one option the
21183
+ * selected provider declares. Forward it to `threads.spawn` unchanged.
21184
+ */
21185
+ sessionOptions?: SessionOptionSelections;
21259
21186
  /**
21260
21187
  * Per-field provenance (caller-explicit vs. default) for the execution
21261
21188
  * options above, forwarded to `spawn` so the server records what the user
@@ -22405,6 +22332,17 @@ interface PluginThreadEventPayloads {
22405
22332
  thread: ThreadResponse;
22406
22333
  sequence: number;
22407
22334
  };
22335
+ /**
22336
+ * Fired after a thread moves to a new parent or loses its parent: a
22337
+ * `threads.update` that changes `parentThreadId`, or core releasing a
22338
+ * thread's unarchived children when it is archived. `thread` carries the
22339
+ * new `parentThreadId`. Every thread below it moved with it and gets no
22340
+ * event of its own. Experimental: see docs/api_to_audit.md.
22341
+ */
22342
+ "experimental_thread.parentChanged": {
22343
+ thread: ThreadResponse;
22344
+ previousParentThreadId: string | null;
22345
+ };
22408
22346
  /** Real accepted terminal input; excludes output, keepalives and input contents. */
22409
22347
  "experimental_terminal.input": {
22410
22348
  terminal: TerminalSession;
@@ -23424,13 +23362,17 @@ interface PluginProviderFallbackModel {
23424
23362
  /** Picker display name ("Opus 5 (1M)"). */
23425
23363
  displayName: string;
23426
23364
  description: string;
23427
- /** Reasoning levels this model supports, lowest to highest. Non-empty. */
23365
+ /** Reasoning levels this model supports, lowest to highest. Non-empty.
23366
+ * `reasoningEffort` is a standard ladder entry or any provider-specific id
23367
+ * the bridge accepts back as `reasoningLevel`; `label` names a
23368
+ * provider-specific id in the picker. */
23428
23369
  supportedReasoningEfforts: readonly {
23429
- reasoningEffort: PluginProviderReasoningLevel;
23370
+ reasoningEffort: PluginProviderReasoningLevel | (string & {});
23371
+ label?: string;
23430
23372
  description: string;
23431
23373
  }[];
23432
23374
  /** Must be one of `supportedReasoningEfforts`. */
23433
- defaultReasoningEffort: PluginProviderReasoningLevel;
23375
+ defaultReasoningEffort: PluginProviderReasoningLevel | (string & {});
23434
23376
  /** Exactly one entry in the list is the default. */
23435
23377
  isDefault: boolean;
23436
23378
  }