import {
  gql
} from "../chunk-MOD44I3G.js";
import {
  init_cjs_shims
} from "../chunk-7GH3YGSC.js";

// src/queries/createLedger.query.ts
init_cjs_shims();
var query = gql`
  mutation CreateLedger(
    $ledger: CreateLedgerInput!
    $ik: SafeString!
    $schema: SchemaMatchInput
  ) {
    createLedger(ik: $ik, ledger: $ledger, schema: $schema) {
      __typename

      ... on CreateLedgerResult {
        ledger {
          id
          ik
          name
          type
        }
        isIkReplay
      }
      ... on BadRequestError {
        code
        message
        retryable
      }
      ... on InternalError {
        code
        message
        retryable
      }
    }
  }
`;
export {
  query
};
