@junctionpanel/server 0.1.50 → 0.1.51

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.
@@ -2119,6 +2119,16 @@ export declare const GetDaemonProviderSettingsRequestSchema: z.ZodObject<{
2119
2119
  type: "get_daemon_provider_settings_request";
2120
2120
  requestId: string;
2121
2121
  }>;
2122
+ export declare const GetDaemonProviderRateLimitsRequestSchema: z.ZodObject<{
2123
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
2124
+ requestId: z.ZodString;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ type: "get_provider_rate_limits_request";
2127
+ requestId: string;
2128
+ }, {
2129
+ type: "get_provider_rate_limits_request";
2130
+ requestId: string;
2131
+ }>;
2122
2132
  export declare const GetDaemonLogTailRequestSchema: z.ZodObject<{
2123
2133
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
2124
2134
  lines: z.ZodOptional<z.ZodNumber>;
@@ -3929,6 +3939,15 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3929
3939
  }, {
3930
3940
  type: "get_daemon_provider_settings_request";
3931
3941
  requestId: string;
3942
+ }>, z.ZodObject<{
3943
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
3944
+ requestId: z.ZodString;
3945
+ }, "strip", z.ZodTypeAny, {
3946
+ type: "get_provider_rate_limits_request";
3947
+ requestId: string;
3948
+ }, {
3949
+ type: "get_provider_rate_limits_request";
3950
+ requestId: string;
3932
3951
  }>, z.ZodObject<{
3933
3952
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
3934
3953
  lines: z.ZodOptional<z.ZodNumber>;
@@ -11457,6 +11476,236 @@ export declare const GetDaemonProviderSettingsResponseSchema: z.ZodObject<{
11457
11476
  };
11458
11477
  };
11459
11478
  }>;
11479
+ export declare const GetDaemonProviderRateLimitsResponseSchema: z.ZodObject<{
11480
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
11481
+ payload: z.ZodObject<{
11482
+ daemon: z.ZodObject<{
11483
+ hostname: z.ZodNullable<z.ZodString>;
11484
+ version: z.ZodNullable<z.ZodString>;
11485
+ platform: z.ZodString;
11486
+ homeDir: z.ZodString;
11487
+ rootDir: z.ZodString;
11488
+ }, "strip", z.ZodTypeAny, {
11489
+ hostname: string | null;
11490
+ version: string | null;
11491
+ platform: string;
11492
+ homeDir: string;
11493
+ rootDir: string;
11494
+ }, {
11495
+ hostname: string | null;
11496
+ version: string | null;
11497
+ platform: string;
11498
+ homeDir: string;
11499
+ rootDir: string;
11500
+ }>;
11501
+ providers: z.ZodArray<z.ZodObject<{
11502
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
11503
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
11504
+ sourceLabel: z.ZodNullable<z.ZodString>;
11505
+ planLabel: z.ZodNullable<z.ZodString>;
11506
+ accountLabel: z.ZodNullable<z.ZodString>;
11507
+ message: z.ZodNullable<z.ZodString>;
11508
+ refreshedAt: z.ZodString;
11509
+ windows: z.ZodArray<z.ZodObject<{
11510
+ id: z.ZodString;
11511
+ label: z.ZodString;
11512
+ windowLabel: z.ZodString;
11513
+ unitLabel: z.ZodNullable<z.ZodString>;
11514
+ limit: z.ZodNullable<z.ZodNumber>;
11515
+ used: z.ZodNullable<z.ZodNumber>;
11516
+ remaining: z.ZodNullable<z.ZodNumber>;
11517
+ resetsAt: z.ZodNullable<z.ZodString>;
11518
+ message: z.ZodNullable<z.ZodString>;
11519
+ }, "strip", z.ZodTypeAny, {
11520
+ id: string;
11521
+ message: string | null;
11522
+ label: string;
11523
+ limit: number | null;
11524
+ windowLabel: string;
11525
+ unitLabel: string | null;
11526
+ used: number | null;
11527
+ remaining: number | null;
11528
+ resetsAt: string | null;
11529
+ }, {
11530
+ id: string;
11531
+ message: string | null;
11532
+ label: string;
11533
+ limit: number | null;
11534
+ windowLabel: string;
11535
+ unitLabel: string | null;
11536
+ used: number | null;
11537
+ remaining: number | null;
11538
+ resetsAt: string | null;
11539
+ }>, "many">;
11540
+ }, "strip", z.ZodTypeAny, {
11541
+ status: "error" | "available" | "unavailable";
11542
+ provider: "codex" | "claude" | "gemini";
11543
+ message: string | null;
11544
+ sourceLabel: string | null;
11545
+ planLabel: string | null;
11546
+ accountLabel: string | null;
11547
+ refreshedAt: string;
11548
+ windows: {
11549
+ id: string;
11550
+ message: string | null;
11551
+ label: string;
11552
+ limit: number | null;
11553
+ windowLabel: string;
11554
+ unitLabel: string | null;
11555
+ used: number | null;
11556
+ remaining: number | null;
11557
+ resetsAt: string | null;
11558
+ }[];
11559
+ }, {
11560
+ status: "error" | "available" | "unavailable";
11561
+ provider: "codex" | "claude" | "gemini";
11562
+ message: string | null;
11563
+ sourceLabel: string | null;
11564
+ planLabel: string | null;
11565
+ accountLabel: string | null;
11566
+ refreshedAt: string;
11567
+ windows: {
11568
+ id: string;
11569
+ message: string | null;
11570
+ label: string;
11571
+ limit: number | null;
11572
+ windowLabel: string;
11573
+ unitLabel: string | null;
11574
+ used: number | null;
11575
+ remaining: number | null;
11576
+ resetsAt: string | null;
11577
+ }[];
11578
+ }>, "many">;
11579
+ error: z.ZodNullable<z.ZodString>;
11580
+ requestId: z.ZodString;
11581
+ }, "strip", z.ZodTypeAny, {
11582
+ error: string | null;
11583
+ requestId: string;
11584
+ providers: {
11585
+ status: "error" | "available" | "unavailable";
11586
+ provider: "codex" | "claude" | "gemini";
11587
+ message: string | null;
11588
+ sourceLabel: string | null;
11589
+ planLabel: string | null;
11590
+ accountLabel: string | null;
11591
+ refreshedAt: string;
11592
+ windows: {
11593
+ id: string;
11594
+ message: string | null;
11595
+ label: string;
11596
+ limit: number | null;
11597
+ windowLabel: string;
11598
+ unitLabel: string | null;
11599
+ used: number | null;
11600
+ remaining: number | null;
11601
+ resetsAt: string | null;
11602
+ }[];
11603
+ }[];
11604
+ daemon: {
11605
+ hostname: string | null;
11606
+ version: string | null;
11607
+ platform: string;
11608
+ homeDir: string;
11609
+ rootDir: string;
11610
+ };
11611
+ }, {
11612
+ error: string | null;
11613
+ requestId: string;
11614
+ providers: {
11615
+ status: "error" | "available" | "unavailable";
11616
+ provider: "codex" | "claude" | "gemini";
11617
+ message: string | null;
11618
+ sourceLabel: string | null;
11619
+ planLabel: string | null;
11620
+ accountLabel: string | null;
11621
+ refreshedAt: string;
11622
+ windows: {
11623
+ id: string;
11624
+ message: string | null;
11625
+ label: string;
11626
+ limit: number | null;
11627
+ windowLabel: string;
11628
+ unitLabel: string | null;
11629
+ used: number | null;
11630
+ remaining: number | null;
11631
+ resetsAt: string | null;
11632
+ }[];
11633
+ }[];
11634
+ daemon: {
11635
+ hostname: string | null;
11636
+ version: string | null;
11637
+ platform: string;
11638
+ homeDir: string;
11639
+ rootDir: string;
11640
+ };
11641
+ }>;
11642
+ }, "strip", z.ZodTypeAny, {
11643
+ type: "get_provider_rate_limits_response";
11644
+ payload: {
11645
+ error: string | null;
11646
+ requestId: string;
11647
+ providers: {
11648
+ status: "error" | "available" | "unavailable";
11649
+ provider: "codex" | "claude" | "gemini";
11650
+ message: string | null;
11651
+ sourceLabel: string | null;
11652
+ planLabel: string | null;
11653
+ accountLabel: string | null;
11654
+ refreshedAt: string;
11655
+ windows: {
11656
+ id: string;
11657
+ message: string | null;
11658
+ label: string;
11659
+ limit: number | null;
11660
+ windowLabel: string;
11661
+ unitLabel: string | null;
11662
+ used: number | null;
11663
+ remaining: number | null;
11664
+ resetsAt: string | null;
11665
+ }[];
11666
+ }[];
11667
+ daemon: {
11668
+ hostname: string | null;
11669
+ version: string | null;
11670
+ platform: string;
11671
+ homeDir: string;
11672
+ rootDir: string;
11673
+ };
11674
+ };
11675
+ }, {
11676
+ type: "get_provider_rate_limits_response";
11677
+ payload: {
11678
+ error: string | null;
11679
+ requestId: string;
11680
+ providers: {
11681
+ status: "error" | "available" | "unavailable";
11682
+ provider: "codex" | "claude" | "gemini";
11683
+ message: string | null;
11684
+ sourceLabel: string | null;
11685
+ planLabel: string | null;
11686
+ accountLabel: string | null;
11687
+ refreshedAt: string;
11688
+ windows: {
11689
+ id: string;
11690
+ message: string | null;
11691
+ label: string;
11692
+ limit: number | null;
11693
+ windowLabel: string;
11694
+ unitLabel: string | null;
11695
+ used: number | null;
11696
+ remaining: number | null;
11697
+ resetsAt: string | null;
11698
+ }[];
11699
+ }[];
11700
+ daemon: {
11701
+ hostname: string | null;
11702
+ version: string | null;
11703
+ platform: string;
11704
+ homeDir: string;
11705
+ rootDir: string;
11706
+ };
11707
+ };
11708
+ }>;
11460
11709
  export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11461
11710
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
11462
11711
  payload: z.ZodObject<{
@@ -18654,6 +18903,235 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18654
18903
  rootDir: string;
18655
18904
  };
18656
18905
  };
18906
+ }>, z.ZodObject<{
18907
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
18908
+ payload: z.ZodObject<{
18909
+ daemon: z.ZodObject<{
18910
+ hostname: z.ZodNullable<z.ZodString>;
18911
+ version: z.ZodNullable<z.ZodString>;
18912
+ platform: z.ZodString;
18913
+ homeDir: z.ZodString;
18914
+ rootDir: z.ZodString;
18915
+ }, "strip", z.ZodTypeAny, {
18916
+ hostname: string | null;
18917
+ version: string | null;
18918
+ platform: string;
18919
+ homeDir: string;
18920
+ rootDir: string;
18921
+ }, {
18922
+ hostname: string | null;
18923
+ version: string | null;
18924
+ platform: string;
18925
+ homeDir: string;
18926
+ rootDir: string;
18927
+ }>;
18928
+ providers: z.ZodArray<z.ZodObject<{
18929
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
18930
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
18931
+ sourceLabel: z.ZodNullable<z.ZodString>;
18932
+ planLabel: z.ZodNullable<z.ZodString>;
18933
+ accountLabel: z.ZodNullable<z.ZodString>;
18934
+ message: z.ZodNullable<z.ZodString>;
18935
+ refreshedAt: z.ZodString;
18936
+ windows: z.ZodArray<z.ZodObject<{
18937
+ id: z.ZodString;
18938
+ label: z.ZodString;
18939
+ windowLabel: z.ZodString;
18940
+ unitLabel: z.ZodNullable<z.ZodString>;
18941
+ limit: z.ZodNullable<z.ZodNumber>;
18942
+ used: z.ZodNullable<z.ZodNumber>;
18943
+ remaining: z.ZodNullable<z.ZodNumber>;
18944
+ resetsAt: z.ZodNullable<z.ZodString>;
18945
+ message: z.ZodNullable<z.ZodString>;
18946
+ }, "strip", z.ZodTypeAny, {
18947
+ id: string;
18948
+ message: string | null;
18949
+ label: string;
18950
+ limit: number | null;
18951
+ windowLabel: string;
18952
+ unitLabel: string | null;
18953
+ used: number | null;
18954
+ remaining: number | null;
18955
+ resetsAt: string | null;
18956
+ }, {
18957
+ id: string;
18958
+ message: string | null;
18959
+ label: string;
18960
+ limit: number | null;
18961
+ windowLabel: string;
18962
+ unitLabel: string | null;
18963
+ used: number | null;
18964
+ remaining: number | null;
18965
+ resetsAt: string | null;
18966
+ }>, "many">;
18967
+ }, "strip", z.ZodTypeAny, {
18968
+ status: "error" | "available" | "unavailable";
18969
+ provider: "codex" | "claude" | "gemini";
18970
+ message: string | null;
18971
+ sourceLabel: string | null;
18972
+ planLabel: string | null;
18973
+ accountLabel: string | null;
18974
+ refreshedAt: string;
18975
+ windows: {
18976
+ id: string;
18977
+ message: string | null;
18978
+ label: string;
18979
+ limit: number | null;
18980
+ windowLabel: string;
18981
+ unitLabel: string | null;
18982
+ used: number | null;
18983
+ remaining: number | null;
18984
+ resetsAt: string | null;
18985
+ }[];
18986
+ }, {
18987
+ status: "error" | "available" | "unavailable";
18988
+ provider: "codex" | "claude" | "gemini";
18989
+ message: string | null;
18990
+ sourceLabel: string | null;
18991
+ planLabel: string | null;
18992
+ accountLabel: string | null;
18993
+ refreshedAt: string;
18994
+ windows: {
18995
+ id: string;
18996
+ message: string | null;
18997
+ label: string;
18998
+ limit: number | null;
18999
+ windowLabel: string;
19000
+ unitLabel: string | null;
19001
+ used: number | null;
19002
+ remaining: number | null;
19003
+ resetsAt: string | null;
19004
+ }[];
19005
+ }>, "many">;
19006
+ error: z.ZodNullable<z.ZodString>;
19007
+ requestId: z.ZodString;
19008
+ }, "strip", z.ZodTypeAny, {
19009
+ error: string | null;
19010
+ requestId: string;
19011
+ providers: {
19012
+ status: "error" | "available" | "unavailable";
19013
+ provider: "codex" | "claude" | "gemini";
19014
+ message: string | null;
19015
+ sourceLabel: string | null;
19016
+ planLabel: string | null;
19017
+ accountLabel: string | null;
19018
+ refreshedAt: string;
19019
+ windows: {
19020
+ id: string;
19021
+ message: string | null;
19022
+ label: string;
19023
+ limit: number | null;
19024
+ windowLabel: string;
19025
+ unitLabel: string | null;
19026
+ used: number | null;
19027
+ remaining: number | null;
19028
+ resetsAt: string | null;
19029
+ }[];
19030
+ }[];
19031
+ daemon: {
19032
+ hostname: string | null;
19033
+ version: string | null;
19034
+ platform: string;
19035
+ homeDir: string;
19036
+ rootDir: string;
19037
+ };
19038
+ }, {
19039
+ error: string | null;
19040
+ requestId: string;
19041
+ providers: {
19042
+ status: "error" | "available" | "unavailable";
19043
+ provider: "codex" | "claude" | "gemini";
19044
+ message: string | null;
19045
+ sourceLabel: string | null;
19046
+ planLabel: string | null;
19047
+ accountLabel: string | null;
19048
+ refreshedAt: string;
19049
+ windows: {
19050
+ id: string;
19051
+ message: string | null;
19052
+ label: string;
19053
+ limit: number | null;
19054
+ windowLabel: string;
19055
+ unitLabel: string | null;
19056
+ used: number | null;
19057
+ remaining: number | null;
19058
+ resetsAt: string | null;
19059
+ }[];
19060
+ }[];
19061
+ daemon: {
19062
+ hostname: string | null;
19063
+ version: string | null;
19064
+ platform: string;
19065
+ homeDir: string;
19066
+ rootDir: string;
19067
+ };
19068
+ }>;
19069
+ }, "strip", z.ZodTypeAny, {
19070
+ type: "get_provider_rate_limits_response";
19071
+ payload: {
19072
+ error: string | null;
19073
+ requestId: string;
19074
+ providers: {
19075
+ status: "error" | "available" | "unavailable";
19076
+ provider: "codex" | "claude" | "gemini";
19077
+ message: string | null;
19078
+ sourceLabel: string | null;
19079
+ planLabel: string | null;
19080
+ accountLabel: string | null;
19081
+ refreshedAt: string;
19082
+ windows: {
19083
+ id: string;
19084
+ message: string | null;
19085
+ label: string;
19086
+ limit: number | null;
19087
+ windowLabel: string;
19088
+ unitLabel: string | null;
19089
+ used: number | null;
19090
+ remaining: number | null;
19091
+ resetsAt: string | null;
19092
+ }[];
19093
+ }[];
19094
+ daemon: {
19095
+ hostname: string | null;
19096
+ version: string | null;
19097
+ platform: string;
19098
+ homeDir: string;
19099
+ rootDir: string;
19100
+ };
19101
+ };
19102
+ }, {
19103
+ type: "get_provider_rate_limits_response";
19104
+ payload: {
19105
+ error: string | null;
19106
+ requestId: string;
19107
+ providers: {
19108
+ status: "error" | "available" | "unavailable";
19109
+ provider: "codex" | "claude" | "gemini";
19110
+ message: string | null;
19111
+ sourceLabel: string | null;
19112
+ planLabel: string | null;
19113
+ accountLabel: string | null;
19114
+ refreshedAt: string;
19115
+ windows: {
19116
+ id: string;
19117
+ message: string | null;
19118
+ label: string;
19119
+ limit: number | null;
19120
+ windowLabel: string;
19121
+ unitLabel: string | null;
19122
+ used: number | null;
19123
+ remaining: number | null;
19124
+ resetsAt: string | null;
19125
+ }[];
19126
+ }[];
19127
+ daemon: {
19128
+ hostname: string | null;
19129
+ version: string | null;
19130
+ platform: string;
19131
+ homeDir: string;
19132
+ rootDir: string;
19133
+ };
19134
+ };
18657
19135
  }>, z.ZodObject<{
18658
19136
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
18659
19137
  payload: z.ZodObject<{
@@ -19767,6 +20245,7 @@ export type ListProviderModelsResponseMessage = z.infer<typeof ListProviderModel
19767
20245
  export type ListAvailableProvidersResponse = z.infer<typeof ListAvailableProvidersResponseSchema>;
19768
20246
  export type RunDaemonDoctorResponse = z.infer<typeof RunDaemonDoctorResponseSchema>;
19769
20247
  export type GetDaemonProviderSettingsResponse = z.infer<typeof GetDaemonProviderSettingsResponseSchema>;
20248
+ export type GetDaemonProviderRateLimitsResponse = z.infer<typeof GetDaemonProviderRateLimitsResponseSchema>;
19770
20249
  export type GetDaemonLogTailRequest = z.infer<typeof GetDaemonLogTailRequestSchema>;
19771
20250
  export type GetDaemonLogTailResponse = z.infer<typeof GetDaemonLogTailResponseSchema>;
19772
20251
  export type UpdateDaemonProviderSettingsResponse = z.infer<typeof UpdateDaemonProviderSettingsResponseSchema>;
@@ -21483,6 +21962,15 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21483
21962
  }, {
21484
21963
  type: "get_daemon_provider_settings_request";
21485
21964
  requestId: string;
21965
+ }>, z.ZodObject<{
21966
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
21967
+ requestId: z.ZodString;
21968
+ }, "strip", z.ZodTypeAny, {
21969
+ type: "get_provider_rate_limits_request";
21970
+ requestId: string;
21971
+ }, {
21972
+ type: "get_provider_rate_limits_request";
21973
+ requestId: string;
21486
21974
  }>, z.ZodObject<{
21487
21975
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
21488
21976
  lines: z.ZodOptional<z.ZodNumber>;
@@ -22140,6 +22628,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22140
22628
  } | {
22141
22629
  type: "get_daemon_provider_settings_request";
22142
22630
  requestId: string;
22631
+ } | {
22632
+ type: "get_provider_rate_limits_request";
22633
+ requestId: string;
22143
22634
  } | {
22144
22635
  type: "get_daemon_log_tail_request";
22145
22636
  requestId: string;
@@ -22626,6 +23117,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22626
23117
  } | {
22627
23118
  type: "get_daemon_provider_settings_request";
22628
23119
  requestId: string;
23120
+ } | {
23121
+ type: "get_provider_rate_limits_request";
23122
+ requestId: string;
22629
23123
  } | {
22630
23124
  type: "get_daemon_log_tail_request";
22631
23125
  requestId: string;
@@ -28806,6 +29300,235 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28806
29300
  rootDir: string;
28807
29301
  };
28808
29302
  };
29303
+ }>, z.ZodObject<{
29304
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
29305
+ payload: z.ZodObject<{
29306
+ daemon: z.ZodObject<{
29307
+ hostname: z.ZodNullable<z.ZodString>;
29308
+ version: z.ZodNullable<z.ZodString>;
29309
+ platform: z.ZodString;
29310
+ homeDir: z.ZodString;
29311
+ rootDir: z.ZodString;
29312
+ }, "strip", z.ZodTypeAny, {
29313
+ hostname: string | null;
29314
+ version: string | null;
29315
+ platform: string;
29316
+ homeDir: string;
29317
+ rootDir: string;
29318
+ }, {
29319
+ hostname: string | null;
29320
+ version: string | null;
29321
+ platform: string;
29322
+ homeDir: string;
29323
+ rootDir: string;
29324
+ }>;
29325
+ providers: z.ZodArray<z.ZodObject<{
29326
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
29327
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
29328
+ sourceLabel: z.ZodNullable<z.ZodString>;
29329
+ planLabel: z.ZodNullable<z.ZodString>;
29330
+ accountLabel: z.ZodNullable<z.ZodString>;
29331
+ message: z.ZodNullable<z.ZodString>;
29332
+ refreshedAt: z.ZodString;
29333
+ windows: z.ZodArray<z.ZodObject<{
29334
+ id: z.ZodString;
29335
+ label: z.ZodString;
29336
+ windowLabel: z.ZodString;
29337
+ unitLabel: z.ZodNullable<z.ZodString>;
29338
+ limit: z.ZodNullable<z.ZodNumber>;
29339
+ used: z.ZodNullable<z.ZodNumber>;
29340
+ remaining: z.ZodNullable<z.ZodNumber>;
29341
+ resetsAt: z.ZodNullable<z.ZodString>;
29342
+ message: z.ZodNullable<z.ZodString>;
29343
+ }, "strip", z.ZodTypeAny, {
29344
+ id: string;
29345
+ message: string | null;
29346
+ label: string;
29347
+ limit: number | null;
29348
+ windowLabel: string;
29349
+ unitLabel: string | null;
29350
+ used: number | null;
29351
+ remaining: number | null;
29352
+ resetsAt: string | null;
29353
+ }, {
29354
+ id: string;
29355
+ message: string | null;
29356
+ label: string;
29357
+ limit: number | null;
29358
+ windowLabel: string;
29359
+ unitLabel: string | null;
29360
+ used: number | null;
29361
+ remaining: number | null;
29362
+ resetsAt: string | null;
29363
+ }>, "many">;
29364
+ }, "strip", z.ZodTypeAny, {
29365
+ status: "error" | "available" | "unavailable";
29366
+ provider: "codex" | "claude" | "gemini";
29367
+ message: string | null;
29368
+ sourceLabel: string | null;
29369
+ planLabel: string | null;
29370
+ accountLabel: string | null;
29371
+ refreshedAt: string;
29372
+ windows: {
29373
+ id: string;
29374
+ message: string | null;
29375
+ label: string;
29376
+ limit: number | null;
29377
+ windowLabel: string;
29378
+ unitLabel: string | null;
29379
+ used: number | null;
29380
+ remaining: number | null;
29381
+ resetsAt: string | null;
29382
+ }[];
29383
+ }, {
29384
+ status: "error" | "available" | "unavailable";
29385
+ provider: "codex" | "claude" | "gemini";
29386
+ message: string | null;
29387
+ sourceLabel: string | null;
29388
+ planLabel: string | null;
29389
+ accountLabel: string | null;
29390
+ refreshedAt: string;
29391
+ windows: {
29392
+ id: string;
29393
+ message: string | null;
29394
+ label: string;
29395
+ limit: number | null;
29396
+ windowLabel: string;
29397
+ unitLabel: string | null;
29398
+ used: number | null;
29399
+ remaining: number | null;
29400
+ resetsAt: string | null;
29401
+ }[];
29402
+ }>, "many">;
29403
+ error: z.ZodNullable<z.ZodString>;
29404
+ requestId: z.ZodString;
29405
+ }, "strip", z.ZodTypeAny, {
29406
+ error: string | null;
29407
+ requestId: string;
29408
+ providers: {
29409
+ status: "error" | "available" | "unavailable";
29410
+ provider: "codex" | "claude" | "gemini";
29411
+ message: string | null;
29412
+ sourceLabel: string | null;
29413
+ planLabel: string | null;
29414
+ accountLabel: string | null;
29415
+ refreshedAt: string;
29416
+ windows: {
29417
+ id: string;
29418
+ message: string | null;
29419
+ label: string;
29420
+ limit: number | null;
29421
+ windowLabel: string;
29422
+ unitLabel: string | null;
29423
+ used: number | null;
29424
+ remaining: number | null;
29425
+ resetsAt: string | null;
29426
+ }[];
29427
+ }[];
29428
+ daemon: {
29429
+ hostname: string | null;
29430
+ version: string | null;
29431
+ platform: string;
29432
+ homeDir: string;
29433
+ rootDir: string;
29434
+ };
29435
+ }, {
29436
+ error: string | null;
29437
+ requestId: string;
29438
+ providers: {
29439
+ status: "error" | "available" | "unavailable";
29440
+ provider: "codex" | "claude" | "gemini";
29441
+ message: string | null;
29442
+ sourceLabel: string | null;
29443
+ planLabel: string | null;
29444
+ accountLabel: string | null;
29445
+ refreshedAt: string;
29446
+ windows: {
29447
+ id: string;
29448
+ message: string | null;
29449
+ label: string;
29450
+ limit: number | null;
29451
+ windowLabel: string;
29452
+ unitLabel: string | null;
29453
+ used: number | null;
29454
+ remaining: number | null;
29455
+ resetsAt: string | null;
29456
+ }[];
29457
+ }[];
29458
+ daemon: {
29459
+ hostname: string | null;
29460
+ version: string | null;
29461
+ platform: string;
29462
+ homeDir: string;
29463
+ rootDir: string;
29464
+ };
29465
+ }>;
29466
+ }, "strip", z.ZodTypeAny, {
29467
+ type: "get_provider_rate_limits_response";
29468
+ payload: {
29469
+ error: string | null;
29470
+ requestId: string;
29471
+ providers: {
29472
+ status: "error" | "available" | "unavailable";
29473
+ provider: "codex" | "claude" | "gemini";
29474
+ message: string | null;
29475
+ sourceLabel: string | null;
29476
+ planLabel: string | null;
29477
+ accountLabel: string | null;
29478
+ refreshedAt: string;
29479
+ windows: {
29480
+ id: string;
29481
+ message: string | null;
29482
+ label: string;
29483
+ limit: number | null;
29484
+ windowLabel: string;
29485
+ unitLabel: string | null;
29486
+ used: number | null;
29487
+ remaining: number | null;
29488
+ resetsAt: string | null;
29489
+ }[];
29490
+ }[];
29491
+ daemon: {
29492
+ hostname: string | null;
29493
+ version: string | null;
29494
+ platform: string;
29495
+ homeDir: string;
29496
+ rootDir: string;
29497
+ };
29498
+ };
29499
+ }, {
29500
+ type: "get_provider_rate_limits_response";
29501
+ payload: {
29502
+ error: string | null;
29503
+ requestId: string;
29504
+ providers: {
29505
+ status: "error" | "available" | "unavailable";
29506
+ provider: "codex" | "claude" | "gemini";
29507
+ message: string | null;
29508
+ sourceLabel: string | null;
29509
+ planLabel: string | null;
29510
+ accountLabel: string | null;
29511
+ refreshedAt: string;
29512
+ windows: {
29513
+ id: string;
29514
+ message: string | null;
29515
+ label: string;
29516
+ limit: number | null;
29517
+ windowLabel: string;
29518
+ unitLabel: string | null;
29519
+ used: number | null;
29520
+ remaining: number | null;
29521
+ resetsAt: string | null;
29522
+ }[];
29523
+ }[];
29524
+ daemon: {
29525
+ hostname: string | null;
29526
+ version: string | null;
29527
+ platform: string;
29528
+ homeDir: string;
29529
+ rootDir: string;
29530
+ };
29531
+ };
28809
29532
  }>, z.ZodObject<{
28810
29533
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
28811
29534
  payload: z.ZodObject<{
@@ -30896,6 +31619,39 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30896
31619
  rootDir: string;
30897
31620
  };
30898
31621
  };
31622
+ } | {
31623
+ type: "get_provider_rate_limits_response";
31624
+ payload: {
31625
+ error: string | null;
31626
+ requestId: string;
31627
+ providers: {
31628
+ status: "error" | "available" | "unavailable";
31629
+ provider: "codex" | "claude" | "gemini";
31630
+ message: string | null;
31631
+ sourceLabel: string | null;
31632
+ planLabel: string | null;
31633
+ accountLabel: string | null;
31634
+ refreshedAt: string;
31635
+ windows: {
31636
+ id: string;
31637
+ message: string | null;
31638
+ label: string;
31639
+ limit: number | null;
31640
+ windowLabel: string;
31641
+ unitLabel: string | null;
31642
+ used: number | null;
31643
+ remaining: number | null;
31644
+ resetsAt: string | null;
31645
+ }[];
31646
+ }[];
31647
+ daemon: {
31648
+ hostname: string | null;
31649
+ version: string | null;
31650
+ platform: string;
31651
+ homeDir: string;
31652
+ rootDir: string;
31653
+ };
31654
+ };
30899
31655
  } | {
30900
31656
  type: "get_daemon_log_tail_response";
30901
31657
  payload: {
@@ -32087,6 +32843,39 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
32087
32843
  rootDir: string;
32088
32844
  };
32089
32845
  };
32846
+ } | {
32847
+ type: "get_provider_rate_limits_response";
32848
+ payload: {
32849
+ error: string | null;
32850
+ requestId: string;
32851
+ providers: {
32852
+ status: "error" | "available" | "unavailable";
32853
+ provider: "codex" | "claude" | "gemini";
32854
+ message: string | null;
32855
+ sourceLabel: string | null;
32856
+ planLabel: string | null;
32857
+ accountLabel: string | null;
32858
+ refreshedAt: string;
32859
+ windows: {
32860
+ id: string;
32861
+ message: string | null;
32862
+ label: string;
32863
+ limit: number | null;
32864
+ windowLabel: string;
32865
+ unitLabel: string | null;
32866
+ used: number | null;
32867
+ remaining: number | null;
32868
+ resetsAt: string | null;
32869
+ }[];
32870
+ }[];
32871
+ daemon: {
32872
+ hostname: string | null;
32873
+ version: string | null;
32874
+ platform: string;
32875
+ homeDir: string;
32876
+ rootDir: string;
32877
+ };
32878
+ };
32090
32879
  } | {
32091
32880
  type: "get_daemon_log_tail_response";
32092
32881
  payload: {
@@ -33852,6 +34641,15 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33852
34641
  }, {
33853
34642
  type: "get_daemon_provider_settings_request";
33854
34643
  requestId: string;
34644
+ }>, z.ZodObject<{
34645
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
34646
+ requestId: z.ZodString;
34647
+ }, "strip", z.ZodTypeAny, {
34648
+ type: "get_provider_rate_limits_request";
34649
+ requestId: string;
34650
+ }, {
34651
+ type: "get_provider_rate_limits_request";
34652
+ requestId: string;
33855
34653
  }>, z.ZodObject<{
33856
34654
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
33857
34655
  lines: z.ZodOptional<z.ZodNumber>;
@@ -34509,6 +35307,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34509
35307
  } | {
34510
35308
  type: "get_daemon_provider_settings_request";
34511
35309
  requestId: string;
35310
+ } | {
35311
+ type: "get_provider_rate_limits_request";
35312
+ requestId: string;
34512
35313
  } | {
34513
35314
  type: "get_daemon_log_tail_request";
34514
35315
  requestId: string;
@@ -34995,6 +35796,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34995
35796
  } | {
34996
35797
  type: "get_daemon_provider_settings_request";
34997
35798
  requestId: string;
35799
+ } | {
35800
+ type: "get_provider_rate_limits_request";
35801
+ requestId: string;
34998
35802
  } | {
34999
35803
  type: "get_daemon_log_tail_request";
35000
35804
  requestId: string;
@@ -41202,6 +42006,235 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41202
42006
  rootDir: string;
41203
42007
  };
41204
42008
  };
42009
+ }>, z.ZodObject<{
42010
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
42011
+ payload: z.ZodObject<{
42012
+ daemon: z.ZodObject<{
42013
+ hostname: z.ZodNullable<z.ZodString>;
42014
+ version: z.ZodNullable<z.ZodString>;
42015
+ platform: z.ZodString;
42016
+ homeDir: z.ZodString;
42017
+ rootDir: z.ZodString;
42018
+ }, "strip", z.ZodTypeAny, {
42019
+ hostname: string | null;
42020
+ version: string | null;
42021
+ platform: string;
42022
+ homeDir: string;
42023
+ rootDir: string;
42024
+ }, {
42025
+ hostname: string | null;
42026
+ version: string | null;
42027
+ platform: string;
42028
+ homeDir: string;
42029
+ rootDir: string;
42030
+ }>;
42031
+ providers: z.ZodArray<z.ZodObject<{
42032
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
42033
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
42034
+ sourceLabel: z.ZodNullable<z.ZodString>;
42035
+ planLabel: z.ZodNullable<z.ZodString>;
42036
+ accountLabel: z.ZodNullable<z.ZodString>;
42037
+ message: z.ZodNullable<z.ZodString>;
42038
+ refreshedAt: z.ZodString;
42039
+ windows: z.ZodArray<z.ZodObject<{
42040
+ id: z.ZodString;
42041
+ label: z.ZodString;
42042
+ windowLabel: z.ZodString;
42043
+ unitLabel: z.ZodNullable<z.ZodString>;
42044
+ limit: z.ZodNullable<z.ZodNumber>;
42045
+ used: z.ZodNullable<z.ZodNumber>;
42046
+ remaining: z.ZodNullable<z.ZodNumber>;
42047
+ resetsAt: z.ZodNullable<z.ZodString>;
42048
+ message: z.ZodNullable<z.ZodString>;
42049
+ }, "strip", z.ZodTypeAny, {
42050
+ id: string;
42051
+ message: string | null;
42052
+ label: string;
42053
+ limit: number | null;
42054
+ windowLabel: string;
42055
+ unitLabel: string | null;
42056
+ used: number | null;
42057
+ remaining: number | null;
42058
+ resetsAt: string | null;
42059
+ }, {
42060
+ id: string;
42061
+ message: string | null;
42062
+ label: string;
42063
+ limit: number | null;
42064
+ windowLabel: string;
42065
+ unitLabel: string | null;
42066
+ used: number | null;
42067
+ remaining: number | null;
42068
+ resetsAt: string | null;
42069
+ }>, "many">;
42070
+ }, "strip", z.ZodTypeAny, {
42071
+ status: "error" | "available" | "unavailable";
42072
+ provider: "codex" | "claude" | "gemini";
42073
+ message: string | null;
42074
+ sourceLabel: string | null;
42075
+ planLabel: string | null;
42076
+ accountLabel: string | null;
42077
+ refreshedAt: string;
42078
+ windows: {
42079
+ id: string;
42080
+ message: string | null;
42081
+ label: string;
42082
+ limit: number | null;
42083
+ windowLabel: string;
42084
+ unitLabel: string | null;
42085
+ used: number | null;
42086
+ remaining: number | null;
42087
+ resetsAt: string | null;
42088
+ }[];
42089
+ }, {
42090
+ status: "error" | "available" | "unavailable";
42091
+ provider: "codex" | "claude" | "gemini";
42092
+ message: string | null;
42093
+ sourceLabel: string | null;
42094
+ planLabel: string | null;
42095
+ accountLabel: string | null;
42096
+ refreshedAt: string;
42097
+ windows: {
42098
+ id: string;
42099
+ message: string | null;
42100
+ label: string;
42101
+ limit: number | null;
42102
+ windowLabel: string;
42103
+ unitLabel: string | null;
42104
+ used: number | null;
42105
+ remaining: number | null;
42106
+ resetsAt: string | null;
42107
+ }[];
42108
+ }>, "many">;
42109
+ error: z.ZodNullable<z.ZodString>;
42110
+ requestId: z.ZodString;
42111
+ }, "strip", z.ZodTypeAny, {
42112
+ error: string | null;
42113
+ requestId: string;
42114
+ providers: {
42115
+ status: "error" | "available" | "unavailable";
42116
+ provider: "codex" | "claude" | "gemini";
42117
+ message: string | null;
42118
+ sourceLabel: string | null;
42119
+ planLabel: string | null;
42120
+ accountLabel: string | null;
42121
+ refreshedAt: string;
42122
+ windows: {
42123
+ id: string;
42124
+ message: string | null;
42125
+ label: string;
42126
+ limit: number | null;
42127
+ windowLabel: string;
42128
+ unitLabel: string | null;
42129
+ used: number | null;
42130
+ remaining: number | null;
42131
+ resetsAt: string | null;
42132
+ }[];
42133
+ }[];
42134
+ daemon: {
42135
+ hostname: string | null;
42136
+ version: string | null;
42137
+ platform: string;
42138
+ homeDir: string;
42139
+ rootDir: string;
42140
+ };
42141
+ }, {
42142
+ error: string | null;
42143
+ requestId: string;
42144
+ providers: {
42145
+ status: "error" | "available" | "unavailable";
42146
+ provider: "codex" | "claude" | "gemini";
42147
+ message: string | null;
42148
+ sourceLabel: string | null;
42149
+ planLabel: string | null;
42150
+ accountLabel: string | null;
42151
+ refreshedAt: string;
42152
+ windows: {
42153
+ id: string;
42154
+ message: string | null;
42155
+ label: string;
42156
+ limit: number | null;
42157
+ windowLabel: string;
42158
+ unitLabel: string | null;
42159
+ used: number | null;
42160
+ remaining: number | null;
42161
+ resetsAt: string | null;
42162
+ }[];
42163
+ }[];
42164
+ daemon: {
42165
+ hostname: string | null;
42166
+ version: string | null;
42167
+ platform: string;
42168
+ homeDir: string;
42169
+ rootDir: string;
42170
+ };
42171
+ }>;
42172
+ }, "strip", z.ZodTypeAny, {
42173
+ type: "get_provider_rate_limits_response";
42174
+ payload: {
42175
+ error: string | null;
42176
+ requestId: string;
42177
+ providers: {
42178
+ status: "error" | "available" | "unavailable";
42179
+ provider: "codex" | "claude" | "gemini";
42180
+ message: string | null;
42181
+ sourceLabel: string | null;
42182
+ planLabel: string | null;
42183
+ accountLabel: string | null;
42184
+ refreshedAt: string;
42185
+ windows: {
42186
+ id: string;
42187
+ message: string | null;
42188
+ label: string;
42189
+ limit: number | null;
42190
+ windowLabel: string;
42191
+ unitLabel: string | null;
42192
+ used: number | null;
42193
+ remaining: number | null;
42194
+ resetsAt: string | null;
42195
+ }[];
42196
+ }[];
42197
+ daemon: {
42198
+ hostname: string | null;
42199
+ version: string | null;
42200
+ platform: string;
42201
+ homeDir: string;
42202
+ rootDir: string;
42203
+ };
42204
+ };
42205
+ }, {
42206
+ type: "get_provider_rate_limits_response";
42207
+ payload: {
42208
+ error: string | null;
42209
+ requestId: string;
42210
+ providers: {
42211
+ status: "error" | "available" | "unavailable";
42212
+ provider: "codex" | "claude" | "gemini";
42213
+ message: string | null;
42214
+ sourceLabel: string | null;
42215
+ planLabel: string | null;
42216
+ accountLabel: string | null;
42217
+ refreshedAt: string;
42218
+ windows: {
42219
+ id: string;
42220
+ message: string | null;
42221
+ label: string;
42222
+ limit: number | null;
42223
+ windowLabel: string;
42224
+ unitLabel: string | null;
42225
+ used: number | null;
42226
+ remaining: number | null;
42227
+ resetsAt: string | null;
42228
+ }[];
42229
+ }[];
42230
+ daemon: {
42231
+ hostname: string | null;
42232
+ version: string | null;
42233
+ platform: string;
42234
+ homeDir: string;
42235
+ rootDir: string;
42236
+ };
42237
+ };
41205
42238
  }>, z.ZodObject<{
41206
42239
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
41207
42240
  payload: z.ZodObject<{
@@ -43292,6 +44325,39 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
43292
44325
  rootDir: string;
43293
44326
  };
43294
44327
  };
44328
+ } | {
44329
+ type: "get_provider_rate_limits_response";
44330
+ payload: {
44331
+ error: string | null;
44332
+ requestId: string;
44333
+ providers: {
44334
+ status: "error" | "available" | "unavailable";
44335
+ provider: "codex" | "claude" | "gemini";
44336
+ message: string | null;
44337
+ sourceLabel: string | null;
44338
+ planLabel: string | null;
44339
+ accountLabel: string | null;
44340
+ refreshedAt: string;
44341
+ windows: {
44342
+ id: string;
44343
+ message: string | null;
44344
+ label: string;
44345
+ limit: number | null;
44346
+ windowLabel: string;
44347
+ unitLabel: string | null;
44348
+ used: number | null;
44349
+ remaining: number | null;
44350
+ resetsAt: string | null;
44351
+ }[];
44352
+ }[];
44353
+ daemon: {
44354
+ hostname: string | null;
44355
+ version: string | null;
44356
+ platform: string;
44357
+ homeDir: string;
44358
+ rootDir: string;
44359
+ };
44360
+ };
43295
44361
  } | {
43296
44362
  type: "get_daemon_log_tail_response";
43297
44363
  payload: {
@@ -44483,6 +45549,39 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
44483
45549
  rootDir: string;
44484
45550
  };
44485
45551
  };
45552
+ } | {
45553
+ type: "get_provider_rate_limits_response";
45554
+ payload: {
45555
+ error: string | null;
45556
+ requestId: string;
45557
+ providers: {
45558
+ status: "error" | "available" | "unavailable";
45559
+ provider: "codex" | "claude" | "gemini";
45560
+ message: string | null;
45561
+ sourceLabel: string | null;
45562
+ planLabel: string | null;
45563
+ accountLabel: string | null;
45564
+ refreshedAt: string;
45565
+ windows: {
45566
+ id: string;
45567
+ message: string | null;
45568
+ label: string;
45569
+ limit: number | null;
45570
+ windowLabel: string;
45571
+ unitLabel: string | null;
45572
+ used: number | null;
45573
+ remaining: number | null;
45574
+ resetsAt: string | null;
45575
+ }[];
45576
+ }[];
45577
+ daemon: {
45578
+ hostname: string | null;
45579
+ version: string | null;
45580
+ platform: string;
45581
+ homeDir: string;
45582
+ rootDir: string;
45583
+ };
45584
+ };
44486
45585
  } | {
44487
45586
  type: "get_daemon_log_tail_response";
44488
45587
  payload: {