Skip to content

Commit

Permalink
workflows methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Oct 18, 2023
1 parent 75ef263 commit 9dea3ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2477,21 +2477,23 @@ export type ViewsUpdateArguments = BaseViewsArguments & TokenOverridable & (View
hash?: string;
};

// TODO: docs state workflows.* methods are deprecated. should we mark them as such?
/*
* `workflows.*`
*/
// https://api.slack.com/methods/workflows.stepCompleted
export interface WorkflowsStepCompletedArguments extends TokenOverridable {
workflow_step_execute_id: string;
outputs?: Record<string, unknown>;
}

// https://api.slack.com/methods/workflows.stepFailed
export interface WorkflowsStepFailedArguments extends TokenOverridable {
workflow_step_execute_id: string;
error: {
message: string;
};
}

// https://api.slack.com/methods/workflows.updateStep
export interface WorkflowsUpdateStepArguments extends TokenOverridable {
workflow_step_edit_id: string;
step_image_url?: string;
Expand Down

0 comments on commit 9dea3ab

Please sign in to comment.