File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1238,6 +1238,7 @@ export type Credential = {
1238
1238
ephemeral : boolean
1239
1239
expiresAt ?: Date | undefined
1240
1240
refreshToken ?: string | undefined
1241
+ checkParam ?: string | undefined
1241
1242
}
1242
1243
1243
1244
// Types for OpenAI API-compatible models
Original file line number Diff line number Diff line change @@ -843,6 +843,7 @@ describe("gptscript module", () => {
843
843
ephemeral : false ,
844
844
expiresAt : new Date ( Date . now ( ) + 5000 ) , // 5 seconds from now
845
845
type : CredentialType . Tool ,
846
+ checkParam : "my-check-param" ,
846
847
} )
847
848
} catch ( e ) {
848
849
throw new Error ( "failed to create credential: " + e )
@@ -856,6 +857,8 @@ describe("gptscript module", () => {
856
857
const result = await g . revealCredential ( [ "default" ] , name )
857
858
expect ( result . env [ "TEST" ] ) . toEqual ( value )
858
859
expect ( result . expiresAt ! . valueOf ( ) ) . toBeLessThan ( new Date ( ) . valueOf ( ) )
860
+ expect ( result . type ) . toEqual ( CredentialType . Tool )
861
+ expect ( result . checkParam ) . toEqual ( "my-check-param" )
859
862
} catch ( e ) {
860
863
throw new Error ( "failed to reveal credential: " + e )
861
864
}
You can’t perform that action at this time.
0 commit comments