chore: include credentials

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-05-27 13:25:43 +02:00
parent 6513bba710
commit 1db36159f5
@@ -15,6 +15,7 @@
*/
import { JsonObject, JsonValue } from '@backstage/types';
import { JSONSchema7 } from 'json-schema';
import { BackstageCredentials } from './AuthService';
export type ActionsServiceAction = {
id: string;
@@ -28,9 +29,12 @@ export type ActionsServiceAction = {
};
export interface ActionsService {
listActions: () => Promise<{ actions: ActionsServiceAction[] }>;
listActions: (opts: {
credentials: BackstageCredentials;
}) => Promise<{ actions: ActionsServiceAction[] }>;
invokeAction(opts: {
id: string;
input?: JsonObject;
credentials: BackstageCredentials;
}): Promise<{ output: JsonValue }>;
}