@columnus/shared 0.1.58 → 0.1.60
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/dist/assetSettings.d.ts +16 -6
- package/dist/assetSettings.js.map +1 -1
- package/dist/auditRedact.d.ts +36 -0
- package/dist/auditRedact.js +4602 -0
- package/dist/auditRedact.js.map +1 -0
- package/dist/bffProtocol.d.ts +22 -22
- package/dist/index.d.ts +2 -0
- package/dist/index.js +136 -60
- package/dist/index.js.map +1 -1
- package/dist/proposeRateLimit.d.ts +22 -0
- package/dist/proposeRateLimit.js +33 -0
- package/dist/proposeRateLimit.js.map +1 -0
- package/dist/schemaGenerator.d.ts +0 -19
- package/dist/schemaGenerator.js +10 -60
- package/dist/schemaGenerator.js.map +1 -1
- package/dist/syncChannel.js.map +1 -1
- package/package.json +1 -1
package/dist/bffProtocol.d.ts
CHANGED
|
@@ -200,9 +200,9 @@ export declare const bffSchemaDeployResponseSchema: z.ZodObject<{
|
|
|
200
200
|
operationId: string;
|
|
201
201
|
phase: "ready" | "failed" | "cleaning" | "deploying" | "succeeded";
|
|
202
202
|
error?: string | undefined;
|
|
203
|
+
logTail?: string | undefined;
|
|
203
204
|
desiredManifestHash?: string | undefined;
|
|
204
205
|
deployedManifestHash?: string | undefined;
|
|
205
|
-
logTail?: string | undefined;
|
|
206
206
|
activeOperation?: {
|
|
207
207
|
operationId: string;
|
|
208
208
|
startedAt?: number | undefined;
|
|
@@ -214,9 +214,9 @@ export declare const bffSchemaDeployResponseSchema: z.ZodObject<{
|
|
|
214
214
|
operationId: string;
|
|
215
215
|
phase: "ready" | "failed" | "cleaning" | "deploying" | "succeeded";
|
|
216
216
|
error?: string | undefined;
|
|
217
|
+
logTail?: string | undefined;
|
|
217
218
|
desiredManifestHash?: string | undefined;
|
|
218
219
|
deployedManifestHash?: string | undefined;
|
|
219
|
-
logTail?: string | undefined;
|
|
220
220
|
activeOperation?: {
|
|
221
221
|
operationId: string;
|
|
222
222
|
startedAt?: number | undefined;
|
|
@@ -568,7 +568,6 @@ export declare const bffPrepareRequestSchema: z.ZodObject<{
|
|
|
568
568
|
transferId: string;
|
|
569
569
|
}>]>;
|
|
570
570
|
}, "strip", z.ZodTypeAny, {
|
|
571
|
-
host: string;
|
|
572
571
|
protocolVersion: 1;
|
|
573
572
|
operation: {
|
|
574
573
|
type: "schemaDeploy";
|
|
@@ -598,9 +597,9 @@ export declare const bffPrepareRequestSchema: z.ZodObject<{
|
|
|
598
597
|
operationId: string;
|
|
599
598
|
transferId: string;
|
|
600
599
|
};
|
|
600
|
+
host: string;
|
|
601
601
|
correlationId?: string | undefined;
|
|
602
602
|
}, {
|
|
603
|
-
host: string;
|
|
604
603
|
protocolVersion: 1;
|
|
605
604
|
operation: {
|
|
606
605
|
type: "schemaDeploy";
|
|
@@ -630,6 +629,7 @@ export declare const bffPrepareRequestSchema: z.ZodObject<{
|
|
|
630
629
|
operationId: string;
|
|
631
630
|
transferId: string;
|
|
632
631
|
};
|
|
632
|
+
host: string;
|
|
633
633
|
correlationId?: string | undefined;
|
|
634
634
|
}>;
|
|
635
635
|
export type BffPrepareRequest = z.infer<typeof bffPrepareRequestSchema>;
|
|
@@ -856,14 +856,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
856
856
|
previewName?: string | null | undefined;
|
|
857
857
|
}>;
|
|
858
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
-
protocolVersion: 1;
|
|
860
|
-
operation: "schemaDeploy";
|
|
861
859
|
tenant: {
|
|
862
860
|
slug: string;
|
|
863
861
|
convexUrl: string;
|
|
864
862
|
authIssuer?: string | undefined;
|
|
865
863
|
deploymentName?: string | undefined;
|
|
866
864
|
};
|
|
865
|
+
protocolVersion: 1;
|
|
866
|
+
operation: "schemaDeploy";
|
|
867
867
|
payload: {
|
|
868
868
|
manifestJson: string;
|
|
869
869
|
convexUrl: string;
|
|
@@ -874,14 +874,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
874
874
|
};
|
|
875
875
|
correlationId?: string | undefined;
|
|
876
876
|
}, {
|
|
877
|
-
protocolVersion: 1;
|
|
878
|
-
operation: "schemaDeploy";
|
|
879
877
|
tenant: {
|
|
880
878
|
slug: string;
|
|
881
879
|
convexUrl: string;
|
|
882
880
|
authIssuer?: string | undefined;
|
|
883
881
|
deploymentName?: string | undefined;
|
|
884
882
|
};
|
|
883
|
+
protocolVersion: 1;
|
|
884
|
+
operation: "schemaDeploy";
|
|
885
885
|
payload: {
|
|
886
886
|
manifestJson: string;
|
|
887
887
|
convexUrl: string;
|
|
@@ -967,14 +967,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
967
967
|
tenantSlug: string;
|
|
968
968
|
}>;
|
|
969
969
|
}, "strip", z.ZodTypeAny, {
|
|
970
|
-
protocolVersion: 1;
|
|
971
|
-
operation: "dataExport";
|
|
972
970
|
tenant: {
|
|
973
971
|
slug: string;
|
|
974
972
|
convexUrl: string;
|
|
975
973
|
authIssuer?: string | undefined;
|
|
976
974
|
deploymentName?: string | undefined;
|
|
977
975
|
};
|
|
976
|
+
protocolVersion: 1;
|
|
977
|
+
operation: "dataExport";
|
|
978
978
|
payload: {
|
|
979
979
|
operationId: string;
|
|
980
980
|
transferManifest: {
|
|
@@ -989,14 +989,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
989
989
|
};
|
|
990
990
|
correlationId?: string | undefined;
|
|
991
991
|
}, {
|
|
992
|
-
protocolVersion: 1;
|
|
993
|
-
operation: "dataExport";
|
|
994
992
|
tenant: {
|
|
995
993
|
slug: string;
|
|
996
994
|
convexUrl: string;
|
|
997
995
|
authIssuer?: string | undefined;
|
|
998
996
|
deploymentName?: string | undefined;
|
|
999
997
|
};
|
|
998
|
+
protocolVersion: 1;
|
|
999
|
+
operation: "dataExport";
|
|
1000
1000
|
payload: {
|
|
1001
1001
|
operationId: string;
|
|
1002
1002
|
transferManifest: {
|
|
@@ -1086,14 +1086,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1086
1086
|
tenantSlug: string;
|
|
1087
1087
|
}>;
|
|
1088
1088
|
}, "strip", z.ZodTypeAny, {
|
|
1089
|
-
protocolVersion: 1;
|
|
1090
|
-
operation: "dataImportPrepare";
|
|
1091
1089
|
tenant: {
|
|
1092
1090
|
slug: string;
|
|
1093
1091
|
convexUrl: string;
|
|
1094
1092
|
authIssuer?: string | undefined;
|
|
1095
1093
|
deploymentName?: string | undefined;
|
|
1096
1094
|
};
|
|
1095
|
+
protocolVersion: 1;
|
|
1096
|
+
operation: "dataImportPrepare";
|
|
1097
1097
|
payload: {
|
|
1098
1098
|
operationId: string;
|
|
1099
1099
|
transferManifest: {
|
|
@@ -1108,14 +1108,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1108
1108
|
};
|
|
1109
1109
|
correlationId?: string | undefined;
|
|
1110
1110
|
}, {
|
|
1111
|
-
protocolVersion: 1;
|
|
1112
|
-
operation: "dataImportPrepare";
|
|
1113
1111
|
tenant: {
|
|
1114
1112
|
slug: string;
|
|
1115
1113
|
convexUrl: string;
|
|
1116
1114
|
authIssuer?: string | undefined;
|
|
1117
1115
|
deploymentName?: string | undefined;
|
|
1118
1116
|
};
|
|
1117
|
+
protocolVersion: 1;
|
|
1118
|
+
operation: "dataImportPrepare";
|
|
1119
1119
|
payload: {
|
|
1120
1120
|
operationId: string;
|
|
1121
1121
|
transferManifest: {
|
|
@@ -1173,14 +1173,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1173
1173
|
tenantSlug: string;
|
|
1174
1174
|
}>;
|
|
1175
1175
|
}, "strip", z.ZodTypeAny, {
|
|
1176
|
-
protocolVersion: 1;
|
|
1177
|
-
operation: "dataImportCommit";
|
|
1178
1176
|
tenant: {
|
|
1179
1177
|
slug: string;
|
|
1180
1178
|
convexUrl: string;
|
|
1181
1179
|
authIssuer?: string | undefined;
|
|
1182
1180
|
deploymentName?: string | undefined;
|
|
1183
1181
|
};
|
|
1182
|
+
protocolVersion: 1;
|
|
1183
|
+
operation: "dataImportCommit";
|
|
1184
1184
|
payload: {
|
|
1185
1185
|
schemaHash: string;
|
|
1186
1186
|
operationId: string;
|
|
@@ -1191,14 +1191,14 @@ export declare const bffPreparedBodyEnvelopeSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1191
1191
|
};
|
|
1192
1192
|
correlationId?: string | undefined;
|
|
1193
1193
|
}, {
|
|
1194
|
-
protocolVersion: 1;
|
|
1195
|
-
operation: "dataImportCommit";
|
|
1196
1194
|
tenant: {
|
|
1197
1195
|
slug: string;
|
|
1198
1196
|
convexUrl: string;
|
|
1199
1197
|
authIssuer?: string | undefined;
|
|
1200
1198
|
deploymentName?: string | undefined;
|
|
1201
1199
|
};
|
|
1200
|
+
protocolVersion: 1;
|
|
1201
|
+
operation: "dataImportCommit";
|
|
1202
1202
|
payload: {
|
|
1203
1203
|
schemaHash: string;
|
|
1204
1204
|
operationId: string;
|
|
@@ -1270,11 +1270,11 @@ export declare const transferSessionRecordSchema: z.ZodObject<{
|
|
|
1270
1270
|
}, "strip", z.ZodTypeAny, {
|
|
1271
1271
|
tables: string[];
|
|
1272
1272
|
state: "exportReady" | "importAwaitingUpload" | "importUploaded" | "importCommitted" | "importFailed" | "expired";
|
|
1273
|
+
operation: "export" | "import";
|
|
1273
1274
|
schemaHash: string;
|
|
1274
1275
|
includeFileStorage: boolean;
|
|
1275
1276
|
transferId: string;
|
|
1276
1277
|
expiresAt: number;
|
|
1277
|
-
operation: "export" | "import";
|
|
1278
1278
|
convexUrl: string;
|
|
1279
1279
|
tenantSlug: string;
|
|
1280
1280
|
maxBytes: number;
|
|
@@ -1288,11 +1288,11 @@ export declare const transferSessionRecordSchema: z.ZodObject<{
|
|
|
1288
1288
|
}, {
|
|
1289
1289
|
tables: string[];
|
|
1290
1290
|
state: "exportReady" | "importAwaitingUpload" | "importUploaded" | "importCommitted" | "importFailed" | "expired";
|
|
1291
|
+
operation: "export" | "import";
|
|
1291
1292
|
schemaHash: string;
|
|
1292
1293
|
includeFileStorage: boolean;
|
|
1293
1294
|
transferId: string;
|
|
1294
1295
|
expiresAt: number;
|
|
1295
|
-
operation: "export" | "import";
|
|
1296
1296
|
convexUrl: string;
|
|
1297
1297
|
tenantSlug: string;
|
|
1298
1298
|
maxBytes: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from "./apiToken.ts";
|
|
|
44
44
|
export * from "./share.ts";
|
|
45
45
|
export * from "./shareTokenCrypto.ts";
|
|
46
46
|
export * from "./proposePolicy.ts";
|
|
47
|
+
export * from "./proposeRateLimit.ts";
|
|
47
48
|
export * from "./apiProfileSlug.ts";
|
|
48
49
|
export * from "./apiProfile.ts";
|
|
49
50
|
export * from "./syncClampMembership.ts";
|
|
@@ -62,4 +63,5 @@ export * from "./studioBoot.ts";
|
|
|
62
63
|
export * from "./bffHost.ts";
|
|
63
64
|
export * from "./bffProtocol.ts";
|
|
64
65
|
export * from "./bffRedact.ts";
|
|
66
|
+
export * from "./auditRedact.ts";
|
|
65
67
|
export * from "./shareProposal.ts";
|
package/dist/index.js
CHANGED
|
@@ -6651,9 +6651,8 @@ function generateSchemaTs(manifest, opts) {
|
|
|
6651
6651
|
const includeManifestTable = opts?.includeManifestTable ?? true;
|
|
6652
6652
|
const includeAuditTable = opts?.includeAuditTable ?? true;
|
|
6653
6653
|
const includeDisplayValuesTable = opts?.includeDisplayValuesTable ?? true;
|
|
6654
|
-
const assetFieldIds = opts?.assetFieldIds ?? "assets";
|
|
6655
6654
|
const userTables = [...manifest.tables].sort((a, b) => a.name.localeCompare(b.name));
|
|
6656
|
-
const userBody = userTables.map((t) => ` ${t.name}: ${renderTable(t
|
|
6655
|
+
const userBody = userTables.map((t) => ` ${t.name}: ${renderTable(t)},`).join("\n");
|
|
6657
6656
|
let body;
|
|
6658
6657
|
if (includeColumnusTables) {
|
|
6659
6658
|
const columnusSource = columnusTablesSource({
|
|
@@ -6669,15 +6668,14 @@ function generateSchemaTs(manifest, opts) {
|
|
|
6669
6668
|
const banner = includeColumnusTables ? BANNER : CONSUMER_BANNER;
|
|
6670
6669
|
const schemaBody = body ? `${body}
|
|
6671
6670
|
` : "";
|
|
6672
|
-
const schemaOpts = opts?.schemaValidation === false ? ", { schemaValidation: false }" : "";
|
|
6673
6671
|
return `${banner}import { defineSchema, defineTable } from "convex/server";
|
|
6674
6672
|
import { v } from "convex/values";
|
|
6675
6673
|
|
|
6676
6674
|
export default defineSchema({
|
|
6677
|
-
${schemaBody}}
|
|
6675
|
+
${schemaBody}});
|
|
6678
6676
|
`;
|
|
6679
6677
|
}
|
|
6680
|
-
function renderTable(t
|
|
6678
|
+
function renderTable(t) {
|
|
6681
6679
|
const fields = isAssetTable(t) ? [
|
|
6682
6680
|
...t.fields,
|
|
6683
6681
|
{
|
|
@@ -6688,7 +6686,7 @@ function renderTable(t, assetFieldIds) {
|
|
|
6688
6686
|
] : t.fields;
|
|
6689
6687
|
const fieldsBlock = fields.length ? `{
|
|
6690
6688
|
${fields.map((f) => {
|
|
6691
|
-
const inner = renderType(f.type
|
|
6689
|
+
const inner = renderType(f.type);
|
|
6692
6690
|
const value = f.optional ? `v.optional(${inner})` : inner;
|
|
6693
6691
|
return ` ${f.name}: ${value},`;
|
|
6694
6692
|
}).join("\n")}
|
|
@@ -6712,20 +6710,7 @@ ${fields.map((f) => {
|
|
|
6712
6710
|
}
|
|
6713
6711
|
return out;
|
|
6714
6712
|
}
|
|
6715
|
-
function
|
|
6716
|
-
const assetId = `v.id(${JSON.stringify(ASSETS_TABLE_NAME)})`;
|
|
6717
|
-
switch (assetFieldIds) {
|
|
6718
|
-
case "storage-or-assets":
|
|
6719
|
-
return `v.union(v.id("_storage"), ${assetId})`;
|
|
6720
|
-
case "assets":
|
|
6721
|
-
return assetId;
|
|
6722
|
-
default: {
|
|
6723
|
-
const _exhaustive = assetFieldIds;
|
|
6724
|
-
return _exhaustive;
|
|
6725
|
-
}
|
|
6726
|
-
}
|
|
6727
|
-
}
|
|
6728
|
-
function renderType(t, assetFieldIds) {
|
|
6713
|
+
function renderType(t) {
|
|
6729
6714
|
switch (t.kind) {
|
|
6730
6715
|
case "string":
|
|
6731
6716
|
case "markdown":
|
|
@@ -6747,62 +6732,27 @@ function renderType(t, assetFieldIds) {
|
|
|
6747
6732
|
return "v.bytes()";
|
|
6748
6733
|
case "file":
|
|
6749
6734
|
case "image":
|
|
6750
|
-
return
|
|
6735
|
+
return `v.id(${JSON.stringify(ASSETS_TABLE_NAME)})`;
|
|
6751
6736
|
case "id":
|
|
6752
6737
|
return `v.id(${JSON.stringify(t.table)})`;
|
|
6753
6738
|
case "literal":
|
|
6754
6739
|
return `v.literal(${JSON.stringify(t.value)})`;
|
|
6755
6740
|
case "array":
|
|
6756
|
-
return `v.array(${renderType(t.element
|
|
6741
|
+
return `v.array(${renderType(t.element)})`;
|
|
6757
6742
|
case "object": {
|
|
6758
6743
|
if (t.fields.length === 0) return `v.object({})`;
|
|
6759
6744
|
const inner = t.fields.map((f) => {
|
|
6760
|
-
const inner2 = renderType(f.type
|
|
6745
|
+
const inner2 = renderType(f.type);
|
|
6761
6746
|
const value = f.optional ? `v.optional(${inner2})` : inner2;
|
|
6762
6747
|
return `${f.name}: ${value}`;
|
|
6763
6748
|
}).join(", ");
|
|
6764
6749
|
return `v.object({ ${inner} })`;
|
|
6765
6750
|
}
|
|
6766
6751
|
case "union":
|
|
6767
|
-
return `v.union(${t.options.map((option) => renderType(option
|
|
6752
|
+
return `v.union(${t.options.map((option) => renderType(option)).join(", ")})`;
|
|
6768
6753
|
}
|
|
6769
6754
|
throw new Error(`unknown field kind: ${t.kind}`);
|
|
6770
6755
|
}
|
|
6771
|
-
function fieldTypeContainsFileOrImage(t) {
|
|
6772
|
-
switch (t.kind) {
|
|
6773
|
-
case "file":
|
|
6774
|
-
case "image":
|
|
6775
|
-
return true;
|
|
6776
|
-
case "array":
|
|
6777
|
-
return fieldTypeContainsFileOrImage(t.element);
|
|
6778
|
-
case "object":
|
|
6779
|
-
return t.fields.some((field) => fieldTypeContainsFileOrImage(field.type));
|
|
6780
|
-
case "union":
|
|
6781
|
-
return t.options.some(fieldTypeContainsFileOrImage);
|
|
6782
|
-
case "string":
|
|
6783
|
-
case "markdown":
|
|
6784
|
-
case "number":
|
|
6785
|
-
case "boolean":
|
|
6786
|
-
case "bigint":
|
|
6787
|
-
case "null":
|
|
6788
|
-
case "any":
|
|
6789
|
-
case "bytes":
|
|
6790
|
-
case "date":
|
|
6791
|
-
case "datetime":
|
|
6792
|
-
case "id":
|
|
6793
|
-
case "literal":
|
|
6794
|
-
return false;
|
|
6795
|
-
default: {
|
|
6796
|
-
const _exhaustive = t;
|
|
6797
|
-
return _exhaustive;
|
|
6798
|
-
}
|
|
6799
|
-
}
|
|
6800
|
-
}
|
|
6801
|
-
function manifestHasFileOrImageFields(manifest) {
|
|
6802
|
-
return manifest.tables.some(
|
|
6803
|
-
(table) => table.fields.some((field) => fieldTypeContainsFileOrImage(field.type))
|
|
6804
|
-
);
|
|
6805
|
-
}
|
|
6806
6756
|
|
|
6807
6757
|
// packages/@columnus/shared/src/schemaShrink.ts
|
|
6808
6758
|
var SHRINK_IMPACT_CAP = 500;
|
|
@@ -9989,6 +9939,36 @@ async function decryptShareToken(ciphertext, keyBytes) {
|
|
|
9989
9939
|
}
|
|
9990
9940
|
}
|
|
9991
9941
|
|
|
9942
|
+
// packages/@columnus/shared/src/proposeRateLimit.ts
|
|
9943
|
+
var DEFAULT_PROPOSE_RATE_LIMITS = {
|
|
9944
|
+
api_token: { max: 30, windowMs: 6e4 },
|
|
9945
|
+
share_invite: { max: 120, windowMs: 6e4 },
|
|
9946
|
+
public_form: { max: 10, windowMs: 6e4 },
|
|
9947
|
+
client_key: { max: 60, windowMs: 6e4 }
|
|
9948
|
+
};
|
|
9949
|
+
function parseProposeRateLimitInt(raw, fallback) {
|
|
9950
|
+
if (raw === void 0 || raw.trim() === "") return fallback;
|
|
9951
|
+
const parsed = Number.parseInt(raw, 10);
|
|
9952
|
+
return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;
|
|
9953
|
+
}
|
|
9954
|
+
function proposeRateLimitBucket(kind, id) {
|
|
9955
|
+
return `${kind}:${id}`;
|
|
9956
|
+
}
|
|
9957
|
+
function checkSlidingWindowRateLimit(state, now, config) {
|
|
9958
|
+
if (config.max === 0) return { allowed: true, next: state };
|
|
9959
|
+
const hits = state.hits.filter((timestamp) => now - timestamp < config.windowMs);
|
|
9960
|
+
if (hits.length >= config.max) {
|
|
9961
|
+
const oldest = hits[0] ?? now;
|
|
9962
|
+
return { allowed: false, retryAfterMs: Math.max(1, oldest + config.windowMs - now) };
|
|
9963
|
+
}
|
|
9964
|
+
return { allowed: true, next: { hits: [...hits, now] } };
|
|
9965
|
+
}
|
|
9966
|
+
var PROPOSE_RATE_LIMITED_CODE = "propose_rate_limited";
|
|
9967
|
+
function proposeRateLimitedMessage(retryAfterMs) {
|
|
9968
|
+
const seconds = Math.max(1, Math.ceil(retryAfterMs / 1e3));
|
|
9969
|
+
return `Too many proposal submissions. Try again in ${seconds} second${seconds === 1 ? "" : "s"}.`;
|
|
9970
|
+
}
|
|
9971
|
+
|
|
9992
9972
|
// packages/@columnus/shared/src/apiProfileSlug.ts
|
|
9993
9973
|
var API_PROFILE_SLUG_RE = /^[a-z][a-z0-9-]{0,47}$/;
|
|
9994
9974
|
function isApiProfileSlug(slug) {
|
|
@@ -11236,6 +11216,102 @@ function summarizePreparedEnvelope(envelope) {
|
|
|
11236
11216
|
};
|
|
11237
11217
|
}
|
|
11238
11218
|
|
|
11219
|
+
// packages/@columnus/shared/src/auditRedact.ts
|
|
11220
|
+
function isRecord4(value) {
|
|
11221
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11222
|
+
}
|
|
11223
|
+
function sortedKeys(row) {
|
|
11224
|
+
return Object.keys(stripSystemFields(row)).sort();
|
|
11225
|
+
}
|
|
11226
|
+
function listChangedFieldKeys(before, after) {
|
|
11227
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(after)]);
|
|
11228
|
+
const changed = [];
|
|
11229
|
+
for (const key of keys) {
|
|
11230
|
+
if (key === "_id" || key === "_creationTime") continue;
|
|
11231
|
+
if (!fieldValuesEqual(before[key], after[key])) changed.push(key);
|
|
11232
|
+
}
|
|
11233
|
+
return changed.sort();
|
|
11234
|
+
}
|
|
11235
|
+
function redactRowAuditSide(doc) {
|
|
11236
|
+
if (doc === void 0) return void 0;
|
|
11237
|
+
if (doc === null) return null;
|
|
11238
|
+
if (!isRecord4(doc)) return { fieldKeys: [] };
|
|
11239
|
+
return { fieldKeys: sortedKeys(doc) };
|
|
11240
|
+
}
|
|
11241
|
+
function redactRowAuditPayload(entry) {
|
|
11242
|
+
const beforeDoc = entry.before;
|
|
11243
|
+
const afterDoc = entry.after;
|
|
11244
|
+
const redactedBefore = redactRowAuditSide(beforeDoc);
|
|
11245
|
+
const redactedAfter = redactRowAuditSide(afterDoc);
|
|
11246
|
+
if (isRecord4(beforeDoc) && isRecord4(afterDoc) && redactedAfter && typeof redactedAfter === "object") {
|
|
11247
|
+
redactedAfter.changedFields = listChangedFieldKeys(beforeDoc, afterDoc);
|
|
11248
|
+
}
|
|
11249
|
+
return {
|
|
11250
|
+
...redactedBefore === void 0 ? {} : { before: redactedBefore },
|
|
11251
|
+
...redactedAfter === void 0 ? {} : { after: redactedAfter }
|
|
11252
|
+
};
|
|
11253
|
+
}
|
|
11254
|
+
function manifestLike(value) {
|
|
11255
|
+
return isRecord4(value) && Array.isArray(value.tables);
|
|
11256
|
+
}
|
|
11257
|
+
function summarizeManifestForAudit(manifest) {
|
|
11258
|
+
if (!manifestLike(manifest)) {
|
|
11259
|
+
return { tableNames: [], fieldsByTable: {} };
|
|
11260
|
+
}
|
|
11261
|
+
const tableNames = [];
|
|
11262
|
+
const fieldsByTable = {};
|
|
11263
|
+
for (const table of manifest.tables) {
|
|
11264
|
+
tableNames.push(table.name);
|
|
11265
|
+
fieldsByTable[table.name] = table.fields.map((field) => field.name).sort();
|
|
11266
|
+
}
|
|
11267
|
+
tableNames.sort();
|
|
11268
|
+
return { tableNames, fieldsByTable };
|
|
11269
|
+
}
|
|
11270
|
+
function manifestTableNamesFromAuditSide(side) {
|
|
11271
|
+
if (!isRecord4(side)) return [];
|
|
11272
|
+
if (Array.isArray(side.tableNames)) {
|
|
11273
|
+
return side.tableNames.filter((name) => typeof name === "string");
|
|
11274
|
+
}
|
|
11275
|
+
if (Array.isArray(side.tables)) {
|
|
11276
|
+
return side.tables.map((table) => isRecord4(table) ? table.name : void 0).filter((name) => typeof name === "string");
|
|
11277
|
+
}
|
|
11278
|
+
const nested = side.manifest;
|
|
11279
|
+
if (isRecord4(nested)) {
|
|
11280
|
+
return manifestTableNamesFromAuditSide(nested);
|
|
11281
|
+
}
|
|
11282
|
+
return [];
|
|
11283
|
+
}
|
|
11284
|
+
function redactSchemaAuditValue(value) {
|
|
11285
|
+
if (value == null) return value;
|
|
11286
|
+
if (typeof value === "string") return redactString(value);
|
|
11287
|
+
if (typeof value !== "object") return value;
|
|
11288
|
+
if (manifestLike(value)) return summarizeManifestForAudit(value);
|
|
11289
|
+
const record = value;
|
|
11290
|
+
const out = {};
|
|
11291
|
+
for (const [key, child] of Object.entries(record)) {
|
|
11292
|
+
if (key === "manifest") {
|
|
11293
|
+
out.manifest = summarizeManifestForAudit(child);
|
|
11294
|
+
continue;
|
|
11295
|
+
}
|
|
11296
|
+
if (key === "_cleanupSummary") {
|
|
11297
|
+
out.cleanupSummary = child;
|
|
11298
|
+
continue;
|
|
11299
|
+
}
|
|
11300
|
+
if (key === "logTail" || key === "error") {
|
|
11301
|
+
out[key] = typeof child === "string" ? redactString(child) : child;
|
|
11302
|
+
continue;
|
|
11303
|
+
}
|
|
11304
|
+
out[key] = child;
|
|
11305
|
+
}
|
|
11306
|
+
return out;
|
|
11307
|
+
}
|
|
11308
|
+
function redactSchemaAuditPayload(entry) {
|
|
11309
|
+
return {
|
|
11310
|
+
...entry.before === void 0 ? {} : { before: redactSchemaAuditValue(entry.before) },
|
|
11311
|
+
...entry.after === void 0 ? {} : { after: redactSchemaAuditValue(entry.after) }
|
|
11312
|
+
};
|
|
11313
|
+
}
|
|
11314
|
+
|
|
11239
11315
|
// packages/@columnus/shared/src/shareProposal.ts
|
|
11240
11316
|
function newProvisionalRowId() {
|
|
11241
11317
|
return `new:${crypto.randomUUID()}`;
|
|
@@ -11544,6 +11620,6 @@ papaparse/papaparse.min.js:
|
|
|
11544
11620
|
*)
|
|
11545
11621
|
*/
|
|
11546
11622
|
|
|
11547
|
-
export { API_DELIVERY_TABLE_NAME, API_OUTBOX_TABLE_NAME, API_OUTPUTS_TABLE_NAME, API_OUTPUT_SECRETS_TABLE_NAME, API_PROFILES_TABLE_NAME, API_PROFILE_SLUG_RE, API_SYNC_ROUTES_TABLE_NAME, API_TOKENS_TABLE_NAME, API_TOKEN_PREFIX, ASSETS_TABLE_NAME, ASSET_FAMILIES, ASSET_JOB_KINDS, ASSET_JOB_LEASE_MS, ASSET_JOB_MAX_ATTEMPTS, ASSET_JOB_MAX_RECLAIMS, ASSET_JOB_STATUSES, ASSET_JOB_TIMEOUT_MS, ASSET_PROCESSING_STATUSES, ASSET_PROFILES_TABLE_NAME, ASSET_REFS_TABLE_NAME, ASSET_SETTINGS_TABLE_NAME, ASSET_VERSIONS_TABLE_NAME, AUDIT_TABLE_NAME, BFF_JSON_BODY_LIMIT_BYTES, MAX_TRANSFER_BYTES as BFF_TRANSFER_MAX_BYTES, COLUMNUS_BFF_API_PREFIX, COLUMNUS_BFF_MANAGEMENT_PREFIX, COLUMNUS_BFF_MANAGEMENT_SECRET_HEADER, COLUMNUS_BFF_PROTOCOL_VERSION, COLUMNUS_BUNDLE_VERSION, COLUMNUS_CLIPBOARD_MARKER, COLUMNUS_CLIPBOARD_VERSION, COLUMNUS_DATA_TRANSFER_VERSION, COLUMNUS_DEPLOY_INTERNAL_PREFIX, COLUMNUS_DEPLOY_OPS_PREFIX, COLUMNUS_DOC_LINK_MARKER, COLUMNUS_PREVIEW_REGISTRATION_SECRET_HEADER, DEFAULT_ASSET_SLOTS, DEFAULT_IMAGE_GRAPH, DEFAULT_MAX_SCAN_LIMIT, DEFAULT_MEDIA_REJECT_BYTES, DEFAULT_MEDIA_UPLOAD_CAPS, DEFAULT_MEDIA_WARN_BYTES, DISPLAYABLE_VECTOR_CONTENT_TYPES, DISPLAY_VALUES_TABLE_NAME, EMPTY_BLOCK_ID, EMPTY_MANIFEST, EMPTY_MARKDOWN_DOC, EMPTY_RICH_DOC, FIELD_TYPE_KIND_ICONS, FIELD_TYPE_KIND_LABELS, FIELD_TYPE_SELECT_KINDS, HOST_SCHEMA_PROFILE, INCOMING_REFS_TABLE_NAME, MANIFEST_DEPLOY_STATUSES, MANIFEST_HASH_RE, MANIFEST_TABLE_NAME, MATCH_ERROR_KEY, MAX_RENDER_MEGAPIXELS, MAX_RENDER_PIXELS, MAX_TRANSFER_BYTES, MEDIA_LIBRARY_JOURNAL_TTL_MS, OPERATION_ID_RE, OVERLAP_MESSAGE, PREDICATE_OPS, PREDICATE_VARIANTS, PREVIEW_TENANT_SLUG_RE, RECORD_TABLE_DEFAULT_FIELD_COUNT, REDACTED, REFS_RECOMPUTE_STALE_MS, RENDITION_TIMEOUT_MS, RESERVED_TABLE_NAMES, RESERVED_TENANT_SLUGS, RICH_DOC_FORMAT, RICH_DOC_VERSION, SCHEMA_DEPLOY_OPERATION_LEASE_MS, SHARE_TOKEN_ENCRYPTION_KEY_ENV, SHARE_TOKEN_PREFIX, SHRINK_CLEANUP_PAGE_SIZE, SHRINK_IMPACT_CAP, SPACES_TABLE_NAME, STALE_ENDPOINT_DEPLOY_ERROR, STUDIO_DOC_LINK_MARKER, TABLE_COLORS, TABLE_KINDS, TABLE_NAME_RE2 as TABLE_NAME_RE, TENANT_SECRETS_KEK_ENV, TENANT_SECRET_CRYPTO_VERSION, TENANT_SLUG_RE, TRANSFER_ID_RE, VECTOR_FILE_ACCEPT, addRef, anyTenantSlugFromHost, apiProfileSlugToConvexModuleSegment, apiProfileSnapshotSchema, apiProfileToShareScopes, apiProfilesSchema, apiTableAccessSchema, apiTokenPrefix, applyDisplayIdResolution, applyImportRowIdResolution, assertApiProfileSlug, assertAssetSlotsResolve, assertPatchesHaveEditorAccess, assertProfileSlugUnchanged, assertProposalAccess, assertShareLinkTypeConsistency, assertShareOperation, assertTableKindsImmutable, assetBindingSchema, assetBuildsRenditions, assetFamilyForContentType, assetJobFailureOutcome, assetJobKey, assetJobLeaseExpired, assetJobReclaimOutcome, assetJobRetryDelayMs, assetMatchesProfileScope, assetSlotView, attachBffCleanupIdentity, authConfigIssuerFromProcessEnv, betterAuthTrustedOrigins, betweenToIndexBound, bffActiveOperationMetaSchema, bffErrorCodeSchema, bffErrorResponseSchema, bffHealthResponseSchema, bffPrepareOperationSchema, bffPrepareOperationTypeSchema, bffPrepareRequestSchema, bffPreparedBodyEnvelopeSchema, bffPreparedTenantSchema, bffPreviewRegisterRequestSchema, bffPreviewRemoveRequestSchema, bffSchemaDeployRequestSchema, bffSchemaDeployResponseSchema, bffTransferCommitRequestSchema, bffTransferCommitResponseSchema, bffTransferCreateResponseSchema, bffTransferScopeRequestSchema, bffTransferUploadResponseSchema, blocksForBlockNoteDisplay, briefFieldTypeLabel, buildCleanupTasks, buildCsvRows, buildCsvRowsForColumns, buildImportCommitRows, buildRecordTablePreload, buildRefRequestsFromFieldValues, buildRefRequestsFromTableRows, buildShareWizardInput, buildShrinkImpactPreview, buildSpaceExport, canCreateFormReferences, canProposeInsert, canProposeOperation, canSearchFormReferences, canonicalManifestTablesJson, canonicalRichFieldJson, childRenditionNodes, ciPreviewDeployName, clampQuerySchema, clampQueryValidator, classifyPhase, cleanupStateValidator, coerceCsvValue, collectAssetIds, collectAssetIdsFromRow, collectExportDisplayIdRefs, collectFilterRefIds, collectIdReferenceClosure, collectIdsFromField, collectIdsFromValues, collectImportDisplayIds, collectImportRowDisplayIds, collectMatchDisplayIdRefs, collectQueryRefIds, collectRecordLinkIds, collectRecordLinkIdsFromBlocks, collectReferencedIds, collectRichDocAssetIds, compareOrdered, computeManifestAccessHash, computeManifestHash, computeProposalFieldDiff, computeProposalRecordDiff, computeRefGraphFingerprint, computeShrinkPlan, convexCloudToSiteUrl, convexDeploymentSlugFromUrl, convexSiteToCloudUrl, convexSiteUrlFromProcessEnv, coolifyHostnameFromEnv, createCleanupState, createOperationId, createRandomId, createTransferId, csvHasIdColumn, cycleQueryOrder, dataTransferManifestSchema, dateInputValue, dateTimeInputValue, decryptShareToken, decryptTenantSecret, defaultAssetSettings, defaultMatchColumn, defaultProdDeployUrl, defaultRecordTableFieldNames, defaultValueForType, deployHealthResponseSchema, deployInternalSchemaDeployPayloadSchema, deployInternalSchemaDeployResponseSchema, deployInternalTransferCommitPayloadSchema, deployInternalTransferCreateResponseSchema, deployInternalTransferExportPayloadSchema, deployInternalTransferImportPreparePayloadSchema, deriveConvexDeploymentFromCloudUrl, deriveListMeta, derivePreviewDeployBuildUrl, derivePreviewStudioDeployUrl, describeFieldType, discretionaryRecordTableFieldNames, displayTemplatesSchema, docsSeedSyncEmailFromEnv, documentMatchesPredicate, documentMatchesPredicates, documentMatchesSyncChannel, documentMatchesSyncClamp, editorAccessEnabled, editorAccessToShareScopes, effectiveQueryFieldType, eligibleReferencedParents, emptyCleanupStats, emptyParagraphBlock, emptyToUndefined, encryptShareToken, encryptTenantSecret, extractError, extractPlainText, extractTrustedHostname, fallbackIdLabel, fallbackPreviewLabel, fieldByName, fieldDisplayName, fieldOpSupport, fieldSchema, fieldSupportsSort, fieldTypeHasOutgoingRefs, fieldTypeKindIconName, fieldTypeKindLabel, fieldTypeSchema, fieldValuesEqual, filterChangedPatchFields, findDuplicateIdentifier, findOverlappingProposalIds, findProposalIdsOverlappingTarget, findSearchIndex, findShareScopeConflicts, findTableAccess, findTemplateRefsToRemovedFields, findUnsatisfiablePredicates, focalObjectPosition, formatCanonicalFieldType, formatDateCell, formatDateTimeCell, formatDisplayPreviewText, formatEditorSummaryFieldType, formatErdCompactFieldType, formatEscapeShortcut, formatFilterEqDisplayValue, formatIdShort, formatMatchLabelFieldType, formatMediaBytes, formatModEnterShortcut, formatModShortcut, formatNumericDate, formatPrimitivePreview, formatRecordTableCellText, formatRecordTableQuerySummary, formatShrinkImpactLine, generateApiToken, generateDisplayValuesTs, generateSchemaTs, generateShareToken, generateTenantSecretsKekBase64, guestSearchableScopes, guestVisibleScopes, hasIdentifierCollision, hasSchemaDeployOperationLeaseExpired, hashApiToken, hashShareToken, hostFromForwardedHeader, hostnameFromHostHeader, idListMeta, importStagingId, indexSchema, inferDefaultGuestView, inferIdentifier, inferUniqueIdentifier, isApiProfileSlug, isApiTokenFormat, isAssetFamily, isAssetTable, isBlockNoteContent, isBlockNoteEnvelope, isCiPreviewBuild, isClassifiedKey, isCompleteBetween, isConvexJwt, isDisplayableVectorContentType, isEditableKind, isEmptyQuery, isExtractableFamily, isFileArrayFieldType, isFileFieldType, isFormSubmissionScope, isHttpUrl, isImageFieldPickable, isImageFieldType, isInlinePrimitive, isJwtExpired, isLoopbackDeployServiceUrl, isManifestDeployStatus, isManifestHash, isMarkdownField, isOperationId, isPlaceholderManagementSiteUrl, isPreviewStudioHost, isPrimaryShareScope, isPrimitiveKind, isProdDeployServiceUrl, isProtectedTransferTable, isRadixOverlayOpen, isRangeOp, isRasterRenditionSource, isRecoverableDeployError, isReferenceFieldType, isReferenceOnlyScope, isRefsRecomputeInFlight, isReservedTenantSlug, isSchemaDeployOperationBlocking, isSchemaDeployPhaseActive, isStaleEndpointDeployError, isStorageFieldType, isSystemField, isTextScalarKind, isTransferId, isTypingInEditor, isValidAssetId, isValidIdentifier, isValidMarkdownDocJson, isValidPreviewTenantSlug, isValidRichFieldJson, isValidTenantSlug, isVectorContentType, listAccessKindSchema, listMetaOrderSchema, listMetaSchema, listPageKindSchema, listTablesWithRefGraphChanges, looksLikeId, makePredicate, manifestHasFileOrImageFields, manifestHashSchema, manifestSchema, manifestTablesUseFileStorage, mapsFromAssetDisplayRows, matchColumnsForTable, matchEscape, matchKeyFromColumn, matchModEnter, matchModShiftShortcut, matchModShortcut, matchSave, matchToggleEditMode, matchUndoRedo, matchesBetween, matchesDeployCompletion, maxScanLimitValidator, mediaUploadCapsError, mediaUploadLimit, mergeDraftErdLayoutIntoCanonical, mergeErdLayouts, mergeProposedRecord, mergeQuery, mergeReferenceScopes, mergeStagingPendingEdits, modKeyLabel, newProvisionalRowId, nextAssetJobWakeAt, normalizeConvexUrl, normalizeDisplayFocal, normalizeDisplayTemplateBody, normalizeManifestDisplayTemplates, normalizeManifestForShrink, normalizeMarkdownField, normalizeMatchKeyFromCsvRow, normalizeMatchKeyFromValue, normalizePreviewDeployName, normalizeRichField, normalizeShareScopes, opAllowedForType, operationIdSchema, parseClampQuery, parseColumnusClipboard, parseCsvText, parseDateCsv, parseDateInput, parseDateTimeInput, parseDocLinkHref, parseErdLayoutOrEmpty, parseErdLayoutOrThrow, parseGitSha, parseImportPaste, parseQuery, parseQueryJson, parseRecordTableFieldsJson, parseRecordTableQueryJson, parseRichDocBlocks, parseShareTokenEncryptionKey, parseTenantSecretsKek, parseTrustedSiteUrls, patchIsStale, patchMergeImportRow, pendingRebuildsForSave, pickProposalFields, planGraphDelta, planMergedQuery, planProposalPatches, planQuery, planStudioBoot, postLoginRedirectPath, postprocessDocLinksInBlocks, predicateOpLabel, predicateOpSchema, predicateSchema, predicateValidator, predicatesEqual, prepareProposalPatchesForAccept, prepareShrinkSave, preprocessDocLinksInBlocks, preprocessDocLinksInMarkdown, previewImportMerge, previewSlugFromHost, primaryTrustedSiteUrl, profileSlugChangeError, profileTableAccesses, promoteErdLayoutOnSave, proposalDiffFieldNames, proposalOverlapsAny, proposeApiExportName, provisionalRowKey, pruneErdLayout, publicRenditionUrlKeys, queriesEqual, queryArgValidator, queryErrorCodeSchema, queryHasActiveConstraints, queryOrderSchema, queryPredicateFieldNames, querySchema, querySearchSchema, queryValidator, readApiAnyApiPath, readApiQueryExportName, readApiQueryModuleSegment, readConvexSiteUrlEnv, readTenantSecretsKekFromEnv, reconcileStagingMatchState, redactForLogs, redactString, refFieldsForTable, referencedTargetIds, refsMapToRequests, renderPixelCapError, renditionNodeFingerprint, renditionPlan, replaceProvisionalReferences, residualClampPredicates, resolveAssetGraph, resolveAssetSlotDisplay, resolveAuthConfigIssuerFromEnv, resolveBffManagementSiteUrl, resolveChannelMembershipOp, resolveConvexSiteUrl, resolveConvexSiteUrlFromEnv, resolveFamilySlotMapping, resolveGuestCapabilities, resolveGuestLinkCapabilities, resolveGuestScopeCapabilities, resolveImportMatches, resolvePreloadedLabel, resolvePreviewBranch, resolvePreviewPrId, resolveQueryFieldType, resolveRecordTableVisibleFields, resolveRuntimeDeployServiceUrl, resolveRuntimeManagementSiteUrl, resolveSyncDeployUrl, resolveSyncMembershipOp, resolveTrustedAuthOrigin, revalidateStagingRow, richContentPlainText, rollupProcessingStatus, rootRenditionNodes, runAcceptProposalBatch, safePostLoginPath, safeStringify, sanitizePreviewDeployName, savedTableByName, schemaDeployPhaseSchema, scopesToWizardInput, searchIndexSchema, secretsEqual, serializeColumnusClipboard, serializeCsvValue, serializeDateCsv, serializeDateTimeCsv, serializeErdLayout, setQueryOrder, setQueryOrderDirection, setQueryOrderField, shareScopeAccessMode, shareScopeToTableAccess, shareTokenPrefix, shareTypeDefaultScopes, shouldExpectConvexAuth, shrinkPlanIsEmpty, signInViaEmailOtp, singleHeaderHostValue, slugifyApiProfileName, snapshotBaseFields, sortDocuments, sortableQueryFields, stagingRowToImportRow, stagingRowsToGridRows, stringifyQuery, stringifyRecordTableFields, stringifyRecordTableQuery, stringifyRichDoc, stripAnsi, stripSystemFields, suggestIndexFields, summarizePreparedEnvelope, syncChannelForTable, syncClampPredicates, syncEnabledTables, tableAccessToShareScope, tableColorSchema, tableDisplayName, tableKind, tableKindSchema, tableSchema, tablesWithOutgoingRefs, takeRangeBound, tenantPublicHost, tenantSlugFromHost, toDocumentId, transferIdSchema, transferOperationSchema, transferSessionRecordSchema, transferSessionStateSchema, truncateDisplay, unionTableNames, uniqueIdentifier, unparseCsv, unsavedAssetSettings, useDebouncedCommit, useDebouncedValue, useModifierHeld, validateClipboardColumns, validateDataTransferManifest, validateDisplayTemplates, validateFieldValue, validateImportRow, validatePatch, validatePreviewSourceCommit, validateQueryForTable, validateRenditionNodes, wrapPlainTextAsRichDoc };
|
|
11623
|
+
export { API_DELIVERY_TABLE_NAME, API_OUTBOX_TABLE_NAME, API_OUTPUTS_TABLE_NAME, API_OUTPUT_SECRETS_TABLE_NAME, API_PROFILES_TABLE_NAME, API_PROFILE_SLUG_RE, API_SYNC_ROUTES_TABLE_NAME, API_TOKENS_TABLE_NAME, API_TOKEN_PREFIX, ASSETS_TABLE_NAME, ASSET_FAMILIES, ASSET_JOB_KINDS, ASSET_JOB_LEASE_MS, ASSET_JOB_MAX_ATTEMPTS, ASSET_JOB_MAX_RECLAIMS, ASSET_JOB_STATUSES, ASSET_JOB_TIMEOUT_MS, ASSET_PROCESSING_STATUSES, ASSET_PROFILES_TABLE_NAME, ASSET_REFS_TABLE_NAME, ASSET_SETTINGS_TABLE_NAME, ASSET_VERSIONS_TABLE_NAME, AUDIT_TABLE_NAME, BFF_JSON_BODY_LIMIT_BYTES, MAX_TRANSFER_BYTES as BFF_TRANSFER_MAX_BYTES, COLUMNUS_BFF_API_PREFIX, COLUMNUS_BFF_MANAGEMENT_PREFIX, COLUMNUS_BFF_MANAGEMENT_SECRET_HEADER, COLUMNUS_BFF_PROTOCOL_VERSION, COLUMNUS_BUNDLE_VERSION, COLUMNUS_CLIPBOARD_MARKER, COLUMNUS_CLIPBOARD_VERSION, COLUMNUS_DATA_TRANSFER_VERSION, COLUMNUS_DEPLOY_INTERNAL_PREFIX, COLUMNUS_DEPLOY_OPS_PREFIX, COLUMNUS_DOC_LINK_MARKER, COLUMNUS_PREVIEW_REGISTRATION_SECRET_HEADER, DEFAULT_ASSET_SLOTS, DEFAULT_IMAGE_GRAPH, DEFAULT_MAX_SCAN_LIMIT, DEFAULT_MEDIA_REJECT_BYTES, DEFAULT_MEDIA_UPLOAD_CAPS, DEFAULT_MEDIA_WARN_BYTES, DEFAULT_PROPOSE_RATE_LIMITS, DISPLAYABLE_VECTOR_CONTENT_TYPES, DISPLAY_VALUES_TABLE_NAME, EMPTY_BLOCK_ID, EMPTY_MANIFEST, EMPTY_MARKDOWN_DOC, EMPTY_RICH_DOC, FIELD_TYPE_KIND_ICONS, FIELD_TYPE_KIND_LABELS, FIELD_TYPE_SELECT_KINDS, HOST_SCHEMA_PROFILE, INCOMING_REFS_TABLE_NAME, MANIFEST_DEPLOY_STATUSES, MANIFEST_HASH_RE, MANIFEST_TABLE_NAME, MATCH_ERROR_KEY, MAX_RENDER_MEGAPIXELS, MAX_RENDER_PIXELS, MAX_TRANSFER_BYTES, MEDIA_LIBRARY_JOURNAL_TTL_MS, OPERATION_ID_RE, OVERLAP_MESSAGE, PREDICATE_OPS, PREDICATE_VARIANTS, PREVIEW_TENANT_SLUG_RE, PROPOSE_RATE_LIMITED_CODE, RECORD_TABLE_DEFAULT_FIELD_COUNT, REDACTED, REFS_RECOMPUTE_STALE_MS, RENDITION_TIMEOUT_MS, RESERVED_TABLE_NAMES, RESERVED_TENANT_SLUGS, RICH_DOC_FORMAT, RICH_DOC_VERSION, SCHEMA_DEPLOY_OPERATION_LEASE_MS, SHARE_TOKEN_ENCRYPTION_KEY_ENV, SHARE_TOKEN_PREFIX, SHRINK_CLEANUP_PAGE_SIZE, SHRINK_IMPACT_CAP, SPACES_TABLE_NAME, STALE_ENDPOINT_DEPLOY_ERROR, STUDIO_DOC_LINK_MARKER, TABLE_COLORS, TABLE_KINDS, TABLE_NAME_RE2 as TABLE_NAME_RE, TENANT_SECRETS_KEK_ENV, TENANT_SECRET_CRYPTO_VERSION, TENANT_SLUG_RE, TRANSFER_ID_RE, VECTOR_FILE_ACCEPT, addRef, anyTenantSlugFromHost, apiProfileSlugToConvexModuleSegment, apiProfileSnapshotSchema, apiProfileToShareScopes, apiProfilesSchema, apiTableAccessSchema, apiTokenPrefix, applyDisplayIdResolution, applyImportRowIdResolution, assertApiProfileSlug, assertAssetSlotsResolve, assertPatchesHaveEditorAccess, assertProfileSlugUnchanged, assertProposalAccess, assertShareLinkTypeConsistency, assertShareOperation, assertTableKindsImmutable, assetBindingSchema, assetBuildsRenditions, assetFamilyForContentType, assetJobFailureOutcome, assetJobKey, assetJobLeaseExpired, assetJobReclaimOutcome, assetJobRetryDelayMs, assetMatchesProfileScope, assetSlotView, attachBffCleanupIdentity, authConfigIssuerFromProcessEnv, betterAuthTrustedOrigins, betweenToIndexBound, bffActiveOperationMetaSchema, bffErrorCodeSchema, bffErrorResponseSchema, bffHealthResponseSchema, bffPrepareOperationSchema, bffPrepareOperationTypeSchema, bffPrepareRequestSchema, bffPreparedBodyEnvelopeSchema, bffPreparedTenantSchema, bffPreviewRegisterRequestSchema, bffPreviewRemoveRequestSchema, bffSchemaDeployRequestSchema, bffSchemaDeployResponseSchema, bffTransferCommitRequestSchema, bffTransferCommitResponseSchema, bffTransferCreateResponseSchema, bffTransferScopeRequestSchema, bffTransferUploadResponseSchema, blocksForBlockNoteDisplay, briefFieldTypeLabel, buildCleanupTasks, buildCsvRows, buildCsvRowsForColumns, buildImportCommitRows, buildRecordTablePreload, buildRefRequestsFromFieldValues, buildRefRequestsFromTableRows, buildShareWizardInput, buildShrinkImpactPreview, buildSpaceExport, canCreateFormReferences, canProposeInsert, canProposeOperation, canSearchFormReferences, canonicalManifestTablesJson, canonicalRichFieldJson, checkSlidingWindowRateLimit, childRenditionNodes, ciPreviewDeployName, clampQuerySchema, clampQueryValidator, classifyPhase, cleanupStateValidator, coerceCsvValue, collectAssetIds, collectAssetIdsFromRow, collectExportDisplayIdRefs, collectFilterRefIds, collectIdReferenceClosure, collectIdsFromField, collectIdsFromValues, collectImportDisplayIds, collectImportRowDisplayIds, collectMatchDisplayIdRefs, collectQueryRefIds, collectRecordLinkIds, collectRecordLinkIdsFromBlocks, collectReferencedIds, collectRichDocAssetIds, compareOrdered, computeManifestAccessHash, computeManifestHash, computeProposalFieldDiff, computeProposalRecordDiff, computeRefGraphFingerprint, computeShrinkPlan, convexCloudToSiteUrl, convexDeploymentSlugFromUrl, convexSiteToCloudUrl, convexSiteUrlFromProcessEnv, coolifyHostnameFromEnv, createCleanupState, createOperationId, createRandomId, createTransferId, csvHasIdColumn, cycleQueryOrder, dataTransferManifestSchema, dateInputValue, dateTimeInputValue, decryptShareToken, decryptTenantSecret, defaultAssetSettings, defaultMatchColumn, defaultProdDeployUrl, defaultRecordTableFieldNames, defaultValueForType, deployHealthResponseSchema, deployInternalSchemaDeployPayloadSchema, deployInternalSchemaDeployResponseSchema, deployInternalTransferCommitPayloadSchema, deployInternalTransferCreateResponseSchema, deployInternalTransferExportPayloadSchema, deployInternalTransferImportPreparePayloadSchema, deriveConvexDeploymentFromCloudUrl, deriveListMeta, derivePreviewDeployBuildUrl, derivePreviewStudioDeployUrl, describeFieldType, discretionaryRecordTableFieldNames, displayTemplatesSchema, docsSeedSyncEmailFromEnv, documentMatchesPredicate, documentMatchesPredicates, documentMatchesSyncChannel, documentMatchesSyncClamp, editorAccessEnabled, editorAccessToShareScopes, effectiveQueryFieldType, eligibleReferencedParents, emptyCleanupStats, emptyParagraphBlock, emptyToUndefined, encryptShareToken, encryptTenantSecret, extractError, extractPlainText, extractTrustedHostname, fallbackIdLabel, fallbackPreviewLabel, fieldByName, fieldDisplayName, fieldOpSupport, fieldSchema, fieldSupportsSort, fieldTypeHasOutgoingRefs, fieldTypeKindIconName, fieldTypeKindLabel, fieldTypeSchema, fieldValuesEqual, filterChangedPatchFields, findDuplicateIdentifier, findOverlappingProposalIds, findProposalIdsOverlappingTarget, findSearchIndex, findShareScopeConflicts, findTableAccess, findTemplateRefsToRemovedFields, findUnsatisfiablePredicates, focalObjectPosition, formatCanonicalFieldType, formatDateCell, formatDateTimeCell, formatDisplayPreviewText, formatEditorSummaryFieldType, formatErdCompactFieldType, formatEscapeShortcut, formatFilterEqDisplayValue, formatIdShort, formatMatchLabelFieldType, formatMediaBytes, formatModEnterShortcut, formatModShortcut, formatNumericDate, formatPrimitivePreview, formatRecordTableCellText, formatRecordTableQuerySummary, formatShrinkImpactLine, generateApiToken, generateDisplayValuesTs, generateSchemaTs, generateShareToken, generateTenantSecretsKekBase64, guestSearchableScopes, guestVisibleScopes, hasIdentifierCollision, hasSchemaDeployOperationLeaseExpired, hashApiToken, hashShareToken, hostFromForwardedHeader, hostnameFromHostHeader, idListMeta, importStagingId, indexSchema, inferDefaultGuestView, inferIdentifier, inferUniqueIdentifier, isApiProfileSlug, isApiTokenFormat, isAssetFamily, isAssetTable, isBlockNoteContent, isBlockNoteEnvelope, isCiPreviewBuild, isClassifiedKey, isCompleteBetween, isConvexJwt, isDisplayableVectorContentType, isEditableKind, isEmptyQuery, isExtractableFamily, isFileArrayFieldType, isFileFieldType, isFormSubmissionScope, isHttpUrl, isImageFieldPickable, isImageFieldType, isInlinePrimitive, isJwtExpired, isLoopbackDeployServiceUrl, isManifestDeployStatus, isManifestHash, isMarkdownField, isOperationId, isPlaceholderManagementSiteUrl, isPreviewStudioHost, isPrimaryShareScope, isPrimitiveKind, isProdDeployServiceUrl, isProtectedTransferTable, isRadixOverlayOpen, isRangeOp, isRasterRenditionSource, isRecoverableDeployError, isReferenceFieldType, isReferenceOnlyScope, isRefsRecomputeInFlight, isReservedTenantSlug, isSchemaDeployOperationBlocking, isSchemaDeployPhaseActive, isStaleEndpointDeployError, isStorageFieldType, isSystemField, isTextScalarKind, isTransferId, isTypingInEditor, isValidAssetId, isValidIdentifier, isValidMarkdownDocJson, isValidPreviewTenantSlug, isValidRichFieldJson, isValidTenantSlug, isVectorContentType, listAccessKindSchema, listMetaOrderSchema, listMetaSchema, listPageKindSchema, listTablesWithRefGraphChanges, looksLikeId, makePredicate, manifestHashSchema, manifestSchema, manifestTableNamesFromAuditSide, manifestTablesUseFileStorage, mapsFromAssetDisplayRows, matchColumnsForTable, matchEscape, matchKeyFromColumn, matchModEnter, matchModShiftShortcut, matchModShortcut, matchSave, matchToggleEditMode, matchUndoRedo, matchesBetween, matchesDeployCompletion, maxScanLimitValidator, mediaUploadCapsError, mediaUploadLimit, mergeDraftErdLayoutIntoCanonical, mergeErdLayouts, mergeProposedRecord, mergeQuery, mergeReferenceScopes, mergeStagingPendingEdits, modKeyLabel, newProvisionalRowId, nextAssetJobWakeAt, normalizeConvexUrl, normalizeDisplayFocal, normalizeDisplayTemplateBody, normalizeManifestDisplayTemplates, normalizeManifestForShrink, normalizeMarkdownField, normalizeMatchKeyFromCsvRow, normalizeMatchKeyFromValue, normalizePreviewDeployName, normalizeRichField, normalizeShareScopes, opAllowedForType, operationIdSchema, parseClampQuery, parseColumnusClipboard, parseCsvText, parseDateCsv, parseDateInput, parseDateTimeInput, parseDocLinkHref, parseErdLayoutOrEmpty, parseErdLayoutOrThrow, parseGitSha, parseImportPaste, parseProposeRateLimitInt, parseQuery, parseQueryJson, parseRecordTableFieldsJson, parseRecordTableQueryJson, parseRichDocBlocks, parseShareTokenEncryptionKey, parseTenantSecretsKek, parseTrustedSiteUrls, patchIsStale, patchMergeImportRow, pendingRebuildsForSave, pickProposalFields, planGraphDelta, planMergedQuery, planProposalPatches, planQuery, planStudioBoot, postLoginRedirectPath, postprocessDocLinksInBlocks, predicateOpLabel, predicateOpSchema, predicateSchema, predicateValidator, predicatesEqual, prepareProposalPatchesForAccept, prepareShrinkSave, preprocessDocLinksInBlocks, preprocessDocLinksInMarkdown, previewImportMerge, previewSlugFromHost, primaryTrustedSiteUrl, profileSlugChangeError, profileTableAccesses, promoteErdLayoutOnSave, proposalDiffFieldNames, proposalOverlapsAny, proposeApiExportName, proposeRateLimitBucket, proposeRateLimitedMessage, provisionalRowKey, pruneErdLayout, publicRenditionUrlKeys, queriesEqual, queryArgValidator, queryErrorCodeSchema, queryHasActiveConstraints, queryOrderSchema, queryPredicateFieldNames, querySchema, querySearchSchema, queryValidator, readApiAnyApiPath, readApiQueryExportName, readApiQueryModuleSegment, readConvexSiteUrlEnv, readTenantSecretsKekFromEnv, reconcileStagingMatchState, redactForLogs, redactRowAuditPayload, redactRowAuditSide, redactSchemaAuditPayload, redactString, refFieldsForTable, referencedTargetIds, refsMapToRequests, renderPixelCapError, renditionNodeFingerprint, renditionPlan, replaceProvisionalReferences, residualClampPredicates, resolveAssetGraph, resolveAssetSlotDisplay, resolveAuthConfigIssuerFromEnv, resolveBffManagementSiteUrl, resolveChannelMembershipOp, resolveConvexSiteUrl, resolveConvexSiteUrlFromEnv, resolveFamilySlotMapping, resolveGuestCapabilities, resolveGuestLinkCapabilities, resolveGuestScopeCapabilities, resolveImportMatches, resolvePreloadedLabel, resolvePreviewBranch, resolvePreviewPrId, resolveQueryFieldType, resolveRecordTableVisibleFields, resolveRuntimeDeployServiceUrl, resolveRuntimeManagementSiteUrl, resolveSyncDeployUrl, resolveSyncMembershipOp, resolveTrustedAuthOrigin, revalidateStagingRow, richContentPlainText, rollupProcessingStatus, rootRenditionNodes, runAcceptProposalBatch, safePostLoginPath, safeStringify, sanitizePreviewDeployName, savedTableByName, schemaDeployPhaseSchema, scopesToWizardInput, searchIndexSchema, secretsEqual, serializeColumnusClipboard, serializeCsvValue, serializeDateCsv, serializeDateTimeCsv, serializeErdLayout, setQueryOrder, setQueryOrderDirection, setQueryOrderField, shareScopeAccessMode, shareScopeToTableAccess, shareTokenPrefix, shareTypeDefaultScopes, shouldExpectConvexAuth, shrinkPlanIsEmpty, signInViaEmailOtp, singleHeaderHostValue, slugifyApiProfileName, snapshotBaseFields, sortDocuments, sortableQueryFields, stagingRowToImportRow, stagingRowsToGridRows, stringifyQuery, stringifyRecordTableFields, stringifyRecordTableQuery, stringifyRichDoc, stripAnsi, stripSystemFields, suggestIndexFields, summarizeManifestForAudit, summarizePreparedEnvelope, syncChannelForTable, syncClampPredicates, syncEnabledTables, tableAccessToShareScope, tableColorSchema, tableDisplayName, tableKind, tableKindSchema, tableSchema, tablesWithOutgoingRefs, takeRangeBound, tenantPublicHost, tenantSlugFromHost, toDocumentId, transferIdSchema, transferOperationSchema, transferSessionRecordSchema, transferSessionStateSchema, truncateDisplay, unionTableNames, uniqueIdentifier, unparseCsv, unsavedAssetSettings, useDebouncedCommit, useDebouncedValue, useModifierHeld, validateClipboardColumns, validateDataTransferManifest, validateDisplayTemplates, validateFieldValue, validateImportRow, validatePatch, validatePreviewSourceCommit, validateQueryForTable, validateRenditionNodes, wrapPlainTextAsRichDoc };
|
|
11548
11624
|
//# sourceMappingURL=index.js.map
|
|
11549
11625
|
//# sourceMappingURL=index.js.map
|