ActionGetResponse

@torque-labs/sdk


@torque-labs/sdk / ActionGetResponse

Type Alias: ActionGetResponse

type ActionGetResponse = {
  description: string;
  disabled: boolean;
  error:   | {
     message: string;
    }
     | null;
  icon: string;
  label: string;
  links: {
     actions: {
        href: string;
        label: string;
        parameters: any[];
        type: "transaction" | "message" | "post" | "external-link";
       }[];
    };
  title: string;
  type: "action" | "completed";
};

Defined in: sdk/src/types/schemaTypes.ts:1933

Properties

description

description: string;

Defined in: sdk/src/types/schemaTypes.ts:1937


disabled?

optional disabled: boolean;

Defined in: sdk/src/types/schemaTypes.ts:1939


error?

optional error: 
  | {
  message: string;
 }
  | null;

Defined in: sdk/src/types/schemaTypes.ts:1950


icon

icon: string;

Defined in: sdk/src/types/schemaTypes.ts:1935


label

label: string;

Defined in: sdk/src/types/schemaTypes.ts:1938


optional links: {
  actions: {
     href: string;
     label: string;
     parameters: any[];
     type: "transaction" | "message" | "post" | "external-link";
    }[];
};

Defined in: sdk/src/types/schemaTypes.ts:1940

Name
Type

actions

{ href: string; label: string; parameters: any[]; type: "transaction" | "message" | "post" | "external-link"; }[]


title

title: string;

Defined in: sdk/src/types/schemaTypes.ts:1936


type?

optional type: "action" | "completed";

Defined in: sdk/src/types/schemaTypes.ts:1934

Last updated