@wix/auto_sdk_site-import_imports 1.0.4 → 1.0.6

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.
@@ -9,7 +9,7 @@ interface StartImportSignature {
9
9
  * @param - Natural-language import request. Include the source site URL
10
10
  * (e.g. "import https://shop.example.com into Wix").
11
11
  */
12
- (request: string, options?: StartImportOptions): Promise<NonNullablePaths<StartImportResponse, `importId` | `sourcePlatform` | `sourceConfidence` | `destinationSiteId` | `existingImport`, 0>>;
12
+ (request: string, options?: StartImportOptions): Promise<NonNullablePaths<StartImportResponse, `importId` | `sourcePlatform` | `sourceConfidence` | `destinationSiteId` | `existingImport` | `supported` | `message`, 0>>;
13
13
  }
14
14
  declare function getImportStatus$1(httpClient: HttpClient): GetImportStatusSignature;
15
15
  interface GetImportStatusSignature {
@@ -80,23 +80,24 @@ interface StartFrontendPreviewSignature {
80
80
  declare function getImportSource$1(httpClient: HttpClient): GetImportSourceSignature;
81
81
  interface GetImportSourceSignature {
82
82
  /**
83
- * Read-only, checkpoint-based MANIFEST/DELTA of the migration's durable Git
84
- * checkpoint history (spec 0022) — the only way a code-review/browser UI
83
+ * Read-only, checkpoint-based MANIFEST of the migration's durable source
84
+ * snapshot (specs 0022, 0027) — the only way a code-review/browser UI
85
85
  * ever sees the generated source tree, without holding a project id or
86
86
  * Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch
87
87
  * on demand: a selected file's content is a separate call,
88
88
  * GetImportSourceFile, pinned to this response's `checkpoint`.
89
89
  *
90
- * No `checkpoint` (or one unknown / not a local ancestor of the resolved
91
- * target): mode FULL, every eligible file's path+size. `checkpoint` already
92
- * equal to the resolved target: mode UNCHANGED, nothing else in the
93
- * response is meaningful. `checkpoint` a known ancestor: mode DELTA,
94
- * `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only
95
- * `path`).
90
+ * No `checkpoint` (or one that is not the latest): mode FULL, every
91
+ * eligible file's path+size. `checkpoint` already equal to the latest:
92
+ * mode UNCHANGED, nothing else in the response is meaningful. Mode DELTA
93
+ * and `changes` are no longer produced (spec 0027).
96
94
  *
97
- * `files`/`changes` are PAGINATED, never silently truncated: a
95
+ * Served from the S3 snapshot the sandbox writes at each checkpoint. A
96
+ * project with no snapshot yet answers FAILED_PRECONDITION.
97
+ *
98
+ * `files` is PAGINATED, never silently truncated: a
98
99
  * `next_page_token` in the response means more entries remain for this
99
- * exact `checkpoint`/mode — pass it back as `page_token` (sufficient on its
100
+ * exact `checkpoint` — pass it back as `page_token` (sufficient on its
100
101
  * own; `checkpoint` is not needed on a continuation) to fetch the rest. A
101
102
  * client MUST drain every page (no `next_page_token`) before treating the
102
103
  * listing as complete and only THEN may it store/advance its `checkpoint` —
@@ -114,7 +115,7 @@ interface GetImportSourceFileSignature {
114
115
  /**
115
116
  * One file's content, pinned to a specific checkpoint (always one a prior
116
117
  * GetImportSource response named, so what a client reads matches what its
117
- * manifest/delta said was there) — the on-demand half of the same
118
+ * manifest said was there) — the on-demand half of the same
118
119
  * "advertise cheaply, fetch on demand" pair. Its OWN permission (flynt's
119
120
  * permissions-naming rule ties one permission to one rpc name) — a caller
120
121
  * needs both get_import_source and get_import_source_file to browse AND
@@ -122,14 +123,14 @@ interface GetImportSourceFileSignature {
122
123
  * @param - Id of the import whose checkpoint history to read from.
123
124
  * @param - Which checkpoint to read the file AS OF — always a prior
124
125
  * GetImportSource response's `checkpoint`, so a selected file's content
125
- * matches what that manifest/delta said was there.
126
+ * matches what that manifest said was there.
126
127
  */
127
128
  (importId: string, checkpoint: string, options?: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>): Promise<NonNullablePaths<GetImportSourceFileResponse, `importId` | `checkpoint` | `path` | `content` | `truncated` | `firstLine` | `matches` | `matches.${number}.line` | `matches.${number}.text` | `matches.${number}.contextLine` | `truncatedReason`, 2>>;
128
129
  }
129
130
  declare function getImportSourceForSite$1(httpClient: HttpClient): GetImportSourceForSiteSignature;
130
131
  interface GetImportSourceForSiteSignature {
131
132
  /**
132
- * Same manifest/delta contract as GetImportSource, but scoped to the
133
+ * Same manifest contract as GetImportSource, but scoped to the
133
134
  * caller's SITE rather than their account: there is no import_id on the
134
135
  * wire at all — the destination site comes from the caller's gateway-signed
135
136
  * request context (the same `metaSiteId` primitive StartImport's response
@@ -176,8 +177,7 @@ interface SearchImportSourceSignature {
176
177
  * Search the migration's source for a pattern WITHOUT downloading it (spec
177
178
  * 0027): the service streams each file from S3, matches, and returns only
178
179
  * the matching lines (with optional context). Works only on checkpoints
179
- * that have a snapshot and only for accounts the snapshot-read rollout
180
- * covers; otherwise FAILED_PRECONDITION / UNIMPLEMENTED. Bounded — a
180
+ * that have a snapshot; otherwise FAILED_PRECONDITION. Bounded — a
181
181
  * `truncated_reason` says which cap (files, bytes, time, matches, response
182
182
  * size) ended the scan and `last_path_scanned` lets the caller continue with
183
183
  * a narrower `path_prefix`.
@@ -407,6 +407,7 @@ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
407
407
  ImportStatus2["FAILED"] = "FAILED";
408
408
  ImportStatus2["CANCELLED"] = "CANCELLED";
409
409
  ImportStatus2["NEEDS_INPUT"] = "NEEDS_INPUT";
410
+ ImportStatus2["HANDED_OFF"] = "HANDED_OFF";
410
411
  return ImportStatus2;
411
412
  })(ImportStatus || {});
412
413
  var ImportActivityKind = /* @__PURE__ */ ((ImportActivityKind2) => {