Membrane SDK - v0.29.2
    Preparing search index...

    Function configToNamedPayload

    • Convert the internal stored form (type + config) to the named /act-body payload fields (api, code). Inverse of translateApiDispatch / translateCodeDispatch in engine-api. Unknown or unmapped types return {} — the caller keeps type on the snapshot and falls back to reference replay via id / selector.

      Parameters

      • type: string
      • config: unknown

      Returns {
          api?: {
              method: HttpRequestMethod;
              path?: string;
              url?: string;
              body?: any;
              headers?: Record<string, string>;
              query?: Record<string, string | number | boolean>;
          };
          code?: string;
      }