@pgpm/metaschema-modules 0.28.3 → 0.28.5

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.
Files changed (71) hide show
  1. package/Makefile +1 -1
  2. package/README.md +1 -16
  3. package/deploy/schemas/metaschema_modules_public/tables/agent_module/table.sql +4 -0
  4. package/deploy/schemas/metaschema_modules_public/tables/billing_module/table.sql +4 -0
  5. package/deploy/schemas/metaschema_modules_public/tables/certificate_module/table.sql +66 -0
  6. package/deploy/schemas/metaschema_modules_public/tables/compute_log_module/table.sql +4 -0
  7. package/deploy/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +4 -0
  8. package/deploy/schemas/metaschema_modules_public/tables/db_usage_module/table.sql +4 -0
  9. package/deploy/schemas/metaschema_modules_public/tables/events_module/table.sql +4 -0
  10. package/deploy/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +81 -0
  11. package/deploy/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +18 -0
  12. package/deploy/schemas/metaschema_modules_public/tables/graph_module/table.sql +2 -5
  13. package/deploy/schemas/metaschema_modules_public/tables/hierarchy_module/table.sql +1 -1
  14. package/deploy/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +4 -0
  15. package/deploy/schemas/metaschema_modules_public/tables/inference_log_module/table.sql +4 -0
  16. package/deploy/schemas/metaschema_modules_public/tables/invites_module/table.sql +4 -0
  17. package/deploy/schemas/metaschema_modules_public/tables/limits_module/table.sql +4 -0
  18. package/deploy/schemas/metaschema_modules_public/tables/memberships_module/table.sql +4 -0
  19. package/deploy/schemas/metaschema_modules_public/tables/merkle_store_module/table.sql +5 -0
  20. package/deploy/schemas/metaschema_modules_public/tables/namespace_module/table.sql +6 -0
  21. package/deploy/schemas/metaschema_modules_public/tables/notifications_module/table.sql +4 -0
  22. package/deploy/schemas/metaschema_modules_public/tables/permissions_module/table.sql +4 -0
  23. package/deploy/schemas/metaschema_modules_public/tables/plans_module/table.sql +4 -0
  24. package/deploy/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +58 -0
  25. package/deploy/schemas/metaschema_modules_public/tables/profiles_module/table.sql +4 -0
  26. package/deploy/schemas/metaschema_modules_public/tables/rate_limit_meters_module/table.sql +4 -0
  27. package/deploy/schemas/metaschema_modules_public/tables/route_module/table.sql +63 -0
  28. package/deploy/schemas/metaschema_modules_public/tables/server_definition_module/table.sql +70 -0
  29. package/deploy/schemas/metaschema_modules_public/tables/server_deployment_module/table.sql +83 -0
  30. package/deploy/schemas/metaschema_modules_public/tables/storage_log_module/table.sql +4 -0
  31. package/deploy/schemas/metaschema_modules_public/tables/storage_module/table.sql +7 -1
  32. package/deploy/schemas/metaschema_modules_public/tables/transfer_log_module/table.sql +4 -0
  33. package/metaschema-modules.control +1 -1
  34. package/package.json +6 -5
  35. package/pgpm.plan +8 -1
  36. package/revert/schemas/metaschema_modules_public/tables/certificate_module/table.sql +7 -0
  37. package/revert/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +1 -1
  38. package/revert/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +7 -0
  39. package/revert/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +7 -0
  40. package/revert/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +7 -0
  41. package/revert/schemas/metaschema_modules_public/tables/route_module/table.sql +7 -0
  42. package/revert/schemas/metaschema_modules_public/tables/server_definition_module/table.sql +7 -0
  43. package/revert/schemas/metaschema_modules_public/tables/server_deployment_module/table.sql +7 -0
  44. package/revert/schemas/metaschema_modules_public/tables/user_credentials_module/table.sql +1 -1
  45. package/revert/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +1 -1
  46. package/sql/{metaschema-modules--0.26.5.sql → metaschema-modules--0.15.5.sql} +634 -215
  47. package/verify/schemas/metaschema_modules_public/tables/agent_chat_module/table.sql +20 -0
  48. package/verify/schemas/metaschema_modules_public/tables/agent_module/table.sql +3 -5
  49. package/verify/schemas/metaschema_modules_public/tables/certificate_module/table.sql +7 -0
  50. package/verify/schemas/metaschema_modules_public/tables/compute_log_module/table.sql +2 -1
  51. package/verify/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +3 -5
  52. package/verify/schemas/metaschema_modules_public/tables/db_usage_module/table.sql +2 -5
  53. package/verify/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +3 -5
  54. package/verify/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +14 -0
  55. package/verify/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +9 -1
  56. package/verify/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +11 -0
  57. package/verify/schemas/metaschema_modules_public/tables/graph_module/table.sql +3 -5
  58. package/verify/schemas/metaschema_modules_public/tables/inference_log_module/table.sql +2 -1
  59. package/verify/schemas/metaschema_modules_public/tables/merkle_store_module/table.sql +3 -5
  60. package/verify/schemas/metaschema_modules_public/tables/namespace_module/table.sql +1 -3
  61. package/verify/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +14 -0
  62. package/verify/schemas/metaschema_modules_public/tables/profiles_module/table.sql +0 -1
  63. package/verify/schemas/metaschema_modules_public/tables/relation_provision/table.sql +0 -3
  64. package/verify/schemas/metaschema_modules_public/tables/route_module/table.sql +7 -0
  65. package/verify/schemas/metaschema_modules_public/tables/secure_table_provision/table.sql +0 -1
  66. package/verify/schemas/metaschema_modules_public/tables/server_definition_module/table.sql +7 -0
  67. package/verify/schemas/metaschema_modules_public/tables/server_deployment_module/table.sql +7 -0
  68. package/verify/schemas/metaschema_modules_public/tables/session_secrets_module/table.sql +3 -5
  69. package/verify/schemas/metaschema_modules_public/tables/storage_log_module/table.sql +1 -1
  70. package/verify/schemas/metaschema_modules_public/tables/transfer_log_module/table.sql +1 -1
  71. package/verify/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +1 -1
@@ -0,0 +1,70 @@
1
+ -- Deploy schemas/metaschema_modules_public/tables/server_definition_module/table to pg
2
+
3
+ -- requires: schemas/metaschema_modules_public/schema
4
+
5
+ BEGIN;
6
+
7
+ CREATE TABLE metaschema_modules_public.server_definition_module (
8
+ id uuid PRIMARY KEY DEFAULT uuidv7(),
9
+ database_id uuid NOT NULL,
10
+
11
+ -- Schema references (if uuid_nil, resolved from schema name or default)
12
+ schema_id uuid NOT NULL DEFAULT uuid_nil(),
13
+ private_schema_id uuid NOT NULL DEFAULT uuid_nil(),
14
+
15
+ -- Optional schema name overrides (used when schema IDs are not provided)
16
+ public_schema_name text,
17
+ private_schema_name text,
18
+
19
+ -- Generated table IDs (populated by the generator)
20
+ definitions_table_id uuid NOT NULL DEFAULT uuid_nil(),
21
+
22
+ -- Table names (input to the generator — bare names without scope prefix).
23
+ -- The trigger prepends the scope prefix automatically.
24
+ definitions_table_name text NOT NULL DEFAULT 'server_definitions',
25
+
26
+ -- API routing (get-or-create: if set, schema is added to this API; if NULL, no API is added)
27
+ api_name text,
28
+ private_api_name text,
29
+
30
+ -- Scope: determines the security level for this module instance.
31
+ -- Resolved to a membership_type integer at trigger time via membership_types table.
32
+ scope text NOT NULL DEFAULT 'platform',
33
+
34
+ -- Table name prefix. Auto-derived from scope by the trigger when empty.
35
+ -- Override to create multiple module instances at the same scope.
36
+ prefix text NOT NULL DEFAULT '',
37
+
38
+ -- Entity table for RLS (NULL for platform-level definitions, entity table for entity-scoped)
39
+ entity_table_id uuid NULL,
40
+
41
+ -- Configurable security policies (NULL = use defaults based on scope).
42
+ -- When provided, replaces the default policy set in apply_server_definition_security.
43
+ -- Accepts a JSON array of policy objects:
44
+ -- {"$type": "AuthzEntityMembership", "privileges": ["select", "update"], "data": {...}}
45
+ policies jsonb NULL,
46
+
47
+ -- Per-table provisions overrides from blueprint config.
48
+ -- Keys are table keys (definitions).
49
+ -- When a key is present, the module trigger skips default security for that table;
50
+ -- secure_table_provision applies the custom grants/policies instead.
51
+ provisions jsonb NULL,
52
+
53
+ -- Default permissions: permission names auto-granted to new members.
54
+ -- NULL uses the module's built-in defaults; explicit array overrides them.
55
+ default_permissions text[] DEFAULT NULL,
56
+
57
+ -- Constraints
58
+ CONSTRAINT server_definition_module_db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
59
+ CONSTRAINT server_definition_module_schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
60
+ CONSTRAINT server_definition_module_private_schema_fkey FOREIGN KEY (private_schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
61
+ CONSTRAINT server_definition_module_definitions_table_fkey FOREIGN KEY (definitions_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
62
+ CONSTRAINT server_definition_module_entity_table_fkey FOREIGN KEY (entity_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE
63
+ );
64
+
65
+ CREATE INDEX server_definition_module_database_id_idx ON metaschema_modules_public.server_definition_module ( database_id );
66
+
67
+ -- Unique constraint: one server definition module per database per scope per prefix.
68
+ CREATE UNIQUE INDEX server_definition_module_unique_scope ON metaschema_modules_public.server_definition_module ( database_id, scope, prefix );
69
+
70
+ COMMIT;
@@ -0,0 +1,83 @@
1
+ -- Deploy schemas/metaschema_modules_public/tables/server_deployment_module/table to pg
2
+
3
+ -- requires: schemas/metaschema_modules_public/schema
4
+ -- requires: schemas/metaschema_modules_public/tables/server_definition_module/table
5
+ -- requires: schemas/metaschema_modules_public/tables/namespace_module/table
6
+
7
+ BEGIN;
8
+
9
+ CREATE TABLE metaschema_modules_public.server_deployment_module (
10
+ id uuid PRIMARY KEY DEFAULT uuidv7(),
11
+ database_id uuid NOT NULL,
12
+
13
+ -- Schema references (if uuid_nil, resolved from schema name or default)
14
+ schema_id uuid NOT NULL DEFAULT uuid_nil(),
15
+ private_schema_id uuid NOT NULL DEFAULT uuid_nil(),
16
+
17
+ -- Optional schema name overrides (used when schema IDs are not provided)
18
+ public_schema_name text,
19
+ private_schema_name text,
20
+
21
+ -- Generated table IDs (populated by the generator)
22
+ deployments_table_id uuid NOT NULL DEFAULT uuid_nil(),
23
+ deployment_events_table_id uuid NOT NULL DEFAULT uuid_nil(),
24
+
25
+ -- Table names (input to the generator — bare names without scope prefix).
26
+ -- The trigger prepends the scope prefix automatically.
27
+ deployments_table_name text NOT NULL DEFAULT 'server_deployments',
28
+ deployment_events_table_name text NOT NULL DEFAULT 'server_deployment_events',
29
+
30
+ -- API routing (get-or-create: if set, schema is added to this API; if NULL, no API is added)
31
+ api_name text,
32
+ private_api_name text,
33
+
34
+ -- Scope: determines the security level for this module instance.
35
+ -- Resolved to a membership_type integer at trigger time via membership_types table.
36
+ scope text NOT NULL DEFAULT 'app',
37
+
38
+ -- Table name prefix. Auto-derived from scope by the trigger when empty.
39
+ -- Override to create multiple module instances at the same scope.
40
+ prefix text NOT NULL DEFAULT '',
41
+
42
+ -- Entity table for RLS (NULL for app-level deployments, entity table for entity-scoped)
43
+ entity_table_id uuid NULL,
44
+
45
+ -- FK to server_definition_module: which server definitions table deployments reference
46
+ server_definition_module_id uuid NULL,
47
+
48
+ -- FK to namespace_module: which namespaces table deployments reference
49
+ namespace_module_id uuid NULL,
50
+
51
+ -- Configurable security policies (NULL = use defaults based on scope).
52
+ -- When provided, replaces the default policy set in apply_server_deployment_security.
53
+ -- Accepts a JSON array of policy objects:
54
+ -- {"$type": "AuthzEntityMembership", "privileges": ["select", "update"], "data": {...}}
55
+ policies jsonb NULL,
56
+
57
+ -- Per-table provisions overrides from blueprint config.
58
+ -- Keys are table keys (deployments, deployment_events).
59
+ -- When a key is present, the module trigger skips default security for that table;
60
+ -- secure_table_provision applies the custom grants/policies instead.
61
+ provisions jsonb NULL,
62
+
63
+ -- Default permissions: permission names auto-granted to new members.
64
+ -- NULL uses the module's built-in defaults; explicit array overrides them.
65
+ default_permissions text[] DEFAULT NULL,
66
+
67
+ -- Constraints
68
+ CONSTRAINT server_deployment_module_db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
69
+ CONSTRAINT server_deployment_module_schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
70
+ CONSTRAINT server_deployment_module_private_schema_fkey FOREIGN KEY (private_schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
71
+ CONSTRAINT server_deployment_module_deployments_table_fkey FOREIGN KEY (deployments_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
72
+ CONSTRAINT server_deployment_module_events_table_fkey FOREIGN KEY (deployment_events_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
73
+ CONSTRAINT server_deployment_module_entity_table_fkey FOREIGN KEY (entity_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
74
+ CONSTRAINT server_deployment_module_server_def_module_fkey FOREIGN KEY (server_definition_module_id) REFERENCES metaschema_modules_public.server_definition_module (id) ON DELETE SET NULL,
75
+ CONSTRAINT server_deployment_module_namespace_module_fkey FOREIGN KEY (namespace_module_id) REFERENCES metaschema_modules_public.namespace_module (id) ON DELETE SET NULL
76
+ );
77
+
78
+ CREATE INDEX server_deployment_module_database_id_idx ON metaschema_modules_public.server_deployment_module ( database_id );
79
+
80
+ -- Unique constraint: one server deployment module per database per scope per prefix.
81
+ CREATE UNIQUE INDEX server_deployment_module_unique_scope ON metaschema_modules_public.server_deployment_module ( database_id, scope, prefix );
82
+
83
+ COMMIT;
@@ -11,6 +11,10 @@ CREATE TABLE metaschema_modules_public.storage_log_module (
11
11
  schema_id uuid NOT NULL DEFAULT uuid_nil(),
12
12
  private_schema_id uuid NOT NULL DEFAULT uuid_nil(),
13
13
 
14
+ -- Schema name overrides: when set, the trigger uses these instead of hardcoded defaults.
15
+ public_schema_name text,
16
+ private_schema_name text,
17
+
14
18
  -- Storage log table (partitioned by snapshot_at)
15
19
  storage_log_table_id uuid NOT NULL DEFAULT uuid_nil(),
16
20
  storage_log_table_name text NOT NULL DEFAULT '',
@@ -12,6 +12,11 @@ CREATE TABLE metaschema_modules_public.storage_module (
12
12
  schema_id uuid NOT NULL DEFAULT uuid_nil(),
13
13
  private_schema_id uuid NOT NULL DEFAULT uuid_nil(),
14
14
 
15
+ -- Schema name overrides: when set, the trigger uses these instead of hardcoded defaults.
16
+ -- Enables putting storage tables into a dedicated schema (e.g. per-entity isolation).
17
+ public_schema_name text,
18
+ private_schema_name text,
19
+
15
20
  -- Generated table IDs (populated by the generator)
16
21
  buckets_table_id uuid NOT NULL DEFAULT uuid_nil(),
17
22
  files_table_id uuid NOT NULL DEFAULT uuid_nil(),
@@ -92,7 +97,8 @@ CREATE TABLE metaschema_modules_public.storage_module (
92
97
 
93
98
  -- Constraints
94
99
  -- API routing (configurable per-module)
95
- api_name text DEFAULT 'admin',
100
+ -- NULL = no automatic API routing (caller must route explicitly or use entity_type_provision).
101
+ api_name text DEFAULT NULL,
96
102
  private_api_name text DEFAULT NULL,
97
103
 
98
104
  CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
@@ -11,6 +11,10 @@ CREATE TABLE metaschema_modules_public.transfer_log_module (
11
11
  schema_id uuid NOT NULL DEFAULT uuid_nil(),
12
12
  private_schema_id uuid NOT NULL DEFAULT uuid_nil(),
13
13
 
14
+ -- Schema name overrides: when set, the trigger uses these instead of hardcoded defaults.
15
+ public_schema_name text,
16
+ private_schema_name text,
17
+
14
18
  -- Transfer log table (partitioned by created_at)
15
19
  transfer_log_table_id uuid NOT NULL DEFAULT uuid_nil(),
16
20
  transfer_log_table_name text NOT NULL DEFAULT '',
@@ -1,6 +1,6 @@
1
1
  # metaschema-modules extension
2
2
  comment = 'metaschema-modules extension'
3
- default_version = '0.26.5'
3
+ default_version = '0.15.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.28.3",
3
+ "version": "0.28.5",
4
4
  "description": "Module metadata handling and dependency tracking",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,11 +21,12 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/metaschema-schema": "0.28.3",
25
- "@pgpm/verify": "0.28.3"
24
+ "@pgpm/metaschema-schema": "0.28.4",
25
+ "@pgpm/verify": "0.28.4"
26
26
  },
27
27
  "devDependencies": {
28
- "pgpm": "^4.23.2"
28
+ "constructive-test": "^0.4.1",
29
+ "pgpm": "^4.28.7"
29
30
  },
30
31
  "repository": {
31
32
  "type": "git",
@@ -35,5 +36,5 @@
35
36
  "bugs": {
36
37
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
37
38
  },
38
- "gitHead": "ebab5300b911578a615bf8d267fe7c5c244caea3"
39
+ "gitHead": "1ea2567e22a81f4d0b2bea83c3e1289406015e58"
39
40
  }
package/pgpm.plan CHANGED
@@ -58,6 +58,7 @@ schemas/metaschema_modules_public/tables/db_usage_module/table [schemas/metasche
58
58
  schemas/metaschema_modules_public/tables/agent_module/table [schemas/metaschema_modules_public/schema] 2026-05-12T23:01:00Z devin <devin@cognition.ai> # add agent_module config table for AI agent conversation threads, messages, and tasks
59
59
  schemas/metaschema_modules_public/tables/merkle_store_module/table [schemas/metaschema_modules_public/schema] 2026-05-21T00:00:00Z devin <devin@cognition.ai> # add merkle_store_module config table for content-addressed Merkle object stores
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
+ schemas/metaschema_modules_public/tables/graph_execution_module/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/graph_module/table] 2026-06-12T00:00:00Z devin <devin@cognition.ai> # add graph_execution_module config table for partitioned execution state + merkle tree time-travel debugging
61
62
  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
63
  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
64
  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
@@ -66,4 +67,10 @@ schemas/metaschema_modules_public/tables/user_credentials_module/table [schemas/
66
67
  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)
67
68
 
68
69
  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
69
- schemas/metaschema_modules_public/tables/graph_execution_module/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/graph_module/table] 2026-06-12T00:00:00Z devin <devin@cognition.ai> # add graph_execution_module config table for partitioned execution state + merkle tree time-travel debugging
70
+ schemas/metaschema_modules_public/tables/function_deployment_module/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/function_module/table schemas/metaschema_modules_public/tables/namespace_module/table] 2026-06-11T06:00:00Z devin <devin@cognition.ai> # add function_deployment_module config table for function-to-namespace deployment binding
71
+ schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database [schemas/metaschema_modules_public/tables/function_module/table] 2026-06-11T08:00:00Z devin <devin@cognition.ai> # enforce at most one platform-scope function_module (unambiguous resolveDatabaseId)
72
+ schemas/metaschema_modules_public/tables/principal_auth_module/table [schemas/metaschema_modules_public/schema] 2026-06-24T11:15:00Z devin <devin@cognition.ai> # add principal_auth_module config table for scoped API keys and agent principals
73
+ schemas/metaschema_modules_public/tables/server_definition_module/table [schemas/metaschema_modules_public/schema] 2026-06-30T00:00:00Z devin <devin@cognition.ai> # add server_definition_module config table for persistent server definitions (GraphQL, agentic, WebSocket, etc.)
74
+ schemas/metaschema_modules_public/tables/server_deployment_module/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/server_definition_module/table schemas/metaschema_modules_public/tables/namespace_module/table] 2026-06-30T00:00:01Z devin <devin@cognition.ai> # add server_deployment_module config table for server-to-namespace deployment binding
75
+ schemas/metaschema_modules_public/tables/route_module/table [schemas/metaschema_modules_public/schema] 2026-06-30T00:00:02Z devin <devin@cognition.ai> # add route_module config table for gateway route rules (domain+path to backend target)
76
+ schemas/metaschema_modules_public/tables/certificate_module/table [schemas/metaschema_modules_public/schema] 2026-06-30T00:00:03Z devin <devin@cognition.ai> # add certificate_module config table for TLS certificate lifecycle management
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/certificate_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE IF EXISTS metaschema_modules_public.certificate_module;
6
+
7
+ COMMIT;
@@ -2,6 +2,6 @@
2
2
 
3
3
  BEGIN;
4
4
 
5
- DROP TABLE IF EXISTS metaschema_modules_public.config_secrets_module;
5
+ DROP TABLE metaschema_modules_public.config_secrets_module;
6
6
 
7
7
  COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/function_deployment_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE IF EXISTS metaschema_modules_public.function_deployment_module;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database from pg
2
+
3
+ BEGIN;
4
+
5
+ -- No-op: nothing to revert (deploy was a no-op documentation migration)
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/principal_auth_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE metaschema_modules_public.principal_auth_module;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/route_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE IF EXISTS metaschema_modules_public.route_module;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/server_definition_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE IF EXISTS metaschema_modules_public.server_definition_module;
6
+
7
+ COMMIT;
@@ -0,0 +1,7 @@
1
+ -- Revert schemas/metaschema_modules_public/tables/server_deployment_module/table from pg
2
+
3
+ BEGIN;
4
+
5
+ DROP TABLE IF EXISTS metaschema_modules_public.server_deployment_module;
6
+
7
+ COMMIT;
@@ -2,6 +2,6 @@
2
2
 
3
3
  BEGIN;
4
4
 
5
- DROP TABLE IF EXISTS metaschema_modules_public.user_credentials_module;
5
+ DROP TABLE metaschema_modules_public.user_credentials_module;
6
6
 
7
7
  COMMIT;
@@ -2,6 +2,6 @@
2
2
 
3
3
  BEGIN;
4
4
 
5
- DROP TABLE IF EXISTS metaschema_modules_public.user_settings_module;
5
+ DROP TABLE metaschema_modules_public.user_settings_module;
6
6
 
7
7
  COMMIT;