Globus SDK for JavaScript
    Preparing search index...
    • Validate a flow definition and its schema.

      Parameters

      • options:
            | undefined
            | {
                payload: {
                    definition: {
                        Comment?: string;
                        StartAt: string;
                        States: {
                            [key: string]: | {
                                Comment?: unknown;
                                End?: unknown;
                                InputPath?: unknown;
                                Next?: unknown;
                                Parameters?: unknown;
                                ResultPath?: unknown;
                                Type?: string;
                            } & { End?: boolean; Next?: string } & {
                                Parameters?: { [key: ...]: ... };
                            } & { InputPath?: string } & { ResultPath?: string }
                            | {
                                ActionScope?: string;
                                ActionUrl: string;
                                Catch?: unknown;
                                Comment?: unknown;
                                End?: unknown;
                                ExceptionOnActionFailure: boolean;
                                InputPath?: unknown;
                                Next?: unknown;
                                Parameters?: unknown;
                                ResultPath?: unknown;
                                RunAs?: string;
                                Type: string;
                                WaitTime?: number;
                            } & { End?: boolean; Next?: string } & {
                                Parameters?: { [key: ...]: ... };
                            } & { InputPath?: string } & { ResultPath?: string } & {
                                Catch?: (...)[];
                            }
                            | {
                                Comment?: unknown;
                                Next?: string;
                                Seconds?: number;
                                SecondsPath?: string;
                                Timestamp?: string;
                                TimestampPath?: string;
                                Type?: string;
                            }
                            | {
                                Choices: (
                                    { Next?: ... } & {
                                        And?: ...;
                                        BooleanEquals?: ...;
                                        BooleanEqualsPath?: ...;
                                        IsBoolean?: ...;
                                        IsNull?: ...;
                                        IsNumeric?: ...;
                                        IsPresent?: ...;
                                        IsString?: ...;
                                        IsTimestamp?: ...;
                                        Not?: ...;
                                        NumericEquals?: ...;
                                        NumericEqualsPath?: ...;
                                        NumericGreaterThan?: ...;
                                        NumericGreaterThanEquals?: ...;
                                        NumericGreaterThanEqualsPath?: ...;
                                        NumericGreaterThanPath?: ...;
                                        NumericLessThan?: ...;
                                        NumericLessThanEquals?: ...;
                                        NumericLessThanEqualsPath?: ...;
                                        NumericLessThanPath?: ...;
                                        Or?: ...;
                                        StringEquals?: ...;
                                        StringEqualsPath?: ...;
                                        StringGreaterThan?: ...;
                                        StringGreaterThanEquals?: ...;
                                        StringGreaterThanEqualsPath?: ...;
                                        StringGreaterThanPath?: ...;
                                        StringLessThan?: ...;
                                        StringLessThanEquals?: ...;
                                        StringLessThanEqualsPath?: ...;
                                        StringLessThanPath?: ...;
                                        StringMatches?: ...;
                                        TimestampEquals?: ...;
                                        TimestampEqualsPath?: ...;
                                        TimestampGreaterThan?: ...;
                                        TimestampGreaterThanEquals?: ...;
                                        TimestampGreaterThanEqualsPath?: ...;
                                        TimestampGreaterThanPath?: ...;
                                        TimestampLessThan?: ...;
                                        TimestampLessThanEquals?: ...;
                                        TimestampLessThanEqualsPath?: ...;
                                        TimestampLessThanPath?: ...;
                                        Variable?: ...;
                                    }
                                )[];
                                Comment?: string;
                                Default?: string;
                                Type?: string;
                            }
                            | {
                                Comment?: unknown;
                                Next: string;
                                Parameters: unknown;
                                ResultPath: unknown;
                                Type?: string;
                            } & { Parameters?: { [key: ...]: ... } } & { ResultPath?: string }
                            | { Cause?: string; Comment?: string; Error?: string; Type?: string };
                        };
                    };
                    input_schema?: Record<string, unknown>;
                };
                query?: undefined;
            } & BaseServiceMethodOptions
      • OptionalsdkOptions: SDKOptions

      Returns Promise<Response>