Skip to content
Prev Previous commit
Next Next commit
fix(ironclad): rename workflowId param to avoid framework collision
  • Loading branch information
waleedlatif1 committed Mar 26, 2026
commit fd1182fc208995a33284d3009365f6fb9376adb9
4 changes: 4 additions & 0 deletions apps/sim/blocks/blocks/ironclad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ export const IroncladBlock: BlockConfig = {
credential: oauthCredential,
...rest,
}
if (result.workflowId !== undefined) {
result.ironcladWorkflowId = result.workflowId
delete result.workflowId
}
if (params.page !== undefined) result.page = Number(params.page)
if (params.pageSize !== undefined && params.pageSize !== '') {
if (params.operation === 'list_workflows') {
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/add_comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const addCommentTool: ToolConfig<IroncladAddCommentParams, IroncladAddCom
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -35,7 +35,7 @@ export const addCommentTool: ToolConfig<IroncladAddCommentParams, IroncladAddCom

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}/comments`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}/comments`,
method: 'POST',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/cancel_workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const cancelWorkflowTool: ToolConfig<
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -35,7 +35,7 @@ export const cancelWorkflowTool: ToolConfig<

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}/cancel`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}/cancel`,
method: 'POST',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/get_workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getWorkflowTool: ToolConfig<IroncladGetWorkflowParams, IroncladGetW
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -29,7 +29,7 @@ export const getWorkflowTool: ToolConfig<IroncladGetWorkflowParams, IroncladGetW

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}`,
method: 'GET',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/list_workflow_approvals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const listWorkflowApprovalsTool: ToolConfig<
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -36,7 +36,7 @@ export const listWorkflowApprovalsTool: ToolConfig<

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}/approvals`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}/approvals`,
method: 'GET',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/list_workflow_comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const listWorkflowCommentsTool: ToolConfig<
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -35,7 +35,7 @@ export const listWorkflowCommentsTool: ToolConfig<

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}/comments`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}/comments`,
method: 'GET',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
12 changes: 6 additions & 6 deletions apps/sim/tools/ironclad/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface IroncladListWorkflowsResponse extends ToolResponse {

/** Get Workflow params */
export interface IroncladGetWorkflowParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
}

/** Get Workflow response */
Expand All @@ -56,7 +56,7 @@ export interface IroncladGetWorkflowResponse extends ToolResponse {

/** Update Workflow Metadata params */
export interface IroncladUpdateWorkflowMetadataParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
actions: string
}

Expand Down Expand Up @@ -135,7 +135,7 @@ export interface IroncladUpdateRecordResponse extends ToolResponse {

/** Cancel Workflow params */
export interface IroncladCancelWorkflowParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
}

/** Cancel Workflow response */
Expand All @@ -147,7 +147,7 @@ export interface IroncladCancelWorkflowResponse extends ToolResponse {

/** List Workflow Approvals params */
export interface IroncladListWorkflowApprovalsParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
}

/** List Workflow Approvals response */
Expand All @@ -159,7 +159,7 @@ export interface IroncladListWorkflowApprovalsResponse extends ToolResponse {

/** Add Comment params */
export interface IroncladAddCommentParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
comment: string
}

Expand All @@ -172,7 +172,7 @@ export interface IroncladAddCommentResponse extends ToolResponse {

/** List Workflow Comments params */
export interface IroncladListWorkflowCommentsParams extends IroncladBaseParams {
workflowId: string
ironcladWorkflowId: string
}

/** List Workflow Comments response */
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/ironclad/update_workflow_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const updateWorkflowMetadataTool: ToolConfig<
visibility: 'hidden',
description: 'OAuth access token',
},
workflowId: {
ironcladWorkflowId: {
type: 'string',
required: true,
visibility: 'user-or-llm',
Expand All @@ -43,7 +43,7 @@ export const updateWorkflowMetadataTool: ToolConfig<

request: {
url: (params) =>
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.workflowId.trim()}/attributes`,
`https://na1.ironcladapp.com/public/api/v1/workflows/${params.ironcladWorkflowId.trim()}/attributes`,
method: 'PATCH',
headers: (params) => ({
Authorization: `Bearer ${params.accessToken}`,
Expand Down
Loading