@@ -2833,6 +2833,205 @@ client.tokens().validate(
28332833</dl >
28342834
28352835
2836+ </dd >
2837+ </dl >
2838+ </details >
2839+
2840+ ## Workflows
2841+ <details ><summary ><code >client.workflows.invoke(urlOrEndpoint) -> Object</code ></summary >
2842+ <dl >
2843+ <dd >
2844+
2845+ #### 🔌 Usage
2846+
2847+ <dl >
2848+ <dd >
2849+
2850+ <dl >
2851+ <dd >
2852+
2853+ ``` java
2854+ // Simple workflow invocation (uses OAuth authentication by default)
2855+ client. workflows(). invoke(" eo3xxxx" );
2856+
2857+ // Advanced workflow invocation with all options
2858+ client. workflows(). invoke(
2859+ InvokeWorkflowOpts
2860+ .builder()
2861+ .urlOrEndpoint(" https://eo3xxxx.m.pipedream.net" )
2862+ .body(
2863+ new HashMap<String , Object > () {{
2864+ put(" name" , " John Doe" );
2865+ put(
" email" ,
" [email protected] " );
2866+ }}
2867+ )
2868+ .headers(
2869+ new HashMap<String , String > () {{
2870+ put(" Content-Type" , " application/json" );
2871+ put(" Authorization" , " Bearer your-token" ); // For STATIC_BEARER auth
2872+ }}
2873+ )
2874+ .method(" POST" )
2875+ .authType(HTTPAuthType . STATIC_BEARER )
2876+ .build()
2877+ );
2878+ ```
2879+ </dd >
2880+ </dl >
2881+ </dd >
2882+ </dl >
2883+
2884+ #### ⚙️ Parameters
2885+
2886+ <dl >
2887+ <dd >
2888+
2889+ <dl >
2890+ <dd >
2891+
2892+ ** urlOrEndpoint:** ` String ` — Either a workflow endpoint ID (e.g., 'eo3xxxx') or a full workflow URL
2893+
2894+ </dd >
2895+ </dl >
2896+
2897+ <dl >
2898+ <dd >
2899+
2900+ ** body:** ` Optional<Object> ` — Request body to send to the workflow (will be JSON serialized)
2901+
2902+ </dd >
2903+ </dl >
2904+
2905+ <dl >
2906+ <dd >
2907+
2908+ ** headers:** ` Optional<Map<String, String>> ` — Additional headers to include in the request
2909+
2910+ </dd >
2911+ </dl >
2912+
2913+ <dl >
2914+ <dd >
2915+
2916+ ** method:** ` Optional<String> ` — HTTP method to use (defaults to 'POST')
2917+
2918+ </dd >
2919+ </dl >
2920+
2921+ <dl >
2922+ <dd >
2923+
2924+ ** authType:** ` Optional<HTTPAuthType> ` — Authentication type: OAUTH (default), STATIC_BEARER, or NONE
2925+
2926+ </dd >
2927+ </dl >
2928+ </dd >
2929+ </dl >
2930+
2931+
2932+ </dd >
2933+ </dl >
2934+ </details >
2935+
2936+ <details ><summary ><code >client.workflows.invokeForExternalUser(urlOrEndpoint, externalUserId) -> Object</code ></summary >
2937+ <dl >
2938+ <dd >
2939+
2940+ #### 🔌 Usage
2941+
2942+ <dl >
2943+ <dd >
2944+
2945+ <dl >
2946+ <dd >
2947+
2948+ ``` java
2949+ // Simple external user invocation (uses OAuth authentication by default)
2950+ client. workflows(). invokeForExternalUser(" eo3xxxx" , " user123" );
2951+
2952+ // Advanced external user invocation with all options
2953+ client. workflows(). invokeForExternalUser(
2954+ InvokeWorkflowForExternalUserOpts
2955+ .builder()
2956+ .url(" https://eo3xxxx.m.pipedream.net" )
2957+ .externalUserId(" user123" )
2958+ .body(
2959+ new HashMap<String , Object > () {{
2960+ put(" action" , " process_data" );
2961+ put(" data" , Arrays . asList(" item1" , " item2" ));
2962+ }}
2963+ )
2964+ .headers(
2965+ new HashMap<String , String > () {{
2966+ put(" X-Custom-Header" , " value" );
2967+ }}
2968+ )
2969+ .method(" POST" )
2970+ .authType(HTTPAuthType . OAUTH )
2971+ .build()
2972+ );
2973+ ```
2974+ </dd >
2975+ </dl >
2976+ </dd >
2977+ </dl >
2978+
2979+ #### ⚙️ Parameters
2980+
2981+ <dl >
2982+ <dd >
2983+
2984+ <dl >
2985+ <dd >
2986+
2987+ ** url:** ` String ` — The full workflow URL to invoke
2988+
2989+ </dd >
2990+ </dl >
2991+
2992+ <dl >
2993+ <dd >
2994+
2995+ ** externalUserId:** ` String ` — The external user ID for Pipedream Connect authentication
2996+
2997+ </dd >
2998+ </dl >
2999+
3000+ <dl >
3001+ <dd >
3002+
3003+ ** body:** ` Optional<Object> ` — Request body to send to the workflow (will be JSON serialized)
3004+
3005+ </dd >
3006+ </dl >
3007+
3008+ <dl >
3009+ <dd >
3010+
3011+ ** headers:** ` Optional<Map<String, String>> ` — Additional headers to include in the request
3012+
3013+ </dd >
3014+ </dl >
3015+
3016+ <dl >
3017+ <dd >
3018+
3019+ ** method:** ` Optional<String> ` — HTTP method to use (defaults to 'POST')
3020+
3021+ </dd >
3022+ </dl >
3023+
3024+ <dl >
3025+ <dd >
3026+
3027+ ** authType:** ` Optional<HTTPAuthType> ` — Authentication type: OAUTH (default), STATIC_BEARER, or NONE
3028+
3029+ </dd >
3030+ </dl >
3031+ </dd >
3032+ </dl >
3033+
3034+
28363035</dd >
28373036</dl >
28383037</details >
0 commit comments