velocious 1.0.474 → 1.0.475

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 (85) hide show
  1. package/README.md +7 -2
  2. package/build/configuration-types.js +38 -1
  3. package/build/configuration.js +41 -1
  4. package/build/database/drivers/base.js +51 -3
  5. package/build/database/drivers/mysql/index.js +74 -7
  6. package/build/database/drivers/sqlite/connection-sql-js.js +16 -5
  7. package/build/database/drivers/sqlite/index.web.js +29 -15
  8. package/build/database/drivers/sqlite/web-persistence.js +521 -0
  9. package/build/environment-handlers/node/cli/commands/generate/frontend-models.js +63 -0
  10. package/build/frontend-model-controller.js +127 -4
  11. package/build/frontend-model-resource/base-resource.js +5 -1
  12. package/build/frontend-models/base.js +146 -2
  13. package/build/frontend-models/query.js +3 -3
  14. package/build/frontend-models/resource-definition.js +304 -2
  15. package/build/routes/hooks/frontend-model-command-route-hook.js +8 -0
  16. package/build/src/configuration-types.d.ts +113 -2
  17. package/build/src/configuration-types.d.ts.map +1 -1
  18. package/build/src/configuration-types.js +35 -2
  19. package/build/src/configuration.d.ts +18 -1
  20. package/build/src/configuration.d.ts.map +1 -1
  21. package/build/src/configuration.js +37 -2
  22. package/build/src/database/drivers/base.d.ts +30 -0
  23. package/build/src/database/drivers/base.d.ts.map +1 -1
  24. package/build/src/database/drivers/base.js +47 -4
  25. package/build/src/database/drivers/mysql/index.d.ts +32 -3
  26. package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
  27. package/build/src/database/drivers/mysql/index.js +65 -7
  28. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +8 -1
  29. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
  30. package/build/src/database/drivers/sqlite/connection-sql-js.js +15 -6
  31. package/build/src/database/drivers/sqlite/index.web.d.ts +5 -5
  32. package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
  33. package/build/src/database/drivers/sqlite/index.web.js +27 -13
  34. package/build/src/database/drivers/sqlite/web-persistence.d.ts +77 -0
  35. package/build/src/database/drivers/sqlite/web-persistence.d.ts.map +1 -0
  36. package/build/src/database/drivers/sqlite/web-persistence.js +464 -0
  37. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +30 -0
  38. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
  39. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +53 -1
  40. package/build/src/frontend-model-controller.d.ts +34 -0
  41. package/build/src/frontend-model-controller.d.ts.map +1 -1
  42. package/build/src/frontend-model-controller.js +113 -5
  43. package/build/src/frontend-model-resource/base-resource.d.ts +4 -2
  44. package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
  45. package/build/src/frontend-model-resource/base-resource.js +7 -2
  46. package/build/src/frontend-models/base.d.ts +29 -0
  47. package/build/src/frontend-models/base.d.ts.map +1 -1
  48. package/build/src/frontend-models/base.js +131 -3
  49. package/build/src/frontend-models/query.js +4 -4
  50. package/build/src/frontend-models/resource-definition.d.ts +6 -0
  51. package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
  52. package/build/src/frontend-models/resource-definition.js +272 -3
  53. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
  54. package/build/src/routes/hooks/frontend-model-command-route-hook.js +8 -1
  55. package/build/src/sync/device-identity.d.ts +240 -0
  56. package/build/src/sync/device-identity.d.ts.map +1 -0
  57. package/build/src/sync/device-identity.js +454 -0
  58. package/build/src/sync/local-mutation-log.d.ts +212 -0
  59. package/build/src/sync/local-mutation-log.d.ts.map +1 -0
  60. package/build/src/sync/local-mutation-log.js +404 -0
  61. package/build/src/sync/offline-grant.d.ts +157 -0
  62. package/build/src/sync/offline-grant.d.ts.map +1 -0
  63. package/build/src/sync/offline-grant.js +292 -0
  64. package/build/sync/device-identity.js +503 -0
  65. package/build/sync/local-mutation-log.js +448 -0
  66. package/build/sync/offline-grant.js +327 -0
  67. package/build/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +3 -3
  69. package/src/configuration-types.js +38 -1
  70. package/src/configuration.js +41 -1
  71. package/src/database/drivers/base.js +51 -3
  72. package/src/database/drivers/mysql/index.js +74 -7
  73. package/src/database/drivers/sqlite/connection-sql-js.js +16 -5
  74. package/src/database/drivers/sqlite/index.web.js +29 -15
  75. package/src/database/drivers/sqlite/web-persistence.js +521 -0
  76. package/src/environment-handlers/node/cli/commands/generate/frontend-models.js +63 -0
  77. package/src/frontend-model-controller.js +127 -4
  78. package/src/frontend-model-resource/base-resource.js +5 -1
  79. package/src/frontend-models/base.js +146 -2
  80. package/src/frontend-models/query.js +3 -3
  81. package/src/frontend-models/resource-definition.js +304 -2
  82. package/src/routes/hooks/frontend-model-command-route-hook.js +8 -0
  83. package/src/sync/device-identity.js +503 -0
  84. package/src/sync/local-mutation-log.js +448 -0
  85. package/src/sync/offline-grant.js +327 -0
@@ -6,6 +6,28 @@ import restArgsError from "../utils/rest-args-error.js"
6
6
  import {validateFrontendModelResourceCommandName} from "./resource-config-validation.js"
7
7
 
8
8
  const BASE_FRONTEND_MODEL_ABILITY_ACTIONS = ["create", "destroy", "read", "update"]
9
+ const SHA256_INITIAL_HASH = [
10
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
11
+ 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
12
+ ]
13
+ const SHA256_K = [
14
+ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
15
+ 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
16
+ 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
17
+ 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
18
+ 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
19
+ 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
20
+ 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
21
+ 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
22
+ 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
23
+ 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
24
+ 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
25
+ 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
26
+ 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
27
+ 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
28
+ 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
29
+ 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
30
+ ]
9
31
  const RESOURCE_STATIC_CONFIG_KEYS = new Set([
10
32
  "abilities",
11
33
  "attachments",
@@ -21,6 +43,7 @@ const RESOURCE_STATIC_CONFIG_KEYS = new Set([
21
43
  "relationships",
22
44
  "server",
23
45
  "SharedResource",
46
+ "sync",
24
47
  "translatedAttributes"
25
48
  ])
26
49
 
@@ -157,7 +180,8 @@ function normalizeFrontendModelResourceConfiguration(resourceConfiguration) {
157
180
  "modelName",
158
181
  "primaryKey",
159
182
  "relationships",
160
- "server"
183
+ "server",
184
+ "sync"
161
185
  ]) {
162
186
  delete restArgs[key]
163
187
  }
@@ -165,6 +189,7 @@ function normalizeFrontendModelResourceConfiguration(resourceConfiguration) {
165
189
  restArgsError(restArgs)
166
190
 
167
191
  const normalizedCommands = normalizeFrontendModelResourceCommands(resourceConfiguration)
192
+ const sync = normalizeFrontendModelResourceSync(resourceConfiguration)
168
193
 
169
194
  return {
170
195
  ...resourceConfiguration,
@@ -176,7 +201,8 @@ function normalizeFrontendModelResourceConfiguration(resourceConfiguration) {
176
201
  // name, derived from `{name, args?, returnType?}` command entries. The
177
202
  // generator uses it to type each custom command method.
178
203
  commandMetadata: normalizedCommands.commandMetadata,
179
- memberCommands: normalizedCommands.memberCommands
204
+ memberCommands: normalizedCommands.memberCommands,
205
+ sync
180
206
  }
181
207
  }
182
208
 
@@ -225,6 +251,282 @@ function defaultCrudAbilities() {
225
251
  }
226
252
  }
227
253
 
254
+ /**
255
+ * Builds a frontend-safe sync manifest for all sync-enabled frontend-model resources.
256
+ * @param {import("../configuration-types.js").BackendProjectConfiguration[]} backendProjects - Backend projects to scan.
257
+ * @returns {Record<string, import("../configuration-types.js").NormalizedFrontendModelResourceSyncConfiguration>} - Sync metadata keyed by model name.
258
+ */
259
+ export function frontendModelSyncManifestForBackendProjects(backendProjects) {
260
+ /** @type {Record<string, import("../configuration-types.js").NormalizedFrontendModelResourceSyncConfiguration>} */
261
+ const manifest = {}
262
+
263
+ for (const backendProject of backendProjects) {
264
+ const resources = frontendModelResourcesForBackendProject(backendProject)
265
+
266
+ for (const configuredModelName of Object.keys(resources).sort()) {
267
+ const resourceDefinition = resources[configuredModelName]
268
+ const resourceConfiguration = frontendModelResourceConfigurationFromDefinition(resourceDefinition)
269
+
270
+ if (!resourceConfiguration) continue
271
+ if (!resourceConfiguration.sync?.enabled) continue
272
+
273
+ const modelName = resourceConfiguration.modelName || configuredModelName
274
+
275
+ manifest[modelName] = resourceConfiguration.sync
276
+ }
277
+ }
278
+
279
+ return manifest
280
+ }
281
+
282
+ /**
283
+ * Normalizes sync policy metadata and computes a deterministic hash from safe policy inputs.
284
+ * @param {import("../configuration-types.js").FrontendModelResourceConfiguration} resourceConfiguration - Raw resource configuration.
285
+ * @returns {import("../configuration-types.js").NormalizedFrontendModelResourceSyncConfiguration | undefined} - Frontend-safe sync metadata.
286
+ */
287
+ function normalizeFrontendModelResourceSync(resourceConfiguration) {
288
+ const sync = resourceConfiguration.sync
289
+
290
+ if (sync === undefined || sync === null) return undefined
291
+ if (sync === false) return {enabled: false, operations: [], policyHash: syncPolicyHash({enabled: false}), policyVersion: null}
292
+ if (sync === true) {
293
+ return normalizeFrontendModelResourceSync({
294
+ ...resourceConfiguration,
295
+ sync: {operations: ["index", "find"]}
296
+ })
297
+ }
298
+ if (!sync || typeof sync !== "object" || Array.isArray(sync)) {
299
+ throw new Error("Resource sync configuration must be true, false, or an object.")
300
+ }
301
+
302
+ const {enabled = true, metadata, operations, policy, policyVersion, ...rest} = /** @type {import("../configuration-types.js").FrontendModelResourceSyncConfiguration} */ (sync)
303
+
304
+ if (Object.keys(rest).length > 0) {
305
+ throw new Error(`Unexpected sync keys: ${Object.keys(rest).join(", ")}. Allowed: enabled, metadata, operations, policy, policyVersion`)
306
+ }
307
+ if (enabled !== true && enabled !== false) throw new Error("Resource sync enabled must be true or false when provided.")
308
+
309
+ const normalizedOperations = normalizeSyncOperations(operations)
310
+ const normalizedMetadata = metadata === undefined ? undefined : deterministicSyncJson({label: "metadata", value: metadata})
311
+ const normalizedPolicy = policy === undefined ? undefined : deterministicSyncJson({label: "policy", value: policy})
312
+ const normalizedPolicyVersion = policyVersion === undefined || policyVersion === null ? null : String(policyVersion)
313
+ const hashInput = {
314
+ enabled,
315
+ metadata: normalizedMetadata,
316
+ modelName: resourceConfiguration.modelName || null,
317
+ operations: normalizedOperations,
318
+ policy: normalizedPolicy,
319
+ policyVersion: normalizedPolicyVersion
320
+ }
321
+ /** @type {import("../configuration-types.js").NormalizedFrontendModelResourceSyncConfiguration} */
322
+ const normalized = {
323
+ enabled,
324
+ operations: normalizedOperations,
325
+ policyHash: syncPolicyHash(hashInput),
326
+ policyVersion: normalizedPolicyVersion
327
+ }
328
+
329
+ if (normalizedMetadata !== undefined) normalized.metadata = /** @type {Record<string, import("../configuration-types.js").FrontendModelSyncJsonValue>} */ (normalizedMetadata)
330
+
331
+ return normalized
332
+ }
333
+
334
+ /**
335
+ * Normalizes sync operations into a stable, duplicate-free list.
336
+ * @param {unknown} operations - Raw operations value.
337
+ * @returns {string[]} - Normalized operations.
338
+ */
339
+ function normalizeSyncOperations(operations) {
340
+ if (operations === undefined) return []
341
+ if (!Array.isArray(operations)) throw new Error("Resource sync operations must be an array of operation names.")
342
+
343
+ const normalized = operations.map((operation) => {
344
+ if (typeof operation !== "string" || operation.length < 1) throw new Error("Resource sync operations entries must be non-empty strings.")
345
+
346
+ return operation
347
+ })
348
+
349
+ return [...new Set(normalized)].sort()
350
+ }
351
+
352
+ /**
353
+ * Builds a deterministic policy hash.
354
+ * @param {unknown} value - Hash input.
355
+ * @returns {string} - sha256-prefixed hash.
356
+ */
357
+ function syncPolicyHash(value) {
358
+ return `sha256-${sha256Hex(stableJsonStringify(value))}`
359
+ }
360
+
361
+ /**
362
+ * Computes SHA-256 without importing Node-only crypto modules, keeping this
363
+ * resource-definition module safe for Expo/browser bundles.
364
+ * @param {string} message - UTF-8 message.
365
+ * @returns {string} - Hex digest.
366
+ */
367
+ function sha256Hex(message) {
368
+ const bytes = utf8Bytes(message)
369
+ const padded = [...bytes]
370
+ const bitLength = bytes.length * 8
371
+ const hash = [...SHA256_INITIAL_HASH]
372
+ /** @type {number[]} */
373
+ const words = new Array(64)
374
+
375
+ padded.push(0x80)
376
+ while (padded.length % 64 !== 56) padded.push(0)
377
+
378
+ const highLength = Math.floor(bitLength / 0x100000000)
379
+ const lowLength = bitLength >>> 0
380
+
381
+ for (const value of [highLength, lowLength]) {
382
+ padded.push((value >>> 24) & 0xff, (value >>> 16) & 0xff, (value >>> 8) & 0xff, value & 0xff)
383
+ }
384
+
385
+ for (let offset = 0; offset < padded.length; offset += 64) {
386
+ for (let i = 0; i < 16; i++) {
387
+ const index = offset + (i * 4)
388
+
389
+ words[i] = (((padded[index] || 0) << 24) | ((padded[index + 1] || 0) << 16) | ((padded[index + 2] || 0) << 8) | (padded[index + 3] || 0)) >>> 0
390
+ }
391
+
392
+ for (let i = 16; i < 64; i++) {
393
+ const s0 = rotateRight(words[i - 15], 7) ^ rotateRight(words[i - 15], 18) ^ (words[i - 15] >>> 3)
394
+ const s1 = rotateRight(words[i - 2], 17) ^ rotateRight(words[i - 2], 19) ^ (words[i - 2] >>> 10)
395
+
396
+ words[i] = add32(words[i - 16], s0, words[i - 7], s1)
397
+ }
398
+
399
+ let [a, b, c, d, e, f, g, h] = hash
400
+
401
+ for (let i = 0; i < 64; i++) {
402
+ const s1 = rotateRight(e, 6) ^ rotateRight(e, 11) ^ rotateRight(e, 25)
403
+ const ch = (e & f) ^ ((~e) & g)
404
+ const temp1 = add32(h, s1, ch, SHA256_K[i], words[i])
405
+ const s0 = rotateRight(a, 2) ^ rotateRight(a, 13) ^ rotateRight(a, 22)
406
+ const maj = (a & b) ^ (a & c) ^ (b & c)
407
+ const temp2 = add32(s0, maj)
408
+
409
+ h = g
410
+ g = f
411
+ f = e
412
+ e = add32(d, temp1)
413
+ d = c
414
+ c = b
415
+ b = a
416
+ a = add32(temp1, temp2)
417
+ }
418
+
419
+ hash[0] = add32(hash[0], a)
420
+ hash[1] = add32(hash[1], b)
421
+ hash[2] = add32(hash[2], c)
422
+ hash[3] = add32(hash[3], d)
423
+ hash[4] = add32(hash[4], e)
424
+ hash[5] = add32(hash[5], f)
425
+ hash[6] = add32(hash[6], g)
426
+ hash[7] = add32(hash[7], h)
427
+ }
428
+
429
+ return hash.map((value) => value.toString(16).padStart(8, "0")).join("")
430
+ }
431
+
432
+ /**
433
+ * Converts a string to UTF-8 bytes.
434
+ * @param {string} value - String value.
435
+ * @returns {number[]} - UTF-8 bytes.
436
+ */
437
+ function utf8Bytes(value) {
438
+ /** @type {number[]} */
439
+ const bytes = []
440
+
441
+ for (const character of value) {
442
+ const codePoint = /** @type {number} */ (character.codePointAt(0))
443
+
444
+ if (codePoint <= 0x7f) {
445
+ bytes.push(codePoint)
446
+ } else if (codePoint <= 0x7ff) {
447
+ bytes.push(0xc0 | (codePoint >>> 6), 0x80 | (codePoint & 0x3f))
448
+ } else if (codePoint <= 0xffff) {
449
+ bytes.push(0xe0 | (codePoint >>> 12), 0x80 | ((codePoint >>> 6) & 0x3f), 0x80 | (codePoint & 0x3f))
450
+ } else {
451
+ bytes.push(0xf0 | (codePoint >>> 18), 0x80 | ((codePoint >>> 12) & 0x3f), 0x80 | ((codePoint >>> 6) & 0x3f), 0x80 | (codePoint & 0x3f))
452
+ }
453
+ }
454
+
455
+ return bytes
456
+ }
457
+
458
+ /**
459
+ * Adds unsigned 32-bit integers.
460
+ * @param {...number} values - Values to add.
461
+ * @returns {number} - Unsigned 32-bit result.
462
+ */
463
+ function add32(...values) {
464
+ return values.reduce((sum, value) => (sum + value) >>> 0, 0)
465
+ }
466
+
467
+ /**
468
+ * Rotates a 32-bit integer right.
469
+ * @param {number} value - Value to rotate.
470
+ * @param {number} bits - Bit count.
471
+ * @returns {number} - Rotated value.
472
+ */
473
+ function rotateRight(value, bits) {
474
+ return (value >>> bits) | (value << (32 - bits))
475
+ }
476
+
477
+ /**
478
+ * Validates that a sync config subtree is deterministic JSON and does not contain obvious secrets.
479
+ * @param {object} args - Arguments.
480
+ * @param {string} args.label - Diagnostic path label.
481
+ * @param {unknown} args.value - Value to validate.
482
+ * @returns {import("../configuration-types.js").FrontendModelSyncJsonValue} - Stable JSON value.
483
+ */
484
+ function deterministicSyncJson({label, value}) {
485
+ if (value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value
486
+
487
+ if (Array.isArray(value)) {
488
+ return value.map((entry, index) => deterministicSyncJson({label: `${label}/${index}`, value: entry}))
489
+ }
490
+
491
+ if (value && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype) {
492
+ /** @type {Record<string, import("../configuration-types.js").FrontendModelSyncJsonValue>} */
493
+ const normalized = {}
494
+
495
+ for (const key of Object.keys(value).sort()) {
496
+ const childValue = /** @type {Record<string, unknown>} */ (value)[key]
497
+
498
+ if (childValue === undefined) continue
499
+ if (syncConfigKeyLooksSecret(key)) {
500
+ throw new Error(`Sync policy ${label}/${key} is not allowed in frontend-visible sync policy config`)
501
+ }
502
+
503
+ normalized[key] = deterministicSyncJson({label: `${label}/${key}`, value: childValue})
504
+ }
505
+
506
+ return normalized
507
+ }
508
+
509
+ throw new Error("Sync policy input must be deterministic JSON")
510
+ }
511
+
512
+ /**
513
+ * Stable JSON stringifier with sorted object keys.
514
+ * @param {unknown} value - Value to stringify.
515
+ * @returns {string} - Stable JSON.
516
+ */
517
+ function stableJsonStringify(value) {
518
+ return JSON.stringify(deterministicSyncJson({label: "hash", value}))
519
+ }
520
+
521
+ /**
522
+ * Returns whether a sync config key looks like a credential/secret.
523
+ * @param {string} key - Object key.
524
+ * @returns {boolean} - Whether key is disallowed.
525
+ */
526
+ function syncConfigKeyLooksSecret(key) {
527
+ return /secret|token|password|private.?key|signing.?key/i.test(key)
528
+ }
529
+
228
530
  /**
229
531
  * Runs normalize frontend model resource commands.
230
532
  * @param {import("../configuration-types.js").FrontendModelResourceConfiguration} resourceConfiguration - Raw resource configuration.
@@ -17,6 +17,14 @@ const FRONTEND_MODEL_CONTROLLER_PATH = new URL("../../frontend-model-controller.
17
17
  export default async function frontendModelCommandRouteHook({configuration, currentPath, hasMatchingCustomRoute}) {
18
18
  const normalizedCurrentPath = normalizePath(currentPath)
19
19
 
20
+ if (normalizedCurrentPath === "/frontend-models/sync/bootstrap") {
21
+ return {
22
+ action: "frontend-sync-bootstrap",
23
+ controller: "velocious/api",
24
+ controllerPath: FRONTEND_MODEL_CONTROLLER_PATH
25
+ }
26
+ }
27
+
20
28
  if (normalizedCurrentPath === SHARED_FRONTEND_MODEL_API_PATH) {
21
29
  return {
22
30
  action: "frontend-api",
@@ -279,6 +279,7 @@
279
279
  * @property {string[]} [relationships] - Relationship names to expose in frontend models. Type and target model are inferred from the backend model's registered relationships.
280
280
  * @property {string} [primaryKey] - Primary key attribute name.
281
281
  * @property {FrontendModelResourceServerConfiguration} [server] - Optional legacy backend behavior overrides for built-in frontend actions.
282
+ * @property {FrontendModelResourceSyncConfiguration | boolean} [sync] - Optional safe local/offline sync policy metadata. `policy` participates in the hash but is not exposed to generated frontend config/manifest.
282
283
  */
283
284
  /**
284
285
  * Object form of a custom command entry, declaring its typed arguments and/or
@@ -294,13 +295,44 @@
294
295
  * @typedef {string | FrontendModelResourceCustomCommandObject} FrontendModelResourceCustomCommand
295
296
  */
296
297
  /**
297
- * @typedef {Omit<FrontendModelResourceConfiguration, "abilities" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands"> & {
298
+ * JSON value accepted by sync policy metadata/hash inputs.
299
+ * @typedef {null | string | number | boolean | unknown[] | Record<string, unknown>} FrontendModelSyncJsonValue
300
+ */
301
+ /**
302
+ * Frontend-model local/offline sync policy config. `metadata` is exposed to
303
+ * frontends and peers; `policy` is hashed but intentionally omitted from
304
+ * frontend-safe manifests.
305
+ * @typedef {object} FrontendModelResourceSyncConfiguration
306
+ * @property {boolean} [enabled] - Whether the resource is sync-enabled. Defaults to true when `sync` is configured.
307
+ * @property {string[]} [operations] - Sync operation names such as `index`, `find`, `create`, `update`, custom domain commands, etc.
308
+ * @property {string | number} [policyVersion] - App-controlled policy version used as a stable change signal.
309
+ * @property {Record<string, FrontendModelSyncJsonValue>} [metadata] - Safe frontend-visible metadata.
310
+ * @property {Record<string, FrontendModelSyncJsonValue>} [policy] - Deterministic non-secret policy inputs included in the policy hash only.
311
+ */
312
+ /**
313
+ * Velocious sync configuration.
314
+ * @typedef {object} VelociousSyncConfiguration
315
+ * @property {Array<import("./sync/offline-grant.js").OfflineGrantSigningKey>} offlineGrantSigningKeys - Signing keys used to issue and verify offline grants. Secrets must never be exposed to clients.
316
+ * @property {number} [offlineGrantTtlMs] - Default offline grant TTL in milliseconds. Defaults to 24 hours.
317
+ */
318
+ /**
319
+ * Frontend-safe normalized sync metadata.
320
+ * @typedef {object} NormalizedFrontendModelResourceSyncConfiguration
321
+ * @property {boolean} enabled - Whether the resource is sync-enabled.
322
+ * @property {string[]} operations - Sorted, duplicate-free sync operation names.
323
+ * @property {string | null} policyVersion - App-controlled policy version, or null.
324
+ * @property {string} policyHash - Deterministic sha256 hash of safe policy inputs.
325
+ * @property {Record<string, FrontendModelSyncJsonValue>} [metadata] - Safe frontend-visible metadata.
326
+ */
327
+ /**
328
+ * @typedef {Omit<FrontendModelResourceConfiguration, "abilities" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands" | "sync"> & {
298
329
  * abilities: FrontendModelResourceAbilitiesConfiguration
299
330
  * builtInCollectionCommands: Record<string, string>
300
331
  * builtInMemberCommands: Record<string, string>
301
332
  * collectionCommands: Record<string, string>
302
333
  * commandMetadata: Record<string, {args: Array<{name: string, type: string}>, returnType: string | null}>
303
334
  * memberCommands: Record<string, string>
335
+ * sync?: NormalizedFrontendModelResourceSyncConfiguration
304
336
  * }} NormalizedFrontendModelResourceConfiguration
305
337
  */
306
338
  /**
@@ -412,6 +444,7 @@
412
444
  * @property {string[]} locales - Supported locales.
413
445
  * @property {LocaleFallbacksType} localeFallbacks - Locale fallback map.
414
446
  * @property {StructureSqlConfiguration} [structureSql] - Structure SQL generation configuration.
447
+ * @property {VelociousSyncConfiguration} [sync] - Local/offline sync framework configuration.
415
448
  * @property {TenantResolverType} [tenantResolver] - Resolver for creating request-scoped tenant context objects.
416
449
  * @property {TenantDatabaseResolverType} [tenantDatabaseResolver] - Resolver for deriving tenant-specific database config overrides.
417
450
  * @property {Record<string, TenantDatabaseProviderType>} [tenantDatabaseProviders] - Tenant database lifecycle providers keyed by database identifier.
@@ -1119,6 +1152,10 @@ export type FrontendModelResourceConfiguration = {
1119
1152
  * - Optional legacy backend behavior overrides for built-in frontend actions.
1120
1153
  */
1121
1154
  server?: FrontendModelResourceServerConfiguration | undefined;
1155
+ /**
1156
+ * - Optional safe local/offline sync policy metadata. `policy` participates in the hash but is not exposed to generated frontend config/manifest.
1157
+ */
1158
+ sync?: boolean | FrontendModelResourceSyncConfiguration | undefined;
1122
1159
  };
1123
1160
  /**
1124
1161
  * Object form of a custom command entry, declaring its typed arguments and/or
@@ -1146,7 +1183,76 @@ export type FrontendModelResourceCustomCommandObject = {
1146
1183
  * typed args and/or a response type.
1147
1184
  */
1148
1185
  export type FrontendModelResourceCustomCommand = string | FrontendModelResourceCustomCommandObject;
1149
- export type NormalizedFrontendModelResourceConfiguration = Omit<FrontendModelResourceConfiguration, "abilities" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands"> & {
1186
+ /**
1187
+ * JSON value accepted by sync policy metadata/hash inputs.
1188
+ */
1189
+ export type FrontendModelSyncJsonValue = null | string | number | boolean | unknown[] | Record<string, unknown>;
1190
+ /**
1191
+ * Frontend-model local/offline sync policy config. `metadata` is exposed to
1192
+ * frontends and peers; `policy` is hashed but intentionally omitted from
1193
+ * frontend-safe manifests.
1194
+ */
1195
+ export type FrontendModelResourceSyncConfiguration = {
1196
+ /**
1197
+ * - Whether the resource is sync-enabled. Defaults to true when `sync` is configured.
1198
+ */
1199
+ enabled?: boolean | undefined;
1200
+ /**
1201
+ * - Sync operation names such as `index`, `find`, `create`, `update`, custom domain commands, etc.
1202
+ */
1203
+ operations?: string[] | undefined;
1204
+ /**
1205
+ * - App-controlled policy version used as a stable change signal.
1206
+ */
1207
+ policyVersion?: string | number | undefined;
1208
+ /**
1209
+ * - Safe frontend-visible metadata.
1210
+ */
1211
+ metadata?: Record<string, FrontendModelSyncJsonValue> | undefined;
1212
+ /**
1213
+ * - Deterministic non-secret policy inputs included in the policy hash only.
1214
+ */
1215
+ policy?: Record<string, FrontendModelSyncJsonValue> | undefined;
1216
+ };
1217
+ /**
1218
+ * Velocious sync configuration.
1219
+ */
1220
+ export type VelociousSyncConfiguration = {
1221
+ /**
1222
+ * - Signing keys used to issue and verify offline grants. Secrets must never be exposed to clients.
1223
+ */
1224
+ offlineGrantSigningKeys: Array<import("./sync/offline-grant.js").OfflineGrantSigningKey>;
1225
+ /**
1226
+ * - Default offline grant TTL in milliseconds. Defaults to 24 hours.
1227
+ */
1228
+ offlineGrantTtlMs?: number | undefined;
1229
+ };
1230
+ /**
1231
+ * Frontend-safe normalized sync metadata.
1232
+ */
1233
+ export type NormalizedFrontendModelResourceSyncConfiguration = {
1234
+ /**
1235
+ * - Whether the resource is sync-enabled.
1236
+ */
1237
+ enabled: boolean;
1238
+ /**
1239
+ * - Sorted, duplicate-free sync operation names.
1240
+ */
1241
+ operations: string[];
1242
+ /**
1243
+ * - App-controlled policy version, or null.
1244
+ */
1245
+ policyVersion: string | null;
1246
+ /**
1247
+ * - Deterministic sha256 hash of safe policy inputs.
1248
+ */
1249
+ policyHash: string;
1250
+ /**
1251
+ * - Safe frontend-visible metadata.
1252
+ */
1253
+ metadata?: Record<string, FrontendModelSyncJsonValue> | undefined;
1254
+ };
1255
+ export type NormalizedFrontendModelResourceConfiguration = Omit<FrontendModelResourceConfiguration, "abilities" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands" | "sync"> & {
1150
1256
  abilities: FrontendModelResourceAbilitiesConfiguration;
1151
1257
  builtInCollectionCommands: Record<string, string>;
1152
1258
  builtInMemberCommands: Record<string, string>;
@@ -1159,6 +1265,7 @@ export type NormalizedFrontendModelResourceConfiguration = Omit<FrontendModelRes
1159
1265
  returnType: string | null;
1160
1266
  }>;
1161
1267
  memberCommands: Record<string, string>;
1268
+ sync?: NormalizedFrontendModelResourceSyncConfiguration;
1162
1269
  };
1163
1270
  export type FrontendModelResourceClassType = Omit<typeof import("./frontend-model-resource/base-resource.js").default, never> & {
1164
1271
  new (args: import("./frontend-model-resource/base-resource.js").FrontendModelResourceAbilityArgs | import("./frontend-model-resource/base-resource.js").FrontendModelResourceControllerArgs): import("./frontend-model-resource/base-resource.js").default<typeof import("./database/record/index.js").default>;
@@ -1535,6 +1642,10 @@ export type ConfigurationArgsType = {
1535
1642
  * - Structure SQL generation configuration.
1536
1643
  */
1537
1644
  structureSql?: StructureSqlConfiguration | undefined;
1645
+ /**
1646
+ * - Local/offline sync framework configuration.
1647
+ */
1648
+ sync?: VelociousSyncConfiguration | undefined;
1538
1649
  /**
1539
1650
  * - Resolver for creating request-scoped tenant context objects.
1540
1651
  */
@@ -1 +1 @@
1
- {"version":3,"file":"configuration-types.d.ts","sourceRoot":"","sources":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