This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-client-js.git


The following commit(s) were added to refs/heads/master by this push:
     new 06a2e0b  Add missing options in main.d.ts Options interface, and fix 
readme for auth_handler (#206)
06a2e0b is described below

commit 06a2e0b7ba0260537e88c061c8df0299c57098c6
Author: Andrew Levine <[email protected]>
AuthorDate: Tue Mar 10 21:38:02 2020 -0500

    Add missing options in main.d.ts Options interface, and fix readme for 
auth_handler (#206)
---
 README.md     |  2 +-
 lib/main.d.ts | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 17846ae..2cfb1d8 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ ow.actions.invoke('sample').then(result => 
console.log(result))
 ```
 
 #### using 3rd party authentication handler
-You can specify an authentication handler in `options.auth_handler` this is an 
object that provides a function `getAuthHeader` that returns a Promise or 
String to be used in the `Authorization` http header for every http request.
+You can specify an authentication handler in `options.auth_handler` this is an 
object that provides a function `getAuthHeader` that returns a Promise 
resolving to a string to be used in the `Authorization` http header for every 
http request.
 ```javascript
 const authHandler = {
   getAuthHeader: ()=>{
diff --git a/lib/main.d.ts b/lib/main.d.ts
index e2fb0ba..a7df27e 100644
--- a/lib/main.d.ts
+++ b/lib/main.d.ts
@@ -16,6 +16,7 @@
  */
 
 import * as Swagger from 'swagger-schema-official'
+import { Agent } from 'http'
 
 export = openwhisk;
 
@@ -30,6 +31,15 @@ declare namespace openwhisk {
         ignore_certs?: boolean;
         apigw_token?: string;
         apigw_space_guid?: string;
+        proxy?: string;
+        agent?: Agent;
+        apiversion?: string;
+        noUserAgent?: boolean;
+        cert?: string;
+        key?: string;
+        auth_handler?: {
+          getAuthHeader: () => Promise<string>
+        }
     }
 
     // Client

Reply via email to