@pgpm/metaschema-modules 0.20.2 → 0.21.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/deploy/schemas/metaschema_modules_public/tables/rate_limits_module/table.sql +41 -0
- package/deploy/schemas/metaschema_modules_public/tables/sessions_module/table.sql +1 -1
- package/deploy/schemas/metaschema_modules_public/tables/storage_module/table.sql +8 -0
- package/package.json +4 -4
- package/pgpm.plan +1 -0
- package/revert/schemas/metaschema_modules_public/tables/rate_limits_module/table.sql +7 -0
- package/verify/schemas/metaschema_modules_public/tables/rate_limits_module/table.sql +7 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
-- Deploy schemas/metaschema_modules_public/tables/rate_limits_module/table to pg
|
|
2
|
+
|
|
3
|
+
-- requires: schemas/metaschema_modules_public/schema
|
|
4
|
+
|
|
5
|
+
BEGIN;
|
|
6
|
+
|
|
7
|
+
CREATE TABLE metaschema_modules_public.rate_limits_module (
|
|
8
|
+
id uuid PRIMARY KEY DEFAULT uuidv7(),
|
|
9
|
+
database_id uuid NOT NULL,
|
|
10
|
+
|
|
11
|
+
--
|
|
12
|
+
schema_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
13
|
+
rate_limit_settings_table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
14
|
+
ip_rate_limits_table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
15
|
+
rate_limits_table_id uuid NOT NULL DEFAULT uuid_nil(),
|
|
16
|
+
|
|
17
|
+
rate_limit_settings_table text NOT NULL DEFAULT 'app_settings_rate_limit',
|
|
18
|
+
ip_rate_limits_table text NOT NULL DEFAULT 'auth_ip_rate_limits',
|
|
19
|
+
rate_limits_table text NOT NULL DEFAULT 'auth_rate_limits',
|
|
20
|
+
--
|
|
21
|
+
|
|
22
|
+
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
23
|
+
CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
|
|
24
|
+
CONSTRAINT rate_limit_settings_table_fkey FOREIGN KEY (rate_limit_settings_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
25
|
+
CONSTRAINT ip_rate_limits_table_fkey FOREIGN KEY (ip_rate_limits_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
26
|
+
CONSTRAINT rate_limits_table_fkey FOREIGN KEY (rate_limits_table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE,
|
|
27
|
+
|
|
28
|
+
--
|
|
29
|
+
CONSTRAINT rate_limits_module_database_id_uniq UNIQUE(database_id)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
CREATE INDEX rate_limits_module_database_id_idx ON metaschema_modules_public.rate_limits_module ( database_id );
|
|
33
|
+
|
|
34
|
+
COMMENT ON CONSTRAINT rate_limit_settings_table_fkey
|
|
35
|
+
ON metaschema_modules_public.rate_limits_module IS E'@fieldName rateLimitSettingsTableByRateLimitSettingsTableId';
|
|
36
|
+
COMMENT ON CONSTRAINT ip_rate_limits_table_fkey
|
|
37
|
+
ON metaschema_modules_public.rate_limits_module IS E'@fieldName ipRateLimitsTableByIpRateLimitsTableId';
|
|
38
|
+
COMMENT ON CONSTRAINT rate_limits_table_fkey
|
|
39
|
+
ON metaschema_modules_public.rate_limits_module IS E'@fieldName rateLimitsTableByRateLimitsTableId';
|
|
40
|
+
|
|
41
|
+
COMMIT;
|
|
@@ -18,7 +18,7 @@ CREATE TABLE metaschema_modules_public.sessions_module (
|
|
|
18
18
|
sessions_default_expiration interval NOT NULL DEFAULT '30 days'::interval,
|
|
19
19
|
sessions_table text NOT NULL DEFAULT 'sessions',
|
|
20
20
|
session_credentials_table text NOT NULL DEFAULT 'session_credentials',
|
|
21
|
-
auth_settings_table text NOT NULL DEFAULT '
|
|
21
|
+
auth_settings_table text NOT NULL DEFAULT 'app_settings_auth',
|
|
22
22
|
--
|
|
23
23
|
|
|
24
24
|
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
|
|
@@ -25,6 +25,14 @@ CREATE TABLE metaschema_modules_public.storage_module (
|
|
|
25
25
|
-- Entity table for RLS (users table, since users and orgs share it)
|
|
26
26
|
entity_table_id uuid NULL,
|
|
27
27
|
|
|
28
|
+
-- S3 connection config (NULL = use global env/plugin defaults)
|
|
29
|
+
endpoint text NULL, -- S3-compatible API endpoint URL (MinIO, R2, DO Spaces, GCS, etc.)
|
|
30
|
+
public_url_prefix text NULL, -- Public URL prefix for generating download URLs (e.g., CDN domain)
|
|
31
|
+
provider text NULL, -- Storage provider type: 'minio', 's3', 'gcs', etc.
|
|
32
|
+
|
|
33
|
+
-- CORS configuration (NULL = use plugin defaults)
|
|
34
|
+
allowed_origins text[] NULL, -- Default CORS origins for all buckets in this database (e.g., ARRAY['https://app.example.com']). ['*'] = open/CDN mode.
|
|
35
|
+
|
|
28
36
|
-- Per-database configurable settings (NULL = use plugin defaults)
|
|
29
37
|
upload_url_expiry_seconds integer NULL, -- Presigned PUT URL expiry (default: 900 = 15 min)
|
|
30
38
|
download_url_expiry_seconds integer NULL, -- Presigned GET URL expiry (default: 3600 = 1 hour)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/metaschema-modules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
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.
|
|
25
|
-
"@pgpm/verify": "0.
|
|
24
|
+
"@pgpm/metaschema-schema": "0.21.0",
|
|
25
|
+
"@pgpm/verify": "0.21.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"pgpm": "^4.2.3"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "f79dd69a3f7bac456bbd4474262b0ccbdb3e66a3"
|
|
39
39
|
}
|
package/pgpm.plan
CHANGED
|
@@ -36,3 +36,4 @@ schemas/metaschema_modules_public/tables/blueprint_template/table [schemas/metas
|
|
|
36
36
|
schemas/metaschema_modules_public/tables/blueprint/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/blueprint_template/table] 2026-03-20T00:00:01Z Constructive <developers@constructive.io> # add blueprint table for owned executable blueprints
|
|
37
37
|
schemas/metaschema_modules_public/tables/blueprint_construction/table [schemas/metaschema_modules_public/schema schemas/metaschema_modules_public/tables/blueprint/table] 2026-03-31T00:00:00Z Constructive <developers@constructive.io> # add blueprint_construction table for construction state tracking
|
|
38
38
|
schemas/metaschema_modules_public/tables/storage_module/table [schemas/metaschema_modules_public/schema] 2026-03-24T00:00:00Z devin <devin@cognition.ai> # add storage_module config table for files and buckets
|
|
39
|
+
schemas/metaschema_modules_public/tables/rate_limits_module/table [schemas/metaschema_modules_public/schema] 2026-04-15T00:00:00Z devin <devin@cognition.ai> # add rate_limits_module for centralized throttle configuration
|