@wix/auto_sdk_site-import_imports 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +6 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +6 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +6 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +6 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +6 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/ecom-site-import-v1-import-imports.universal.ts","../../src/ecom-site-import-v1-import-imports.http.ts","../../src/ecom-site-import-v1-import-imports.public.ts","../../src/ecom-site-import-v1-import-imports.context.ts"],"sourcesContent":["export * from './src/ecom-site-import-v1-import-imports.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomSiteImportV1Import from './ecom-site-import-v1-import-imports.http.js';\n\n/**\n * Entity the service acts on (one import execution). No CRUD surface — it exists\n * only so the FQDN, tenancy, and permissions can hang off it.\n */\nexport interface Import {\n /** @format GUID */\n _id?: string;\n}\n\nexport interface StartImportRequest {\n /**\n * Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n * @minLength 1\n * @maxLength 20000\n */\n request: string;\n /**\n * The source site being imported (e.g. \"https://shop.example.com\" or just\n * \"shop.example.com\" — the scheme is optional and normalized server-side).\n * Optional, but SEND IT whenever the user names a site: it is the source\n * identity, so it selects which migration the request joins. Set, it is\n * authoritative; absent, the service infers the site from `request`, and a\n * request that identifies neither a site nor inline data to import is\n * rejected with SITE_UNIDENTIFIED rather than guessed at. Two imports naming\n * the same site continue ONE migration; two different sites run as two\n * independent migrations, concurrently. Leave empty only when the import\n * carries its own data instead of a source site — name the files in\n * `file_urls` (preferred) or paste the data into `request`.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * Files to import — URLs of CSV/TSV exports the run should read instead of\n * crawling a source site. OPTIONAL (spec 0019).\n *\n * Setting it makes this a FILE run: the service does NOT probe a source site\n * and asks for NO source credentials (reading a file needs no account), and\n * the agent downloads these into the migration's drops/ directory.\n *\n * It is also an identity when nothing else is: with no `source_url`, the\n * FILESET is the migration identity — the same URLs re-sent continue the SAME\n * migration in the same environment, and a different set is a separate\n * migration with its own destination site. With `source_url` set, that stays\n * authoritative for routing and these files are imported into ITS migration.\n *\n * http/https only, ports 80/443; each URL is validated before it reaches the\n * sandbox, and one that is not requestable rejects the whole call with\n * INVALID_FILE_URL rather than being silently dropped (dropping one would\n * change the fileset, and with it the migration this request joins).\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n /**\n * Start a brand-new import even though this account already has one for the\n * same source. OPTIONAL, default false.\n *\n * By default an import belongs to the ACCOUNT's migration of a source (a site\n * URL, or a set of uploaded files such as a CSV), not to the user or to a moment\n * in time: when the account already has an import for this source, StartImport\n * returns THAT import's `import_id` whatever its status — running, waiting for\n * input, deployed, failed or cancelled — and starts nothing. The Wix site is not\n * part of the source: a source has one import and one site, whether the caller\n * started on a site or the import creates one. Continue the import with\n * SendImportMessage. Set this to true to import the same URL or files again\n * as a NEW source of its own (its own project, checkpoint, sandbox and site),\n * whatever the existing import's status; the existing import is untouched and a\n * later plain start still returns it. Reach the new import by its `import_id`.\n */\n forceNew?: boolean;\n}\n\nexport interface StartImportResponse {\n /**\n * The import's id — the ONE id clients keep; poll it with GetImportStatus.\n * @format GUID\n */\n importId?: string;\n /** Detected source platform (absent when the request has no URL). */\n sourcePlatform?: SourcePlatformWithLiterals;\n /** Confidence of the source-platform detection. */\n sourceConfidence?: SourceConfidenceWithLiterals;\n /**\n * The EXISTING Wix site this import writes into — the site the request was\n * scoped to. There is deliberately no destination field on the REQUEST: the\n * site is taken from the caller's context, which the gateway signs, so a\n * caller cannot name a site it is not already acting on and there is nothing\n * to authorize. This field echoes what the service resolved, so a client can\n * show the user which site is about to be written to before any write.\n *\n * EMPTY means the import will CREATE a new Wix Managed Headless site (the only\n * behaviour before this field existed) — the id does not exist yet, so poll\n * GetImportStatus for it rather than expecting it here.\n * @format GUID\n */\n destinationSiteId?: string;\n /**\n * True when this call did NOT start an import because the account already had\n * one for the same source, and `import_id` is that existing import. Nothing\n * was submitted, so `request` was not delivered: send it with\n * SendImportMessage if it should reach the agent. False when `force_new` started\n * a new import.\n */\n existingImport?: boolean;\n}\n\nexport enum SourcePlatform {\n UNKNOWN_SOURCE_PLATFORM = 'UNKNOWN_SOURCE_PLATFORM',\n SHOPIFY = 'SHOPIFY',\n WOOCOMMERCE = 'WOOCOMMERCE',\n WIX = 'WIX',\n MAGENTO = 'MAGENTO',\n GENERIC = 'GENERIC',\n /**\n * Not a probe result: the request supplied `file_urls`, so it was accepted as\n * a FILE run and no source site was probed at all (spec 0019 §3). Reported\n * with no `source_confidence` — there was nothing to be confident about.\n */\n CSV = 'CSV',\n}\n\n/** @enumType */\nexport type SourcePlatformWithLiterals =\n | SourcePlatform\n | 'UNKNOWN_SOURCE_PLATFORM'\n | 'SHOPIFY'\n | 'WOOCOMMERCE'\n | 'WIX'\n | 'MAGENTO'\n | 'GENERIC'\n | 'CSV';\n\nexport enum SourceConfidence {\n UNKNOWN_SOURCE_CONFIDENCE = 'UNKNOWN_SOURCE_CONFIDENCE',\n HIGH = 'HIGH',\n MEDIUM = 'MEDIUM',\n LOW = 'LOW',\n}\n\n/** @enumType */\nexport type SourceConfidenceWithLiterals =\n | SourceConfidence\n | 'UNKNOWN_SOURCE_CONFIDENCE'\n | 'HIGH'\n | 'MEDIUM'\n | 'LOW';\n\nexport interface GetImportStatusRequest {\n /**\n * Id of the import to poll (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n /**\n * Opt in to the agent's recent-activity feed. Default false: every response\n * carries `recent_activity_count` (cheap) but the entries themselves ride out\n * only when this is set — a chat-rendering client sets it on every poll, a\n * status-only integration never pays for it.\n */\n includeRecentActivity?: boolean;\n /**\n * Ids (from a previous poll's `artifacts` manifest) whose `content` should be\n * inflated in this response. Empty → manifest only. Unknown ids are ignored:\n * an artifact may simply not exist yet on an earlier turn.\n * @maxSize 10\n * @maxLength 64\n */\n artifactIds?: string[];\n}\n\nexport interface GetImportStatusResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /** Current lifecycle status of the import. */\n status?: ImportStatusWithLiterals;\n /**\n * Live site URL, set (and verified reachable) once status is DEPLOYED.\n * @maxLength 2048\n */\n deployUrl?: string;\n /**\n * Human-readable detail, ready to show the user: a live progress line while\n * IMPORTING (\"Now: Importing products (2 of 6 steps done) — Latest update:\n * ...\"), the agent's closing summary on DEPLOYED, the failure explanation on\n * FAILED, or the question text on NEEDS_INPUT. When review documents are\n * available it also names them and how to fetch them (see `artifacts`) — the\n * one field every client reads, so the documents can never go unnoticed.\n * @maxLength 4096\n */\n message?: string;\n /**\n * Suggested answers when the agent is blocked on a decision (status =\n * NEEDS_INPUT) — a short menu of labels the user can pick from; they may also\n * answer in free text. The question ITSELF is `message` (it was previously\n * duplicated verbatim into a `question.text` that carried no extra\n * information). Bounds satisfy flynt (PUBLIC repeated string needs maxSize +\n * per-item maxLength).\n * @maxSize 20\n * @maxLength 512\n */\n options?: string[];\n /**\n * The agent's recent activity (chat messages and tool actions), oldest first.\n * Populated ONLY when the request set `include_recent_activity`; otherwise\n * empty — see `recent_activity_count`, which is always present.\n * @maxSize 20\n */\n recentActivity?: ImportActivity[];\n /**\n * How many activity entries this poll had available, ALWAYS populated even\n * when `recent_activity` is empty — so a client can tell there is progress to\n * read without paying for the text of it.\n */\n recentActivityCount?: number;\n /**\n * Latest snapshot of the agent's working plan (its task list). Empty until\n * the agent first writes a plan.\n * @maxSize 50\n */\n todos?: ImportTodo[];\n /**\n * Human-review plan artifacts the agent produced (mapping plan + summary,\n * gaps ledger, execution plan, completion summary), so the user can review\n * the plan OUTSIDE the sandbox — before approving a checkpoint gate and after\n * the run ends. Always the full MANIFEST (id/title/format/content_length);\n * `content` is inflated only for the ids named in the request's\n * `artifact_ids`. Empty until the agent has written them, and on polls served\n * from the durable record after the sandbox is reaped (read live otherwise).\n * An `artifact_ids` entry that is not in this manifest simply comes back\n * without content — ignored, not an error (it may be a typo, an id given with\n * its file extension when ids never carry one, a machine artifact that is\n * deliberately never surfaced, or a document not written yet). No separate\n * field reports the misses: the manifest here is always complete, so a caller\n * can see exactly which of its requested ids are absent.\n * @maxSize 10\n */\n artifacts?: ImportArtifact[];\n /**\n * The existing Wix site this import is currently writing into, mirroring\n * StartImportResponse.destination_site_id — absent when the pipeline has\n * not yet created/adopted one. A STRUCTURED field (not just embedded in\n * `message` prose) so another service can machine-verify which site a\n * given import_id actually belongs to before correlating other data to it,\n * rather than scraping free text.\n * @format GUID\n */\n destinationSiteId?: string;\n}\n\nexport enum ImportStatus {\n UNKNOWN_IMPORT_STATUS = 'UNKNOWN_IMPORT_STATUS',\n IMPORTING = 'IMPORTING',\n /** Terminal success: the imported store is deployed as a live Wix site. */\n DEPLOYED = 'DEPLOYED',\n FAILED = 'FAILED',\n CANCELLED = 'CANCELLED',\n /**\n * Recoverable: the agent needs a user decision to continue. The question is\n * GetImportStatusResponse.message (with any suggested answers in `options`);\n * answer via SendImportMessage (resumes the same session).\n */\n NEEDS_INPUT = 'NEEDS_INPUT',\n}\n\n/** @enumType */\nexport type ImportStatusWithLiterals =\n | ImportStatus\n | 'UNKNOWN_IMPORT_STATUS'\n | 'IMPORTING'\n | 'DEPLOYED'\n | 'FAILED'\n | 'CANCELLED'\n | 'NEEDS_INPUT';\n\n/**\n * One entry of the agent's recent activity feed — what the agent said or did,\n * so a polling client can render the import as a live chat conversation.\n */\nexport interface ImportActivity {\n /** Whether this entry is a chat message or a tool action. */\n kind?: ImportActivityKindWithLiterals;\n /**\n * The message text, or a short label of the tool action.\n * @maxLength 2048\n */\n text?: string;\n}\n\nexport enum ImportActivityKind {\n UNKNOWN_IMPORT_ACTIVITY_KIND = 'UNKNOWN_IMPORT_ACTIVITY_KIND',\n /** A chat message from the import agent. */\n TEXT = 'TEXT',\n /**\n * A tool action the agent performed (e.g. a shell command or file edit),\n * rendered as a short human-readable label.\n */\n TOOL_USE = 'TOOL_USE',\n}\n\n/** @enumType */\nexport type ImportActivityKindWithLiterals =\n | ImportActivityKind\n | 'UNKNOWN_IMPORT_ACTIVITY_KIND'\n | 'TEXT'\n | 'TOOL_USE';\n\n/**\n * One item of the agent's working plan (its self-maintained task list). The\n * list is a snapshot: each poll returns the latest full plan, and items move\n * PENDING → IN_PROGRESS → COMPLETED as the import advances.\n */\nexport interface ImportTodo {\n /**\n * What this plan item does (imperative, e.g. \"Import products\").\n * @maxLength 2048\n */\n content?: string;\n /** Progress of this plan item. */\n status?: ImportTodoStatusWithLiterals;\n /**\n * Present-tense label to show while the item is IN_PROGRESS\n * (e.g. \"Importing products\").\n * @maxLength 2048\n */\n activeForm?: string;\n}\n\nexport enum ImportTodoStatus {\n UNKNOWN_IMPORT_TODO_STATUS = 'UNKNOWN_IMPORT_TODO_STATUS',\n PENDING = 'PENDING',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETED = 'COMPLETED',\n}\n\n/** @enumType */\nexport type ImportTodoStatusWithLiterals =\n | ImportTodoStatus\n | 'UNKNOWN_IMPORT_TODO_STATUS'\n | 'PENDING'\n | 'IN_PROGRESS'\n | 'COMPLETED';\n\n/**\n * A human-review artifact the import agent produced under the migration project\n * directory — the plan files a user reviews OUTSIDE the sandbox before approving\n * a checkpoint gate: the mapping plan and its concise summary, the\n * faithfulness/gaps ledger, the execution plan, and the final completion\n * summary. Read live from the sandbox on each poll once the agent has written\n * them; because they live under the migration's durable checkpoint, a revived\n * sandbox restores them and they return again on the next turn.\n *\n * ADVERTISE CHEAPLY, FETCH ON DEMAND: every poll returns the full MANIFEST\n * (id/title/format/content_length) but leaves `content` EMPTY. A client asks for\n * the documents it actually wants by naming their ids in\n * GetImportStatusRequest.artifact_ids; only those come back inflated. Returning\n * up to 10 x 32KB of plan text on a feed polled every 5-10s was the largest\n * payload on this API, and most polls never render it.\n */\nexport interface ImportArtifact {\n /**\n * Stable identifier the client keys display off (e.g. \"mapping-plan\",\n * \"mapping-gaps\", \"execution-plan\", \"completion-summary\"). This is also the\n * value to pass in GetImportStatusRequest.artifact_ids to fetch `content`.\n * @maxLength 64\n */\n _id?: string;\n /**\n * Human-readable title for the artifact (e.g. \"Mapping plan\").\n * @maxLength 256\n */\n title?: string;\n /** How to render `content`. */\n format?: ImportArtifactFormatWithLiterals;\n /**\n * The artifact's content (Markdown or JSON text), clipped to the bound below\n * (a trailing truncation marker is appended when the source file was larger)\n * — the full files always remain in the migration project. EMPTY unless this\n * artifact's id was named in the request's `artifact_ids`.\n * @maxLength 32768\n */\n content?: string;\n /**\n * Size in characters of the (clipped) document, ALWAYS populated even when\n * `content` is empty — so a client can decide whether to fetch it.\n */\n contentLength?: number;\n}\n\nexport enum ImportArtifactFormat {\n UNKNOWN_IMPORT_ARTIFACT_FORMAT = 'UNKNOWN_IMPORT_ARTIFACT_FORMAT',\n /** Render `content` as Markdown. */\n MARKDOWN = 'MARKDOWN',\n /** Render `content` as JSON. */\n JSON = 'JSON',\n}\n\n/** @enumType */\nexport type ImportArtifactFormatWithLiterals =\n | ImportArtifactFormat\n | 'UNKNOWN_IMPORT_ARTIFACT_FORMAT'\n | 'MARKDOWN'\n | 'JSON';\n\nexport interface GetImportDebugRequest {\n /**\n * Id of the import to inspect (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface GetImportDebugResponse {\n /**\n * The import's current MAIN execution id (its latest chat turn) —\n * human-readable troubleshooting/correlation only, never a lookup key. A\n * DIFFERENT id from StartFrontendPreviewResponse.job_id: this rpc always\n * reports the main execution, never a preview's — there is no way to\n * inspect a preview execution through GetImportDebug.\n * @maxLength 64\n */\n jobId?: string;\n /**\n * Raw dev-machine execution status (e.g. \"RUNNING\", \"COMPLETED\", \"FAILED\").\n * @maxLength 32\n */\n executionStatus?: string;\n /**\n * Every dev-machine task in this execution, in submission order.\n * @maxSize 50\n */\n tasks?: TaskDebug[];\n /** Present only when a task in this execution failed. */\n failedTask?: FailedTaskDetail;\n /** Present once Claude has emitted a final result for this execution. */\n claudeResult?: ClaudeResultSummary;\n /**\n * Redacted, bounded tail of a distinct error-extraction task's stderr.\n * @maxLength 4000\n */\n claudeErrors?: string;\n /**\n * Redacted, bounded tail of the raw Claude stream-json transcript.\n * @maxLength 32768\n */\n transcriptTail?: string;\n}\n\n/**\n * One dev-machine task's status from a debug read — never returned by the\n * public GetImportStatus.\n */\nexport interface TaskDebug {\n /**\n * dev-machine task id.\n * @maxLength 128\n */\n _id?: string;\n /**\n * Raw dev-machine task status (e.g. \"COMPLETED\", \"FAILED\").\n * @maxLength 32\n */\n status?: string;\n /** Process exit code, once the task has finished. */\n exitCode?: number;\n /** Wall-clock duration of the task. */\n durationMs?: number;\n /**\n * Working directory the task ran in, relative to /user-code.\n * @maxLength 512\n */\n cwd?: string;\n}\n\n/** Detail of the task that failed the execution — redacted, bounded tails. */\nexport interface FailedTaskDetail {\n /**\n * dev-machine task id.\n * @maxLength 128\n */\n _id?: string;\n /** Process exit code. */\n exitCode?: number;\n /**\n * Working directory the task ran in, relative to /user-code.\n * @maxLength 512\n */\n cwd?: string;\n /**\n * Redacted, bounded tail of the task's stderr.\n * @maxLength 4000\n */\n stderrTail?: string;\n /**\n * Redacted, bounded tail of the task's stdout.\n * @maxLength 4000\n */\n stdoutTail?: string;\n}\n\n/** Parsed summary of Claude's own final result message for this execution. */\nexport interface ClaudeResultSummary {\n /** Whether Claude's own final result reported an error. */\n errored?: boolean;\n /**\n * Claude's result subtype (e.g. \"success\", \"error_max_turns\").\n * @maxLength 64\n */\n subtype?: string;\n /** Number of agent turns this session took. */\n numTurns?: number;\n /** Wall-clock duration of this session. */\n durationMs?: number;\n /** Cumulative USD cost Claude reported for this session. */\n costUsd?: number;\n /**\n * Claude's own session id — troubleshooting/correlation only.\n * @maxLength 128\n */\n sessionId?: string;\n /**\n * Already redacted and clipped by the service — safe to surface verbatim.\n * @maxLength 4000\n */\n resultText?: string;\n}\n\nexport interface CancelImportRequest {\n /**\n * Id of the import to cancel (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface CancelImportResponse {\n /**\n * Id of the cancelled import (echoes the request).\n * @format GUID\n */\n importId?: string;\n}\n\nexport interface SendImportMessageRequest {\n /**\n * Id of the import to send the message to (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n /**\n * What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n * @minLength 1\n * @maxLength 20000\n */\n message: string;\n}\n\nexport interface SendImportMessageResponse {\n /**\n * Echoes the import id the message was sent to — it is stable for the\n * import's lifetime (spec 0004 v3), so the caller keeps polling the same id.\n * @format GUID\n */\n importId?: string;\n}\n\nexport interface StartFrontendPreviewRequest {\n /**\n * Id of the import whose frontend to preview (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface StartFrontendPreviewResponse {\n /**\n * Identifies this preview execution for human troubleshooting only — never\n * needed on a subsequent call (poll by calling StartFrontendPreview again\n * with the same import_id), and NOT inspectable through GetImportDebug,\n * which always reports the import's main execution instead.\n * @maxLength 64\n */\n jobId?: string;\n /**\n * The live preview URL, present once the server is confirmed responding.\n * Absent while startup is still in progress — call again to keep waiting.\n * @maxLength 2048\n */\n previewUrl?: string;\n}\n\nexport interface GetImportSourceRequest {\n /**\n * Id of the import whose latest checkpoint history to read.\n * @format GUID\n */\n importId: string;\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own (the token already carries the\n * checkpoint/mode it's pinned to). Metadata pagination only — never used\n * for file content, which GetImportSourceFile always reads in one call.\n * @maxLength 2000\n */\n pageToken?: string;\n}\n\nexport interface GetImportSourceResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /**\n * The checkpoint this response is pinned to. Pass this back as `checkpoint`\n * on the caller's NEXT call to GetImportSource or GetImportSourceFile.\n * @maxLength 40\n */\n checkpoint?: string;\n /** Which of full / delta / unchanged this response is. */\n mode?: SourceSyncModeWithLiterals;\n /**\n * The checkpoint commit's subject line. Absent when mode = UNCHANGED.\n * @maxLength 4096\n */\n message?: string;\n /**\n * The checkpoint commit's time (ISO-8601). Absent when mode = UNCHANGED.\n * @maxLength 64\n */\n committedAt?: string;\n /**\n * This page's eligible files (path+size) at `checkpoint`. Present only\n * when mode = FULL — see `next_page_token` for whether more pages remain.\n * @maxSize 5000\n */\n files?: SourceFile[];\n /**\n * This page's changed paths since the caller's requested checkpoint.\n * Present only when mode = DELTA — see `next_page_token`.\n * @maxSize 5000\n */\n changes?: SourceChange[];\n /**\n * Present ⇒ more `files`/`changes` entries remain for this exact\n * checkpoint/mode; pass back as `page_token` to fetch them. Absent ⇒ this\n * response completes the listing — the only point at which a client may\n * store/advance its checkpoint.\n * @maxLength 2000\n */\n nextPageToken?: string;\n}\n\nexport enum SourceSyncMode {\n UNKNOWN_SOURCE_SYNC_MODE = 'UNKNOWN_SOURCE_SYNC_MODE',\n /**\n * Every eligible file's path+size at `checkpoint`. First sync, or the\n * caller's remembered checkpoint is unknown / not a local ancestor of the\n * resolved target — the always-safe fallback for anything ambiguous.\n */\n FULL = 'FULL',\n /** Only what changed since the caller's `checkpoint` — `changes` carries it. */\n DELTA = 'DELTA',\n /**\n * The caller's `checkpoint` already equals the resolved target. Nothing\n * else in the response is meaningful.\n */\n UNCHANGED = 'UNCHANGED',\n}\n\n/** @enumType */\nexport type SourceSyncModeWithLiterals =\n | SourceSyncMode\n | 'UNKNOWN_SOURCE_SYNC_MODE'\n | 'FULL'\n | 'DELTA'\n | 'UNCHANGED';\n\n/**\n * One eligible file at the synced checkpoint (GetImportSourceResponse.files,\n * mode FULL). Metadata only — fetch content on demand with\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n */\nexport interface SourceFile {\n /**\n * Path relative to the migration root (e.g. \"migrations/<siteKey>/src/...\").\n * @maxLength 500\n */\n path?: string;\n /** File size in bytes. */\n size?: string;\n}\n\n/**\n * One changed path since the caller's `checkpoint`\n * (GetImportSourceResponse.changes, mode DELTA).\n */\nexport interface SourceChange {\n /**\n * Path relative to the migration root (e.g. \"migrations/<siteKey>/src/...\").\n * @maxLength 500\n */\n path?: string;\n /** Added, modified, or deleted since the caller's checkpoint. */\n status?: SourceChangeStatusWithLiterals;\n /** Present only for ADDED/MODIFIED — DELETED carries only `path`. */\n size?: string;\n}\n\nexport enum SourceChangeStatus {\n UNKNOWN_SOURCE_CHANGE_STATUS = 'UNKNOWN_SOURCE_CHANGE_STATUS',\n /** New since the caller's checkpoint — carries `size`. */\n ADDED = 'ADDED',\n /** Changed since the caller's checkpoint — carries `size`. */\n MODIFIED = 'MODIFIED',\n /**\n * Removed, or no longer eligible (e.g. a regular file that became a\n * symlink/gitlink) — carries only `path`.\n */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type SourceChangeStatusWithLiterals =\n | SourceChangeStatus\n | 'UNKNOWN_SOURCE_CHANGE_STATUS'\n | 'ADDED'\n | 'MODIFIED'\n | 'DELETED';\n\nexport interface GetImportSourceFileRequest {\n /**\n * Id of the import whose checkpoint history to read from.\n * @format GUID\n */\n importId: string;\n /**\n * Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n * @maxLength 40\n */\n checkpoint: string;\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry.\n * @maxLength 500\n */\n filePath: string;\n}\n\nexport interface GetImportSourceFileResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /**\n * Echoes the request's `checkpoint` — the read is always pinned to it.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Echoes the request's `file_path`.\n * @maxLength 500\n */\n path?: string;\n /**\n * Raw file bytes, clipped to a documented preview bound (see spec 0022) —\n * a code preview, not a repository download. `truncated` says whether the\n * real file is bigger than what's here.\n */\n content?: Uint8Array;\n /**\n * True if the real file is bigger than the preview bound — `content` is\n * clipped, not the complete file.\n */\n truncated?: boolean;\n}\n\nexport interface GetImportSourceForSiteRequest {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode. Same field as GetImportSourceRequest.checkpoint; there\n * is no import_id here — the site comes from the caller's context.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own.\n * @maxLength 2000\n */\n pageToken?: string;\n /**\n * OPTIONAL. Pins this call to the SAME import a prior GetImportSourceForSite\n * response resolved — echo that response's `import_id` — so a paginated\n * listing (or a same-session follow-up) cannot silently retarget to a\n * DIFFERENT import if the destination site's active import changes\n * mid-sequence (a live migration finishing and a new one starting for the\n * same site, for example). REQUIRED whenever `page_token` is set — a\n * continuation must stay pinned to the import its first page resolved,\n * never re-resolve from the (mutable) site mapping on every page. Absent\n * is correct only for a first call, or a deliberate later visit that\n * should pick up whichever import currently owns the site. Never\n * authorizes anything by itself: the server always independently\n * re-verifies the pinned import still belongs to the caller's own site\n * (from context) before using it — pinning to an import for a DIFFERENT\n * site fails exactly like an unresolvable site.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n */\nexport interface GetImportSourceForSiteResponse {\n /**\n * Id of the import resolved for the caller's site.\n * @format GUID\n */\n importId?: string;\n /**\n * The checkpoint this response is pinned to. Pass this back as `checkpoint`\n * on the caller's NEXT call to GetImportSourceForSite or\n * GetImportSourceFileForSite (the SITE-tenancy file read — NOT the\n * account-tenancy GetImportSourceFile, which a site-scoped caller may not\n * be authorized to call).\n * @maxLength 40\n */\n checkpoint?: string;\n /** Which of full / delta / unchanged this response is. */\n mode?: SourceSyncModeWithLiterals;\n /**\n * The checkpoint commit's subject line. Absent when mode = UNCHANGED.\n * @maxLength 4096\n */\n message?: string;\n /**\n * The checkpoint commit's time (ISO-8601). Absent when mode = UNCHANGED.\n * @maxLength 64\n */\n committedAt?: string;\n /**\n * This page's eligible files (path+size) at `checkpoint`. Present only\n * when mode = FULL — see `next_page_token` for whether more pages remain.\n * @maxSize 5000\n */\n files?: SourceFile[];\n /**\n * This page's changed paths since the caller's requested checkpoint.\n * Present only when mode = DELTA — see `next_page_token`.\n * @maxSize 5000\n */\n changes?: SourceChange[];\n /**\n * Present ⇒ more `files`/`changes` entries remain for this exact\n * checkpoint/mode; pass back as `page_token` to fetch them. Absent ⇒ this\n * response completes the listing.\n * @maxLength 2000\n */\n nextPageToken?: string;\n}\n\nexport interface GetImportSourceFileForSiteRequest {\n /**\n * Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @maxLength 40\n */\n checkpoint: string;\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry from a prior GetImportSourceForSite response.\n * @maxLength 500\n */\n filePath: string;\n /**\n * REQUIRED. The `import_id` from the GetImportSourceForSite response the\n * file was listed in — pins this read to that exact browsing sequence's\n * import, so the destination site's active import changing between the\n * manifest listing and this call cannot silently retarget which\n * migration's source is read (or fail confusingly against the wrong\n * repository). The site still comes from the caller's context, never this\n * field: the server independently re-verifies the pinned import belongs to\n * the caller's own site before using it — this never authorizes access on\n * its own.\n * @format GUID\n */\n importId: string;\n}\n\n/**\n * Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n */\nexport interface GetImportSourceFileForSiteResponse {\n /**\n * Id of the import resolved for the caller's site.\n * @format GUID\n */\n importId?: string;\n /**\n * Echoes the request's `checkpoint` — the read is always pinned to it.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Echoes the request's `file_path`.\n * @maxLength 500\n */\n path?: string;\n /**\n * Raw file bytes, clipped to the same documented preview bound as\n * GetImportSourceFile (see spec 0022).\n */\n content?: Uint8Array;\n /**\n * True if the real file is bigger than the preview bound — `content` is\n * clipped, not the complete file.\n */\n truncated?: boolean;\n}\n\nexport interface GetImportBySiteRequest {\n /**\n * The source site (same field, same normalization, as StartImportRequest).\n * Resolution matches StartImport's precedence exactly: when set, this\n * decides identity and `file_urls` is ignored for that purpose — so if the\n * original StartImport call set `source_url` (with or without `file_urls`\n * alongside it, e.g. \"this store and its export\"), send only this field\n * here.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * The export files (same field as StartImportRequest.file_urls). Only\n * consulted when `source_url` is absent — send the SAME set the original\n * StartImport call used only when that call had no `source_url` at all;\n * when it did, `source_url` alone is sufficient and this can be omitted.\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n}\n\nexport interface GetImportBySiteResponse {\n /**\n * The migration's `import_id` — poll it with GetImportStatus exactly as if\n * it had just come back from StartImport.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * Start an import; returns the import id to poll while it runs (~15-60 min).\n * @param request - Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n * @public\n * @documentationMaturity preview\n * @requiredField request\n * @permissionId ecom:site_import:v1:import:start_import\n * @fqn wix.ecom.site_import.v1.SiteImportService.StartImport\n */\nexport async function startImport(\n request: string,\n options?: StartImportOptions\n): Promise<\n NonNullablePaths<\n StartImportResponse,\n | `importId`\n | `sourcePlatform`\n | `sourceConfidence`\n | `destinationSiteId`\n | `existingImport`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n request: request,\n sourceUrl: options?.sourceUrl,\n fileUrls: options?.fileUrls,\n forceNew: options?.forceNew,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.startImport(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n request: '$[0]',\n sourceUrl: '$[1].sourceUrl',\n fileUrls: '$[1].fileUrls',\n forceNew: '$[1].forceNew',\n },\n singleArgumentUnchanged: false,\n },\n ['request', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface StartImportOptions {\n /**\n * The source site being imported (e.g. \"https://shop.example.com\" or just\n * \"shop.example.com\" — the scheme is optional and normalized server-side).\n * Optional, but SEND IT whenever the user names a site: it is the source\n * identity, so it selects which migration the request joins. Set, it is\n * authoritative; absent, the service infers the site from `request`, and a\n * request that identifies neither a site nor inline data to import is\n * rejected with SITE_UNIDENTIFIED rather than guessed at. Two imports naming\n * the same site continue ONE migration; two different sites run as two\n * independent migrations, concurrently. Leave empty only when the import\n * carries its own data instead of a source site — name the files in\n * `file_urls` (preferred) or paste the data into `request`.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * Files to import — URLs of CSV/TSV exports the run should read instead of\n * crawling a source site. OPTIONAL (spec 0019).\n *\n * Setting it makes this a FILE run: the service does NOT probe a source site\n * and asks for NO source credentials (reading a file needs no account), and\n * the agent downloads these into the migration's drops/ directory.\n *\n * It is also an identity when nothing else is: with no `source_url`, the\n * FILESET is the migration identity — the same URLs re-sent continue the SAME\n * migration in the same environment, and a different set is a separate\n * migration with its own destination site. With `source_url` set, that stays\n * authoritative for routing and these files are imported into ITS migration.\n *\n * http/https only, ports 80/443; each URL is validated before it reaches the\n * sandbox, and one that is not requestable rejects the whole call with\n * INVALID_FILE_URL rather than being silently dropped (dropping one would\n * change the fileset, and with it the migration this request joins).\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n /**\n * Start a brand-new import even though this account already has one for the\n * same source. OPTIONAL, default false.\n *\n * By default an import belongs to the ACCOUNT's migration of a source (a site\n * URL, or a set of uploaded files such as a CSV), not to the user or to a moment\n * in time: when the account already has an import for this source, StartImport\n * returns THAT import's `import_id` whatever its status — running, waiting for\n * input, deployed, failed or cancelled — and starts nothing. The Wix site is not\n * part of the source: a source has one import and one site, whether the caller\n * started on a site or the import creates one. Continue the import with\n * SendImportMessage. Set this to true to import the same URL or files again\n * as a NEW source of its own (its own project, checkpoint, sandbox and site),\n * whatever the existing import's status; the existing import is untouched and a\n * later plain start still returns it. Reach the new import by its `import_id`.\n */\n forceNew?: boolean;\n}\n\n/**\n * Poll the status of an import started with StartImport.\n * @param importId - Id of the import to poll (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_status\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportStatus\n */\nexport async function getImportStatus(\n importId: string,\n options?: GetImportStatusOptions\n): Promise<\n NonNullablePaths<\n GetImportStatusResponse,\n | `importId`\n | `status`\n | `deployUrl`\n | `message`\n | `options`\n | `recentActivity`\n | `recentActivity.${number}.kind`\n | `recentActivity.${number}.text`\n | `recentActivityCount`\n | `todos`\n | `todos.${number}.content`\n | `todos.${number}.status`\n | `todos.${number}.activeForm`\n | `artifacts`\n | `artifacts.${number}._id`\n | `artifacts.${number}.title`\n | `artifacts.${number}.format`\n | `artifacts.${number}.content`\n | `artifacts.${number}.contentLength`\n | `destinationSiteId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n includeRecentActivity: options?.includeRecentActivity,\n artifactIds: options?.artifactIds,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportStatus(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n includeRecentActivity: '$[1].includeRecentActivity',\n artifactIds: '$[1].artifactIds',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportStatusOptions {\n /**\n * Opt in to the agent's recent-activity feed. Default false: every response\n * carries `recent_activity_count` (cheap) but the entries themselves ride out\n * only when this is set — a chat-rendering client sets it on every poll, a\n * status-only integration never pays for it.\n */\n includeRecentActivity?: boolean;\n /**\n * Ids (from a previous poll's `artifacts` manifest) whose `content` should be\n * inflated in this response. Empty → manifest only. Unknown ids are ignored:\n * an artifact may simply not exist yet on an earlier turn.\n * @maxSize 10\n * @maxLength 64\n */\n artifactIds?: string[];\n}\n\n/**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n * @param importId - Id of the import to inspect (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_debug\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportDebug\n */\nexport async function getImportDebug(\n importId: string\n): Promise<\n NonNullablePaths<\n GetImportDebugResponse,\n | `jobId`\n | `executionStatus`\n | `tasks`\n | `tasks.${number}._id`\n | `tasks.${number}.status`\n | `tasks.${number}.exitCode`\n | `tasks.${number}.durationMs`\n | `tasks.${number}.cwd`\n | `failedTask._id`\n | `failedTask.exitCode`\n | `failedTask.cwd`\n | `failedTask.stderrTail`\n | `failedTask.stdoutTail`\n | `claudeResult.errored`\n | `claudeResult.subtype`\n | `claudeResult.numTurns`\n | `claudeResult.durationMs`\n | `claudeResult.costUsd`\n | `claudeResult.sessionId`\n | `claudeResult.resultText`\n | `claudeErrors`\n | `transcriptTail`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportDebug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Cancel a running import.\n * @param importId - Id of the import to cancel (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:cancel_import\n * @fqn wix.ecom.site_import.v1.SiteImportService.CancelImport\n */\nexport async function cancelImport(\n importId: string\n): Promise<NonNullablePaths<CancelImportResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.cancelImport(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n * @param importId - Id of the import to send the message to (from StartImportResponse).\n * @param message - What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @requiredField message\n * @permissionId ecom:site_import:v1:import:send_import_message\n * @fqn wix.ecom.site_import.v1.SiteImportService.SendImportMessage\n */\nexport async function sendImportMessage(\n importId: string,\n message: string\n): Promise<NonNullablePaths<SendImportMessageResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n message: message,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.sendImportMessage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]', message: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['importId', 'message']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n * @param importId - Id of the import whose frontend to preview (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:start_frontend_preview\n * @fqn wix.ecom.site_import.v1.SiteImportService.StartFrontendPreview\n */\nexport async function startFrontendPreview(\n importId: string\n): Promise<\n NonNullablePaths<StartFrontendPreviewResponse, `jobId` | `previewUrl`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.startFrontendPreview(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n * @param importId - Id of the import whose latest checkpoint history to read.\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_source\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSource\n */\nexport async function getImportSource(\n importId: string,\n options?: GetImportSourceOptions\n): Promise<\n NonNullablePaths<\n GetImportSourceResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n checkpoint: options?.checkpoint,\n pageToken: options?.pageToken,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportSource(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n checkpoint: '$[1].checkpoint',\n pageToken: '$[1].pageToken',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceOptions {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own (the token already carries the\n * checkpoint/mode it's pinned to). Metadata pagination only — never used\n * for file content, which GetImportSourceFile always reads in one call.\n * @maxLength 2000\n */\n pageToken?: string;\n}\n\n/**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n * @param importId - Id of the import whose checkpoint history to read from.\n * @param checkpoint - Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n * @public\n * @documentationMaturity preview\n * @requiredField checkpoint\n * @requiredField importId\n * @requiredField options\n * @requiredField options.filePath\n * @permissionId ecom:site_import:v1:import:get_import_source_file\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceFile\n */\nexport async function getImportSourceFile(\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n): Promise<\n NonNullablePaths<\n GetImportSourceFileResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n checkpoint: checkpoint,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n checkpoint: '$[1]',\n filePath: '$[2].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'checkpoint', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceFileOptions {\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry.\n * @maxLength 500\n */\n filePath: string;\n}\n\n/**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n * @public\n * @documentationMaturity preview\n * @permissionId ecom:site_import:v1:import:get_import_source_for_site\n * @returns Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceForSite\n */\nexport async function getImportSourceForSite(\n options?: GetImportSourceForSiteOptions\n): Promise<\n NonNullablePaths<\n GetImportSourceForSiteResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n checkpoint: options?.checkpoint,\n pageToken: options?.pageToken,\n importId: options?.importId,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceForSite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkpoint: '$[0].checkpoint',\n pageToken: '$[0].pageToken',\n importId: '$[0].importId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceForSiteOptions {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode. Same field as GetImportSourceRequest.checkpoint; there\n * is no import_id here — the site comes from the caller's context.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own.\n * @maxLength 2000\n */\n pageToken?: string;\n /**\n * OPTIONAL. Pins this call to the SAME import a prior GetImportSourceForSite\n * response resolved — echo that response's `import_id` — so a paginated\n * listing (or a same-session follow-up) cannot silently retarget to a\n * DIFFERENT import if the destination site's active import changes\n * mid-sequence (a live migration finishing and a new one starting for the\n * same site, for example). REQUIRED whenever `page_token` is set — a\n * continuation must stay pinned to the import its first page resolved,\n * never re-resolve from the (mutable) site mapping on every page. Absent\n * is correct only for a first call, or a deliberate later visit that\n * should pick up whichever import currently owns the site. Never\n * authorizes anything by itself: the server always independently\n * re-verifies the pinned import still belongs to the caller's own site\n * (from context) before using it — pinning to an import for a DIFFERENT\n * site fails exactly like an unresolvable site.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n * @param checkpoint - Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @public\n * @documentationMaturity preview\n * @requiredField checkpoint\n * @requiredField options\n * @requiredField options.filePath\n * @requiredField options.importId\n * @permissionId ecom:site_import:v1:import:get_import_source_file_for_site\n * @returns Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceFileForSite\n */\nexport async function getImportSourceFileForSite(\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n): Promise<\n NonNullablePaths<\n GetImportSourceFileForSiteResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n checkpoint: checkpoint,\n filePath: options?.filePath,\n importId: options?.importId,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceFileForSite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkpoint: '$[0]',\n filePath: '$[1].filePath',\n importId: '$[1].importId',\n },\n singleArgumentUnchanged: false,\n },\n ['checkpoint', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceFileForSiteOptions {\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry from a prior GetImportSourceForSite response.\n * @maxLength 500\n */\n filePath: string;\n /**\n * REQUIRED. The `import_id` from the GetImportSourceForSite response the\n * file was listed in — pins this read to that exact browsing sequence's\n * import, so the destination site's active import changing between the\n * manifest listing and this call cannot silently retarget which\n * migration's source is read (or fail confusingly against the wrong\n * repository). The site still comes from the caller's context, never this\n * field: the server independently re-verifies the pinned import belongs to\n * the caller's own site before using it — this never authorizes access on\n * its own.\n * @format GUID\n */\n importId: string;\n}\n\n/**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n * @public\n * @documentationMaturity preview\n * @permissionId ecom:site_import:v1:import:get_import_by_site\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportBySite\n */\nexport async function getImportBySite(\n options?: GetImportBySiteOptions\n): Promise<NonNullablePaths<GetImportBySiteResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sourceUrl: options?.sourceUrl,\n fileUrls: options?.fileUrls,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportBySite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sourceUrl: '$[0].sourceUrl',\n fileUrls: '$[0].fileUrls',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportBySiteOptions {\n /**\n * The source site (same field, same normalization, as StartImportRequest).\n * Resolution matches StartImport's precedence exactly: when set, this\n * decides identity and `file_urls` is ignored for that purpose — so if the\n * original StartImport call set `source_url` (with or without `file_urls`\n * alongside it, e.g. \"this store and its export\"), send only this field\n * here.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * The export files (same field as StartImportRequest.file_urls). Only\n * consulted when `source_url` is absent — send the SAME set the original\n * StartImport call used only when that call had no `source_url` at all;\n * when it did, `source_url` alone is sufficient and this can be omitted.\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'claudeResult.costUsd' }];\nconst TRANSFORM_PATHS_1 = [{ path: 'content' }];\n\nfunction resolveWixEcomSiteImportV1SiteImportServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/_serverless/bix-site-import',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-import',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/site-import',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_site-import_imports';\n\n/** Start an import; returns the import id to poll while it runs (~15-60 min). */\nexport function startImport(payload: object): RequestOptionsFactory<any> {\n function __startImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.StartImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __startImport;\n}\n\n/** Poll the status of an import started with StartImport. */\nexport function getImportStatus(payload: object): RequestOptionsFactory<any> {\n function __getImportStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportStatus;\n}\n\n/**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n */\nexport function getImportDebug(payload: object): RequestOptionsFactory<any> {\n function __getImportDebug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportDebug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/debug',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportDebug;\n}\n\n/** Cancel a running import. */\nexport function cancelImport(payload: object): RequestOptionsFactory<any> {\n function __cancelImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.CancelImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __cancelImport;\n}\n\n/**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n */\nexport function sendImportMessage(payload: object): RequestOptionsFactory<any> {\n function __sendImportMessage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.SendImportMessage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/messages',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __sendImportMessage;\n}\n\n/**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n */\nexport function startFrontendPreview(\n payload: object\n): RequestOptionsFactory<any> {\n function __startFrontendPreview({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.StartFrontendPreview',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/preview',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __startFrontendPreview;\n}\n\n/**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n */\nexport function getImportSource(payload: object): RequestOptionsFactory<any> {\n function __getImportSource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportSource',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/source',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportSource;\n}\n\n/**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n */\nexport function getImportSourceFile(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/source/file',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportSourceFile;\n}\n\n/**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n */\nexport function getImportSourceForSite(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceForSite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceForSite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/site-imports/source',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportSourceForSite;\n}\n\n/**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n */\nexport function getImportSourceFileForSite(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceFileForSite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceFileForSite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/site-imports/source/file',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportSourceFileForSite;\n}\n\n/**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n */\nexport function getImportBySite(payload: object): RequestOptionsFactory<any> {\n function __getImportBySite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportBySite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportBySite;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CancelImportResponse,\n GetImportBySiteOptions,\n GetImportBySiteResponse,\n GetImportDebugResponse,\n GetImportSourceFileForSiteOptions,\n GetImportSourceFileForSiteResponse,\n GetImportSourceFileOptions,\n GetImportSourceFileResponse,\n GetImportSourceForSiteOptions,\n GetImportSourceForSiteResponse,\n GetImportSourceOptions,\n GetImportSourceResponse,\n GetImportStatusOptions,\n GetImportStatusResponse,\n SendImportMessageResponse,\n StartFrontendPreviewResponse,\n StartImportOptions,\n StartImportResponse,\n cancelImport as universalCancelImport,\n getImportBySite as universalGetImportBySite,\n getImportDebug as universalGetImportDebug,\n getImportSource as universalGetImportSource,\n getImportSourceFile as universalGetImportSourceFile,\n getImportSourceFileForSite as universalGetImportSourceFileForSite,\n getImportSourceForSite as universalGetImportSourceForSite,\n getImportStatus as universalGetImportStatus,\n sendImportMessage as universalSendImportMessage,\n startFrontendPreview as universalStartFrontendPreview,\n startImport as universalStartImport,\n} from './ecom-site-import-v1-import-imports.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/site-import' };\n\nexport function startImport(httpClient: HttpClient): StartImportSignature {\n return (request: string, options?: StartImportOptions) =>\n universalStartImport(\n request,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface StartImportSignature {\n /**\n * Start an import; returns the import id to poll while it runs (~15-60 min).\n * @param - Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n */\n (request: string, options?: StartImportOptions): Promise<\n NonNullablePaths<\n StartImportResponse,\n | `importId`\n | `sourcePlatform`\n | `sourceConfidence`\n | `destinationSiteId`\n | `existingImport`,\n 0\n >\n >;\n}\n\nexport function getImportStatus(\n httpClient: HttpClient\n): GetImportStatusSignature {\n return (importId: string, options?: GetImportStatusOptions) =>\n universalGetImportStatus(\n importId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportStatusSignature {\n /**\n * Poll the status of an import started with StartImport.\n * @param - Id of the import to poll (from StartImportResponse).\n */\n (importId: string, options?: GetImportStatusOptions): Promise<\n NonNullablePaths<\n GetImportStatusResponse,\n | `importId`\n | `status`\n | `deployUrl`\n | `message`\n | `options`\n | `recentActivity`\n | `recentActivity.${number}.kind`\n | `recentActivity.${number}.text`\n | `recentActivityCount`\n | `todos`\n | `todos.${number}.content`\n | `todos.${number}.status`\n | `todos.${number}.activeForm`\n | `artifacts`\n | `artifacts.${number}._id`\n | `artifacts.${number}.title`\n | `artifacts.${number}.format`\n | `artifacts.${number}.content`\n | `artifacts.${number}.contentLength`\n | `destinationSiteId`,\n 2\n >\n >;\n}\n\nexport function getImportDebug(\n httpClient: HttpClient\n): GetImportDebugSignature {\n return (importId: string) =>\n universalGetImportDebug(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportDebugSignature {\n /**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n * @param - Id of the import to inspect (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<\n GetImportDebugResponse,\n | `jobId`\n | `executionStatus`\n | `tasks`\n | `tasks.${number}._id`\n | `tasks.${number}.status`\n | `tasks.${number}.exitCode`\n | `tasks.${number}.durationMs`\n | `tasks.${number}.cwd`\n | `failedTask._id`\n | `failedTask.exitCode`\n | `failedTask.cwd`\n | `failedTask.stderrTail`\n | `failedTask.stdoutTail`\n | `claudeResult.errored`\n | `claudeResult.subtype`\n | `claudeResult.numTurns`\n | `claudeResult.durationMs`\n | `claudeResult.costUsd`\n | `claudeResult.sessionId`\n | `claudeResult.resultText`\n | `claudeErrors`\n | `transcriptTail`,\n 2\n >\n >;\n}\n\nexport function cancelImport(httpClient: HttpClient): CancelImportSignature {\n return (importId: string) =>\n universalCancelImport(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CancelImportSignature {\n /**\n * Cancel a running import.\n * @param - Id of the import to cancel (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<CancelImportResponse, `importId`, 0>\n >;\n}\n\nexport function sendImportMessage(\n httpClient: HttpClient\n): SendImportMessageSignature {\n return (importId: string, message: string) =>\n universalSendImportMessage(\n importId,\n message,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SendImportMessageSignature {\n /**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n * @param - Id of the import to send the message to (from StartImportResponse).\n * @param - What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n */\n (importId: string, message: string): Promise<\n NonNullablePaths<SendImportMessageResponse, `importId`, 0>\n >;\n}\n\nexport function startFrontendPreview(\n httpClient: HttpClient\n): StartFrontendPreviewSignature {\n return (importId: string) =>\n universalStartFrontendPreview(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface StartFrontendPreviewSignature {\n /**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n * @param - Id of the import whose frontend to preview (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<StartFrontendPreviewResponse, `jobId` | `previewUrl`, 0>\n >;\n}\n\nexport function getImportSource(\n httpClient: HttpClient\n): GetImportSourceSignature {\n return (importId: string, options?: GetImportSourceOptions) =>\n universalGetImportSource(\n importId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceSignature {\n /**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n * @param - Id of the import whose latest checkpoint history to read.\n */\n (importId: string, options?: GetImportSourceOptions): Promise<\n NonNullablePaths<\n GetImportSourceResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n >;\n}\n\nexport function getImportSourceFile(\n httpClient: HttpClient\n): GetImportSourceFileSignature {\n return (\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n ) =>\n universalGetImportSourceFile(\n importId,\n checkpoint,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceFileSignature {\n /**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n * @param - Id of the import whose checkpoint history to read from.\n * @param - Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n */\n (\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n ): Promise<\n NonNullablePaths<\n GetImportSourceFileResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n >;\n}\n\nexport function getImportSourceForSite(\n httpClient: HttpClient\n): GetImportSourceForSiteSignature {\n return (options?: GetImportSourceForSiteOptions) =>\n universalGetImportSourceForSite(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceForSiteSignature {\n /**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n * @returns Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n */\n (options?: GetImportSourceForSiteOptions): Promise<\n NonNullablePaths<\n GetImportSourceForSiteResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n >;\n}\n\nexport function getImportSourceFileForSite(\n httpClient: HttpClient\n): GetImportSourceFileForSiteSignature {\n return (\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n ) =>\n universalGetImportSourceFileForSite(\n checkpoint,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceFileForSiteSignature {\n /**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n * @param - Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @returns Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n */\n (\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n ): Promise<\n NonNullablePaths<\n GetImportSourceFileForSiteResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n >;\n}\n\nexport function getImportBySite(\n httpClient: HttpClient\n): GetImportBySiteSignature {\n return (options?: GetImportBySiteOptions) =>\n universalGetImportBySite(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportBySiteSignature {\n /**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n */\n (options?: GetImportBySiteOptions): Promise<\n NonNullablePaths<GetImportBySiteResponse, `importId`, 0>\n >;\n}\n\nexport {\n CancelImportRequest,\n CancelImportResponse,\n ClaudeResultSummary,\n FailedTaskDetail,\n GetImportBySiteOptions,\n GetImportBySiteRequest,\n GetImportBySiteResponse,\n GetImportDebugRequest,\n GetImportDebugResponse,\n GetImportSourceFileForSiteOptions,\n GetImportSourceFileForSiteRequest,\n GetImportSourceFileForSiteResponse,\n GetImportSourceFileOptions,\n GetImportSourceFileRequest,\n GetImportSourceFileResponse,\n GetImportSourceForSiteOptions,\n GetImportSourceForSiteRequest,\n GetImportSourceForSiteResponse,\n GetImportSourceOptions,\n GetImportSourceRequest,\n GetImportSourceResponse,\n GetImportStatusOptions,\n GetImportStatusRequest,\n GetImportStatusResponse,\n Import,\n ImportActivity,\n ImportActivityKind,\n ImportArtifact,\n ImportArtifactFormat,\n ImportStatus,\n ImportTodo,\n ImportTodoStatus,\n SendImportMessageRequest,\n SendImportMessageResponse,\n SourceChange,\n SourceChangeStatus,\n SourceConfidence,\n SourceFile,\n SourcePlatform,\n SourceSyncMode,\n StartFrontendPreviewRequest,\n StartFrontendPreviewResponse,\n StartImportOptions,\n StartImportRequest,\n StartImportResponse,\n TaskDebug,\n} from './ecom-site-import-v1-import-imports.universal.js';\n","import {\n startImport as publicStartImport,\n getImportStatus as publicGetImportStatus,\n getImportDebug as publicGetImportDebug,\n cancelImport as publicCancelImport,\n sendImportMessage as publicSendImportMessage,\n startFrontendPreview as publicStartFrontendPreview,\n getImportSource as publicGetImportSource,\n getImportSourceFile as publicGetImportSourceFile,\n getImportSourceForSite as publicGetImportSourceForSite,\n getImportSourceFileForSite as publicGetImportSourceFileForSite,\n getImportBySite as publicGetImportBySite,\n} from './ecom-site-import-v1-import-imports.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const startImport: MaybeContext<\n BuildRESTFunction<typeof publicStartImport> & typeof publicStartImport\n> = /*#__PURE__*/ createRESTModule(publicStartImport);\nexport const getImportStatus: MaybeContext<\n BuildRESTFunction<typeof publicGetImportStatus> & typeof publicGetImportStatus\n> = /*#__PURE__*/ createRESTModule(publicGetImportStatus);\nexport const getImportDebug: MaybeContext<\n BuildRESTFunction<typeof publicGetImportDebug> & typeof publicGetImportDebug\n> = /*#__PURE__*/ createRESTModule(publicGetImportDebug);\nexport const cancelImport: MaybeContext<\n BuildRESTFunction<typeof publicCancelImport> & typeof publicCancelImport\n> = /*#__PURE__*/ createRESTModule(publicCancelImport);\nexport const sendImportMessage: MaybeContext<\n BuildRESTFunction<typeof publicSendImportMessage> &\n typeof publicSendImportMessage\n> = /*#__PURE__*/ createRESTModule(publicSendImportMessage);\nexport const startFrontendPreview: MaybeContext<\n BuildRESTFunction<typeof publicStartFrontendPreview> &\n typeof publicStartFrontendPreview\n> = /*#__PURE__*/ createRESTModule(publicStartFrontendPreview);\nexport const getImportSource: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSource> & typeof publicGetImportSource\n> = /*#__PURE__*/ createRESTModule(publicGetImportSource);\nexport const getImportSourceFile: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceFile> &\n typeof publicGetImportSourceFile\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceFile);\nexport const getImportSourceForSite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceForSite> &\n typeof publicGetImportSourceForSite\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceForSite);\nexport const getImportSourceFileForSite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceFileForSite> &\n typeof publicGetImportSourceFileForSite\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceFileForSite);\nexport const getImportBySite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportBySite> & typeof publicGetImportBySite\n> = /*#__PURE__*/ createRESTModule(publicGetImportBySite);\n\nexport {\n SourcePlatform,\n SourceConfidence,\n ImportStatus,\n ImportActivityKind,\n ImportTodoStatus,\n ImportArtifactFormat,\n SourceSyncMode,\n SourceChangeStatus,\n} from './ecom-site-import-v1-import-imports.universal.js';\nexport {\n Import,\n StartImportRequest,\n StartImportResponse,\n GetImportStatusRequest,\n GetImportStatusResponse,\n ImportActivity,\n ImportTodo,\n ImportArtifact,\n GetImportDebugRequest,\n GetImportDebugResponse,\n TaskDebug,\n FailedTaskDetail,\n ClaudeResultSummary,\n CancelImportRequest,\n CancelImportResponse,\n SendImportMessageRequest,\n SendImportMessageResponse,\n StartFrontendPreviewRequest,\n StartFrontendPreviewResponse,\n GetImportSourceRequest,\n GetImportSourceResponse,\n SourceFile,\n SourceChange,\n GetImportSourceFileRequest,\n GetImportSourceFileResponse,\n GetImportSourceForSiteRequest,\n GetImportSourceForSiteResponse,\n GetImportSourceFileForSiteRequest,\n GetImportSourceFileForSiteResponse,\n GetImportBySiteRequest,\n GetImportBySiteResponse,\n StartImportOptions,\n GetImportStatusOptions,\n GetImportSourceOptions,\n GetImportSourceFileOptions,\n GetImportSourceForSiteOptions,\n GetImportSourceFileForSiteOptions,\n GetImportBySiteOptions,\n} from './ecom-site-import-v1-import-imports.universal.js';\nexport {\n SourcePlatformWithLiterals,\n SourceConfidenceWithLiterals,\n ImportStatusWithLiterals,\n ImportActivityKindWithLiterals,\n ImportTodoStatusWithLiterals,\n ImportArtifactFormatWithLiterals,\n SourceSyncModeWithLiterals,\n SourceChangeStatusWithLiterals,\n} from './ecom-site-import-v1-import-imports.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAA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;AACrC,SAAO,CACL,YACA,YAMAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqCO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClcA,IAAAC,uBAAiC;AAG1B,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAC5D,IAAMC,mBAEK,2DAAiBA,gBAAqB;","names":["cancelImport","getImportBySite","getImportDebug","getImportSource","getImportSourceFile","getImportSourceFileForSite","getImportSourceForSite","getImportStatus","sendImportMessage","startFrontendPreview","startImport","import_rest_modules","payload","SourcePlatform","SourceConfidence","ImportStatus","ImportActivityKind","ImportTodoStatus","ImportArtifactFormat","SourceSyncMode","SourceChangeStatus","startImport","sdkTransformError","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite","startImport","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite","import_rest_modules","startImport","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/ecom-site-import-v1-import-imports.universal.ts","../../src/ecom-site-import-v1-import-imports.http.ts","../../src/ecom-site-import-v1-import-imports.public.ts","../../src/ecom-site-import-v1-import-imports.context.ts"],"sourcesContent":["export * from './src/ecom-site-import-v1-import-imports.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomSiteImportV1Import from './ecom-site-import-v1-import-imports.http.js';\n\n/**\n * Entity the service acts on (one import execution). No CRUD surface — it exists\n * only so the FQDN, tenancy, and permissions can hang off it.\n */\nexport interface Import {\n /** @format GUID */\n _id?: string;\n}\n\nexport interface StartImportRequest {\n /**\n * Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n * @minLength 1\n * @maxLength 20000\n */\n request: string;\n /**\n * The source site being imported (e.g. \"https://shop.example.com\" or just\n * \"shop.example.com\" — the scheme is optional and normalized server-side).\n * Optional, but SEND IT whenever the user names a site: it is the source\n * identity, so it selects which migration the request joins. Set, it is\n * authoritative; absent, the service infers the site from `request`, and a\n * request that identifies neither a site nor inline data to import is\n * rejected with SITE_UNIDENTIFIED rather than guessed at. Two imports naming\n * the same site continue ONE migration; two different sites run as two\n * independent migrations, concurrently. Leave empty only when the import\n * carries its own data instead of a source site — name the files in\n * `file_urls` (preferred) or paste the data into `request`.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * Files to import — URLs of CSV/TSV exports the run should read instead of\n * crawling a source site. OPTIONAL (spec 0019).\n *\n * Setting it makes this a FILE run: the service does NOT probe a source site\n * and asks for NO source credentials (reading a file needs no account), and\n * the agent downloads these into the migration's drops/ directory.\n *\n * It is also an identity when nothing else is: with no `source_url`, the\n * FILESET is the migration identity — the same URLs re-sent continue the SAME\n * migration in the same environment, and a different set is a separate\n * migration with its own destination site. With `source_url` set, that stays\n * authoritative for routing and these files are imported into ITS migration.\n *\n * http/https only, ports 80/443; each URL is validated before it reaches the\n * sandbox, and one that is not requestable rejects the whole call with\n * INVALID_FILE_URL rather than being silently dropped (dropping one would\n * change the fileset, and with it the migration this request joins).\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n /**\n * Start a brand-new import even though this account already has one for the\n * same source. OPTIONAL, default false.\n *\n * By default an import belongs to the ACCOUNT's migration of a source (a site\n * URL, or a set of uploaded files such as a CSV), not to the user or to a moment\n * in time: when the account already has an import for this source, StartImport\n * returns THAT import's `import_id` whatever its status — running, waiting for\n * input, deployed, failed or cancelled — and starts nothing. The Wix site is not\n * part of the source: a source has one import and one site, whether the caller\n * started on a site or the import creates one. Continue the import with\n * SendImportMessage. Set this to true to import the same URL or files again\n * as a NEW source of its own (its own project, checkpoint, sandbox and site),\n * whatever the existing import's status; the existing import is untouched and a\n * later plain start still returns it. Reach the new import by its `import_id`.\n */\n forceNew?: boolean;\n}\n\nexport interface StartImportResponse {\n /**\n * The import's id — the ONE id clients keep; poll it with GetImportStatus.\n * @format GUID\n */\n importId?: string;\n /** Detected source platform (absent when the request has no URL). */\n sourcePlatform?: SourcePlatformWithLiterals;\n /** Confidence of the source-platform detection. */\n sourceConfidence?: SourceConfidenceWithLiterals;\n /**\n * The EXISTING Wix site this import writes into — the site the request was\n * scoped to. There is deliberately no destination field on the REQUEST: the\n * site is taken from the caller's context, which the gateway signs, so a\n * caller cannot name a site it is not already acting on and there is nothing\n * to authorize. This field echoes what the service resolved, so a client can\n * show the user which site is about to be written to before any write.\n *\n * EMPTY means the import will CREATE a new Wix Managed Headless site (the only\n * behaviour before this field existed) — the id does not exist yet, so poll\n * GetImportStatus for it rather than expecting it here.\n * @format GUID\n */\n destinationSiteId?: string;\n /**\n * True when this call did NOT start an import because the account already had\n * one for the same source, and `import_id` is that existing import. Nothing\n * was submitted, so `request` was not delivered: send it with\n * SendImportMessage if it should reach the agent. False when `force_new` started\n * a new import.\n */\n existingImport?: boolean;\n}\n\nexport enum SourcePlatform {\n UNKNOWN_SOURCE_PLATFORM = 'UNKNOWN_SOURCE_PLATFORM',\n SHOPIFY = 'SHOPIFY',\n WOOCOMMERCE = 'WOOCOMMERCE',\n WIX = 'WIX',\n MAGENTO = 'MAGENTO',\n GENERIC = 'GENERIC',\n /**\n * Not a probe result: the request supplied `file_urls`, so it was accepted as\n * a FILE run and no source site was probed at all (spec 0019 §3). Reported\n * with no `source_confidence` — there was nothing to be confident about.\n */\n CSV = 'CSV',\n}\n\n/** @enumType */\nexport type SourcePlatformWithLiterals =\n | SourcePlatform\n | 'UNKNOWN_SOURCE_PLATFORM'\n | 'SHOPIFY'\n | 'WOOCOMMERCE'\n | 'WIX'\n | 'MAGENTO'\n | 'GENERIC'\n | 'CSV';\n\nexport enum SourceConfidence {\n UNKNOWN_SOURCE_CONFIDENCE = 'UNKNOWN_SOURCE_CONFIDENCE',\n HIGH = 'HIGH',\n MEDIUM = 'MEDIUM',\n LOW = 'LOW',\n}\n\n/** @enumType */\nexport type SourceConfidenceWithLiterals =\n | SourceConfidence\n | 'UNKNOWN_SOURCE_CONFIDENCE'\n | 'HIGH'\n | 'MEDIUM'\n | 'LOW';\n\nexport interface GetImportStatusRequest {\n /**\n * Id of the import to poll (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n /**\n * Opt in to the agent's recent-activity feed. Default false: every response\n * carries `recent_activity_count` (cheap) but the entries themselves ride out\n * only when this is set — a chat-rendering client sets it on every poll, a\n * status-only integration never pays for it.\n */\n includeRecentActivity?: boolean;\n /**\n * Ids (from a previous poll's `artifacts` manifest) whose `content` should be\n * inflated in this response. Empty → manifest only. Unknown ids are ignored:\n * an artifact may simply not exist yet on an earlier turn.\n * @maxSize 10\n * @maxLength 64\n */\n artifactIds?: string[];\n}\n\nexport interface GetImportStatusResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /** Current lifecycle status of the import. */\n status?: ImportStatusWithLiterals;\n /**\n * Live site URL, set (and verified reachable) once status is DEPLOYED.\n * @maxLength 2048\n */\n deployUrl?: string;\n /**\n * Human-readable detail, ready to show the user: a live progress line while\n * IMPORTING (\"Now: Importing products (2 of 6 steps done) — Latest update:\n * ...\"), the agent's closing summary on DEPLOYED, the failure explanation on\n * FAILED, or the question text on NEEDS_INPUT. When review documents are\n * available it also names them and how to fetch them (see `artifacts`) — the\n * one field every client reads, so the documents can never go unnoticed.\n * @maxLength 4096\n */\n message?: string;\n /**\n * Suggested answers when the agent is blocked on a decision (status =\n * NEEDS_INPUT) — a short menu of labels the user can pick from; they may also\n * answer in free text. The question ITSELF is `message` (it was previously\n * duplicated verbatim into a `question.text` that carried no extra\n * information). Bounds satisfy flynt (PUBLIC repeated string needs maxSize +\n * per-item maxLength).\n * @maxSize 20\n * @maxLength 512\n */\n options?: string[];\n /**\n * The agent's recent activity (chat messages and tool actions), oldest first.\n * Populated ONLY when the request set `include_recent_activity`; otherwise\n * empty — see `recent_activity_count`, which is always present.\n * @maxSize 20\n */\n recentActivity?: ImportActivity[];\n /**\n * How many activity entries this poll had available, ALWAYS populated even\n * when `recent_activity` is empty — so a client can tell there is progress to\n * read without paying for the text of it.\n */\n recentActivityCount?: number;\n /**\n * Latest snapshot of the agent's working plan (its task list). Empty until\n * the agent first writes a plan.\n * @maxSize 50\n */\n todos?: ImportTodo[];\n /**\n * Human-review plan artifacts the agent produced (mapping plan + summary,\n * gaps ledger, execution plan, completion summary), so the user can review\n * the plan OUTSIDE the sandbox — before approving a checkpoint gate and after\n * the run ends. Always the full MANIFEST (id/title/format/content_length);\n * `content` is inflated only for the ids named in the request's\n * `artifact_ids`. Empty until the agent has written them, and on polls served\n * from the durable record after the sandbox is reaped (read live otherwise).\n * An `artifact_ids` entry that is not in this manifest simply comes back\n * without content — ignored, not an error (it may be a typo, an id given with\n * its file extension when ids never carry one, a machine artifact that is\n * deliberately never surfaced, or a document not written yet). No separate\n * field reports the misses: the manifest here is always complete, so a caller\n * can see exactly which of its requested ids are absent.\n * @maxSize 10\n */\n artifacts?: ImportArtifact[];\n /**\n * The existing Wix site this import is currently writing into, mirroring\n * StartImportResponse.destination_site_id — absent when the pipeline has\n * not yet created/adopted one. A STRUCTURED field (not just embedded in\n * `message` prose) so another service can machine-verify which site a\n * given import_id actually belongs to before correlating other data to it,\n * rather than scraping free text.\n * @format GUID\n */\n destinationSiteId?: string;\n}\n\nexport enum ImportStatus {\n UNKNOWN_IMPORT_STATUS = 'UNKNOWN_IMPORT_STATUS',\n IMPORTING = 'IMPORTING',\n /** Terminal success: the imported store is deployed as a live Wix site. */\n DEPLOYED = 'DEPLOYED',\n FAILED = 'FAILED',\n CANCELLED = 'CANCELLED',\n /**\n * Recoverable: the agent needs a user decision to continue. The question is\n * GetImportStatusResponse.message (with any suggested answers in `options`);\n * answer via SendImportMessage (resumes the same session).\n */\n NEEDS_INPUT = 'NEEDS_INPUT',\n}\n\n/** @enumType */\nexport type ImportStatusWithLiterals =\n | ImportStatus\n | 'UNKNOWN_IMPORT_STATUS'\n | 'IMPORTING'\n | 'DEPLOYED'\n | 'FAILED'\n | 'CANCELLED'\n | 'NEEDS_INPUT';\n\n/**\n * One entry of the agent's recent activity feed — what the agent said or did,\n * so a polling client can render the import as a live chat conversation.\n */\nexport interface ImportActivity {\n /** Whether this entry is a chat message or a tool action. */\n kind?: ImportActivityKindWithLiterals;\n /**\n * The message text, or a short label of the tool action.\n * @maxLength 2048\n */\n text?: string;\n}\n\nexport enum ImportActivityKind {\n UNKNOWN_IMPORT_ACTIVITY_KIND = 'UNKNOWN_IMPORT_ACTIVITY_KIND',\n /** A chat message from the import agent. */\n TEXT = 'TEXT',\n /**\n * A tool action the agent performed (e.g. a shell command or file edit),\n * rendered as a short human-readable label.\n */\n TOOL_USE = 'TOOL_USE',\n}\n\n/** @enumType */\nexport type ImportActivityKindWithLiterals =\n | ImportActivityKind\n | 'UNKNOWN_IMPORT_ACTIVITY_KIND'\n | 'TEXT'\n | 'TOOL_USE';\n\n/**\n * One item of the agent's working plan (its self-maintained task list). The\n * list is a snapshot: each poll returns the latest full plan, and items move\n * PENDING → IN_PROGRESS → COMPLETED as the import advances.\n */\nexport interface ImportTodo {\n /**\n * What this plan item does (imperative, e.g. \"Import products\").\n * @maxLength 2048\n */\n content?: string;\n /** Progress of this plan item. */\n status?: ImportTodoStatusWithLiterals;\n /**\n * Present-tense label to show while the item is IN_PROGRESS\n * (e.g. \"Importing products\").\n * @maxLength 2048\n */\n activeForm?: string;\n}\n\nexport enum ImportTodoStatus {\n UNKNOWN_IMPORT_TODO_STATUS = 'UNKNOWN_IMPORT_TODO_STATUS',\n PENDING = 'PENDING',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETED = 'COMPLETED',\n}\n\n/** @enumType */\nexport type ImportTodoStatusWithLiterals =\n | ImportTodoStatus\n | 'UNKNOWN_IMPORT_TODO_STATUS'\n | 'PENDING'\n | 'IN_PROGRESS'\n | 'COMPLETED';\n\n/**\n * A human-review artifact the import agent produced under the migration project\n * directory — the plan files a user reviews OUTSIDE the sandbox before approving\n * a checkpoint gate: the mapping plan and its concise summary, the\n * faithfulness/gaps ledger, the execution plan, and the final completion\n * summary. Read live from the sandbox on each poll once the agent has written\n * them; because they live under the migration's durable checkpoint, a revived\n * sandbox restores them and they return again on the next turn.\n *\n * ADVERTISE CHEAPLY, FETCH ON DEMAND: every poll returns the full MANIFEST\n * (id/title/format/content_length) but leaves `content` EMPTY. A client asks for\n * the documents it actually wants by naming their ids in\n * GetImportStatusRequest.artifact_ids; only those come back inflated. Returning\n * up to 10 x 32KB of plan text on a feed polled every 5-10s was the largest\n * payload on this API, and most polls never render it.\n */\nexport interface ImportArtifact {\n /**\n * Stable identifier the client keys display off (e.g. \"mapping-plan\",\n * \"mapping-gaps\", \"execution-plan\", \"completion-summary\"). This is also the\n * value to pass in GetImportStatusRequest.artifact_ids to fetch `content`.\n * @maxLength 64\n */\n _id?: string;\n /**\n * Human-readable title for the artifact (e.g. \"Mapping plan\").\n * @maxLength 256\n */\n title?: string;\n /** How to render `content`. */\n format?: ImportArtifactFormatWithLiterals;\n /**\n * The artifact's content (Markdown or JSON text), clipped to the bound below\n * (a trailing truncation marker is appended when the source file was larger)\n * — the full files always remain in the migration project. EMPTY unless this\n * artifact's id was named in the request's `artifact_ids`.\n * @maxLength 32768\n */\n content?: string;\n /**\n * Size in characters of the (clipped) document, ALWAYS populated even when\n * `content` is empty — so a client can decide whether to fetch it.\n */\n contentLength?: number;\n}\n\nexport enum ImportArtifactFormat {\n UNKNOWN_IMPORT_ARTIFACT_FORMAT = 'UNKNOWN_IMPORT_ARTIFACT_FORMAT',\n /** Render `content` as Markdown. */\n MARKDOWN = 'MARKDOWN',\n /** Render `content` as JSON. */\n JSON = 'JSON',\n}\n\n/** @enumType */\nexport type ImportArtifactFormatWithLiterals =\n | ImportArtifactFormat\n | 'UNKNOWN_IMPORT_ARTIFACT_FORMAT'\n | 'MARKDOWN'\n | 'JSON';\n\nexport interface GetImportDebugRequest {\n /**\n * Id of the import to inspect (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface GetImportDebugResponse {\n /**\n * The import's current MAIN execution id (its latest chat turn) —\n * human-readable troubleshooting/correlation only, never a lookup key. A\n * DIFFERENT id from StartFrontendPreviewResponse.job_id: this rpc always\n * reports the main execution, never a preview's — there is no way to\n * inspect a preview execution through GetImportDebug.\n * @maxLength 64\n */\n jobId?: string;\n /**\n * Raw dev-machine execution status (e.g. \"RUNNING\", \"COMPLETED\", \"FAILED\").\n * @maxLength 32\n */\n executionStatus?: string;\n /**\n * Every dev-machine task in this execution, in submission order.\n * @maxSize 50\n */\n tasks?: TaskDebug[];\n /** Present only when a task in this execution failed. */\n failedTask?: FailedTaskDetail;\n /** Present once Claude has emitted a final result for this execution. */\n claudeResult?: ClaudeResultSummary;\n /**\n * Redacted, bounded tail of a distinct error-extraction task's stderr.\n * @maxLength 4000\n */\n claudeErrors?: string;\n /**\n * Redacted, bounded tail of the raw Claude stream-json transcript.\n * @maxLength 32768\n */\n transcriptTail?: string;\n}\n\n/**\n * One dev-machine task's status from a debug read — never returned by the\n * public GetImportStatus.\n */\nexport interface TaskDebug {\n /**\n * dev-machine task id.\n * @maxLength 128\n */\n _id?: string;\n /**\n * Raw dev-machine task status (e.g. \"COMPLETED\", \"FAILED\").\n * @maxLength 32\n */\n status?: string;\n /** Process exit code, once the task has finished. */\n exitCode?: number;\n /** Wall-clock duration of the task. */\n durationMs?: number;\n /**\n * Working directory the task ran in, relative to /user-code.\n * @maxLength 512\n */\n cwd?: string;\n}\n\n/** Detail of the task that failed the execution — redacted, bounded tails. */\nexport interface FailedTaskDetail {\n /**\n * dev-machine task id.\n * @maxLength 128\n */\n _id?: string;\n /** Process exit code. */\n exitCode?: number;\n /**\n * Working directory the task ran in, relative to /user-code.\n * @maxLength 512\n */\n cwd?: string;\n /**\n * Redacted, bounded tail of the task's stderr.\n * @maxLength 4000\n */\n stderrTail?: string;\n /**\n * Redacted, bounded tail of the task's stdout.\n * @maxLength 4000\n */\n stdoutTail?: string;\n}\n\n/** Parsed summary of Claude's own final result message for this execution. */\nexport interface ClaudeResultSummary {\n /** Whether Claude's own final result reported an error. */\n errored?: boolean;\n /**\n * Claude's result subtype (e.g. \"success\", \"error_max_turns\").\n * @maxLength 64\n */\n subtype?: string;\n /** Number of agent turns this session took. */\n numTurns?: number;\n /** Wall-clock duration of this session. */\n durationMs?: number;\n /** Cumulative USD cost Claude reported for this session. */\n costUsd?: number;\n /**\n * Claude's own session id — troubleshooting/correlation only.\n * @maxLength 128\n */\n sessionId?: string;\n /**\n * Already redacted and clipped by the service — safe to surface verbatim.\n * @maxLength 4000\n */\n resultText?: string;\n}\n\nexport interface CancelImportRequest {\n /**\n * Id of the import to cancel (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface CancelImportResponse {\n /**\n * Id of the cancelled import (echoes the request).\n * @format GUID\n */\n importId?: string;\n}\n\nexport interface SendImportMessageRequest {\n /**\n * Id of the import to send the message to (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n /**\n * What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n * @minLength 1\n * @maxLength 20000\n */\n message: string;\n}\n\nexport interface SendImportMessageResponse {\n /**\n * Echoes the import id the message was sent to — it is stable for the\n * import's lifetime (spec 0004 v3), so the caller keeps polling the same id.\n * @format GUID\n */\n importId?: string;\n}\n\nexport interface StartFrontendPreviewRequest {\n /**\n * Id of the import whose frontend to preview (from StartImportResponse).\n * @format GUID\n */\n importId: string;\n}\n\nexport interface StartFrontendPreviewResponse {\n /**\n * Identifies this preview execution for human troubleshooting only — never\n * needed on a subsequent call (poll by calling StartFrontendPreview again\n * with the same import_id), and NOT inspectable through GetImportDebug,\n * which always reports the import's main execution instead.\n * @maxLength 64\n */\n jobId?: string;\n /**\n * The live preview URL, present once the server is confirmed responding.\n * Absent while startup is still in progress — call again to keep waiting.\n * @maxLength 2048\n */\n previewUrl?: string;\n}\n\nexport interface GetImportSourceRequest {\n /**\n * Id of the import whose latest checkpoint history to read.\n * @format GUID\n */\n importId: string;\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own (the token already carries the\n * checkpoint/mode it's pinned to). Metadata pagination only — never used\n * for file content, which GetImportSourceFile always reads in one call.\n * @maxLength 2000\n */\n pageToken?: string;\n}\n\nexport interface GetImportSourceResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /**\n * The checkpoint this response is pinned to. Pass this back as `checkpoint`\n * on the caller's NEXT call to GetImportSource or GetImportSourceFile.\n * @maxLength 40\n */\n checkpoint?: string;\n /** Which of full / delta / unchanged this response is. */\n mode?: SourceSyncModeWithLiterals;\n /**\n * The checkpoint commit's subject line. Absent when mode = UNCHANGED.\n * @maxLength 4096\n */\n message?: string;\n /**\n * The checkpoint commit's time (ISO-8601). Absent when mode = UNCHANGED.\n * @maxLength 64\n */\n committedAt?: string;\n /**\n * This page's eligible files (path+size) at `checkpoint`. Present only\n * when mode = FULL — see `next_page_token` for whether more pages remain.\n * @maxSize 5000\n */\n files?: SourceFile[];\n /**\n * This page's changed paths since the caller's requested checkpoint.\n * Present only when mode = DELTA — see `next_page_token`.\n * @maxSize 5000\n */\n changes?: SourceChange[];\n /**\n * Present ⇒ more `files`/`changes` entries remain for this exact\n * checkpoint/mode; pass back as `page_token` to fetch them. Absent ⇒ this\n * response completes the listing — the only point at which a client may\n * store/advance its checkpoint.\n * @maxLength 2000\n */\n nextPageToken?: string;\n}\n\nexport enum SourceSyncMode {\n UNKNOWN_SOURCE_SYNC_MODE = 'UNKNOWN_SOURCE_SYNC_MODE',\n /**\n * Every eligible file's path+size at `checkpoint`. First sync, or the\n * caller's remembered checkpoint is unknown / not a local ancestor of the\n * resolved target — the always-safe fallback for anything ambiguous.\n */\n FULL = 'FULL',\n /** Only what changed since the caller's `checkpoint` — `changes` carries it. */\n DELTA = 'DELTA',\n /**\n * The caller's `checkpoint` already equals the resolved target. Nothing\n * else in the response is meaningful.\n */\n UNCHANGED = 'UNCHANGED',\n}\n\n/** @enumType */\nexport type SourceSyncModeWithLiterals =\n | SourceSyncMode\n | 'UNKNOWN_SOURCE_SYNC_MODE'\n | 'FULL'\n | 'DELTA'\n | 'UNCHANGED';\n\n/**\n * One eligible file at the synced checkpoint (GetImportSourceResponse.files,\n * mode FULL). Metadata only — fetch content on demand with\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n */\nexport interface SourceFile {\n /**\n * Path relative to the migration root (e.g. \"migrations/<siteKey>/src/...\").\n * @maxLength 500\n */\n path?: string;\n /** File size in bytes. */\n size?: string;\n}\n\n/**\n * One changed path since the caller's `checkpoint`\n * (GetImportSourceResponse.changes, mode DELTA).\n */\nexport interface SourceChange {\n /**\n * Path relative to the migration root (e.g. \"migrations/<siteKey>/src/...\").\n * @maxLength 500\n */\n path?: string;\n /** Added, modified, or deleted since the caller's checkpoint. */\n status?: SourceChangeStatusWithLiterals;\n /** Present only for ADDED/MODIFIED — DELETED carries only `path`. */\n size?: string;\n}\n\nexport enum SourceChangeStatus {\n UNKNOWN_SOURCE_CHANGE_STATUS = 'UNKNOWN_SOURCE_CHANGE_STATUS',\n /** New since the caller's checkpoint — carries `size`. */\n ADDED = 'ADDED',\n /** Changed since the caller's checkpoint — carries `size`. */\n MODIFIED = 'MODIFIED',\n /**\n * Removed, or no longer eligible (e.g. a regular file that became a\n * symlink/gitlink) — carries only `path`.\n */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type SourceChangeStatusWithLiterals =\n | SourceChangeStatus\n | 'UNKNOWN_SOURCE_CHANGE_STATUS'\n | 'ADDED'\n | 'MODIFIED'\n | 'DELETED';\n\nexport interface GetImportSourceFileRequest {\n /**\n * Id of the import whose checkpoint history to read from.\n * @format GUID\n */\n importId: string;\n /**\n * Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n * @maxLength 40\n */\n checkpoint: string;\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry.\n * @maxLength 500\n */\n filePath: string;\n}\n\nexport interface GetImportSourceFileResponse {\n /**\n * Id of this import (echoes the request).\n * @format GUID\n */\n importId?: string;\n /**\n * Echoes the request's `checkpoint` — the read is always pinned to it.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Echoes the request's `file_path`.\n * @maxLength 500\n */\n path?: string;\n /**\n * Raw file bytes, clipped to a documented preview bound (see spec 0022) —\n * a code preview, not a repository download. `truncated` says whether the\n * real file is bigger than what's here.\n */\n content?: Uint8Array;\n /**\n * True if the real file is bigger than the preview bound — `content` is\n * clipped, not the complete file.\n */\n truncated?: boolean;\n}\n\nexport interface GetImportSourceForSiteRequest {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode. Same field as GetImportSourceRequest.checkpoint; there\n * is no import_id here — the site comes from the caller's context.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own.\n * @maxLength 2000\n */\n pageToken?: string;\n /**\n * OPTIONAL. Pins this call to the SAME import a prior GetImportSourceForSite\n * response resolved — echo that response's `import_id` — so a paginated\n * listing (or a same-session follow-up) cannot silently retarget to a\n * DIFFERENT import if the destination site's active import changes\n * mid-sequence (a live migration finishing and a new one starting for the\n * same site, for example). REQUIRED whenever `page_token` is set — a\n * continuation must stay pinned to the import its first page resolved,\n * never re-resolve from the (mutable) site mapping on every page. Absent\n * is correct only for a first call, or a deliberate later visit that\n * should pick up whichever import currently owns the site. Never\n * authorizes anything by itself: the server always independently\n * re-verifies the pinned import still belongs to the caller's own site\n * (from context) before using it — pinning to an import for a DIFFERENT\n * site fails exactly like an unresolvable site.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n */\nexport interface GetImportSourceForSiteResponse {\n /**\n * Id of the import resolved for the caller's site.\n * @format GUID\n */\n importId?: string;\n /**\n * The checkpoint this response is pinned to. Pass this back as `checkpoint`\n * on the caller's NEXT call to GetImportSourceForSite or\n * GetImportSourceFileForSite (the SITE-tenancy file read — NOT the\n * account-tenancy GetImportSourceFile, which a site-scoped caller may not\n * be authorized to call).\n * @maxLength 40\n */\n checkpoint?: string;\n /** Which of full / delta / unchanged this response is. */\n mode?: SourceSyncModeWithLiterals;\n /**\n * The checkpoint commit's subject line. Absent when mode = UNCHANGED.\n * @maxLength 4096\n */\n message?: string;\n /**\n * The checkpoint commit's time (ISO-8601). Absent when mode = UNCHANGED.\n * @maxLength 64\n */\n committedAt?: string;\n /**\n * This page's eligible files (path+size) at `checkpoint`. Present only\n * when mode = FULL — see `next_page_token` for whether more pages remain.\n * @maxSize 5000\n */\n files?: SourceFile[];\n /**\n * This page's changed paths since the caller's requested checkpoint.\n * Present only when mode = DELTA — see `next_page_token`.\n * @maxSize 5000\n */\n changes?: SourceChange[];\n /**\n * Present ⇒ more `files`/`changes` entries remain for this exact\n * checkpoint/mode; pass back as `page_token` to fetch them. Absent ⇒ this\n * response completes the listing.\n * @maxLength 2000\n */\n nextPageToken?: string;\n}\n\nexport interface GetImportSourceFileForSiteRequest {\n /**\n * Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @maxLength 40\n */\n checkpoint: string;\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry from a prior GetImportSourceForSite response.\n * @maxLength 500\n */\n filePath: string;\n /**\n * REQUIRED. The `import_id` from the GetImportSourceForSite response the\n * file was listed in — pins this read to that exact browsing sequence's\n * import, so the destination site's active import changing between the\n * manifest listing and this call cannot silently retarget which\n * migration's source is read (or fail confusingly against the wrong\n * repository). The site still comes from the caller's context, never this\n * field: the server independently re-verifies the pinned import belongs to\n * the caller's own site before using it — this never authorizes access on\n * its own.\n * @format GUID\n */\n importId: string;\n}\n\n/**\n * Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n */\nexport interface GetImportSourceFileForSiteResponse {\n /**\n * Id of the import resolved for the caller's site.\n * @format GUID\n */\n importId?: string;\n /**\n * Echoes the request's `checkpoint` — the read is always pinned to it.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Echoes the request's `file_path`.\n * @maxLength 500\n */\n path?: string;\n /**\n * Raw file bytes, clipped to the same documented preview bound as\n * GetImportSourceFile (see spec 0022).\n */\n content?: Uint8Array;\n /**\n * True if the real file is bigger than the preview bound — `content` is\n * clipped, not the complete file.\n */\n truncated?: boolean;\n}\n\nexport interface GetImportBySiteRequest {\n /**\n * The source site (same field, same normalization, as StartImportRequest).\n * Resolution matches StartImport's precedence exactly: when set, this\n * decides identity and `file_urls` is ignored for that purpose — so if the\n * original StartImport call set `source_url` (with or without `file_urls`\n * alongside it, e.g. \"this store and its export\"), send only this field\n * here.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * The export files (same field as StartImportRequest.file_urls). Only\n * consulted when `source_url` is absent — send the SAME set the original\n * StartImport call used only when that call had no `source_url` at all;\n * when it did, `source_url` alone is sufficient and this can be omitted.\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n}\n\nexport interface GetImportBySiteResponse {\n /**\n * The migration's `import_id` — poll it with GetImportStatus exactly as if\n * it had just come back from StartImport.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * Start an import; returns the import id to poll while it runs (~15-60 min).\n * @param request - Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n * @public\n * @documentationMaturity preview\n * @requiredField request\n * @permissionId ecom:site_import:v1:import:start_import\n * @fqn wix.ecom.site_import.v1.SiteImportService.StartImport\n */\nexport async function startImport(\n request: string,\n options?: StartImportOptions\n): Promise<\n NonNullablePaths<\n StartImportResponse,\n | `importId`\n | `sourcePlatform`\n | `sourceConfidence`\n | `destinationSiteId`\n | `existingImport`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n request: request,\n sourceUrl: options?.sourceUrl,\n fileUrls: options?.fileUrls,\n forceNew: options?.forceNew,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.startImport(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n request: '$[0]',\n sourceUrl: '$[1].sourceUrl',\n fileUrls: '$[1].fileUrls',\n forceNew: '$[1].forceNew',\n },\n singleArgumentUnchanged: false,\n },\n ['request', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface StartImportOptions {\n /**\n * The source site being imported (e.g. \"https://shop.example.com\" or just\n * \"shop.example.com\" — the scheme is optional and normalized server-side).\n * Optional, but SEND IT whenever the user names a site: it is the source\n * identity, so it selects which migration the request joins. Set, it is\n * authoritative; absent, the service infers the site from `request`, and a\n * request that identifies neither a site nor inline data to import is\n * rejected with SITE_UNIDENTIFIED rather than guessed at. Two imports naming\n * the same site continue ONE migration; two different sites run as two\n * independent migrations, concurrently. Leave empty only when the import\n * carries its own data instead of a source site — name the files in\n * `file_urls` (preferred) or paste the data into `request`.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * Files to import — URLs of CSV/TSV exports the run should read instead of\n * crawling a source site. OPTIONAL (spec 0019).\n *\n * Setting it makes this a FILE run: the service does NOT probe a source site\n * and asks for NO source credentials (reading a file needs no account), and\n * the agent downloads these into the migration's drops/ directory.\n *\n * It is also an identity when nothing else is: with no `source_url`, the\n * FILESET is the migration identity — the same URLs re-sent continue the SAME\n * migration in the same environment, and a different set is a separate\n * migration with its own destination site. With `source_url` set, that stays\n * authoritative for routing and these files are imported into ITS migration.\n *\n * http/https only, ports 80/443; each URL is validated before it reaches the\n * sandbox, and one that is not requestable rejects the whole call with\n * INVALID_FILE_URL rather than being silently dropped (dropping one would\n * change the fileset, and with it the migration this request joins).\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n /**\n * Start a brand-new import even though this account already has one for the\n * same source. OPTIONAL, default false.\n *\n * By default an import belongs to the ACCOUNT's migration of a source (a site\n * URL, or a set of uploaded files such as a CSV), not to the user or to a moment\n * in time: when the account already has an import for this source, StartImport\n * returns THAT import's `import_id` whatever its status — running, waiting for\n * input, deployed, failed or cancelled — and starts nothing. The Wix site is not\n * part of the source: a source has one import and one site, whether the caller\n * started on a site or the import creates one. Continue the import with\n * SendImportMessage. Set this to true to import the same URL or files again\n * as a NEW source of its own (its own project, checkpoint, sandbox and site),\n * whatever the existing import's status; the existing import is untouched and a\n * later plain start still returns it. Reach the new import by its `import_id`.\n */\n forceNew?: boolean;\n}\n\n/**\n * Poll the status of an import started with StartImport.\n * @param importId - Id of the import to poll (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_status\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportStatus\n */\nexport async function getImportStatus(\n importId: string,\n options?: GetImportStatusOptions\n): Promise<\n NonNullablePaths<\n GetImportStatusResponse,\n | `importId`\n | `status`\n | `deployUrl`\n | `message`\n | `options`\n | `recentActivity`\n | `recentActivity.${number}.kind`\n | `recentActivity.${number}.text`\n | `recentActivityCount`\n | `todos`\n | `todos.${number}.content`\n | `todos.${number}.status`\n | `todos.${number}.activeForm`\n | `artifacts`\n | `artifacts.${number}._id`\n | `artifacts.${number}.title`\n | `artifacts.${number}.format`\n | `artifacts.${number}.content`\n | `artifacts.${number}.contentLength`\n | `destinationSiteId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n includeRecentActivity: options?.includeRecentActivity,\n artifactIds: options?.artifactIds,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportStatus(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n includeRecentActivity: '$[1].includeRecentActivity',\n artifactIds: '$[1].artifactIds',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportStatusOptions {\n /**\n * Opt in to the agent's recent-activity feed. Default false: every response\n * carries `recent_activity_count` (cheap) but the entries themselves ride out\n * only when this is set — a chat-rendering client sets it on every poll, a\n * status-only integration never pays for it.\n */\n includeRecentActivity?: boolean;\n /**\n * Ids (from a previous poll's `artifacts` manifest) whose `content` should be\n * inflated in this response. Empty → manifest only. Unknown ids are ignored:\n * an artifact may simply not exist yet on an earlier turn.\n * @maxSize 10\n * @maxLength 64\n */\n artifactIds?: string[];\n}\n\n/**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n * @param importId - Id of the import to inspect (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_debug\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportDebug\n */\nexport async function getImportDebug(\n importId: string\n): Promise<\n NonNullablePaths<\n GetImportDebugResponse,\n | `jobId`\n | `executionStatus`\n | `tasks`\n | `tasks.${number}._id`\n | `tasks.${number}.status`\n | `tasks.${number}.exitCode`\n | `tasks.${number}.durationMs`\n | `tasks.${number}.cwd`\n | `failedTask._id`\n | `failedTask.exitCode`\n | `failedTask.cwd`\n | `failedTask.stderrTail`\n | `failedTask.stdoutTail`\n | `claudeResult.errored`\n | `claudeResult.subtype`\n | `claudeResult.numTurns`\n | `claudeResult.durationMs`\n | `claudeResult.costUsd`\n | `claudeResult.sessionId`\n | `claudeResult.resultText`\n | `claudeErrors`\n | `transcriptTail`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportDebug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Cancel a running import.\n * @param importId - Id of the import to cancel (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:cancel_import\n * @fqn wix.ecom.site_import.v1.SiteImportService.CancelImport\n */\nexport async function cancelImport(\n importId: string\n): Promise<NonNullablePaths<CancelImportResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.cancelImport(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n * @param importId - Id of the import to send the message to (from StartImportResponse).\n * @param message - What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @requiredField message\n * @permissionId ecom:site_import:v1:import:send_import_message\n * @fqn wix.ecom.site_import.v1.SiteImportService.SendImportMessage\n */\nexport async function sendImportMessage(\n importId: string,\n message: string\n): Promise<NonNullablePaths<SendImportMessageResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n message: message,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.sendImportMessage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]', message: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['importId', 'message']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n * @param importId - Id of the import whose frontend to preview (from StartImportResponse).\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:start_frontend_preview\n * @fqn wix.ecom.site_import.v1.SiteImportService.StartFrontendPreview\n */\nexport async function startFrontendPreview(\n importId: string\n): Promise<\n NonNullablePaths<StartFrontendPreviewResponse, `jobId` | `previewUrl`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ importId: importId });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.startFrontendPreview(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n * @param importId - Id of the import whose latest checkpoint history to read.\n * @public\n * @documentationMaturity preview\n * @requiredField importId\n * @permissionId ecom:site_import:v1:import:get_import_source\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSource\n */\nexport async function getImportSource(\n importId: string,\n options?: GetImportSourceOptions\n): Promise<\n NonNullablePaths<\n GetImportSourceResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n checkpoint: options?.checkpoint,\n pageToken: options?.pageToken,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportSource(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n checkpoint: '$[1].checkpoint',\n pageToken: '$[1].pageToken',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceOptions {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own (the token already carries the\n * checkpoint/mode it's pinned to). Metadata pagination only — never used\n * for file content, which GetImportSourceFile always reads in one call.\n * @maxLength 2000\n */\n pageToken?: string;\n}\n\n/**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n * @param importId - Id of the import whose checkpoint history to read from.\n * @param checkpoint - Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n * @public\n * @documentationMaturity preview\n * @requiredField checkpoint\n * @requiredField importId\n * @requiredField options\n * @requiredField options.filePath\n * @permissionId ecom:site_import:v1:import:get_import_source_file\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceFile\n */\nexport async function getImportSourceFile(\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n): Promise<\n NonNullablePaths<\n GetImportSourceFileResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importId: importId,\n checkpoint: checkpoint,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importId: '$[0]',\n checkpoint: '$[1]',\n filePath: '$[2].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['importId', 'checkpoint', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceFileOptions {\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry.\n * @maxLength 500\n */\n filePath: string;\n}\n\n/**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n * @public\n * @documentationMaturity preview\n * @permissionId ecom:site_import:v1:import:get_import_source_for_site\n * @returns Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceForSite\n */\nexport async function getImportSourceForSite(\n options?: GetImportSourceForSiteOptions\n): Promise<\n NonNullablePaths<\n GetImportSourceForSiteResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n checkpoint: options?.checkpoint,\n pageToken: options?.pageToken,\n importId: options?.importId,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceForSite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkpoint: '$[0].checkpoint',\n pageToken: '$[0].pageToken',\n importId: '$[0].importId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceForSiteOptions {\n /**\n * The caller's last known checkpoint (a prior response's `checkpoint`).\n * Absent on a first sync — the response is then always mode FULL. Ignored\n * when `page_token` is set — a continuation is already pinned to its own\n * checkpoint/mode. Same field as GetImportSourceRequest.checkpoint; there\n * is no import_id here — the site comes from the caller's context.\n * @maxLength 40\n */\n checkpoint?: string;\n /**\n * Continues an in-progress FULL/DELTA listing — a prior response's\n * `next_page_token`. Sufficient on its own.\n * @maxLength 2000\n */\n pageToken?: string;\n /**\n * OPTIONAL. Pins this call to the SAME import a prior GetImportSourceForSite\n * response resolved — echo that response's `import_id` — so a paginated\n * listing (or a same-session follow-up) cannot silently retarget to a\n * DIFFERENT import if the destination site's active import changes\n * mid-sequence (a live migration finishing and a new one starting for the\n * same site, for example). REQUIRED whenever `page_token` is set — a\n * continuation must stay pinned to the import its first page resolved,\n * never re-resolve from the (mutable) site mapping on every page. Absent\n * is correct only for a first call, or a deliberate later visit that\n * should pick up whichever import currently owns the site. Never\n * authorizes anything by itself: the server always independently\n * re-verifies the pinned import still belongs to the caller's own site\n * (from context) before using it — pinning to an import for a DIFFERENT\n * site fails exactly like an unresolvable site.\n * @format GUID\n */\n importId?: string;\n}\n\n/**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n * @param checkpoint - Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @public\n * @documentationMaturity preview\n * @requiredField checkpoint\n * @requiredField options\n * @requiredField options.filePath\n * @requiredField options.importId\n * @permissionId ecom:site_import:v1:import:get_import_source_file_for_site\n * @returns Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportSourceFileForSite\n */\nexport async function getImportSourceFileForSite(\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n): Promise<\n NonNullablePaths<\n GetImportSourceFileForSiteResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n checkpoint: checkpoint,\n filePath: options?.filePath,\n importId: options?.importId,\n });\n\n const reqOpts =\n ambassadorWixEcomSiteImportV1Import.getImportSourceFileForSite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkpoint: '$[0]',\n filePath: '$[1].filePath',\n importId: '$[1].importId',\n },\n singleArgumentUnchanged: false,\n },\n ['checkpoint', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportSourceFileForSiteOptions {\n /**\n * Path relative to the migration root, as named in a `SourceFile`/\n * `SourceChange` entry from a prior GetImportSourceForSite response.\n * @maxLength 500\n */\n filePath: string;\n /**\n * REQUIRED. The `import_id` from the GetImportSourceForSite response the\n * file was listed in — pins this read to that exact browsing sequence's\n * import, so the destination site's active import changing between the\n * manifest listing and this call cannot silently retarget which\n * migration's source is read (or fail confusingly against the wrong\n * repository). The site still comes from the caller's context, never this\n * field: the server independently re-verifies the pinned import belongs to\n * the caller's own site before using it — this never authorizes access on\n * its own.\n * @format GUID\n */\n importId: string;\n}\n\n/**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n * @public\n * @documentationMaturity preview\n * @permissionId ecom:site_import:v1:import:get_import_by_site\n * @fqn wix.ecom.site_import.v1.SiteImportService.GetImportBySite\n */\nexport async function getImportBySite(\n options?: GetImportBySiteOptions\n): Promise<NonNullablePaths<GetImportBySiteResponse, `importId`, 0>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sourceUrl: options?.sourceUrl,\n fileUrls: options?.fileUrls,\n });\n\n const reqOpts = ambassadorWixEcomSiteImportV1Import.getImportBySite(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sourceUrl: '$[0].sourceUrl',\n fileUrls: '$[0].fileUrls',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetImportBySiteOptions {\n /**\n * The source site (same field, same normalization, as StartImportRequest).\n * Resolution matches StartImport's precedence exactly: when set, this\n * decides identity and `file_urls` is ignored for that purpose — so if the\n * original StartImport call set `source_url` (with or without `file_urls`\n * alongside it, e.g. \"this store and its export\"), send only this field\n * here.\n * @maxLength 2048\n */\n sourceUrl?: string;\n /**\n * The export files (same field as StartImportRequest.file_urls). Only\n * consulted when `source_url` is absent — send the SAME set the original\n * StartImport call used only when that call had no `source_url` at all;\n * when it did, `source_url` alone is sufficient and this can be omitted.\n * @maxSize 20\n * @maxLength 2048\n */\n fileUrls?: string[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'claudeResult.costUsd' }];\nconst TRANSFORM_PATHS_1 = [{ path: 'content' }];\n\nfunction resolveWixEcomSiteImportV1SiteImportServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/_serverless/bix-site-import',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-import',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/site-import',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/bix-site-import',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_site-import_imports';\n\n/** Start an import; returns the import id to poll while it runs (~15-60 min). */\nexport function startImport(payload: object): RequestOptionsFactory<any> {\n function __startImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.StartImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __startImport;\n}\n\n/** Poll the status of an import started with StartImport. */\nexport function getImportStatus(payload: object): RequestOptionsFactory<any> {\n function __getImportStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportStatus;\n}\n\n/**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n */\nexport function getImportDebug(payload: object): RequestOptionsFactory<any> {\n function __getImportDebug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportDebug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/debug',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportDebug;\n}\n\n/** Cancel a running import. */\nexport function cancelImport(payload: object): RequestOptionsFactory<any> {\n function __cancelImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.CancelImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __cancelImport;\n}\n\n/**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n */\nexport function sendImportMessage(payload: object): RequestOptionsFactory<any> {\n function __sendImportMessage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.SendImportMessage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/messages',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __sendImportMessage;\n}\n\n/**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n */\nexport function startFrontendPreview(\n payload: object\n): RequestOptionsFactory<any> {\n function __startFrontendPreview({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.StartFrontendPreview',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/preview',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __startFrontendPreview;\n}\n\n/**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n */\nexport function getImportSource(payload: object): RequestOptionsFactory<any> {\n function __getImportSource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportSource',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/source',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportSource;\n}\n\n/**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n */\nexport function getImportSourceFile(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports/{importId}/source/file',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportSourceFile;\n}\n\n/**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n */\nexport function getImportSourceForSite(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceForSite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceForSite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/site-imports/source',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportSourceForSite;\n}\n\n/**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n */\nexport function getImportSourceFileForSite(\n payload: object\n): RequestOptionsFactory<any> {\n function __getImportSourceFileForSite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.site_import.v1.SiteImportService.GetImportSourceFileForSite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/site-imports/source/file',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getImportSourceFileForSite;\n}\n\n/**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n */\nexport function getImportBySite(payload: object): RequestOptionsFactory<any> {\n function __getImportBySite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.site_import.v1.import',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.site_import.v1.SiteImportService.GetImportBySite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomSiteImportV1SiteImportServiceUrl({\n protoPath: '/v1/imports',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getImportBySite;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CancelImportResponse,\n GetImportBySiteOptions,\n GetImportBySiteResponse,\n GetImportDebugResponse,\n GetImportSourceFileForSiteOptions,\n GetImportSourceFileForSiteResponse,\n GetImportSourceFileOptions,\n GetImportSourceFileResponse,\n GetImportSourceForSiteOptions,\n GetImportSourceForSiteResponse,\n GetImportSourceOptions,\n GetImportSourceResponse,\n GetImportStatusOptions,\n GetImportStatusResponse,\n SendImportMessageResponse,\n StartFrontendPreviewResponse,\n StartImportOptions,\n StartImportResponse,\n cancelImport as universalCancelImport,\n getImportBySite as universalGetImportBySite,\n getImportDebug as universalGetImportDebug,\n getImportSource as universalGetImportSource,\n getImportSourceFile as universalGetImportSourceFile,\n getImportSourceFileForSite as universalGetImportSourceFileForSite,\n getImportSourceForSite as universalGetImportSourceForSite,\n getImportStatus as universalGetImportStatus,\n sendImportMessage as universalSendImportMessage,\n startFrontendPreview as universalStartFrontendPreview,\n startImport as universalStartImport,\n} from './ecom-site-import-v1-import-imports.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/site-import' };\n\nexport function startImport(httpClient: HttpClient): StartImportSignature {\n return (request: string, options?: StartImportOptions) =>\n universalStartImport(\n request,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface StartImportSignature {\n /**\n * Start an import; returns the import id to poll while it runs (~15-60 min).\n * @param - Natural-language import request. Include the source site URL\n * (e.g. \"import https://shop.example.com into Wix\").\n */\n (request: string, options?: StartImportOptions): Promise<\n NonNullablePaths<\n StartImportResponse,\n | `importId`\n | `sourcePlatform`\n | `sourceConfidence`\n | `destinationSiteId`\n | `existingImport`,\n 0\n >\n >;\n}\n\nexport function getImportStatus(\n httpClient: HttpClient\n): GetImportStatusSignature {\n return (importId: string, options?: GetImportStatusOptions) =>\n universalGetImportStatus(\n importId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportStatusSignature {\n /**\n * Poll the status of an import started with StartImport.\n * @param - Id of the import to poll (from StartImportResponse).\n */\n (importId: string, options?: GetImportStatusOptions): Promise<\n NonNullablePaths<\n GetImportStatusResponse,\n | `importId`\n | `status`\n | `deployUrl`\n | `message`\n | `options`\n | `recentActivity`\n | `recentActivity.${number}.kind`\n | `recentActivity.${number}.text`\n | `recentActivityCount`\n | `todos`\n | `todos.${number}.content`\n | `todos.${number}.status`\n | `todos.${number}.activeForm`\n | `artifacts`\n | `artifacts.${number}._id`\n | `artifacts.${number}.title`\n | `artifacts.${number}.format`\n | `artifacts.${number}.content`\n | `artifacts.${number}.contentLength`\n | `destinationSiteId`,\n 2\n >\n >;\n}\n\nexport function getImportDebug(\n httpClient: HttpClient\n): GetImportDebugSignature {\n return (importId: string) =>\n universalGetImportDebug(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportDebugSignature {\n /**\n * Owner-only troubleshooting detail for one import: per-task status/exit\n * codes, the failed task's redacted stderr/stdout tail, Claude's own parsed\n * final result, and a bounded transcript tail — everything GetImportStatus\n * deliberately withholds from the public status feed. GetImportDebug\n * additionally asserts sandbox ownership before returning anything.\n * @param - Id of the import to inspect (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<\n GetImportDebugResponse,\n | `jobId`\n | `executionStatus`\n | `tasks`\n | `tasks.${number}._id`\n | `tasks.${number}.status`\n | `tasks.${number}.exitCode`\n | `tasks.${number}.durationMs`\n | `tasks.${number}.cwd`\n | `failedTask._id`\n | `failedTask.exitCode`\n | `failedTask.cwd`\n | `failedTask.stderrTail`\n | `failedTask.stdoutTail`\n | `claudeResult.errored`\n | `claudeResult.subtype`\n | `claudeResult.numTurns`\n | `claudeResult.durationMs`\n | `claudeResult.costUsd`\n | `claudeResult.sessionId`\n | `claudeResult.resultText`\n | `claudeErrors`\n | `transcriptTail`,\n 2\n >\n >;\n}\n\nexport function cancelImport(httpClient: HttpClient): CancelImportSignature {\n return (importId: string) =>\n universalCancelImport(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CancelImportSignature {\n /**\n * Cancel a running import.\n * @param - Id of the import to cancel (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<CancelImportResponse, `importId`, 0>\n >;\n}\n\nexport function sendImportMessage(\n httpClient: HttpClient\n): SendImportMessageSignature {\n return (importId: string, message: string) =>\n universalSendImportMessage(\n importId,\n message,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SendImportMessageSignature {\n /**\n * Send a message from the user to the import's agent. This is THE inbound\n * channel for anything the user says — a comment on work already done, a\n * correction, a new instruction, or an answer to a question the agent asked.\n * It is valid at any point in the import's life: while IMPORTING, at a\n * NEEDS_INPUT stop, and after a terminal state (follow-up changes to a\n * deployed site). Answering NEEDS_INPUT is one case of this rpc, not its\n * purpose.\n *\n * The message is delivered to the same Claude Code session (--resume), which\n * is durable across sandboxes: a reaped environment is revived from the\n * migration's checkpoint, so this keeps working for the life of the import\n * record. Poll the SAME import_id afterwards.\n * @param - Id of the import to send the message to (from StartImportResponse).\n * @param - What the user wants to say to the agent: a comment, a correction, a new\n * instruction, or an answer to the question in GetImportStatusResponse.message.\n */\n (importId: string, message: string): Promise<\n NonNullablePaths<SendImportMessageResponse, `importId`, 0>\n >;\n}\n\nexport function startFrontendPreview(\n httpClient: HttpClient\n): StartFrontendPreviewSignature {\n return (importId: string) =>\n universalStartFrontendPreview(\n importId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface StartFrontendPreviewSignature {\n /**\n * Starts (or resumes) the `website`-mode front end's dev server on the\n * sandbox and returns its confirmed public preview URL once that exact\n * server is responding (spec 0026). POST, not GET: it has a side effect —\n * it starts, and can replace, a process on the sandbox. Idempotency is a\n * server-side concern (a per-sandbox slot keyed by claim id), never a\n * client-supplied job id: a lost response or two concurrent calls both\n * still land on the SAME execution. If startup outlasts this call's\n * bounded internal wait, the response carries only `job_id` — call this\n * same rpc again (still with only `import_id`) to resume waiting; nothing\n * from the response needs to be sent back.\n * @param - Id of the import whose frontend to preview (from StartImportResponse).\n */\n (importId: string): Promise<\n NonNullablePaths<StartFrontendPreviewResponse, `jobId` | `previewUrl`, 0>\n >;\n}\n\nexport function getImportSource(\n httpClient: HttpClient\n): GetImportSourceSignature {\n return (importId: string, options?: GetImportSourceOptions) =>\n universalGetImportSource(\n importId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceSignature {\n /**\n * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git\n * checkpoint history (spec 0022) — the only way a code-review/browser UI\n * ever sees the generated source tree, without holding a project id or\n * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch\n * on demand: a selected file's content is a separate call,\n * GetImportSourceFile, pinned to this response's `checkpoint`.\n *\n * No `checkpoint` (or one unknown / not a local ancestor of the resolved\n * target): mode FULL, every eligible file's path+size. `checkpoint` already\n * equal to the resolved target: mode UNCHANGED, nothing else in the\n * response is meaningful. `checkpoint` a known ancestor: mode DELTA,\n * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only\n * `path`).\n *\n * `files`/`changes` are PAGINATED, never silently truncated: a\n * `next_page_token` in the response means more entries remain for this\n * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its\n * own; `checkpoint` is not needed on a continuation) to fetch the rest. A\n * client MUST drain every page (no `next_page_token`) before treating the\n * listing as complete and only THEN may it store/advance its `checkpoint` —\n * advancing after a partial page permanently loses whatever the remaining\n * pages would have reported.\n *\n * DELIBERATELY its own permission, not GetImportStatus's: viewing the human\n * progress feed does not imply access to the underlying source code.\n * @param - Id of the import whose latest checkpoint history to read.\n */\n (importId: string, options?: GetImportSourceOptions): Promise<\n NonNullablePaths<\n GetImportSourceResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n >;\n}\n\nexport function getImportSourceFile(\n httpClient: HttpClient\n): GetImportSourceFileSignature {\n return (\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n ) =>\n universalGetImportSourceFile(\n importId,\n checkpoint,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceFileSignature {\n /**\n * One file's content, pinned to a specific checkpoint (always one a prior\n * GetImportSource response named, so what a client reads matches what its\n * manifest/delta said was there) — the on-demand half of the same\n * \"advertise cheaply, fetch on demand\" pair. Its OWN permission (flynt's\n * permissions-naming rule ties one permission to one rpc name) — a caller\n * needs both get_import_source and get_import_source_file to browse AND\n * read files, matching the platform's normal fine-grained permission model.\n * @param - Id of the import whose checkpoint history to read from.\n * @param - Which checkpoint to read the file AS OF — always a prior\n * GetImportSource response's `checkpoint`, so a selected file's content\n * matches what that manifest/delta said was there.\n */\n (\n importId: string,\n checkpoint: string,\n options: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>\n ): Promise<\n NonNullablePaths<\n GetImportSourceFileResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n >;\n}\n\nexport function getImportSourceForSite(\n httpClient: HttpClient\n): GetImportSourceForSiteSignature {\n return (options?: GetImportSourceForSiteOptions) =>\n universalGetImportSourceForSite(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceForSiteSignature {\n /**\n * Same manifest/delta contract as GetImportSource, but scoped to the\n * caller's SITE rather than their account: there is no import_id on the\n * wire at all — the destination site comes from the caller's gateway-signed\n * request context (the same `metaSiteId` primitive StartImport's response\n * already relies on), and the service resolves it to that site's import\n * server-side. `(.wix.api.tenancy).type = SITE` overrides this service's\n * account-wide default for this one rpc: a caller must be acting ON the\n * destination site itself, not merely a member of the account that owns it\n * — closing the account-wide read GetImportSource otherwise allows (any\n * import belonging to the caller's account, regardless of which site it\n * targets). Its own permission, distinct from GetImportSource, since the\n * two are reached under different tenancy and are not interchangeable.\n * @returns Identical shape to GetImportSourceResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name. `import_id` here is the id the service resolved from the\n * caller's site context, not one the caller supplied.\n */\n (options?: GetImportSourceForSiteOptions): Promise<\n NonNullablePaths<\n GetImportSourceForSiteResponse,\n | `importId`\n | `checkpoint`\n | `mode`\n | `message`\n | `committedAt`\n | `files`\n | `files.${number}.path`\n | `files.${number}.size`\n | `changes`\n | `changes.${number}.path`\n | `changes.${number}.status`\n | `changes.${number}.size`\n | `nextPageToken`,\n 2\n >\n >;\n}\n\nexport function getImportSourceFileForSite(\n httpClient: HttpClient\n): GetImportSourceFileForSiteSignature {\n return (\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n ) =>\n universalGetImportSourceFileForSite(\n checkpoint,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportSourceFileForSiteSignature {\n /**\n * SITE-tenancy counterpart to GetImportSourceFile, completing the pairing\n * GetImportSourceForSite does for the manifest: without this, a caller\n * authorized only on the site (not the import's initiating account/user)\n * could list paths via GetImportSourceForSite but would get\n * SESSION_EXPIRED opening any of them from the account-tenancy\n * GetImportSourceFile — the documented \"browse, then open a file\" flow\n * would break after the manifest. Same bounded-preview content contract as\n * GetImportSourceFile; no destination-site field on the wire, same as\n * GetImportSourceForSite — `import_id` here PINS to a specific browsing\n * sequence (see the request's own comment), it does not name a\n * destination.\n * @param - Which checkpoint to read the file AS OF — always a prior\n * GetImportSourceForSite response's `checkpoint`.\n * @returns Identical shape to GetImportSourceFileResponse — a distinct message only\n * because flynt's request-response naming rule ties one response message to\n * one rpc name.\n */\n (\n checkpoint: string,\n options: NonNullablePaths<\n GetImportSourceFileForSiteOptions,\n `filePath` | `importId`,\n 0\n >\n ): Promise<\n NonNullablePaths<\n GetImportSourceFileForSiteResponse,\n `importId` | `checkpoint` | `path` | `content` | `truncated`,\n 0\n >\n >;\n}\n\nexport function getImportBySite(\n httpClient: HttpClient\n): GetImportBySiteSignature {\n return (options?: GetImportBySiteOptions) =>\n universalGetImportBySite(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetImportBySiteSignature {\n /**\n * Recovers the `import_id` for the site/fileset this call is scoped to, when\n * the caller no longer has it (a new session, a different device, or\n * recovering from losing local state) — there is otherwise no way back into\n * an import once its id is lost. Resolves identity exactly like `StartImport`\n * does (`source_url`, else `file_urls`), so the same input that would join a\n * migration in `StartImport` finds it here instead of starting a new one.\n * Read-only: never creates or changes anything. Neither field set is a\n * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no\n * request-text fallback, so a site or fileset must be named explicitly.\n * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the\n * ACCOUNT's import for the source, whichever member started it — see\n * GetImportBySiteRequest's comment.\n * Resolvable only within the import's 7-day resumability window (the same\n * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside\n * that window returns `IMPORT_NOT_FOUND`, indistinguishable from \"never\n * existed\" (id-minimal protocol: this rpc must not become a way to probe\n * which sites an account has imported).\n */\n (options?: GetImportBySiteOptions): Promise<\n NonNullablePaths<GetImportBySiteResponse, `importId`, 0>\n >;\n}\n\nexport {\n CancelImportRequest,\n CancelImportResponse,\n ClaudeResultSummary,\n FailedTaskDetail,\n GetImportBySiteOptions,\n GetImportBySiteRequest,\n GetImportBySiteResponse,\n GetImportDebugRequest,\n GetImportDebugResponse,\n GetImportSourceFileForSiteOptions,\n GetImportSourceFileForSiteRequest,\n GetImportSourceFileForSiteResponse,\n GetImportSourceFileOptions,\n GetImportSourceFileRequest,\n GetImportSourceFileResponse,\n GetImportSourceForSiteOptions,\n GetImportSourceForSiteRequest,\n GetImportSourceForSiteResponse,\n GetImportSourceOptions,\n GetImportSourceRequest,\n GetImportSourceResponse,\n GetImportStatusOptions,\n GetImportStatusRequest,\n GetImportStatusResponse,\n Import,\n ImportActivity,\n ImportActivityKind,\n ImportArtifact,\n ImportArtifactFormat,\n ImportStatus,\n ImportTodo,\n ImportTodoStatus,\n SendImportMessageRequest,\n SendImportMessageResponse,\n SourceChange,\n SourceChangeStatus,\n SourceConfidence,\n SourceFile,\n SourcePlatform,\n SourceSyncMode,\n StartFrontendPreviewRequest,\n StartFrontendPreviewResponse,\n StartImportOptions,\n StartImportRequest,\n StartImportResponse,\n TaskDebug,\n} from './ecom-site-import-v1-import-imports.universal.js';\n","import {\n startImport as publicStartImport,\n getImportStatus as publicGetImportStatus,\n getImportDebug as publicGetImportDebug,\n cancelImport as publicCancelImport,\n sendImportMessage as publicSendImportMessage,\n startFrontendPreview as publicStartFrontendPreview,\n getImportSource as publicGetImportSource,\n getImportSourceFile as publicGetImportSourceFile,\n getImportSourceForSite as publicGetImportSourceForSite,\n getImportSourceFileForSite as publicGetImportSourceFileForSite,\n getImportBySite as publicGetImportBySite,\n} from './ecom-site-import-v1-import-imports.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const startImport: MaybeContext<\n BuildRESTFunction<typeof publicStartImport> & typeof publicStartImport\n> = /*#__PURE__*/ createRESTModule(publicStartImport);\nexport const getImportStatus: MaybeContext<\n BuildRESTFunction<typeof publicGetImportStatus> & typeof publicGetImportStatus\n> = /*#__PURE__*/ createRESTModule(publicGetImportStatus);\nexport const getImportDebug: MaybeContext<\n BuildRESTFunction<typeof publicGetImportDebug> & typeof publicGetImportDebug\n> = /*#__PURE__*/ createRESTModule(publicGetImportDebug);\nexport const cancelImport: MaybeContext<\n BuildRESTFunction<typeof publicCancelImport> & typeof publicCancelImport\n> = /*#__PURE__*/ createRESTModule(publicCancelImport);\nexport const sendImportMessage: MaybeContext<\n BuildRESTFunction<typeof publicSendImportMessage> &\n typeof publicSendImportMessage\n> = /*#__PURE__*/ createRESTModule(publicSendImportMessage);\nexport const startFrontendPreview: MaybeContext<\n BuildRESTFunction<typeof publicStartFrontendPreview> &\n typeof publicStartFrontendPreview\n> = /*#__PURE__*/ createRESTModule(publicStartFrontendPreview);\nexport const getImportSource: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSource> & typeof publicGetImportSource\n> = /*#__PURE__*/ createRESTModule(publicGetImportSource);\nexport const getImportSourceFile: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceFile> &\n typeof publicGetImportSourceFile\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceFile);\nexport const getImportSourceForSite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceForSite> &\n typeof publicGetImportSourceForSite\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceForSite);\nexport const getImportSourceFileForSite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportSourceFileForSite> &\n typeof publicGetImportSourceFileForSite\n> = /*#__PURE__*/ createRESTModule(publicGetImportSourceFileForSite);\nexport const getImportBySite: MaybeContext<\n BuildRESTFunction<typeof publicGetImportBySite> & typeof publicGetImportBySite\n> = /*#__PURE__*/ createRESTModule(publicGetImportBySite);\n\nexport {\n SourcePlatform,\n SourceConfidence,\n ImportStatus,\n ImportActivityKind,\n ImportTodoStatus,\n ImportArtifactFormat,\n SourceSyncMode,\n SourceChangeStatus,\n} from './ecom-site-import-v1-import-imports.universal.js';\nexport {\n Import,\n StartImportRequest,\n StartImportResponse,\n GetImportStatusRequest,\n GetImportStatusResponse,\n ImportActivity,\n ImportTodo,\n ImportArtifact,\n GetImportDebugRequest,\n GetImportDebugResponse,\n TaskDebug,\n FailedTaskDetail,\n ClaudeResultSummary,\n CancelImportRequest,\n CancelImportResponse,\n SendImportMessageRequest,\n SendImportMessageResponse,\n StartFrontendPreviewRequest,\n StartFrontendPreviewResponse,\n GetImportSourceRequest,\n GetImportSourceResponse,\n SourceFile,\n SourceChange,\n GetImportSourceFileRequest,\n GetImportSourceFileResponse,\n GetImportSourceForSiteRequest,\n GetImportSourceForSiteResponse,\n GetImportSourceFileForSiteRequest,\n GetImportSourceFileForSiteResponse,\n GetImportBySiteRequest,\n GetImportBySiteResponse,\n StartImportOptions,\n GetImportStatusOptions,\n GetImportSourceOptions,\n GetImportSourceFileOptions,\n GetImportSourceForSiteOptions,\n GetImportSourceFileForSiteOptions,\n GetImportBySiteOptions,\n} from './ecom-site-import-v1-import-imports.universal.js';\nexport {\n SourcePlatformWithLiterals,\n SourceConfidenceWithLiterals,\n ImportStatusWithLiterals,\n ImportActivityKindWithLiterals,\n ImportTodoStatusWithLiterals,\n ImportArtifactFormatWithLiterals,\n SourceSyncModeWithLiterals,\n SourceChangeStatusWithLiterals,\n} from './ecom-site-import-v1-import-imports.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,uBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,mBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,mBAA6C;AAC7C,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,IAAM,oBAAoB,CAAC,EAAE,MAAM,uBAAuB,CAAC;AAC3D,IAAM,oBAAoB,CAAC,EAAE,MAAM,UAAU,CAAC;AAE9C,S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BAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAC5D,IAAMC,mBAEK,2DAAiBA,gBAAqB;","names":["cancelImport","getImportBySite","getImportDebug","getImportSource","getImportSourceFile","getImportSourceFileForSite","getImportSourceForSite","getImportStatus","sendImportMessage","startFrontendPreview","startImport","import_rest_modules","payload","SourcePlatform","SourceConfidence","ImportStatus","ImportActivityKind","ImportTodoStatus","ImportArtifactFormat","SourceSyncMode","SourceChangeStatus","startImport","sdkTransformError","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite","startImport","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite","import_rest_modules","startImport","getImportStatus","getImportDebug","cancelImport","sendImportMessage","startFrontendPreview","getImportSource","getImportSourceFile","getImportSourceForSite","getImportSourceFileForSite","getImportBySite"]}
|