@slopus/happy-agent-client 0.0.104 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/HappyAgentClient.d.ts +5 -1
- package/dist/HappyAgentClient.d.ts.map +1 -1
- package/dist/HappyAgentClient.js +18 -0
- package/dist/HappyAgentClient.js.map +1 -1
- package/dist/protocol/agents.d.ts +40 -1
- package/dist/protocol/agents.d.ts.map +1 -1
- package/dist/protocol/agents.js +14 -0
- package/dist/protocol/agents.js.map +1 -1
- package/dist/protocol/artifacts.d.ts +44 -1
- package/dist/protocol/artifacts.d.ts.map +1 -1
- package/dist/protocol/artifacts.js +21 -1
- package/dist/protocol/artifacts.js.map +1 -1
- package/dist/protocol/bootstrap.d.ts +30 -0
- package/dist/protocol/bootstrap.d.ts.map +1 -1
- package/dist/protocol/bots.d.ts +18 -0
- package/dist/protocol/bots.d.ts.map +1 -1
- package/dist/protocol/daemon.d.ts +3 -2
- package/dist/protocol/daemon.d.ts.map +1 -1
- package/dist/protocol/daemon.js +3 -2
- package/dist/protocol/daemon.js.map +1 -1
- package/dist/protocol/events.d.ts +38 -0
- package/dist/protocol/events.d.ts.map +1 -1
- package/dist/protocol/events.js +3 -1
- package/dist/protocol/events.js.map +1 -1
- package/dist/protocol/messages.d.ts +788 -1
- package/dist/protocol/messages.d.ts.map +1 -1
- package/dist/protocol/messages.js +167 -0
- package/dist/protocol/messages.js.map +1 -1
- package/dist/protocol/projects.d.ts +24 -0
- package/dist/protocol/projects.d.ts.map +1 -1
- package/dist/protocol/surfaces.d.ts +6 -0
- package/dist/protocol/surfaces.d.ts.map +1 -1
- package/dist/protocol/tasks.d.ts +18 -0
- package/dist/protocol/tasks.d.ts.map +1 -1
- package/dist/protocol/workspaces.d.ts +18 -0
- package/dist/protocol/workspaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -296,6 +296,8 @@ export type ArtifactPresentation = Static<typeof artifactPresentationSchema>;
|
|
|
296
296
|
/**
|
|
297
297
|
* A web page a completed call asked the chat to show inline, at a URL as the agent's own machine
|
|
298
298
|
* reaches it. `display` is an artifact display preference, or `null` for the client's choice.
|
|
299
|
+
* Legacy history and older daemons only: new `show_page` calls create live-URL artifacts and
|
|
300
|
+
* return an `artifact` presentation with `shows: "latest"`.
|
|
299
301
|
*/
|
|
300
302
|
export declare const pagePresentationSchema: import("@sinclair/typebox").TObject<{
|
|
301
303
|
type: import("@sinclair/typebox").TLiteral<"page">;
|
|
@@ -303,7 +305,7 @@ export declare const pagePresentationSchema: import("@sinclair/typebox").TObject
|
|
|
303
305
|
title: import("@sinclair/typebox").TString;
|
|
304
306
|
display: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"inline_compact">, import("@sinclair/typebox").TLiteral<"inline_expanded">, import("@sinclair/typebox").TLiteral<"side">]>, import("@sinclair/typebox").TNull]>;
|
|
305
307
|
}>;
|
|
306
|
-
/** A web page
|
|
308
|
+
/** A legacy inline web page. New live pages use `ArtifactPresentation` and the artifact's `live`. */
|
|
307
309
|
export type PagePresentation = Static<typeof pagePresentationSchema>;
|
|
308
310
|
/** Every display-ready tool-call presentation the client understands. */
|
|
309
311
|
export declare const toolPresentationSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
@@ -545,6 +547,787 @@ export declare const messageErrorSchema: import("@sinclair/typebox").TObject<{
|
|
|
545
547
|
}>;
|
|
546
548
|
}>;
|
|
547
549
|
export type MessageError = Static<typeof messageErrorSchema>;
|
|
550
|
+
/** Failure kinds with understood remedies; unknown wire kinds are still readable. */
|
|
551
|
+
export declare const knownMessageFailureKindSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"signin_missing">, import("@sinclair/typebox").TLiteral<"usage_limit">, import("@sinclair/typebox").TLiteral<"no_account_available">, import("@sinclair/typebox").TLiteral<"rate_limited">, import("@sinclair/typebox").TLiteral<"provider_unavailable">, import("@sinclair/typebox").TLiteral<"network">, import("@sinclair/typebox").TLiteral<"context_too_long">, import("@sinclair/typebox").TLiteral<"provider_disabled">, import("@sinclair/typebox").TLiteral<"internal">]>;
|
|
552
|
+
export type KnownMessageFailureKind = Static<typeof knownMessageFailureKindSchema>;
|
|
553
|
+
/** The provider entry a failure is about. Display text is daemon-supplied, never inferred. */
|
|
554
|
+
export declare const messageFailureProviderSchema: import("@sinclair/typebox").TObject<{
|
|
555
|
+
id: import("@sinclair/typebox").TString;
|
|
556
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
557
|
+
type: import("@sinclair/typebox").TString;
|
|
558
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
559
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
560
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
561
|
+
label: import("@sinclair/typebox").TString;
|
|
562
|
+
}>;
|
|
563
|
+
export type MessageFailureProvider = Static<typeof messageFailureProviderSchema>;
|
|
564
|
+
/** One usable account and model to switch to, ranked by the daemon. */
|
|
565
|
+
/** Ranking groups with understood labels; unknown wire values are still readable. */
|
|
566
|
+
export declare const knownFallbackGroupSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"same_model">, import("@sinclair/typebox").TLiteral<"same_family">, import("@sinclair/typebox").TLiteral<"other_provider">]>;
|
|
567
|
+
export type KnownFallbackGroup = Static<typeof knownFallbackGroupSchema>;
|
|
568
|
+
export declare const messageFailureFallbackSchema: import("@sinclair/typebox").TObject<{
|
|
569
|
+
providerId: import("@sinclair/typebox").TString;
|
|
570
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
571
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
572
|
+
/** Clients name the model from the model catalog. */
|
|
573
|
+
modelId: import("@sinclair/typebox").TString;
|
|
574
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
575
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
576
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
577
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
578
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
579
|
+
group: import("@sinclair/typebox").TString;
|
|
580
|
+
}>;
|
|
581
|
+
export type MessageFailureFallback = Static<typeof messageFailureFallbackSchema>;
|
|
582
|
+
/** The failed turn was sent again on the same route. */
|
|
583
|
+
export declare const retriedResolutionSchema: import("@sinclair/typebox").TObject<{
|
|
584
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
585
|
+
at: import("@sinclair/typebox").TInteger;
|
|
586
|
+
}>;
|
|
587
|
+
/** The chat moved to another route and the turn continued there. */
|
|
588
|
+
export declare const switchedResolutionSchema: import("@sinclair/typebox").TObject<{
|
|
589
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
590
|
+
at: import("@sinclair/typebox").TInteger;
|
|
591
|
+
modelId: import("@sinclair/typebox").TString;
|
|
592
|
+
providerId: import("@sinclair/typebox").TString;
|
|
593
|
+
}>;
|
|
594
|
+
/** A resolution action this client does not know; it still shows that the failure was handled. */
|
|
595
|
+
export declare const otherResolutionSchema: import("@sinclair/typebox").TObject<{
|
|
596
|
+
action: import("@sinclair/typebox").TString;
|
|
597
|
+
at: import("@sinclair/typebox").TInteger;
|
|
598
|
+
}>;
|
|
599
|
+
/** What the person did about a failure. The failed message stays in history and records it. */
|
|
600
|
+
export declare const messageFailureResolutionSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
601
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
602
|
+
at: import("@sinclair/typebox").TInteger;
|
|
603
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
604
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
605
|
+
at: import("@sinclair/typebox").TInteger;
|
|
606
|
+
modelId: import("@sinclair/typebox").TString;
|
|
607
|
+
providerId: import("@sinclair/typebox").TString;
|
|
608
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
609
|
+
action: import("@sinclair/typebox").TString;
|
|
610
|
+
at: import("@sinclair/typebox").TInteger;
|
|
611
|
+
}>]>;
|
|
612
|
+
export type MessageFailureResolution = Static<typeof retriedResolutionSchema> | Static<typeof switchedResolutionSchema> | (Static<typeof otherResolutionSchema> & {
|
|
613
|
+
action: string & {};
|
|
614
|
+
});
|
|
615
|
+
export declare const signinMissingFailureSchema: import("@sinclair/typebox").TObject<{
|
|
616
|
+
command: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
617
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
618
|
+
providerId: import("@sinclair/typebox").TString;
|
|
619
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
620
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
621
|
+
/** Clients name the model from the model catalog. */
|
|
622
|
+
modelId: import("@sinclair/typebox").TString;
|
|
623
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
624
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
625
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
626
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
627
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
628
|
+
group: import("@sinclair/typebox").TString;
|
|
629
|
+
}>>;
|
|
630
|
+
kind: import("@sinclair/typebox").TLiteral<"signin_missing">;
|
|
631
|
+
message: import("@sinclair/typebox").TString;
|
|
632
|
+
product: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
633
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
634
|
+
id: import("@sinclair/typebox").TString;
|
|
635
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
636
|
+
type: import("@sinclair/typebox").TString;
|
|
637
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
638
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
639
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
640
|
+
label: import("@sinclair/typebox").TString;
|
|
641
|
+
}>;
|
|
642
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
643
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
644
|
+
at: import("@sinclair/typebox").TInteger;
|
|
645
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
646
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
647
|
+
at: import("@sinclair/typebox").TInteger;
|
|
648
|
+
modelId: import("@sinclair/typebox").TString;
|
|
649
|
+
providerId: import("@sinclair/typebox").TString;
|
|
650
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
651
|
+
action: import("@sinclair/typebox").TString;
|
|
652
|
+
at: import("@sinclair/typebox").TInteger;
|
|
653
|
+
}>]>>;
|
|
654
|
+
}>;
|
|
655
|
+
export declare const usageLimitFailureSchema: import("@sinclair/typebox").TObject<{
|
|
656
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
657
|
+
providerId: import("@sinclair/typebox").TString;
|
|
658
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
659
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
660
|
+
/** Clients name the model from the model catalog. */
|
|
661
|
+
modelId: import("@sinclair/typebox").TString;
|
|
662
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
663
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
664
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
665
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
666
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
667
|
+
group: import("@sinclair/typebox").TString;
|
|
668
|
+
}>>;
|
|
669
|
+
kind: import("@sinclair/typebox").TLiteral<"usage_limit">;
|
|
670
|
+
message: import("@sinclair/typebox").TString;
|
|
671
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
672
|
+
id: import("@sinclair/typebox").TString;
|
|
673
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
674
|
+
type: import("@sinclair/typebox").TString;
|
|
675
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
676
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
677
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
678
|
+
label: import("@sinclair/typebox").TString;
|
|
679
|
+
}>;
|
|
680
|
+
resetsAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
681
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
682
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
683
|
+
at: import("@sinclair/typebox").TInteger;
|
|
684
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
685
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
686
|
+
at: import("@sinclair/typebox").TInteger;
|
|
687
|
+
modelId: import("@sinclair/typebox").TString;
|
|
688
|
+
providerId: import("@sinclair/typebox").TString;
|
|
689
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
690
|
+
action: import("@sinclair/typebox").TString;
|
|
691
|
+
at: import("@sinclair/typebox").TInteger;
|
|
692
|
+
}>]>>;
|
|
693
|
+
}>;
|
|
694
|
+
export declare const noAccountAvailableFailureSchema: import("@sinclair/typebox").TObject<{
|
|
695
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
696
|
+
providerId: import("@sinclair/typebox").TString;
|
|
697
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
698
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
699
|
+
/** Clients name the model from the model catalog. */
|
|
700
|
+
modelId: import("@sinclair/typebox").TString;
|
|
701
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
702
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
703
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
704
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
705
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
706
|
+
group: import("@sinclair/typebox").TString;
|
|
707
|
+
}>>;
|
|
708
|
+
kind: import("@sinclair/typebox").TLiteral<"no_account_available">;
|
|
709
|
+
message: import("@sinclair/typebox").TString;
|
|
710
|
+
poolName: import("@sinclair/typebox").TString;
|
|
711
|
+
resetsAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
712
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
713
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
714
|
+
at: import("@sinclair/typebox").TInteger;
|
|
715
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
716
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
717
|
+
at: import("@sinclair/typebox").TInteger;
|
|
718
|
+
modelId: import("@sinclair/typebox").TString;
|
|
719
|
+
providerId: import("@sinclair/typebox").TString;
|
|
720
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
721
|
+
action: import("@sinclair/typebox").TString;
|
|
722
|
+
at: import("@sinclair/typebox").TInteger;
|
|
723
|
+
}>]>>;
|
|
724
|
+
}>;
|
|
725
|
+
export declare const rateLimitedFailureSchema: import("@sinclair/typebox").TObject<{
|
|
726
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
727
|
+
providerId: import("@sinclair/typebox").TString;
|
|
728
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
729
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
730
|
+
/** Clients name the model from the model catalog. */
|
|
731
|
+
modelId: import("@sinclair/typebox").TString;
|
|
732
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
733
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
734
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
735
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
736
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
737
|
+
group: import("@sinclair/typebox").TString;
|
|
738
|
+
}>>;
|
|
739
|
+
kind: import("@sinclair/typebox").TLiteral<"rate_limited">;
|
|
740
|
+
message: import("@sinclair/typebox").TString;
|
|
741
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
742
|
+
id: import("@sinclair/typebox").TString;
|
|
743
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
744
|
+
type: import("@sinclair/typebox").TString;
|
|
745
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
746
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
747
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
748
|
+
label: import("@sinclair/typebox").TString;
|
|
749
|
+
}>;
|
|
750
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
751
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
752
|
+
at: import("@sinclair/typebox").TInteger;
|
|
753
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
754
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
755
|
+
at: import("@sinclair/typebox").TInteger;
|
|
756
|
+
modelId: import("@sinclair/typebox").TString;
|
|
757
|
+
providerId: import("@sinclair/typebox").TString;
|
|
758
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
759
|
+
action: import("@sinclair/typebox").TString;
|
|
760
|
+
at: import("@sinclair/typebox").TInteger;
|
|
761
|
+
}>]>>;
|
|
762
|
+
}>;
|
|
763
|
+
export declare const providerUnavailableFailureSchema: import("@sinclair/typebox").TObject<{
|
|
764
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
765
|
+
providerId: import("@sinclair/typebox").TString;
|
|
766
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
767
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
768
|
+
/** Clients name the model from the model catalog. */
|
|
769
|
+
modelId: import("@sinclair/typebox").TString;
|
|
770
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
771
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
772
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
773
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
774
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
775
|
+
group: import("@sinclair/typebox").TString;
|
|
776
|
+
}>>;
|
|
777
|
+
kind: import("@sinclair/typebox").TLiteral<"provider_unavailable">;
|
|
778
|
+
message: import("@sinclair/typebox").TString;
|
|
779
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
780
|
+
id: import("@sinclair/typebox").TString;
|
|
781
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
782
|
+
type: import("@sinclair/typebox").TString;
|
|
783
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
784
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
785
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
786
|
+
label: import("@sinclair/typebox").TString;
|
|
787
|
+
}>;
|
|
788
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
789
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
790
|
+
at: import("@sinclair/typebox").TInteger;
|
|
791
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
792
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
793
|
+
at: import("@sinclair/typebox").TInteger;
|
|
794
|
+
modelId: import("@sinclair/typebox").TString;
|
|
795
|
+
providerId: import("@sinclair/typebox").TString;
|
|
796
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
797
|
+
action: import("@sinclair/typebox").TString;
|
|
798
|
+
at: import("@sinclair/typebox").TInteger;
|
|
799
|
+
}>]>>;
|
|
800
|
+
}>;
|
|
801
|
+
export declare const networkFailureSchema: import("@sinclair/typebox").TObject<{
|
|
802
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
803
|
+
providerId: import("@sinclair/typebox").TString;
|
|
804
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
805
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
806
|
+
/** Clients name the model from the model catalog. */
|
|
807
|
+
modelId: import("@sinclair/typebox").TString;
|
|
808
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
809
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
810
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
811
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
812
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
813
|
+
group: import("@sinclair/typebox").TString;
|
|
814
|
+
}>>;
|
|
815
|
+
kind: import("@sinclair/typebox").TLiteral<"network">;
|
|
816
|
+
message: import("@sinclair/typebox").TString;
|
|
817
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
818
|
+
id: import("@sinclair/typebox").TString;
|
|
819
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
820
|
+
type: import("@sinclair/typebox").TString;
|
|
821
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
822
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
823
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
824
|
+
label: import("@sinclair/typebox").TString;
|
|
825
|
+
}>;
|
|
826
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
827
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
828
|
+
at: import("@sinclair/typebox").TInteger;
|
|
829
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
830
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
831
|
+
at: import("@sinclair/typebox").TInteger;
|
|
832
|
+
modelId: import("@sinclair/typebox").TString;
|
|
833
|
+
providerId: import("@sinclair/typebox").TString;
|
|
834
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
835
|
+
action: import("@sinclair/typebox").TString;
|
|
836
|
+
at: import("@sinclair/typebox").TInteger;
|
|
837
|
+
}>]>>;
|
|
838
|
+
}>;
|
|
839
|
+
export declare const providerDisabledFailureSchema: import("@sinclair/typebox").TObject<{
|
|
840
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
841
|
+
providerId: import("@sinclair/typebox").TString;
|
|
842
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
843
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
844
|
+
/** Clients name the model from the model catalog. */
|
|
845
|
+
modelId: import("@sinclair/typebox").TString;
|
|
846
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
847
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
848
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
849
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
850
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
851
|
+
group: import("@sinclair/typebox").TString;
|
|
852
|
+
}>>;
|
|
853
|
+
kind: import("@sinclair/typebox").TLiteral<"provider_disabled">;
|
|
854
|
+
message: import("@sinclair/typebox").TString;
|
|
855
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
856
|
+
id: import("@sinclair/typebox").TString;
|
|
857
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
858
|
+
type: import("@sinclair/typebox").TString;
|
|
859
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
860
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
861
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
862
|
+
label: import("@sinclair/typebox").TString;
|
|
863
|
+
}>;
|
|
864
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
865
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
866
|
+
at: import("@sinclair/typebox").TInteger;
|
|
867
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
868
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
869
|
+
at: import("@sinclair/typebox").TInteger;
|
|
870
|
+
modelId: import("@sinclair/typebox").TString;
|
|
871
|
+
providerId: import("@sinclair/typebox").TString;
|
|
872
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
873
|
+
action: import("@sinclair/typebox").TString;
|
|
874
|
+
at: import("@sinclair/typebox").TInteger;
|
|
875
|
+
}>]>>;
|
|
876
|
+
}>;
|
|
877
|
+
export declare const contextTooLongFailureSchema: import("@sinclair/typebox").TObject<{
|
|
878
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
879
|
+
providerId: import("@sinclair/typebox").TString;
|
|
880
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
881
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
882
|
+
/** Clients name the model from the model catalog. */
|
|
883
|
+
modelId: import("@sinclair/typebox").TString;
|
|
884
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
885
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
886
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
887
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
888
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
889
|
+
group: import("@sinclair/typebox").TString;
|
|
890
|
+
}>>;
|
|
891
|
+
kind: import("@sinclair/typebox").TLiteral<"context_too_long">;
|
|
892
|
+
message: import("@sinclair/typebox").TString;
|
|
893
|
+
modelId: import("@sinclair/typebox").TString;
|
|
894
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
895
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
896
|
+
at: import("@sinclair/typebox").TInteger;
|
|
897
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
898
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
899
|
+
at: import("@sinclair/typebox").TInteger;
|
|
900
|
+
modelId: import("@sinclair/typebox").TString;
|
|
901
|
+
providerId: import("@sinclair/typebox").TString;
|
|
902
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
903
|
+
action: import("@sinclair/typebox").TString;
|
|
904
|
+
at: import("@sinclair/typebox").TInteger;
|
|
905
|
+
}>]>>;
|
|
906
|
+
}>;
|
|
907
|
+
export declare const internalFailureSchema: import("@sinclair/typebox").TObject<{
|
|
908
|
+
detail: import("@sinclair/typebox").TString;
|
|
909
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
910
|
+
providerId: import("@sinclair/typebox").TString;
|
|
911
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
912
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
913
|
+
/** Clients name the model from the model catalog. */
|
|
914
|
+
modelId: import("@sinclair/typebox").TString;
|
|
915
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
916
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
917
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
918
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
919
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
920
|
+
group: import("@sinclair/typebox").TString;
|
|
921
|
+
}>>;
|
|
922
|
+
kind: import("@sinclair/typebox").TLiteral<"internal">;
|
|
923
|
+
message: import("@sinclair/typebox").TString;
|
|
924
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
925
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
926
|
+
at: import("@sinclair/typebox").TInteger;
|
|
927
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
928
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
929
|
+
at: import("@sinclair/typebox").TInteger;
|
|
930
|
+
modelId: import("@sinclair/typebox").TString;
|
|
931
|
+
providerId: import("@sinclair/typebox").TString;
|
|
932
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
933
|
+
action: import("@sinclair/typebox").TString;
|
|
934
|
+
at: import("@sinclair/typebox").TInteger;
|
|
935
|
+
}>]>>;
|
|
936
|
+
}>;
|
|
937
|
+
/** A kind this client does not know: render `message` with Retry and Ask Chief of Staff. */
|
|
938
|
+
export declare const otherFailureSchema: import("@sinclair/typebox").TObject<{
|
|
939
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
940
|
+
providerId: import("@sinclair/typebox").TString;
|
|
941
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
942
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
943
|
+
/** Clients name the model from the model catalog. */
|
|
944
|
+
modelId: import("@sinclair/typebox").TString;
|
|
945
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
946
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
947
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
948
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
949
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
950
|
+
group: import("@sinclair/typebox").TString;
|
|
951
|
+
}>>;
|
|
952
|
+
kind: import("@sinclair/typebox").TString;
|
|
953
|
+
message: import("@sinclair/typebox").TString;
|
|
954
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
955
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
956
|
+
at: import("@sinclair/typebox").TInteger;
|
|
957
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
958
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
959
|
+
at: import("@sinclair/typebox").TInteger;
|
|
960
|
+
modelId: import("@sinclair/typebox").TString;
|
|
961
|
+
providerId: import("@sinclair/typebox").TString;
|
|
962
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
963
|
+
action: import("@sinclair/typebox").TString;
|
|
964
|
+
at: import("@sinclair/typebox").TInteger;
|
|
965
|
+
}>]>>;
|
|
966
|
+
}>;
|
|
967
|
+
/**
|
|
968
|
+
* Typed failure on an ordinary error service message, protocol 30 or newer, discriminated by
|
|
969
|
+
* `kind`. Clients write the card text from the kind and its fields; the last variant keeps
|
|
970
|
+
* kinds added later readable.
|
|
971
|
+
*/
|
|
972
|
+
export declare const messageFailureSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
973
|
+
command: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
974
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
975
|
+
providerId: import("@sinclair/typebox").TString;
|
|
976
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
977
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
978
|
+
/** Clients name the model from the model catalog. */
|
|
979
|
+
modelId: import("@sinclair/typebox").TString;
|
|
980
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
981
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
982
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
983
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
984
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
985
|
+
group: import("@sinclair/typebox").TString;
|
|
986
|
+
}>>;
|
|
987
|
+
kind: import("@sinclair/typebox").TLiteral<"signin_missing">;
|
|
988
|
+
message: import("@sinclair/typebox").TString;
|
|
989
|
+
product: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
990
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
991
|
+
id: import("@sinclair/typebox").TString;
|
|
992
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
993
|
+
type: import("@sinclair/typebox").TString;
|
|
994
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
995
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
996
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
997
|
+
label: import("@sinclair/typebox").TString;
|
|
998
|
+
}>;
|
|
999
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1000
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1001
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1002
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1003
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1004
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1005
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1006
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1007
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1008
|
+
action: import("@sinclair/typebox").TString;
|
|
1009
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1010
|
+
}>]>>;
|
|
1011
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1012
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1013
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1014
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1015
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1016
|
+
/** Clients name the model from the model catalog. */
|
|
1017
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1018
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1019
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1020
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1021
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1022
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1023
|
+
group: import("@sinclair/typebox").TString;
|
|
1024
|
+
}>>;
|
|
1025
|
+
kind: import("@sinclair/typebox").TLiteral<"usage_limit">;
|
|
1026
|
+
message: import("@sinclair/typebox").TString;
|
|
1027
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
1028
|
+
id: import("@sinclair/typebox").TString;
|
|
1029
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
1030
|
+
type: import("@sinclair/typebox").TString;
|
|
1031
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
1032
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
1033
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
1034
|
+
label: import("@sinclair/typebox").TString;
|
|
1035
|
+
}>;
|
|
1036
|
+
resetsAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
1037
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1038
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1039
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1040
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1041
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1042
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1043
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1044
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1045
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1046
|
+
action: import("@sinclair/typebox").TString;
|
|
1047
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1048
|
+
}>]>>;
|
|
1049
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1050
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1051
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1052
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1053
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1054
|
+
/** Clients name the model from the model catalog. */
|
|
1055
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1056
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1057
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1058
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1059
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1060
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1061
|
+
group: import("@sinclair/typebox").TString;
|
|
1062
|
+
}>>;
|
|
1063
|
+
kind: import("@sinclair/typebox").TLiteral<"no_account_available">;
|
|
1064
|
+
message: import("@sinclair/typebox").TString;
|
|
1065
|
+
poolName: import("@sinclair/typebox").TString;
|
|
1066
|
+
resetsAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
1067
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1068
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1069
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1070
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1071
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1072
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1073
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1074
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1075
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1076
|
+
action: import("@sinclair/typebox").TString;
|
|
1077
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1078
|
+
}>]>>;
|
|
1079
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1080
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1081
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1082
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1083
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1084
|
+
/** Clients name the model from the model catalog. */
|
|
1085
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1086
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1087
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1088
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1089
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1090
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1091
|
+
group: import("@sinclair/typebox").TString;
|
|
1092
|
+
}>>;
|
|
1093
|
+
kind: import("@sinclair/typebox").TLiteral<"rate_limited">;
|
|
1094
|
+
message: import("@sinclair/typebox").TString;
|
|
1095
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
1096
|
+
id: import("@sinclair/typebox").TString;
|
|
1097
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
1098
|
+
type: import("@sinclair/typebox").TString;
|
|
1099
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
1100
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
1101
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
1102
|
+
label: import("@sinclair/typebox").TString;
|
|
1103
|
+
}>;
|
|
1104
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1105
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1106
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1107
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1108
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1109
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1110
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1111
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1112
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1113
|
+
action: import("@sinclair/typebox").TString;
|
|
1114
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1115
|
+
}>]>>;
|
|
1116
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1117
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1118
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1119
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1120
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1121
|
+
/** Clients name the model from the model catalog. */
|
|
1122
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1123
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1124
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1125
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1126
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1127
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1128
|
+
group: import("@sinclair/typebox").TString;
|
|
1129
|
+
}>>;
|
|
1130
|
+
kind: import("@sinclair/typebox").TLiteral<"provider_unavailable">;
|
|
1131
|
+
message: import("@sinclair/typebox").TString;
|
|
1132
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
1133
|
+
id: import("@sinclair/typebox").TString;
|
|
1134
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
1135
|
+
type: import("@sinclair/typebox").TString;
|
|
1136
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
1137
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
1138
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
1139
|
+
label: import("@sinclair/typebox").TString;
|
|
1140
|
+
}>;
|
|
1141
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1142
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1143
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1144
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1145
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1146
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1147
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1148
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1149
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1150
|
+
action: import("@sinclair/typebox").TString;
|
|
1151
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1152
|
+
}>]>>;
|
|
1153
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1154
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1155
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1156
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1157
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1158
|
+
/** Clients name the model from the model catalog. */
|
|
1159
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1160
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1161
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1162
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1163
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1164
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1165
|
+
group: import("@sinclair/typebox").TString;
|
|
1166
|
+
}>>;
|
|
1167
|
+
kind: import("@sinclair/typebox").TLiteral<"network">;
|
|
1168
|
+
message: import("@sinclair/typebox").TString;
|
|
1169
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
1170
|
+
id: import("@sinclair/typebox").TString;
|
|
1171
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
1172
|
+
type: import("@sinclair/typebox").TString;
|
|
1173
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
1174
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
1175
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
1176
|
+
label: import("@sinclair/typebox").TString;
|
|
1177
|
+
}>;
|
|
1178
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1179
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1180
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1181
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1182
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1183
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1184
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1185
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1186
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1187
|
+
action: import("@sinclair/typebox").TString;
|
|
1188
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1189
|
+
}>]>>;
|
|
1190
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1191
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1192
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1193
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1194
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1195
|
+
/** Clients name the model from the model catalog. */
|
|
1196
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1197
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1198
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1199
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1200
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1201
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1202
|
+
group: import("@sinclair/typebox").TString;
|
|
1203
|
+
}>>;
|
|
1204
|
+
kind: import("@sinclair/typebox").TLiteral<"provider_disabled">;
|
|
1205
|
+
message: import("@sinclair/typebox").TString;
|
|
1206
|
+
provider: import("@sinclair/typebox").TObject<{
|
|
1207
|
+
id: import("@sinclair/typebox").TString;
|
|
1208
|
+
/** Canonical family such as `claude`, `codex`, `grok`, or `bedrock`; extensible. */
|
|
1209
|
+
type: import("@sinclair/typebox").TString;
|
|
1210
|
+
/** The vendor as people say it in a sentence: "Claude", "Codex", "Grok", "Bedrock". */
|
|
1211
|
+
vendorName: import("@sinclair/typebox").TString;
|
|
1212
|
+
/** The configured provider entry's display label, such as "claude_work". */
|
|
1213
|
+
label: import("@sinclair/typebox").TString;
|
|
1214
|
+
}>;
|
|
1215
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1216
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1217
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1218
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1219
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1220
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1221
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1222
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1223
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1224
|
+
action: import("@sinclair/typebox").TString;
|
|
1225
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1226
|
+
}>]>>;
|
|
1227
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1228
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1229
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1230
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1231
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1232
|
+
/** Clients name the model from the model catalog. */
|
|
1233
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1234
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1235
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1236
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1237
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1238
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1239
|
+
group: import("@sinclair/typebox").TString;
|
|
1240
|
+
}>>;
|
|
1241
|
+
kind: import("@sinclair/typebox").TLiteral<"context_too_long">;
|
|
1242
|
+
message: import("@sinclair/typebox").TString;
|
|
1243
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1244
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1245
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1246
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1247
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1248
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1249
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1250
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1251
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1252
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1253
|
+
action: import("@sinclair/typebox").TString;
|
|
1254
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1255
|
+
}>]>>;
|
|
1256
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1257
|
+
detail: import("@sinclair/typebox").TString;
|
|
1258
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1259
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1260
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1261
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1262
|
+
/** Clients name the model from the model catalog. */
|
|
1263
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1264
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1265
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1266
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1267
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1268
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1269
|
+
group: import("@sinclair/typebox").TString;
|
|
1270
|
+
}>>;
|
|
1271
|
+
kind: import("@sinclair/typebox").TLiteral<"internal">;
|
|
1272
|
+
message: import("@sinclair/typebox").TString;
|
|
1273
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1274
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1275
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1276
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1277
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1278
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1279
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1280
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1281
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1282
|
+
action: import("@sinclair/typebox").TString;
|
|
1283
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1284
|
+
}>]>>;
|
|
1285
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1286
|
+
fallbackProviders: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1287
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1288
|
+
/** The provider entry's display label, such as "claude_work". */
|
|
1289
|
+
providerLabel: import("@sinclair/typebox").TString;
|
|
1290
|
+
/** Clients name the model from the model catalog. */
|
|
1291
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1292
|
+
/** Percentage of one usage window already used; null without a fresh reading. */
|
|
1293
|
+
usedPercent: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
1294
|
+
/** Lowercase name of the window `usedPercent` comes from, such as "weekly" or "5h". */
|
|
1295
|
+
usageWindow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
1296
|
+
/** Ranking group; menus label groups only when more than one is present. */
|
|
1297
|
+
group: import("@sinclair/typebox").TString;
|
|
1298
|
+
}>>;
|
|
1299
|
+
kind: import("@sinclair/typebox").TString;
|
|
1300
|
+
message: import("@sinclair/typebox").TString;
|
|
1301
|
+
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1302
|
+
action: import("@sinclair/typebox").TLiteral<"retried">;
|
|
1303
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1304
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1305
|
+
action: import("@sinclair/typebox").TLiteral<"switched">;
|
|
1306
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1307
|
+
modelId: import("@sinclair/typebox").TString;
|
|
1308
|
+
providerId: import("@sinclair/typebox").TString;
|
|
1309
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1310
|
+
action: import("@sinclair/typebox").TString;
|
|
1311
|
+
at: import("@sinclair/typebox").TInteger;
|
|
1312
|
+
}>]>>;
|
|
1313
|
+
}>]>;
|
|
1314
|
+
export type KnownMessageFailure = Static<typeof signinMissingFailureSchema> | Static<typeof usageLimitFailureSchema> | Static<typeof noAccountAvailableFailureSchema> | Static<typeof rateLimitedFailureSchema> | Static<typeof providerUnavailableFailureSchema> | Static<typeof networkFailureSchema> | Static<typeof providerDisabledFailureSchema> | Static<typeof contextTooLongFailureSchema> | Static<typeof internalFailureSchema>;
|
|
1315
|
+
/** Narrow on `kind` with {@link isKnownMessageFailure}; anything else is an unknown kind. */
|
|
1316
|
+
export type MessageFailure = KnownMessageFailure | Static<typeof otherFailureSchema>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Whether this failure is one of the kinds this client understands, with every field that kind
|
|
1319
|
+
* requires. A known kind missing its typed fields stays an unknown-shaped failure, so a client
|
|
1320
|
+
* never reads a field such as `resetsAt` that is not there.
|
|
1321
|
+
*/
|
|
1322
|
+
export declare function isKnownMessageFailure(failure: MessageFailure): failure is KnownMessageFailure;
|
|
1323
|
+
/** Service notices that are not failures; unknown kinds render the message text. */
|
|
1324
|
+
export declare const knownServiceNoticeKindSchema: import("@sinclair/typebox").TLiteral<"context_reset">;
|
|
1325
|
+
export type KnownServiceNoticeKind = Static<typeof knownServiceNoticeKindSchema>;
|
|
1326
|
+
/** A typed service notice, protocol 30 or newer. */
|
|
1327
|
+
export declare const serviceNoticeSchema: import("@sinclair/typebox").TObject<{
|
|
1328
|
+
kind: import("@sinclair/typebox").TString;
|
|
1329
|
+
}>;
|
|
1330
|
+
export type ServiceNotice = Static<typeof serviceNoticeSchema>;
|
|
548
1331
|
/** An explicit request in a user message for Agent Base to execute one tool before inference. */
|
|
549
1332
|
export declare const toolCallRequestBlockSchema: import("@sinclair/typebox").TObject<{
|
|
550
1333
|
arguments: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TThis>]>>>>;
|
|
@@ -733,6 +1516,10 @@ export interface ServiceMessage {
|
|
|
733
1516
|
metadata: MessageMetadata;
|
|
734
1517
|
/** Supplementary diagnostics; the original full user-safe text remains in content. */
|
|
735
1518
|
error?: MessageError;
|
|
1519
|
+
/** Typed failure the client renders from, protocol 30 or newer. */
|
|
1520
|
+
failure?: MessageFailure;
|
|
1521
|
+
/** Typed non-failure notice, such as a context reset; protocol 30 or newer. */
|
|
1522
|
+
notice?: ServiceNotice;
|
|
736
1523
|
}
|
|
737
1524
|
/** One durable execution configuration transition, never model input. */
|
|
738
1525
|
export interface ConfigurationMessage extends Omit<ServiceMessage, "content"> {
|