@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/{CommentThread-CaUsmcYj.d.cts → CommentThread-B0aryGyN.d.cts} +37 -33
- package/dist/{CommentThread-CaUsmcYj.d.ts → CommentThread-B0aryGyN.d.ts} +37 -33
- package/dist/core/index.cjs +58 -51
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +12 -2
- package/dist/core/index.d.ts +12 -2
- package/dist/core/index.js +58 -51
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -31
- package/dist/index.d.ts +25 -31
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/lazy/index.d.cts +1 -1
- package/dist/react/lazy/index.d.ts +1 -1
- package/package.json +5 -5
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
|
-
*
|
|
16456
|
-
*
|
|
16457
|
-
*
|
|
16458
|
-
*
|
|
16459
|
-
*
|
|
16460
|
-
*
|
|
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
|
-
*
|
|
16456
|
-
*
|
|
16457
|
-
*
|
|
16458
|
-
*
|
|
16459
|
-
*
|
|
16460
|
-
*
|
|
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
|