File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed
auth-helpers/src/lib/recap Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export class RecapSessionCapabilityObject implements ISessionCapabilityObject {
7676 addCapabilityForResource (
7777 litResource : ILitResource ,
7878 ability : LIT_ABILITY_VALUES ,
79- data : any = { }
79+ data = { }
8080 ) : void {
8181 // Validate Lit ability is compatible with the Lit resource.
8282 if ( ! litResource . isValidLitAbility ( ability ) ) {
@@ -94,14 +94,6 @@ export class RecapSessionCapabilityObject implements ISessionCapabilityObject {
9494 const { recapNamespace, recapAbility } =
9595 getRecapNamespaceAndAbility ( ability ) ;
9696
97- if ( ! data ) {
98- return this . addAttenuation (
99- litResource . getResourceKey ( ) ,
100- recapNamespace ,
101- recapAbility
102- ) ;
103- }
104-
10597 return this . addAttenuation (
10698 litResource . getResourceKey ( ) ,
10799 recapNamespace ,
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ export function getEnv({
686686 return defaultValue ;
687687}
688688
689- export function sendRequest (
689+ export async function sendRequest (
690690 url : string ,
691691 req : RequestInit ,
692692 requestId : string
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export const ILitNodeClientSchema = z.object({
152152 sendCommandToNode : z
153153 . function ( )
154154 . args ( SendNodeCommandSchema )
155- . returns ( z . promise ( z . any ( ) ) ) , // TODO
155+ . returns ( z . promise ( z . instanceof ( Response ) ) ) ,
156156 /**
157157 *
158158 * Handshake with SGX
@@ -219,7 +219,7 @@ export const ILitNodeClientSchema = z.object({
219219 * @returns { Promise } A promise that resolves when the nodes are connected.
220220 *
221221 */
222- connect : z . function ( ) . returns ( z . promise ( z . any ( ) ) ) , // TODO
222+ connect : z . function ( ) . returns ( z . promise ( z . void ( ) ) ) ,
223223 /**
224224 * Generates a session capability object
225225 *
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export const ISessionCapabilityObjectSchema = z.object({
164164 . args (
165165 ILitResourceSchema ,
166166 LitAbilitySchema ,
167- z . any ( ) . optional ( ) // TODO
167+ z . record ( z . string ( ) , JsonSchema ) . optional ( )
168168 )
169169 . returns ( z . void ( ) ) ,
170170 /**
You can’t perform that action at this time.
0 commit comments