@stndrds/schema 1.0.0-alpha.182 → 1.0.0-alpha.183

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/index.d.mts CHANGED
@@ -335,8 +335,9 @@ interface SearchOptions extends ListOptions {
335
335
  semanticRatio?: number;
336
336
  /**
337
337
  * When set, restrict results to records whose `id` is in this list.
338
- * Populated by `EdgeFilterResolver` when edge filters resolve to a known
339
- * set of source record IDs. `null` means "no constraint" (same as omitted).
338
+ * `null` means "no constraint" (same as omitted). Used by callers that want
339
+ * to intersect search results with a precomputed allow-list (e.g. derived
340
+ * elsewhere in the application).
340
341
  */
341
342
  constrainToIds?: string[] | null;
342
343
  }
@@ -6374,7 +6375,7 @@ declare const formRegistry: FormRegistry;
6374
6375
  * Event types emitted by write paths.
6375
6376
  * New types are added as handlers are implemented.
6376
6377
  */
6377
- type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted";
6378
+ type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "meili.settings.refresh";
6378
6379
  /**
6379
6380
  * Typed payload map — each event type has a specific data shape.
6380
6381
  */
@@ -6417,6 +6418,16 @@ interface EventDataMap {
6417
6418
  slotValues: Record<string, Record<string, unknown>>;
6418
6419
  stepValues: Record<string, Record<string, unknown>>;
6419
6420
  };
6421
+ /**
6422
+ * Phase 6 — request a refresh of the Meilisearch index settings for a tenant.
6423
+ * Emitted by schema mutations (attribute add/update/delete) so the search
6424
+ * adapter can recompute sortableAttributes from the live schema without a
6425
+ * full reindex.
6426
+ */
6427
+ "meili.settings.refresh": {
6428
+ /** Tenant whose Meili index should be reconfigured. */
6429
+ tenantId: string;
6430
+ };
6420
6431
  }
6421
6432
  /**
6422
6433
  * A typed domain event.
package/dist/index.d.ts CHANGED
@@ -335,8 +335,9 @@ interface SearchOptions extends ListOptions {
335
335
  semanticRatio?: number;
336
336
  /**
337
337
  * When set, restrict results to records whose `id` is in this list.
338
- * Populated by `EdgeFilterResolver` when edge filters resolve to a known
339
- * set of source record IDs. `null` means "no constraint" (same as omitted).
338
+ * `null` means "no constraint" (same as omitted). Used by callers that want
339
+ * to intersect search results with a precomputed allow-list (e.g. derived
340
+ * elsewhere in the application).
340
341
  */
341
342
  constrainToIds?: string[] | null;
342
343
  }
@@ -6374,7 +6375,7 @@ declare const formRegistry: FormRegistry;
6374
6375
  * Event types emitted by write paths.
6375
6376
  * New types are added as handlers are implemented.
6376
6377
  */
6377
- type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted";
6378
+ type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "meili.settings.refresh";
6378
6379
  /**
6379
6380
  * Typed payload map — each event type has a specific data shape.
6380
6381
  */
@@ -6417,6 +6418,16 @@ interface EventDataMap {
6417
6418
  slotValues: Record<string, Record<string, unknown>>;
6418
6419
  stepValues: Record<string, Record<string, unknown>>;
6419
6420
  };
6421
+ /**
6422
+ * Phase 6 — request a refresh of the Meilisearch index settings for a tenant.
6423
+ * Emitted by schema mutations (attribute add/update/delete) so the search
6424
+ * adapter can recompute sortableAttributes from the live schema without a
6425
+ * full reindex.
6426
+ */
6427
+ "meili.settings.refresh": {
6428
+ /** Tenant whose Meili index should be reconfigured. */
6429
+ tenantId: string;
6430
+ };
6420
6431
  }
6421
6432
  /**
6422
6433
  * A typed domain event.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.182",
3
+ "version": "1.0.0-alpha.183",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -131,7 +131,7 @@
131
131
  "expr-eval": "^2.0.2",
132
132
  "libphonenumber-js": "^1.12.31",
133
133
  "zod": "^4.2.1",
134
- "@stndrds/constants": "1.0.0-alpha.182"
134
+ "@stndrds/constants": "1.0.0-alpha.183"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@types/node": "^25.0.3",