@pgpm/metaschema-modules 0.26.3 → 0.26.6
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/Makefile +1 -1
- package/README.md +19 -4
- package/deploy/schemas/metaschema_modules_public/tables/agent_module/table.sql +35 -24
- package/deploy/schemas/metaschema_modules_public/tables/billing_module/table.sql +13 -0
- package/deploy/schemas/metaschema_modules_public/tables/billing_provider_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/compute_log_module/table.sql +7 -2
- package/deploy/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +82 -0
- package/deploy/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/config_secrets_user_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/connected_accounts_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/crypto_addresses_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/db_usage_module/table.sql +11 -2
- package/deploy/schemas/metaschema_modules_public/tables/emails_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +0 -4
- package/deploy/schemas/metaschema_modules_public/tables/events_module/table.sql +14 -4
- package/deploy/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +67 -0
- package/deploy/schemas/metaschema_modules_public/tables/function_module/table.sql +14 -33
- package/deploy/schemas/metaschema_modules_public/tables/graph_module/table.sql +10 -8
- package/deploy/schemas/metaschema_modules_public/tables/hierarchy_module/table.sql +10 -3
- package/deploy/schemas/metaschema_modules_public/tables/i18n_module/table.sql +31 -0
- package/deploy/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +35 -3
- package/deploy/schemas/metaschema_modules_public/tables/inference_log_module/table.sql +7 -2
- package/deploy/schemas/metaschema_modules_public/tables/invites_module/table.sql +12 -10
- package/deploy/schemas/metaschema_modules_public/tables/limits_module/table.sql +10 -4
- package/deploy/schemas/metaschema_modules_public/tables/memberships_module/table.sql +17 -8
- package/deploy/schemas/metaschema_modules_public/tables/merkle_store_module/table.sql +8 -2
- package/deploy/schemas/metaschema_modules_public/tables/namespace_module/table.sql +13 -12
- package/deploy/schemas/metaschema_modules_public/tables/notifications_module/table.sql +11 -0
- package/deploy/schemas/metaschema_modules_public/tables/permissions_module/table.sql +12 -5
- package/deploy/schemas/metaschema_modules_public/tables/phone_numbers_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/plans_module/table.sql +16 -0
- package/deploy/schemas/metaschema_modules_public/tables/profiles_module/table.sql +10 -4
- package/deploy/schemas/metaschema_modules_public/tables/rate_limit_meters_module/table.sql +8 -0
- package/deploy/schemas/metaschema_modules_public/tables/realtime_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/rls_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/storage_log_module/table.sql +7 -2
- package/deploy/schemas/metaschema_modules_public/tables/storage_module/table.sql +19 -14
- package/deploy/schemas/metaschema_modules_public/tables/transfer_log_module/table.sql +7 -2
- package/deploy/schemas/metaschema_modules_public/tables/user_auth_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/user_credentials_module/table.sql +42 -0
- package/deploy/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +34 -0
- package/deploy/schemas/metaschema_modules_public/tables/users_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/webauthn_credentials_module/table.sql +4 -0
- package/metaschema-modules.control +1 -1
- package/package.json +4 -4
- package/pgpm.plan +5 -0
- package/revert/schemas/metaschema_modules_public/tables/agent_chat_module/table.sql +3 -0
- package/revert/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/i18n_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/user_credentials_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +7 -0
- package/sql/{metaschema-modules--0.26.1.sql → metaschema-modules--0.26.5.sql} +565 -262
- package/verify/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +7 -0
- package/verify/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +7 -0
- package/verify/schemas/metaschema_modules_public/tables/i18n_module/table.sql +9 -0
- package/verify/schemas/metaschema_modules_public/tables/namespace_module/table.sql +3 -1
- package/verify/schemas/metaschema_modules_public/tables/user_credentials_module/table.sql +7 -0
- package/verify/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +7 -0
|
@@ -44,6 +44,10 @@ CREATE TABLE metaschema_modules_public.user_auth_module (
|
|
|
44
44
|
|
|
45
45
|
-- UNIQUE(api_id),
|
|
46
46
|
|
|
47
|
+
-- API routing (configurable per-module)
|
|
48
|
+
api_name text DEFAULT 'auth',
|
|
49
|
+
private_api_name text DEFAULT NULL,
|
|
50
|
+
|
|
47
51
|
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
48
52
|
CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
|
|
49
53
|
CONSTRAINT email_table_fkey FOREIGN KEY (emails_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
-- Deploy schemas/metaschema_modules_public/tables/user_credentials_module/table to pg
|
|
2
|
+
|
|
3
|
+
-- requires: schemas/metaschema_modules_public/schema
|
|
4
|
+
|
|
5
|
+
BEGIN;
|
|
6
|
+
|
|
7
|
+
CREATE TABLE metaschema_modules_public.user_credentials_module (
|
|
8
|
+
id uuid PRIMARY KEY DEFAULT uuidv7(),
|
|
9
|
+
database_id uuid NOT NULL,
|
|
10
|
+
|
|
11
|
+
-- Schema references (resolved by BEFORE INSERT trigger when uuid_nil)
|
|
12
|
+
schema_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
13
|
+
|
|
14
|
+
-- Generated table ID (populated by the generator)
|
|
15
|
+
table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
16
|
+
|
|
17
|
+
-- Table name (input — defaults to 'user_secrets')
|
|
18
|
+
table_name text NOT NULL DEFAULT 'user_secrets',
|
|
19
|
+
|
|
20
|
+
-- API routing (get-or-create: if set, schema is added to this API)
|
|
21
|
+
api_name text DEFAULT 'config',
|
|
22
|
+
private_api_name text DEFAULT NULL,
|
|
23
|
+
|
|
24
|
+
-- Constraints
|
|
25
|
+
CONSTRAINT user_credentials_module_db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
26
|
+
CONSTRAINT user_credentials_module_schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
|
|
27
|
+
CONSTRAINT user_credentials_module_table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
CREATE INDEX user_credentials_module_database_id_idx ON metaschema_modules_public.user_credentials_module ( database_id );
|
|
31
|
+
CREATE INDEX user_credentials_module_schema_id_idx ON metaschema_modules_public.user_credentials_module ( schema_id );
|
|
32
|
+
CREATE INDEX user_credentials_module_table_id_idx ON metaschema_modules_public.user_credentials_module ( table_id );
|
|
33
|
+
|
|
34
|
+
-- One user_credentials_module per database.
|
|
35
|
+
CREATE UNIQUE INDEX user_credentials_module_unique ON metaschema_modules_public.user_credentials_module ( database_id );
|
|
36
|
+
|
|
37
|
+
COMMENT ON TABLE metaschema_modules_public.user_credentials_module IS
|
|
38
|
+
'Per-user bcrypt credential store (password hashes, API key hashes).
|
|
39
|
+
Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module,
|
|
40
|
+
identity_providers_module, and bootstrap procedures.';
|
|
41
|
+
|
|
42
|
+
COMMIT;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
-- Deploy schemas/metaschema_modules_public/tables/user_settings_module/table to pg
|
|
2
|
+
|
|
3
|
+
-- requires: schemas/metaschema_modules_public/schema
|
|
4
|
+
|
|
5
|
+
BEGIN;
|
|
6
|
+
|
|
7
|
+
CREATE TABLE metaschema_modules_public.user_settings_module (
|
|
8
|
+
id uuid PRIMARY KEY DEFAULT uuidv7(),
|
|
9
|
+
database_id uuid NOT NULL,
|
|
10
|
+
|
|
11
|
+
-- Schema reference (populated by the insert trigger)
|
|
12
|
+
schema_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
13
|
+
|
|
14
|
+
-- Table reference (populated by the generator)
|
|
15
|
+
table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
16
|
+
|
|
17
|
+
-- Owner table reference (resolved to users table by trigger)
|
|
18
|
+
owner_table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
19
|
+
|
|
20
|
+
table_name text NOT NULL DEFAULT 'user_settings',
|
|
21
|
+
|
|
22
|
+
-- API routing (configurable per-module)
|
|
23
|
+
api_name text DEFAULT NULL,
|
|
24
|
+
|
|
25
|
+
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
26
|
+
CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
|
|
27
|
+
CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
28
|
+
CONSTRAINT owner_table_fkey FOREIGN KEY (owner_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
CREATE INDEX user_settings_module_database_id_idx ON metaschema_modules_public.user_settings_module ( database_id );
|
|
32
|
+
CREATE UNIQUE INDEX user_settings_module_unique_per_db ON metaschema_modules_public.user_settings_module ( database_id );
|
|
33
|
+
|
|
34
|
+
COMMIT;
|
|
@@ -18,6 +18,10 @@ CREATE TABLE metaschema_modules_public.users_module (
|
|
|
18
18
|
type_table_name text NOT NULL DEFAULT 'role_types',
|
|
19
19
|
--
|
|
20
20
|
|
|
21
|
+
-- API routing (configurable per-module)
|
|
22
|
+
api_name text DEFAULT 'auth',
|
|
23
|
+
private_api_name text DEFAULT NULL,
|
|
24
|
+
|
|
21
25
|
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
22
26
|
CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
|
|
23
27
|
CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
package/deploy/schemas/metaschema_modules_public/tables/webauthn_credentials_module/table.sql
CHANGED
|
@@ -16,6 +16,10 @@ CREATE TABLE metaschema_modules_public.webauthn_credentials_module (
|
|
|
16
16
|
|
|
17
17
|
table_name text NOT NULL DEFAULT 'webauthn_credentials',
|
|
18
18
|
|
|
19
|
+
-- API routing (configurable per-module)
|
|
20
|
+
api_name text DEFAULT 'auth',
|
|
21
|
+
private_api_name text DEFAULT NULL,
|
|
22
|
+
|
|
19
23
|
--
|
|
20
24
|
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
21
25
|
CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# metaschema-modules extension
|
|
2
2
|
comment = 'metaschema-modules extension'
|
|
3
|
-
default_version = '0.26.
|
|
3
|
+
default_version = '0.26.5'
|
|
4
4
|
module_pathname = '$libdir/metaschema-modules'
|
|
5
5
|
requires = 'plpgsql,uuid-ossp,metaschema-schema,services,pgpm-verify'
|
|
6
6
|
relocatable = false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/metaschema-modules",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "Module metadata handling and dependency tracking",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test:watch": "jest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pgpm/metaschema-schema": "0.26.
|
|
25
|
-
"@pgpm/verify": "0.26.
|
|
24
|
+
"@pgpm/metaschema-schema": "0.26.6",
|
|
25
|
+
"@pgpm/verify": "0.26.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"pgpm": "^4.23.2"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "a87bfe1c77bfd1c627b7f7c5a92312aefc376c94"
|
|
39
39
|
}
|
package/pgpm.plan
CHANGED
|
@@ -60,4 +60,9 @@ schemas/metaschema_modules_public/tables/merkle_store_module/table [schemas/meta
|
|
|
60
60
|
schemas/metaschema_modules_public/tables/graph_module/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/merkle_store_module/table] 2026-05-21T01:00:00Z devin <devin@cognition.ai> # add graph_module config table for FBP graph utilities on top of merkle store
|
|
61
61
|
schemas/metaschema_modules_public/tables/namespace_module/table [schemas/metaschema_modules_public/schema] 2026-05-21T02:00:00Z devin <devin@cognition.ai> # add namespace_module config table for entity-aware namespace provisioning
|
|
62
62
|
schemas/metaschema_modules_public/tables/function_module/table [schemas/metaschema_modules_public/schema] 2026-05-21T03:00:00Z devin <devin@cognition.ai> # add function_module config table for entity-aware function definitions
|
|
63
|
+
schemas/metaschema_modules_public/tables/function_invocation_module/table [schemas/metaschema_modules_public/schema] 2026-06-08T00:00:00Z devin <devin@cognition.ai> # add function_invocation_module config table for entity-scoped invocations and execution logs
|
|
64
|
+
schemas/metaschema_modules_public/tables/config_secrets_module/table [schemas/metaschema_modules_public/schema] 2026-05-29T00:00:00Z devin <devin@cognition.ai> # add entity-aware config_secrets_module (replaces config_secrets_user_module + config_secrets_org_module)
|
|
65
|
+
schemas/metaschema_modules_public/tables/user_credentials_module/table [schemas/metaschema_modules_public/schema] 2026-05-30T00:00:00Z devin <devin@cognition.ai> # add user_credentials_module for per-user bcrypt credential store (split from config_secrets_module)
|
|
66
|
+
schemas/metaschema_modules_public/tables/user_settings_module/table [schemas/metaschema_modules_public/schema] 2026-05-28T00:00:00Z devin <devin@cognition.ai> # add user_settings_module for extensible per-user preferences (1:1 with users)
|
|
63
67
|
|
|
68
|
+
schemas/metaschema_modules_public/tables/i18n_module/table [schemas/metaschema_modules_public/schema] 2026-05-28T00:00:00Z devin <devin@cognition.ai> # add i18n_module config table for internationalization settings
|