clivly 0.24.0-next.0 → 0.24.0

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.
Files changed (54) hide show
  1. package/README.md +26 -14
  2. package/app-id-5cB6yioz.mjs +53 -0
  3. package/app-id-DcQ4u1c8.cjs +70 -0
  4. package/drizzle.cjs +120 -13
  5. package/drizzle.d.cts +7 -1
  6. package/drizzle.d.mts +7 -1
  7. package/drizzle.mjs +126 -19
  8. package/from-sql-BD7gR4bC.mjs +282 -0
  9. package/from-sql-CFgXkCe2.cjs +347 -0
  10. package/{index-CZkp8TV4.d.cts → from-sql-CpGP7K3J.d.mts} +8 -46
  11. package/{index-Cnrz4ywf.d.mts → from-sql-S8dSvU-e.d.cts} +8 -46
  12. package/index-BoemTWH4.d.mts +134 -0
  13. package/index-CIupXz_w.d.cts +134 -0
  14. package/index.cjs +246 -76
  15. package/index.d.cts +11 -2
  16. package/index.d.mts +11 -2
  17. package/index.mjs +245 -75
  18. package/introspector-5w2x89RD.mjs +55 -0
  19. package/introspector-DT_Ma59k.cjs +60 -0
  20. package/kysely.cjs +56 -0
  21. package/kysely.d.cts +45 -0
  22. package/kysely.d.mts +45 -0
  23. package/kysely.mjs +54 -0
  24. package/{namespace-probe--GvxJ06J.d.mts → namespace-probe-CUR2zG2l.d.mts} +33 -3
  25. package/package.json +15 -1
  26. package/projection-guard-C70l5U24.cjs +170 -0
  27. package/projection-guard-DOt_nbGn.mjs +147 -0
  28. package/sdk.cjs +1 -1
  29. package/sdk.d.cts +1 -1
  30. package/sdk.d.mts +1 -1
  31. package/sdk.mjs +1 -1
  32. package/sql.cjs +14 -7
  33. package/sql.d.cts +3 -2
  34. package/sql.d.mts +3 -2
  35. package/sql.mjs +6 -3
  36. package/{src-X0-yIA3O.cjs → src-CZIdwwI2.cjs} +162 -59
  37. package/{src-Dq2nY1Sj.mjs → src-tFhC1Ru2.mjs} +141 -38
  38. package/supabase-contact-3ke1KKUs.mjs +595 -0
  39. package/supabase-contact-BXQ0nnLq.cjs +624 -0
  40. package/supabase.cjs +30 -120
  41. package/supabase.d.cts +2 -1
  42. package/supabase.d.mts +2 -1
  43. package/supabase.mjs +27 -117
  44. package/{projection-guard-D8VUhCz7.cjs → sync-CdA9dgZz.cjs} +165 -154
  45. package/{projection-guard-7AMY0aCk.mjs → sync-Q0O-2kFI.mjs} +136 -143
  46. package/{types-UR-tT4c1.d.cts → types-CzL7lUH9.d.cts} +33 -3
  47. package/vite.d.cts +1 -1
  48. package/vite.d.mts +1 -1
  49. package/discover-BZIPXl23.cjs +0 -200
  50. package/discover-CFIi43Qn.mjs +0 -195
  51. package/drizzle-meta-BPnRLpsB.cjs +0 -8
  52. package/drizzle-meta-D00lFvAk.mjs +0 -3
  53. package/introspector-BwYgHGcS.cjs +0 -363
  54. package/introspector-Bz52xOUr.mjs +0 -334
@@ -1,10 +1,4 @@
1
- const require_entity_heuristics = require("./entity-heuristics-DNmrcd0b.cjs");
2
1
  // ../sdk/src/sql/supabase-auth-users.ts
3
- /**
4
- * The one Supabase `auth` table Clivly may read, and exactly how much of it.
5
- * Every other `auth.*` table is refused; secrets (`encrypted_password`,
6
- * tokens, `raw_app_meta_data`) are never in this list.
7
- */
8
2
  const AUTH_USERS_TABLE = "auth.users";
9
3
  const AUTH_USERS_COLUMNS = [
10
4
  "id",
@@ -23,6 +17,29 @@ const AUTH_USERS_META_KEYS = [
23
17
  ];
24
18
  /** Anonymous sign-ins are not customers. */
25
19
  const isAnonymousFilter = "coalesce(is_anonymous, false) = false";
20
+ /** The column `isAnonymousFilter` reads; Supabase Auth added it in 2024. */
21
+ const IS_ANONYMOUS_COLUMN = "is_anonymous";
22
+ const ANONYMOUS_COLUMN_KEY = "__clivly_auth_has_is_anonymous__";
23
+ /**
24
+ * Record on discovery's `auth.users` entry whether the live table has
25
+ * `is_anonymous`. The column is never advertised: it is not in the allowlist.
26
+ */
27
+ function markAnonymousColumn(table, present) {
28
+ Object.defineProperty(table, ANONYMOUS_COLUMN_KEY, {
29
+ value: present,
30
+ enumerable: false
31
+ });
32
+ }
33
+ /**
34
+ * Whether reads of `auth.users` should exclude anonymous sign-ins. False only
35
+ * when discovery saw no `is_anonymous` column (Supabase Auth before 2024, so
36
+ * no anonymous sign-ins exist to exclude): filtering on it there would fail
37
+ * every page with "column does not exist". A table entry discovery did not
38
+ * build (no mark) still filters, the safe default.
39
+ */
40
+ function filtersAnonymous(table) {
41
+ return table?.[ANONYMOUS_COLUMN_KEY] !== false;
42
+ }
26
43
  const QUOTES = /"/g;
27
44
  /**
28
45
  * Whether a projection table name points into Supabase's `auth` schema, and if
@@ -34,6 +51,8 @@ function authTableKind(name) {
34
51
  if (!normal.startsWith("auth.")) return null;
35
52
  return normal === "auth.users" ? "users" : "other";
36
53
  }
54
+ // ../sdk/src/drizzle-meta.ts
55
+ const DRIZZLE_META = "__clivly_drizzle_source_meta__";
37
56
  // ../sdk/src/entity-source.ts
38
57
  const CONCEPT_KEYS = {
39
58
  contact: "contacts",
@@ -112,28 +131,72 @@ const DEFAULT_ID_FIELD = "id";
112
131
  * `nextCursor` falls back to it only where the column itself is null.
113
132
  */
114
133
  const ROW_CURSOR_KEY = "__clivly_row_cursor__";
115
- function isAfter(candidate, current) {
116
- const ct = candidate.time.getTime();
117
- const bt = current.time.getTime();
118
- if (ct !== bt) return ct > bt;
119
- return candidate.id > current.id;
134
+ /**
135
+ * Non-enumerable key a source sets on a row to give its cursor at the
136
+ * database's full precision (`YYYY-MM-DDTHH:MM:SS.ffffffZ`). A JS Date keeps
137
+ * only milliseconds; `nextCursor` carries this as the cursor's `exact` value so
138
+ * the next page compares in Postgres at microseconds.
139
+ */
140
+ const ROW_EXACT_CURSOR_KEY = "__clivly_row_cursor_exact__";
141
+ const EXACT_CURSOR_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}Z$/;
142
+ const ISO_DATE_LENGTH = 10;
143
+ /**
144
+ * Whether `value` is a real instant in ISO 8601 UTC: it parses, and its date
145
+ * part survives the round trip (so `2026-02-30` or month 99 never pass).
146
+ */
147
+ function isValidIsoTime(value) {
148
+ const parsed = new Date(value);
149
+ return !Number.isNaN(parsed.getTime()) && parsed.toISOString().slice(0, ISO_DATE_LENGTH) === value.slice(0, ISO_DATE_LENGTH);
120
150
  }
151
+ /** Whether `value` is an exact (microsecond) cursor time. */
152
+ const isExactCursorTime = (value) => EXACT_CURSOR_TIME.test(value) && isValidIsoTime(value);
121
153
  function nextCursor(rows, cursorField, idField, current) {
122
- let max = current;
154
+ const positions = [];
123
155
  for (const row of rows) {
124
- const raw = row[cursorField] ?? row["__clivly_row_cursor__"];
125
- if (raw === null || raw === void 0) continue;
126
- const time = raw instanceof Date ? raw : new Date(String(raw));
127
- if (Number.isNaN(time.getTime())) continue;
128
- const idRaw = row[idField];
129
- const candidate = {
130
- time,
131
- id: idRaw === null || idRaw === void 0 ? "" : String(idRaw)
132
- };
133
- if (!max || isAfter(candidate, max)) max = candidate;
156
+ const position = rowPosition(row, cursorField, idField);
157
+ if (position) positions.push(position);
134
158
  }
159
+ const last = positions.at(-1);
160
+ if (!last) return current;
161
+ if (inKeysetOrder(positions, current)) return last;
162
+ let max = current;
163
+ for (const position of positions) if (!max || compareTimes(position, max) > 0 || compareTimes(position, max) === 0 && position.id > max.id) max = position;
135
164
  return max;
136
165
  }
166
+ function compareTimes(a, b) {
167
+ const diff = a.time.getTime() - b.time.getTime();
168
+ if (diff !== 0) return Math.sign(diff);
169
+ if (a.exact && b.exact && a.exact !== b.exact) return a.exact > b.exact ? 1 : -1;
170
+ return 0;
171
+ }
172
+ function inKeysetOrder(positions, current) {
173
+ let previous = current;
174
+ for (const position of positions) {
175
+ if (previous && compareTimes(position, previous) < 0) return false;
176
+ previous = position;
177
+ }
178
+ return true;
179
+ }
180
+ /** Whether two positions are the same (time, exact time and id). */
181
+ function sameCursor(a, b) {
182
+ if (a === null || b === null) return a === b;
183
+ return a.time.getTime() === b.time.getTime() && a.id === b.id && a.exact === b.exact;
184
+ }
185
+ function rowPosition(row, cursorField, idField) {
186
+ if (!row) return null;
187
+ const exactRaw = row[ROW_EXACT_CURSOR_KEY];
188
+ const exact = typeof exactRaw === "string" ? exactRaw : void 0;
189
+ const raw = exact ?? row["__clivly_row_cursor__"] ?? row[cursorField];
190
+ if (raw === null || raw === void 0) return null;
191
+ const time = raw instanceof Date ? raw : new Date(String(raw));
192
+ if (Number.isNaN(time.getTime())) return null;
193
+ const idRaw = row[idField];
194
+ return {
195
+ time,
196
+ id: idRaw === null || idRaw === void 0 ? "" : String(idRaw),
197
+ ...exact === void 0 ? {} : { exact }
198
+ };
199
+ }
137
200
  function idOnlyCursor(rows, idField, current) {
138
201
  const raw = rows.at(-1)?.[idField];
139
202
  if (raw === null || raw === void 0) return current;
@@ -142,6 +205,17 @@ function idOnlyCursor(rows, idField, current) {
142
205
  time: /* @__PURE__ */ new Date(0)
143
206
  };
144
207
  }
208
+ /**
209
+ * Where `source` stands after reading `rows`. A `full`-mode source (no change
210
+ * column) is positioned by its last row's id; any other by its last row's
211
+ * `(cursorField, idField)`. Every reader of a source's pages (the
212
+ * delta and full sync loops and the delete check's id listing) goes through
213
+ * here, so an id-only source can never be read as if its id were a time.
214
+ */
215
+ function advanceCursor(source, rows, current) {
216
+ const idField = source.idField ?? DEFAULT_ID_FIELD;
217
+ return source.mode === "full" ? idOnlyCursor(rows, idField, current) : nextCursor(rows, source.cursorField, idField, current);
218
+ }
145
219
  const CREATED_AT_CANDIDATES = [
146
220
  "created_at",
147
221
  "createdAt",
@@ -168,7 +242,7 @@ function sourceTimeFields(source, rows) {
168
242
  function toWireCursor(cursor) {
169
243
  return {
170
244
  id: cursor.id,
171
- time: cursor.time.toISOString()
245
+ time: cursor.exact ?? cursor.time.toISOString()
172
246
  };
173
247
  }
174
248
  /**
@@ -183,7 +257,11 @@ function parseWireCursors(value) {
183
257
  const { id, time } = raw;
184
258
  if (typeof id !== "string" || typeof time !== "string") continue;
185
259
  const parsed = new Date(time);
186
- if (!Number.isNaN(parsed.getTime())) out[entity] = {
260
+ if (!Number.isNaN(parsed.getTime())) out[entity] = isExactCursorTime(time) ? {
261
+ id,
262
+ time: parsed,
263
+ exact: time
264
+ } : {
187
265
  id,
188
266
  time: parsed
189
267
  };
@@ -199,7 +277,6 @@ function cursorReport(source, cursor, report) {
199
277
  async function syncSource(args) {
200
278
  const { source, path, since, batchSize, push, objectType, maxRows } = args;
201
279
  const reportCursor = args.reportCursor ?? true;
202
- const idField = source.idField ?? DEFAULT_ID_FIELD;
203
280
  let cursor = since;
204
281
  let pushed = 0;
205
282
  const resumedFrom = since === null ? null : since.time.toISOString();
@@ -210,7 +287,7 @@ async function syncSource(args) {
210
287
  });
211
288
  if (rows.length === 0) break;
212
289
  const capped = maxRows === void 0 ? rows : rows.slice(0, maxRows);
213
- const next = nextCursor(capped, source.cursorField, idField, cursor);
290
+ const next = advanceCursor(source, capped, cursor);
214
291
  if (!await push(path, {
215
292
  source: pushSourceOf(source),
216
293
  rows: capped,
@@ -226,8 +303,13 @@ async function syncSource(args) {
226
303
  ok: false
227
304
  };
228
305
  pushed += capped.length;
306
+ const stalled = sameCursor(next, cursor);
229
307
  cursor = next;
230
308
  if (maxRows !== void 0 || rows.length < batchSize) break;
309
+ if (stalled) {
310
+ console.warn(`[clivly] sync of "${source.entity}" stopped: a full page of ${rows.length} rows did not move its position. Check that fetchPage pages after \`since\` in (${source.cursorField}, id) order and that ${source.cursorField} holds readable times.`);
311
+ break;
312
+ }
231
313
  }
232
314
  return {
233
315
  pushed,
@@ -235,10 +317,24 @@ async function syncSource(args) {
235
317
  ok: true
236
318
  };
237
319
  }
320
+ const PUSH_BODY_LIMIT_MB = 10;
321
+ const BYTES_PER_MB = 1048576;
322
+ const PUSH_WARN_BYTES = 9 * BYTES_PER_MB;
323
+ const SIZE_SAMPLE_ROWS = 200;
324
+ const utf8 = new TextEncoder();
325
+ function estimatedJsonBytes(rows) {
326
+ const sample = rows.slice(0, SIZE_SAMPLE_ROWS);
327
+ return utf8.encode(JSON.stringify(sample)).length / sample.length * rows.length;
328
+ }
329
+ function warnIfNearPushLimit(entity, rows) {
330
+ const bytes = estimatedJsonBytes(rows);
331
+ if (bytes < PUSH_WARN_BYTES) return;
332
+ const mb = (bytes / BYTES_PER_MB).toFixed(1);
333
+ console.warn(`[clivly] full sync of "${entity}" is about ${mb} MB for ${rows.length} rows, one push body, and Clivly refuses a push over ${PUSH_BODY_LIMIT_MB} MB (413). Give the source an updated_at cursor so it syncs as deltas, or read fewer columns. For the Supabase auth.users + public.profiles contact, add an updated_at column (with a moddatetime trigger) to public.profiles, or skip the join: supabaseContactSource(executor, schema, { joinProfiles: false }) in clivly.config.ts, or createSupabaseClivly({ ..., contact: { table: "auth.users", joinProfiles: false } }) in the Edge Function.`);
334
+ }
238
335
  async function fullSyncSource(args) {
239
336
  const { source, path, batchSize, push, objectType } = args;
240
337
  const reportCursor = args.reportCursor ?? true;
241
- const idField = source.idField ?? DEFAULT_ID_FIELD;
242
338
  const all = [];
243
339
  let cursor = null;
244
340
  for (;;) {
@@ -248,16 +344,25 @@ async function fullSyncSource(args) {
248
344
  });
249
345
  if (rows.length === 0) break;
250
346
  all.push(...rows);
251
- const next = source.mode === "full" ? idOnlyCursor(rows, idField, cursor) : nextCursor(rows, source.cursorField, idField, cursor);
252
- const stalled = next !== null && cursor !== null && next.time.getTime() === cursor.time.getTime() && next.id === cursor.id;
347
+ const next = advanceCursor(source, rows, cursor);
348
+ const stalled = sameCursor(next, cursor);
253
349
  cursor = next;
254
- if (rows.length < batchSize || stalled) break;
350
+ if (rows.length < batchSize) break;
351
+ if (stalled) {
352
+ console.warn(`[clivly] full sync of "${source.entity}" stopped and pushed nothing: a full page of ${rows.length} rows did not move its position. Check that fetchPage pages after \`since\` in (${source.cursorField}, id) order and that ${source.cursorField} holds readable times.`);
353
+ return {
354
+ pushed: 0,
355
+ cursor: null,
356
+ ok: false
357
+ };
358
+ }
255
359
  }
256
360
  if (all.length === 0) return {
257
361
  pushed: 0,
258
362
  cursor: null,
259
363
  ok: true
260
364
  };
365
+ warnIfNearPushLimit(source.entity, all);
261
366
  const ok = await push(path, {
262
367
  source: pushSourceOf(source),
263
368
  rows: all,
@@ -274,118 +379,6 @@ async function fullSyncSource(args) {
274
379
  ok
275
380
  };
276
381
  }
277
- // ../sdk/src/projection-guard.ts
278
- /**
279
- * Tables auth libraries keep live credentials in. Whole-table: their secrets
280
- * sit in columns with generic names (`token`, `value`) that a column rule
281
- * cannot single out. `user`, `member` and `organization` are not here — they
282
- * are legitimate contact and company sources.
283
- */
284
- const CREDENTIAL_TABLES = /* @__PURE__ */ new Set([
285
- "session",
286
- "verification",
287
- "two_factor",
288
- "twofactor",
289
- "passkey",
290
- "apikey",
291
- "api_key",
292
- "jwks"
293
- ]);
294
- const BASE_ALIAS = "base";
295
- const AUTH_USERS_ALLOWED = AUTH_USERS_COLUMNS;
296
- /**
297
- * Supabase's `auth` schema: only `auth.users`, and only its allowlisted
298
- * columns. `allowSensitive` never widens this.
299
- */
300
- function authTableError(table) {
301
- return authTableKind(table) === "other" ? `Table "${table}" is in Supabase's auth schema and is never synced; only auth.users is readable.` : null;
302
- }
303
- function normalise(name) {
304
- return name.toLowerCase().replaceAll("-", "_");
305
- }
306
- /** Every (table, column) a projection reads, with join aliases resolved. */
307
- function readColumns(projection) {
308
- const tableOf = /* @__PURE__ */ new Map([[BASE_ALIAS, projection.baseTable]]);
309
- for (const join of projection.joins) tableOf.set(join.key, join.table);
310
- const refs = [];
311
- for (const join of projection.joins) for (const condition of join.on) refs.push(condition.left, condition.right);
312
- for (const binding of Object.values(projection.fieldBindings)) refs.push(binding.from);
313
- const { identity } = projection;
314
- if (identity.kind === "column") refs.push(identity.from);
315
- else if (identity.kind === "composite") refs.push(...identity.parts);
316
- else if (identity.column) refs.push({
317
- table: BASE_ALIAS,
318
- column: identity.column
319
- });
320
- return refs.map((ref) => ({
321
- table: tableOf.get(ref.table) ?? ref.table,
322
- column: ref.column
323
- }));
324
- }
325
- function referencedTables(projection) {
326
- return [projection.baseTable, ...projection.joins.map((join) => join.table)];
327
- }
328
- /** Thrown where a projection is refused outside the route-level checks. */
329
- var ProjectionRefusedError = class extends Error {
330
- reasons;
331
- constructor(reasons) {
332
- super(`projection refused: ${reasons.join("; ")}`);
333
- this.name = "ProjectionRefusedError";
334
- this.reasons = reasons;
335
- }
336
- };
337
- /**
338
- * Only the unconditional Supabase `auth.*` rule: no other auth table, and only
339
- * the allowlisted `auth.users` columns. No policy can widen it, so it needs no
340
- * options and the raw-SQL sources can enforce it on their own.
341
- */
342
- function authExposureErrors(projection) {
343
- const errors = [];
344
- for (const table of referencedTables(projection)) {
345
- const authError = authTableError(table);
346
- if (authError) errors.push(authError);
347
- }
348
- for (const { table, column } of readColumns(projection)) if (authTableKind(table) === "users" && !AUTH_USERS_ALLOWED.includes(column)) errors.push(`Column "${table}.${column}" is not exposed; auth.users only exposes ${AUTH_USERS_COLUMNS.join(", ")}.`);
349
- return [...new Set(errors)];
350
- }
351
- /** Why this projection may not run here; empty when it may. */
352
- function projectionExposureErrors(projection, policy = {}) {
353
- const allowed = new Set((policy.allowSensitive ?? []).map(normalise));
354
- const errors = [];
355
- for (const table of referencedTables(projection)) {
356
- const authError = authTableError(table);
357
- if (authError) errors.push(authError);
358
- if (CREDENTIAL_TABLES.has(normalise(table)) && !allowed.has(normalise(`${table}.*`))) errors.push(`Table "${table}" holds credentials and is never synced.`);
359
- if (policy.tables && !(table in policy.tables)) errors.push(`Table "${table}" is not in this app's exposure.tables allowlist.`);
360
- }
361
- for (const { table, column } of readColumns(projection)) {
362
- const ref = `${table}.${column}`;
363
- if (authTableKind(table) === "users" && !AUTH_USERS_ALLOWED.includes(column)) {
364
- errors.push(`Column "${ref}" is not exposed; auth.users only exposes ${AUTH_USERS_COLUMNS.join(", ")}.`);
365
- continue;
366
- }
367
- if (require_entity_heuristics.isSensitiveColumn(column) && !allowed.has(normalise(ref))) errors.push(`Column "${ref}" looks like a credential and is never synced. List it in exposure.allowSensitive if it is safe.`);
368
- const columns = policy.tables?.[table];
369
- if (Array.isArray(columns) && !columns.includes(column)) errors.push(`Column "${ref}" is not in this app's exposure.tables allowlist.`);
370
- }
371
- return [...new Set(errors)];
372
- }
373
- /** Drop credential columns, and columns outside the allowlist, from a raw-row preview. */
374
- function exposableColumns(table, columns, policy = {}) {
375
- const allowed = new Set((policy.allowSensitive ?? []).map(normalise));
376
- const result = /* @__PURE__ */ new Set();
377
- const authKind = authTableKind(table);
378
- if (authKind === "other") return result;
379
- if (CREDENTIAL_TABLES.has(normalise(table)) && !allowed.has(normalise(`${table}.*`)) || policy.tables !== void 0 && !(table in policy.tables)) return result;
380
- const listed = policy.tables?.[table];
381
- for (const column of columns) {
382
- if (authKind === "users" && !AUTH_USERS_ALLOWED.includes(column)) continue;
383
- if (require_entity_heuristics.isSensitiveColumn(column) && !allowed.has(normalise(`${table}.${column}`))) continue;
384
- if (Array.isArray(listed) && !listed.includes(column)) continue;
385
- result.add(column);
386
- }
387
- return result;
388
- }
389
382
  Object.defineProperty(exports, "AUTH_USERS_COLUMNS", {
390
383
  enumerable: true,
391
384
  get: function() {
@@ -404,10 +397,16 @@ Object.defineProperty(exports, "AUTH_USERS_TABLE", {
404
397
  return AUTH_USERS_TABLE;
405
398
  }
406
399
  });
407
- Object.defineProperty(exports, "ProjectionRefusedError", {
400
+ Object.defineProperty(exports, "DRIZZLE_META", {
401
+ enumerable: true,
402
+ get: function() {
403
+ return DRIZZLE_META;
404
+ }
405
+ });
406
+ Object.defineProperty(exports, "IS_ANONYMOUS_COLUMN", {
408
407
  enumerable: true,
409
408
  get: function() {
410
- return ProjectionRefusedError;
409
+ return IS_ANONYMOUS_COLUMN;
411
410
  }
412
411
  });
413
412
  Object.defineProperty(exports, "ROW_CURSOR_KEY", {
@@ -416,10 +415,16 @@ Object.defineProperty(exports, "ROW_CURSOR_KEY", {
416
415
  return ROW_CURSOR_KEY;
417
416
  }
418
417
  });
419
- Object.defineProperty(exports, "authExposureErrors", {
418
+ Object.defineProperty(exports, "ROW_EXACT_CURSOR_KEY", {
419
+ enumerable: true,
420
+ get: function() {
421
+ return ROW_EXACT_CURSOR_KEY;
422
+ }
423
+ });
424
+ Object.defineProperty(exports, "advanceCursor", {
420
425
  enumerable: true,
421
426
  get: function() {
422
- return authExposureErrors;
427
+ return advanceCursor;
423
428
  }
424
429
  });
425
430
  Object.defineProperty(exports, "authTableKind", {
@@ -440,10 +445,10 @@ Object.defineProperty(exports, "expectedSourceKey", {
440
445
  return expectedSourceKey;
441
446
  }
442
447
  });
443
- Object.defineProperty(exports, "exposableColumns", {
448
+ Object.defineProperty(exports, "filtersAnonymous", {
444
449
  enumerable: true,
445
450
  get: function() {
446
- return exposableColumns;
451
+ return filtersAnonymous;
447
452
  }
448
453
  });
449
454
  Object.defineProperty(exports, "fullSyncSource", {
@@ -458,22 +463,28 @@ Object.defineProperty(exports, "isAnonymousFilter", {
458
463
  return isAnonymousFilter;
459
464
  }
460
465
  });
461
- Object.defineProperty(exports, "nextCursor", {
466
+ Object.defineProperty(exports, "isExactCursorTime", {
462
467
  enumerable: true,
463
468
  get: function() {
464
- return nextCursor;
469
+ return isExactCursorTime;
465
470
  }
466
471
  });
467
- Object.defineProperty(exports, "parseWireCursors", {
472
+ Object.defineProperty(exports, "isValidIsoTime", {
468
473
  enumerable: true,
469
474
  get: function() {
470
- return parseWireCursors;
475
+ return isValidIsoTime;
476
+ }
477
+ });
478
+ Object.defineProperty(exports, "markAnonymousColumn", {
479
+ enumerable: true,
480
+ get: function() {
481
+ return markAnonymousColumn;
471
482
  }
472
483
  });
473
- Object.defineProperty(exports, "projectionExposureErrors", {
484
+ Object.defineProperty(exports, "parseWireCursors", {
474
485
  enumerable: true,
475
486
  get: function() {
476
- return projectionExposureErrors;
487
+ return parseWireCursors;
477
488
  }
478
489
  });
479
490
  Object.defineProperty(exports, "pushSourceOf", {