@@ -24,7 +24,8 @@ import type { JSX } from "@opentui/solid"
2424
2525interface LocationCollection < Value > {
2626 list ( location ?: LocationRef ) : Value [ ] | undefined
27- refresh ( location ?: LocationRef ) : Promise < void >
27+ sync ( location ?: LocationRef ) : Promise < void >
28+ invalidate ( location ?: LocationRef ) : void
2829}
2930
3031export interface Data {
@@ -42,37 +43,45 @@ export interface Data {
4243 status ( sessionID : string ) : "idle" | "running"
4344 readonly pending : {
4445 list ( sessionID : string ) : SessionPendingInfo [ ]
45- refresh ( sessionID : string ) : Promise < void >
46+ sync ( sessionID : string ) : Promise < void >
47+ invalidate ( sessionID : string ) : void
4648 }
47- refresh ( sessionID : string ) : Promise < void >
49+ sync ( sessionID : string ) : Promise < void >
50+ invalidate ( sessionID : string ) : void
4851 readonly message : {
4952 list ( sessionID : string ) : SessionMessageInfo [ ]
5053 get ( sessionID : string , messageID : string ) : SessionMessageInfo | undefined
51- refresh ( sessionID : string ) : Promise < void >
54+ sync ( sessionID : string ) : Promise < void >
55+ invalidate ( sessionID : string ) : void
5256 }
5357 readonly permission : {
5458 list ( sessionID : string ) : PermissionV2Request [ ] | undefined
55- refresh ( sessionID : string ) : Promise < void >
59+ sync ( sessionID : string ) : Promise < void >
60+ invalidate ( sessionID : string ) : void
5661 }
5762 readonly form : {
5863 list ( sessionID : string , location ?: LocationRef ) : Array < FormInfo & { readonly location ?: LocationRef } > | undefined
59- refresh ( sessionID : string , location ?: LocationRef ) : Promise < void >
64+ sync ( sessionID : string , location ?: LocationRef ) : Promise < void >
65+ invalidate ( sessionID : string , location ?: LocationRef ) : void
6066 }
6167 }
6268 readonly project : {
6369 readonly permission : {
6470 list ( projectID : string ) : PermissionSavedInfo [ ] | undefined
65- refresh ( projectID : string ) : Promise < void >
71+ sync ( projectID : string ) : Promise < void >
72+ invalidate ( projectID : string ) : void
6673 }
6774 }
6875 readonly shell : {
6976 list ( location ?: LocationRef ) : ShellInfo [ ]
7077 get ( id : string ) : ShellInfo | undefined
71- refresh ( location ?: LocationRef ) : Promise < void >
78+ sync ( location ?: LocationRef ) : Promise < void >
79+ invalidate ( location ?: LocationRef ) : void
7280 }
7381 readonly location : {
7482 default ( ) : LocationRef
75- refresh ( location ?: LocationRef ) : Promise < void >
83+ sync ( location ?: LocationRef ) : Promise < void >
84+ invalidate ( location ?: LocationRef ) : void
7685 readonly agent : LocationCollection < AgentInfo >
7786 readonly command : LocationCollection < CommandInfo >
7887 readonly integration : LocationCollection < IntegrationInfo >
0 commit comments