@@ -393,84 +393,6 @@ export function generateWorkflowSDKCode(
393393 "apiKey: process.env.V0_API_KEY!" ,
394394 ] ;
395395 }
396-
397- function buildClerkGetUserParams ( config : Record < string , unknown > ) : string [ ] {
398- return [
399- `userId: \`${ convertTemplateToJS ( ( config . userId as string ) || "" ) } \`` ,
400- ] ;
401- }
402-
403- function buildClerkCreateUserParams (
404- config : Record < string , unknown >
405- ) : string [ ] {
406- const params = [
407- `emailAddress: \`${ convertTemplateToJS ( ( config . emailAddress as string ) || "" ) } \`` ,
408- ] ;
409- if ( config . password ) {
410- params . push (
411- `password: \`${ convertTemplateToJS ( config . password as string ) } \``
412- ) ;
413- }
414- if ( config . firstName ) {
415- params . push (
416- `firstName: \`${ convertTemplateToJS ( config . firstName as string ) } \``
417- ) ;
418- }
419- if ( config . lastName ) {
420- params . push (
421- `lastName: \`${ convertTemplateToJS ( config . lastName as string ) } \``
422- ) ;
423- }
424- if ( config . publicMetadata ) {
425- params . push (
426- `publicMetadata: \`${ convertTemplateToJS ( config . publicMetadata as string ) } \``
427- ) ;
428- }
429- if ( config . privateMetadata ) {
430- params . push (
431- `privateMetadata: \`${ convertTemplateToJS ( config . privateMetadata as string ) } \``
432- ) ;
433- }
434- return params ;
435- }
436-
437- function buildClerkUpdateUserParams (
438- config : Record < string , unknown >
439- ) : string [ ] {
440- const params = [
441- `userId: \`${ convertTemplateToJS ( ( config . userId as string ) || "" ) } \`` ,
442- ] ;
443- if ( config . firstName ) {
444- params . push (
445- `firstName: \`${ convertTemplateToJS ( config . firstName as string ) } \``
446- ) ;
447- }
448- if ( config . lastName ) {
449- params . push (
450- `lastName: \`${ convertTemplateToJS ( config . lastName as string ) } \``
451- ) ;
452- }
453- if ( config . publicMetadata ) {
454- params . push (
455- `publicMetadata: \`${ convertTemplateToJS ( config . publicMetadata as string ) } \``
456- ) ;
457- }
458- if ( config . privateMetadata ) {
459- params . push (
460- `privateMetadata: \`${ convertTemplateToJS ( config . privateMetadata as string ) } \``
461- ) ;
462- }
463- return params ;
464- }
465-
466- function buildClerkDeleteUserParams (
467- config : Record < string , unknown >
468- ) : string [ ] {
469- return [
470- `userId: \`${ convertTemplateToJS ( ( config . userId as string ) || "" ) } \`` ,
471- ] ;
472- }
473-
474396 function buildStepInputParams (
475397 actionType : string ,
476398 config : Record < string , unknown >
@@ -488,11 +410,6 @@ export function generateWorkflowSDKCode(
488410 Search : ( ) => buildFirecrawlParams ( actionType , config ) ,
489411 "Create Chat" : ( ) => buildV0CreateChatParams ( config ) ,
490412 "Send Message" : ( ) => buildV0SendMessageParams ( config ) ,
491- // Clerk
492- "Get User" : ( ) => buildClerkGetUserParams ( config ) ,
493- "Create User" : ( ) => buildClerkCreateUserParams ( config ) ,
494- "Update User" : ( ) => buildClerkUpdateUserParams ( config ) ,
495- "Delete User" : ( ) => buildClerkDeleteUserParams ( config ) ,
496413 } ;
497414
498415 const builder = paramBuilders [ actionType ] ;
0 commit comments