"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// tools/browser/profiles/types.ts
var types_exports = {};
__export(types_exports, {
  transformCreateInput: () => transformCreateInput,
  transformProfile: () => transformProfile,
  transformSaveInput: () => transformSaveInput,
  transformSession: () => transformSession,
  transformStateResponse: () => transformStateResponse
});
module.exports = __toCommonJS(types_exports);
function transformProfile(api) {
  return {
    id: api.id,
    name: api.name,
    repoId: api.repo_id,
    cookieDomains: api.cookie_domains,
    lastUsedAt: api.last_used_at,
    createdAt: api.created_at,
    updatedAt: api.updated_at
  };
}
function transformCreateInput(input) {
  return {
    name: input.name,
    repo_id: input.repoId
  };
}
function transformSession(api) {
  return {
    sessionId: api.session_id,
    debugUrl: api.debug_url || ""
  };
}
function transformSaveInput(input) {
  return {
    session_id: input.sessionId,
    profile_id: input.profileId
  };
}
function transformStateResponse(api) {
  return {
    profileId: api.profile_id,
    stateUrl: api.state_url,
    expiresIn: api.expires_in
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  transformCreateInput,
  transformProfile,
  transformSaveInput,
  transformSession,
  transformStateResponse
});
//# sourceMappingURL=types.cjs.map