@ai-matrx/associations 0.9.33 → 0.10.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.
package/dist/index.d.cts CHANGED
@@ -400,6 +400,22 @@ interface DemandedRpcSignatures {
400
400
  title: string;
401
401
  }[];
402
402
  };
403
+ entity_row_create: {
404
+ Args: {
405
+ p_organization_id: string;
406
+ p_title: string;
407
+ p_token: string;
408
+ };
409
+ Returns: unknown;
410
+ };
411
+ entity_row_rename: {
412
+ Args: {
413
+ p_id: string;
414
+ p_title: string;
415
+ p_token: string;
416
+ };
417
+ Returns: unknown;
418
+ };
403
419
  cmt_list: {
404
420
  Args: {
405
421
  p_entity_id: string;
@@ -16424,27 +16440,6 @@ interface PgError {
16424
16440
  hint?: string | null;
16425
16441
  }
16426
16442
 
16427
- /**
16428
- * The minimal table surface entity-row create/rename needs (a structural
16429
- * subset of supabase-js's query builder). Registry-convention writes go
16430
- * DIRECT to the backing table (they are RLS-gated feature rows, not
16431
- * association edges — there is no RPC for them by design).
16432
- */
16433
- interface AssociationsTableQuery {
16434
- insert(row: Record<string, unknown>): {
16435
- select(columns: string): {
16436
- single(): PromiseLike<{
16437
- data: unknown;
16438
- error: PgError | null;
16439
- }>;
16440
- };
16441
- };
16442
- update(patch: Record<string, unknown>): {
16443
- eq(column: string, value: string): PromiseLike<{
16444
- error: PgError | null;
16445
- }>;
16446
- };
16447
- }
16448
16443
  /**
16449
16444
  * The data seam — a structural subset of `SupabaseClient<Database>`: any
16450
16445
  * client that can answer the demanded RPC families (README § The demanded
@@ -16452,22 +16447,21 @@ interface AssociationsTableQuery {
16452
16447
  * one. `PromiseLike` because supabase-js returns a thenable builder, not a
16453
16448
  * `Promise`.
16454
16449
  *
16455
- * `from`/`schema` are OPTIONAL (W2, additive): only the entity-row
16456
- * create/rename service uses them (generic registry-convention row writes).
16457
- * A dataSource without them still satisfies every RPC operation; calling
16458
- * entity-row create/rename against it returns a screamed `{ok:false}`
16459
- * result naming the missing capability — never a silent no-op. A real
16460
- * supabase-js client satisfies both structurally.
16450
+ * 🚨 RPC AND NOTHING ELSE (DOORS-ONLY-4, 2026-09-21). This port used to carry
16451
+ * OPTIONAL `from`/`schema` table surfaces, used by exactly one service —
16452
+ * entity-row create/rename, which wrote the registered entity's backing table
16453
+ * directly. The doors-only ruling (`platform` and `iam` are not client-writable;
16454
+ * every write goes through a named SECURITY DEFINER door) made that path answer
16455
+ * `42501` on every closed table, so it now calls `entity_row_create` /
16456
+ * `entity_row_rename` like every other operation. With its one reader gone the
16457
+ * two optional members were a port nobody reads — removed rather than left as a
16458
+ * seam a future write could quietly reach for.
16461
16459
  */
16462
16460
  interface AssociationsDataSource {
16463
16461
  rpc(fn: DemandedRpcName, args: Record<string, unknown>): PromiseLike<{
16464
16462
  data: unknown;
16465
16463
  error: PgError | null;
16466
16464
  }>;
16467
- from?(table: string): AssociationsTableQuery;
16468
- schema?(name: string): {
16469
- from(table: string): AssociationsTableQuery;
16470
- };
16471
16465
  }
16472
16466
  /**
16473
16467
  * The identity seam — today a store-singleton read (`requireUserId`) plus the
package/dist/index.d.ts CHANGED
@@ -400,6 +400,22 @@ interface DemandedRpcSignatures {
400
400
  title: string;
401
401
  }[];
402
402
  };
403
+ entity_row_create: {
404
+ Args: {
405
+ p_organization_id: string;
406
+ p_title: string;
407
+ p_token: string;
408
+ };
409
+ Returns: unknown;
410
+ };
411
+ entity_row_rename: {
412
+ Args: {
413
+ p_id: string;
414
+ p_title: string;
415
+ p_token: string;
416
+ };
417
+ Returns: unknown;
418
+ };
403
419
  cmt_list: {
404
420
  Args: {
405
421
  p_entity_id: string;
@@ -16424,27 +16440,6 @@ interface PgError {
16424
16440
  hint?: string | null;
16425
16441
  }
16426
16442
 
16427
- /**
16428
- * The minimal table surface entity-row create/rename needs (a structural
16429
- * subset of supabase-js's query builder). Registry-convention writes go
16430
- * DIRECT to the backing table (they are RLS-gated feature rows, not
16431
- * association edges — there is no RPC for them by design).
16432
- */
16433
- interface AssociationsTableQuery {
16434
- insert(row: Record<string, unknown>): {
16435
- select(columns: string): {
16436
- single(): PromiseLike<{
16437
- data: unknown;
16438
- error: PgError | null;
16439
- }>;
16440
- };
16441
- };
16442
- update(patch: Record<string, unknown>): {
16443
- eq(column: string, value: string): PromiseLike<{
16444
- error: PgError | null;
16445
- }>;
16446
- };
16447
- }
16448
16443
  /**
16449
16444
  * The data seam — a structural subset of `SupabaseClient<Database>`: any
16450
16445
  * client that can answer the demanded RPC families (README § The demanded
@@ -16452,22 +16447,21 @@ interface AssociationsTableQuery {
16452
16447
  * one. `PromiseLike` because supabase-js returns a thenable builder, not a
16453
16448
  * `Promise`.
16454
16449
  *
16455
- * `from`/`schema` are OPTIONAL (W2, additive): only the entity-row
16456
- * create/rename service uses them (generic registry-convention row writes).
16457
- * A dataSource without them still satisfies every RPC operation; calling
16458
- * entity-row create/rename against it returns a screamed `{ok:false}`
16459
- * result naming the missing capability — never a silent no-op. A real
16460
- * supabase-js client satisfies both structurally.
16450
+ * 🚨 RPC AND NOTHING ELSE (DOORS-ONLY-4, 2026-09-21). This port used to carry
16451
+ * OPTIONAL `from`/`schema` table surfaces, used by exactly one service —
16452
+ * entity-row create/rename, which wrote the registered entity's backing table
16453
+ * directly. The doors-only ruling (`platform` and `iam` are not client-writable;
16454
+ * every write goes through a named SECURITY DEFINER door) made that path answer
16455
+ * `42501` on every closed table, so it now calls `entity_row_create` /
16456
+ * `entity_row_rename` like every other operation. With its one reader gone the
16457
+ * two optional members were a port nobody reads — removed rather than left as a
16458
+ * seam a future write could quietly reach for.
16461
16459
  */
16462
16460
  interface AssociationsDataSource {
16463
16461
  rpc(fn: DemandedRpcName, args: Record<string, unknown>): PromiseLike<{
16464
16462
  data: unknown;
16465
16463
  error: PgError | null;
16466
16464
  }>;
16467
- from?(table: string): AssociationsTableQuery;
16468
- schema?(name: string): {
16469
- from(table: string): AssociationsTableQuery;
16470
- };
16471
16465
  }
16472
16466
  /**
16473
16467
  * The identity seam — today a store-singleton read (`requireUserId`) plus the
package/dist/index.js CHANGED
@@ -2122,6 +2122,8 @@ var DEMANDED_RPC_NAMES = [
2122
2122
  "ues_get_bulk",
2123
2123
  "ues_touch",
2124
2124
  "reference_search_candidates",
2125
+ "entity_row_create",
2126
+ "entity_row_rename",
2125
2127
  "cmt_list",
2126
2128
  "cmt_add",
2127
2129
  "cmt_edit",