File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 11{
22  "name" : " @pipedream/sdk" 
3-   "version" : " 0.0.12 " 
3+   "version" : " 0.0.13 " 
44  "description" : " Pipedream SDK" 
55  "type" : " module" 
66  "main" : " dist/server/index.js" 
Original file line number Diff line number Diff line change @@ -48,6 +48,28 @@ export type ConnectTokenCreateOpts = {
4848  external_user_id : string ; 
4949} ; 
5050
51+ export  type  AppInfo  =  { 
52+   /** 
53+    * ID of the app. Only applies for Oauth apps. 
54+    */ 
55+   id ?: string ; 
56+ 
57+   /** 
58+    * https://pipedream.com/docs/connect/quickstart#find-your-apps-name-slug 
59+    */ 
60+   name_slug : string ; 
61+ } 
62+ 
63+ /** 
64+  * Response received after requesting project info. 
65+  */ 
66+ export  type  ProjectInfoResponse  =  { 
67+   /** 
68+    * An array of apps linked to the project. 
69+    */ 
70+   apps : AppInfo [ ] 
71+ } 
72+ 
5173/** 
5274 * Response received after creating a connect token. 
5375 */ 
@@ -491,4 +513,10 @@ class ServerClient {
491513      method : "DELETE" , 
492514    } ) ; 
493515  } 
516+ 
517+   async  getProjectInfo ( ) : Promise < ProjectInfoResponse >  { 
518+     return  this . _makeConnectRequest < ProjectInfoResponse > ( "/projects/info" ,  { 
519+       method : "GET" , 
520+     } ) ; 
521+   } 
494522} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments