@ai-matrx/data 0.22.32 → 0.23.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/CHANGELOG.md +32 -0
- package/bin/direct-db.mjs +80 -0
- package/bin/emit.mjs +355 -0
- package/bin/generate.mjs +196 -0
- package/bin/matrx-data.mjs +47 -0
- package/dist/db.cjs +240 -19
- package/dist/db.cjs.map +1 -1
- package/dist/db.d.cts +220 -3
- package/dist/db.d.ts +220 -3
- package/dist/db.js +236 -15
- package/dist/db.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +128 -0
- package/dist/types.d.ts +128 -0
- package/package.json +6 -2
package/dist/types.d.cts
CHANGED
|
@@ -19515,6 +19515,17 @@ type Database = {
|
|
|
19515
19515
|
};
|
|
19516
19516
|
Returns: boolean;
|
|
19517
19517
|
};
|
|
19518
|
+
child_parent_records_worth_asking: {
|
|
19519
|
+
Args: {
|
|
19520
|
+
p_ids: string[];
|
|
19521
|
+
p_orgs: string[];
|
|
19522
|
+
p_person: string;
|
|
19523
|
+
};
|
|
19524
|
+
Returns: {
|
|
19525
|
+
org: string;
|
|
19526
|
+
pid: string;
|
|
19527
|
+
}[];
|
|
19528
|
+
};
|
|
19518
19529
|
children_with_own_read_arms: {
|
|
19519
19530
|
Args: never;
|
|
19520
19531
|
Returns: {
|
|
@@ -21902,6 +21913,87 @@ type Database = {
|
|
|
21902
21913
|
};
|
|
21903
21914
|
Relationships: [];
|
|
21904
21915
|
};
|
|
21916
|
+
readiness_verdict: {
|
|
21917
|
+
Row: {
|
|
21918
|
+
checked_at: string;
|
|
21919
|
+
created_at: string;
|
|
21920
|
+
created_by: string | null;
|
|
21921
|
+
deleted_at: string | null;
|
|
21922
|
+
door: string | null;
|
|
21923
|
+
id: string;
|
|
21924
|
+
mandate_key: string;
|
|
21925
|
+
metadata: Json;
|
|
21926
|
+
missing: Json;
|
|
21927
|
+
organization_id: string;
|
|
21928
|
+
published_to_web: boolean;
|
|
21929
|
+
published_to_web_at: string | null;
|
|
21930
|
+
published_to_web_by: string | null;
|
|
21931
|
+
ready: boolean;
|
|
21932
|
+
refused_count: number;
|
|
21933
|
+
required: Json;
|
|
21934
|
+
scope: Json;
|
|
21935
|
+
scope_key: string;
|
|
21936
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21937
|
+
summary: string | null;
|
|
21938
|
+
updated_at: string;
|
|
21939
|
+
updated_by: string | null;
|
|
21940
|
+
version: number;
|
|
21941
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
21942
|
+
};
|
|
21943
|
+
Insert: {
|
|
21944
|
+
checked_at?: string;
|
|
21945
|
+
created_at?: string;
|
|
21946
|
+
created_by?: string | null;
|
|
21947
|
+
deleted_at?: string | null;
|
|
21948
|
+
door?: string | null;
|
|
21949
|
+
id?: string;
|
|
21950
|
+
mandate_key: string;
|
|
21951
|
+
metadata?: Json;
|
|
21952
|
+
missing?: Json;
|
|
21953
|
+
organization_id: string;
|
|
21954
|
+
published_to_web?: boolean;
|
|
21955
|
+
published_to_web_at?: string | null;
|
|
21956
|
+
published_to_web_by?: string | null;
|
|
21957
|
+
ready: boolean;
|
|
21958
|
+
refused_count?: number;
|
|
21959
|
+
required?: Json;
|
|
21960
|
+
scope?: Json;
|
|
21961
|
+
scope_key: string;
|
|
21962
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21963
|
+
summary?: string | null;
|
|
21964
|
+
updated_at?: string;
|
|
21965
|
+
updated_by?: string | null;
|
|
21966
|
+
version?: number;
|
|
21967
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
21968
|
+
};
|
|
21969
|
+
Update: {
|
|
21970
|
+
checked_at?: string;
|
|
21971
|
+
created_at?: string;
|
|
21972
|
+
created_by?: string | null;
|
|
21973
|
+
deleted_at?: string | null;
|
|
21974
|
+
door?: string | null;
|
|
21975
|
+
id?: string;
|
|
21976
|
+
mandate_key?: string;
|
|
21977
|
+
metadata?: Json;
|
|
21978
|
+
missing?: Json;
|
|
21979
|
+
organization_id?: string;
|
|
21980
|
+
published_to_web?: boolean;
|
|
21981
|
+
published_to_web_at?: string | null;
|
|
21982
|
+
published_to_web_by?: string | null;
|
|
21983
|
+
ready?: boolean;
|
|
21984
|
+
refused_count?: number;
|
|
21985
|
+
required?: Json;
|
|
21986
|
+
scope?: Json;
|
|
21987
|
+
scope_key?: string;
|
|
21988
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21989
|
+
summary?: string | null;
|
|
21990
|
+
updated_at?: string;
|
|
21991
|
+
updated_by?: string | null;
|
|
21992
|
+
version?: number;
|
|
21993
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
21994
|
+
};
|
|
21995
|
+
Relationships: [];
|
|
21996
|
+
};
|
|
21905
21997
|
reference: {
|
|
21906
21998
|
Row: {
|
|
21907
21999
|
caller_identity_hash: string | null;
|
|
@@ -22809,6 +22901,12 @@ type Database = {
|
|
|
22809
22901
|
version_live: boolean;
|
|
22810
22902
|
}[];
|
|
22811
22903
|
};
|
|
22904
|
+
admin_run_counts: {
|
|
22905
|
+
Args: {
|
|
22906
|
+
p_since: string;
|
|
22907
|
+
};
|
|
22908
|
+
Returns: Json;
|
|
22909
|
+
};
|
|
22812
22910
|
binding_holder_runnable: {
|
|
22813
22911
|
Args: {
|
|
22814
22912
|
p_holder_id: string;
|
|
@@ -22888,6 +22986,24 @@ type Database = {
|
|
|
22888
22986
|
};
|
|
22889
22987
|
Returns: string[];
|
|
22890
22988
|
};
|
|
22989
|
+
record_readiness_verdict: {
|
|
22990
|
+
Args: {
|
|
22991
|
+
p_door: string;
|
|
22992
|
+
p_mandate_key: string;
|
|
22993
|
+
p_missing: Json;
|
|
22994
|
+
p_organization_id: string;
|
|
22995
|
+
p_ready: boolean;
|
|
22996
|
+
p_required: Json;
|
|
22997
|
+
p_scope: Json;
|
|
22998
|
+
p_scope_key: string;
|
|
22999
|
+
p_summary: string;
|
|
23000
|
+
};
|
|
23001
|
+
Returns: {
|
|
23002
|
+
id: string;
|
|
23003
|
+
ready: boolean;
|
|
23004
|
+
refused_count: number;
|
|
23005
|
+
}[];
|
|
23006
|
+
};
|
|
22891
23007
|
reference_head: {
|
|
22892
23008
|
Args: never;
|
|
22893
23009
|
Returns: {
|
|
@@ -34996,6 +35112,10 @@ type Database = {
|
|
|
34996
35112
|
};
|
|
34997
35113
|
Returns: boolean;
|
|
34998
35114
|
};
|
|
35115
|
+
non_person_account_ids: {
|
|
35116
|
+
Args: never;
|
|
35117
|
+
Returns: string[];
|
|
35118
|
+
};
|
|
34999
35119
|
normalize_decision_label: {
|
|
35000
35120
|
Args: {
|
|
35001
35121
|
p_answer: string;
|
|
@@ -35932,6 +36052,14 @@ type Database = {
|
|
|
35932
36052
|
};
|
|
35933
36053
|
Returns: number;
|
|
35934
36054
|
};
|
|
36055
|
+
run_is_own_work: {
|
|
36056
|
+
Args: {
|
|
36057
|
+
p_origin: string;
|
|
36058
|
+
p_real_person: boolean;
|
|
36059
|
+
p_source: string;
|
|
36060
|
+
};
|
|
36061
|
+
Returns: boolean;
|
|
36062
|
+
};
|
|
35935
36063
|
schema_exposure_violations: {
|
|
35936
36064
|
Args: {
|
|
35937
36065
|
p_schema?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -19515,6 +19515,17 @@ type Database = {
|
|
|
19515
19515
|
};
|
|
19516
19516
|
Returns: boolean;
|
|
19517
19517
|
};
|
|
19518
|
+
child_parent_records_worth_asking: {
|
|
19519
|
+
Args: {
|
|
19520
|
+
p_ids: string[];
|
|
19521
|
+
p_orgs: string[];
|
|
19522
|
+
p_person: string;
|
|
19523
|
+
};
|
|
19524
|
+
Returns: {
|
|
19525
|
+
org: string;
|
|
19526
|
+
pid: string;
|
|
19527
|
+
}[];
|
|
19528
|
+
};
|
|
19518
19529
|
children_with_own_read_arms: {
|
|
19519
19530
|
Args: never;
|
|
19520
19531
|
Returns: {
|
|
@@ -21902,6 +21913,87 @@ type Database = {
|
|
|
21902
21913
|
};
|
|
21903
21914
|
Relationships: [];
|
|
21904
21915
|
};
|
|
21916
|
+
readiness_verdict: {
|
|
21917
|
+
Row: {
|
|
21918
|
+
checked_at: string;
|
|
21919
|
+
created_at: string;
|
|
21920
|
+
created_by: string | null;
|
|
21921
|
+
deleted_at: string | null;
|
|
21922
|
+
door: string | null;
|
|
21923
|
+
id: string;
|
|
21924
|
+
mandate_key: string;
|
|
21925
|
+
metadata: Json;
|
|
21926
|
+
missing: Json;
|
|
21927
|
+
organization_id: string;
|
|
21928
|
+
published_to_web: boolean;
|
|
21929
|
+
published_to_web_at: string | null;
|
|
21930
|
+
published_to_web_by: string | null;
|
|
21931
|
+
ready: boolean;
|
|
21932
|
+
refused_count: number;
|
|
21933
|
+
required: Json;
|
|
21934
|
+
scope: Json;
|
|
21935
|
+
scope_key: string;
|
|
21936
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21937
|
+
summary: string | null;
|
|
21938
|
+
updated_at: string;
|
|
21939
|
+
updated_by: string | null;
|
|
21940
|
+
version: number;
|
|
21941
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
21942
|
+
};
|
|
21943
|
+
Insert: {
|
|
21944
|
+
checked_at?: string;
|
|
21945
|
+
created_at?: string;
|
|
21946
|
+
created_by?: string | null;
|
|
21947
|
+
deleted_at?: string | null;
|
|
21948
|
+
door?: string | null;
|
|
21949
|
+
id?: string;
|
|
21950
|
+
mandate_key: string;
|
|
21951
|
+
metadata?: Json;
|
|
21952
|
+
missing?: Json;
|
|
21953
|
+
organization_id: string;
|
|
21954
|
+
published_to_web?: boolean;
|
|
21955
|
+
published_to_web_at?: string | null;
|
|
21956
|
+
published_to_web_by?: string | null;
|
|
21957
|
+
ready: boolean;
|
|
21958
|
+
refused_count?: number;
|
|
21959
|
+
required?: Json;
|
|
21960
|
+
scope?: Json;
|
|
21961
|
+
scope_key: string;
|
|
21962
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21963
|
+
summary?: string | null;
|
|
21964
|
+
updated_at?: string;
|
|
21965
|
+
updated_by?: string | null;
|
|
21966
|
+
version?: number;
|
|
21967
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
21968
|
+
};
|
|
21969
|
+
Update: {
|
|
21970
|
+
checked_at?: string;
|
|
21971
|
+
created_at?: string;
|
|
21972
|
+
created_by?: string | null;
|
|
21973
|
+
deleted_at?: string | null;
|
|
21974
|
+
door?: string | null;
|
|
21975
|
+
id?: string;
|
|
21976
|
+
mandate_key?: string;
|
|
21977
|
+
metadata?: Json;
|
|
21978
|
+
missing?: Json;
|
|
21979
|
+
organization_id?: string;
|
|
21980
|
+
published_to_web?: boolean;
|
|
21981
|
+
published_to_web_at?: string | null;
|
|
21982
|
+
published_to_web_by?: string | null;
|
|
21983
|
+
ready?: boolean;
|
|
21984
|
+
refused_count?: number;
|
|
21985
|
+
required?: Json;
|
|
21986
|
+
scope?: Json;
|
|
21987
|
+
scope_key?: string;
|
|
21988
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
21989
|
+
summary?: string | null;
|
|
21990
|
+
updated_at?: string;
|
|
21991
|
+
updated_by?: string | null;
|
|
21992
|
+
version?: number;
|
|
21993
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
21994
|
+
};
|
|
21995
|
+
Relationships: [];
|
|
21996
|
+
};
|
|
21905
21997
|
reference: {
|
|
21906
21998
|
Row: {
|
|
21907
21999
|
caller_identity_hash: string | null;
|
|
@@ -22809,6 +22901,12 @@ type Database = {
|
|
|
22809
22901
|
version_live: boolean;
|
|
22810
22902
|
}[];
|
|
22811
22903
|
};
|
|
22904
|
+
admin_run_counts: {
|
|
22905
|
+
Args: {
|
|
22906
|
+
p_since: string;
|
|
22907
|
+
};
|
|
22908
|
+
Returns: Json;
|
|
22909
|
+
};
|
|
22812
22910
|
binding_holder_runnable: {
|
|
22813
22911
|
Args: {
|
|
22814
22912
|
p_holder_id: string;
|
|
@@ -22888,6 +22986,24 @@ type Database = {
|
|
|
22888
22986
|
};
|
|
22889
22987
|
Returns: string[];
|
|
22890
22988
|
};
|
|
22989
|
+
record_readiness_verdict: {
|
|
22990
|
+
Args: {
|
|
22991
|
+
p_door: string;
|
|
22992
|
+
p_mandate_key: string;
|
|
22993
|
+
p_missing: Json;
|
|
22994
|
+
p_organization_id: string;
|
|
22995
|
+
p_ready: boolean;
|
|
22996
|
+
p_required: Json;
|
|
22997
|
+
p_scope: Json;
|
|
22998
|
+
p_scope_key: string;
|
|
22999
|
+
p_summary: string;
|
|
23000
|
+
};
|
|
23001
|
+
Returns: {
|
|
23002
|
+
id: string;
|
|
23003
|
+
ready: boolean;
|
|
23004
|
+
refused_count: number;
|
|
23005
|
+
}[];
|
|
23006
|
+
};
|
|
22891
23007
|
reference_head: {
|
|
22892
23008
|
Args: never;
|
|
22893
23009
|
Returns: {
|
|
@@ -34996,6 +35112,10 @@ type Database = {
|
|
|
34996
35112
|
};
|
|
34997
35113
|
Returns: boolean;
|
|
34998
35114
|
};
|
|
35115
|
+
non_person_account_ids: {
|
|
35116
|
+
Args: never;
|
|
35117
|
+
Returns: string[];
|
|
35118
|
+
};
|
|
34999
35119
|
normalize_decision_label: {
|
|
35000
35120
|
Args: {
|
|
35001
35121
|
p_answer: string;
|
|
@@ -35932,6 +36052,14 @@ type Database = {
|
|
|
35932
36052
|
};
|
|
35933
36053
|
Returns: number;
|
|
35934
36054
|
};
|
|
36055
|
+
run_is_own_work: {
|
|
36056
|
+
Args: {
|
|
36057
|
+
p_origin: string;
|
|
36058
|
+
p_real_person: boolean;
|
|
36059
|
+
p_source: string;
|
|
36060
|
+
};
|
|
36061
|
+
Returns: boolean;
|
|
36062
|
+
};
|
|
35935
36063
|
schema_exposure_violations: {
|
|
35936
36064
|
Args: {
|
|
35937
36065
|
p_schema?: string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "The opinionated AI Matrx data layer: the /db tier's hard-won Supabase primitives — optimistic concurrency, complete-list reads, JSONB merge, session-retry, the domain-wide auth cookie, realtime channel hygiene — the /net resilience trio, and the /files lane: the Matrx file-communication client (durable-ref resolution, the mx_files_session bootstrap, authenticated blob fetch, uploads, the public-link door).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"matrx-data": "./bin/matrx-data.mjs"
|
|
11
|
+
},
|
|
9
12
|
"license": "MIT",
|
|
10
13
|
"keywords": [
|
|
11
14
|
"supabase",
|
|
@@ -33,6 +36,7 @@
|
|
|
33
36
|
},
|
|
34
37
|
"files": [
|
|
35
38
|
"dist",
|
|
39
|
+
"bin",
|
|
36
40
|
"README.md",
|
|
37
41
|
"LICENSE",
|
|
38
42
|
"CHANGELOG.md"
|
|
@@ -208,5 +212,5 @@
|
|
|
208
212
|
"test:watch": "vitest",
|
|
209
213
|
"verify:tarball": "node ./scripts/verify-tarball.mjs"
|
|
210
214
|
},
|
|
211
|
-
"gitHead": "
|
|
215
|
+
"gitHead": "5eb8c8fe4726d3583c9b7da8b4a64786e782e3ec"
|
|
212
216
|
}
|