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

      Parameters

      • options: {
            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: string]: unknown };
                            } & { 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: string]: unknown };
                            } & { 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: string]: unknown } } & {
                                ResultPath?: string;
                            }
                            | { Cause?: string; Comment?: string; Error?: string; Type?: string };
                    };
                };
                input_schema?: Record<string, unknown>;
            };
            query?: undefined;
        } & BaseServiceMethodOptions
      • OptionalsdkOptions: SDKOptions

      Returns Promise<
          JSONFetchResponse<
              | { scopes?: { [key: string]: string[] } }
              | {
                  debug_id: string;
                  error: {
                      code: string;
                      detail: string | { loc: string[]; msg: string; type: string }[];
                      message?: string;
                  };
              },
          >,
      >