⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: add user-based Gotify notifications
Tin28bcfcfd5c17
diff --git a/apps/api/drizzle/0021_tiny_bill_hollister.sql b/apps/api/drizzle/0021_tiny_bill_hollister.sqlnew file mode 100644index 000000000..da5dbebe1--- /dev/null+++ b/apps/api/drizzle/0021_tiny_bill_hollister.sql@@ -0,0 +1,4 @@+ALTER TABLE "user_notification_preference" ADD COLUMN "gotify_enabled" boolean DEFAULT false NOT NULL;--> statement-breakpoint+ALTER TABLE "user_notification_preference" ADD COLUMN "gotify_server_url" text;--> statement-breakpoint+ALTER TABLE "user_notification_preference" ADD COLUMN "gotify_token" text;--> statement-breakpoint+ALTER TABLE "user_notification_workspace_rule" ADD COLUMN "gotify_enabled" boolean DEFAULT false NOT NULL;\ No newline at end of filediff --git a/apps/api/drizzle/meta/0021_snapshot.json b/apps/api/drizzle/meta/0021_snapshot.jsonnew file mode 100644index 000000000..99dde050d--- /dev/null+++ b/apps/api/drizzle/meta/0021_snapshot.json@@ -0,0 +1,2880 @@+{+ "id": "0bc097ca-a6c6-4555-930d-a15f045eb3e8",+ "prevId": "745512c9-3ace-4437-abaf-697e303b6d2a",+ "version": "7",+ "dialect": "postgresql",+ "tables": {+ "public.account": {+ "name": "account",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "account_id": {+ "name": "account_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "provider_id": {+ "name": "provider_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "access_token_expires_at": {+ "name": "access_token_expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "refresh_token_expires_at": {+ "name": "refresh_token_expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {+ "account_userId_idx": {+ "name": "account_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "account_user_id_user_id_fk": {+ "name": "account_user_id_user_id_fk",+ "tableFrom": "account",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.activity": {+ "name": "activity",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "event_data": {+ "name": "event_data",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": false+ },+ "external_user_name": {+ "name": "external_user_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_user_avatar": {+ "name": "external_user_avatar",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_source": {+ "name": "external_source",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "external_url": {+ "name": "external_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "activity_task_id_task_id_fk": {+ "name": "activity_task_id_task_id_fk",+ "tableFrom": "activity",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "activity_user_id_user_id_fk": {+ "name": "activity_user_id_user_id_fk",+ "tableFrom": "activity",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.apikey": {+ "name": "apikey",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "config_id": {+ "name": "config_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'default'"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "start": {+ "name": "start",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "reference_id": {+ "name": "reference_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "prefix": {+ "name": "prefix",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "key": {+ "name": "key",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "refill_interval": {+ "name": "refill_interval",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "refill_amount": {+ "name": "refill_amount",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "last_refill_at": {+ "name": "last_refill_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "enabled": {+ "name": "enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "rate_limit_enabled": {+ "name": "rate_limit_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "rate_limit_time_window": {+ "name": "rate_limit_time_window",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 86400000+ },+ "rate_limit_max": {+ "name": "rate_limit_max",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 10+ },+ "request_count": {+ "name": "request_count",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "remaining": {+ "name": "remaining",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "last_request": {+ "name": "last_request",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "permissions": {+ "name": "permissions",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "apikey_configId_idx": {+ "name": "apikey_configId_idx",+ "columns": [+ {+ "expression": "config_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_key_idx": {+ "name": "apikey_key_idx",+ "columns": [+ {+ "expression": "key",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_referenceId_idx": {+ "name": "apikey_referenceId_idx",+ "columns": [+ {+ "expression": "reference_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "apikey_userId_idx": {+ "name": "apikey_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "apikey_reference_id_user_id_fk": {+ "name": "apikey_reference_id_user_id_fk",+ "tableFrom": "apikey",+ "tableTo": "user",+ "columnsFrom": ["reference_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "apikey_user_id_user_id_fk": {+ "name": "apikey_user_id_user_id_fk",+ "tableFrom": "apikey",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.asset": {+ "name": "asset",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "activity_id": {+ "name": "activity_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "object_key": {+ "name": "object_key",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "filename": {+ "name": "filename",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "mime_type": {+ "name": "mime_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "size": {+ "name": "size",+ "type": "integer",+ "primaryKey": false,+ "notNull": true+ },+ "kind": {+ "name": "kind",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'image'"+ },+ "surface": {+ "name": "surface",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'description'"+ },+ "created_by": {+ "name": "created_by",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "asset_workspaceId_idx": {+ "name": "asset_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_projectId_idx": {+ "name": "asset_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_taskId_idx": {+ "name": "asset_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "asset_activityId_idx": {+ "name": "asset_activityId_idx",+ "columns": [+ {+ "expression": "activity_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "asset_workspace_id_workspace_id_fk": {+ "name": "asset_workspace_id_workspace_id_fk",+ "tableFrom": "asset",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_project_id_project_id_fk": {+ "name": "asset_project_id_project_id_fk",+ "tableFrom": "asset",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_task_id_task_id_fk": {+ "name": "asset_task_id_task_id_fk",+ "tableFrom": "asset",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_activity_id_activity_id_fk": {+ "name": "asset_activity_id_activity_id_fk",+ "tableFrom": "asset",+ "tableTo": "activity",+ "columnsFrom": ["activity_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "asset_created_by_user_id_fk": {+ "name": "asset_created_by_user_id_fk",+ "tableFrom": "asset",+ "tableTo": "user",+ "columnsFrom": ["created_by"],+ "columnsTo": ["id"],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "asset_object_key_unique": {+ "name": "asset_object_key_unique",+ "nullsNotDistinct": false,+ "columns": ["object_key"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.column": {+ "name": "column",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "default": 0+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "is_final": {+ "name": "is_final",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "column_projectId_idx": {+ "name": "column_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "column_project_id_project_id_fk": {+ "name": "column_project_id_project_id_fk",+ "tableFrom": "column",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.comment": {+ "name": "comment",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "comment_task_idx": {+ "name": "comment_task_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "comment_user_idx": {+ "name": "comment_user_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "comment_task_id_task_id_fk": {+ "name": "comment_task_id_task_id_fk",+ "tableFrom": "comment",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "comment_user_id_user_id_fk": {+ "name": "comment_user_id_user_id_fk",+ "tableFrom": "comment",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.external_link": {+ "name": "external_link",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "integration_id": {+ "name": "integration_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "resource_type": {+ "name": "resource_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "external_id": {+ "name": "external_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "url": {+ "name": "url",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "external_link_taskId_idx": {+ "name": "external_link_taskId_idx",+ "columns": [+ {+ "expression": "task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_integrationId_idx": {+ "name": "external_link_integrationId_idx",+ "columns": [+ {+ "expression": "integration_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_externalId_idx": {+ "name": "external_link_externalId_idx",+ "columns": [+ {+ "expression": "external_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "external_link_resourceType_idx": {+ "name": "external_link_resourceType_idx",+ "columns": [+ {+ "expression": "resource_type",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "external_link_task_id_task_id_fk": {+ "name": "external_link_task_id_task_id_fk",+ "tableFrom": "external_link",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "external_link_integration_id_integration_id_fk": {+ "name": "external_link_integration_id_integration_id_fk",+ "tableFrom": "external_link",+ "tableTo": "integration",+ "columnsFrom": ["integration_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.github_integration": {+ "name": "github_integration",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "repository_owner": {+ "name": "repository_owner",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "repository_name": {+ "name": "repository_name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "installation_id": {+ "name": "installation_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "github_integration_project_id_project_id_fk": {+ "name": "github_integration_project_id_project_id_fk",+ "tableFrom": "github_integration",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "github_integration_project_id_unique": {+ "name": "github_integration_project_id_unique",+ "nullsNotDistinct": false,+ "columns": ["project_id"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.integration": {+ "name": "integration",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "config": {+ "name": "config",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "integration_projectId_idx": {+ "name": "integration_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "integration_type_idx": {+ "name": "integration_type_idx",+ "columns": [+ {+ "expression": "type",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "integration_project_id_project_id_fk": {+ "name": "integration_project_id_project_id_fk",+ "tableFrom": "integration",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "integration_project_type_unique": {+ "name": "integration_project_type_unique",+ "nullsNotDistinct": false,+ "columns": ["project_id", "type"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.invitation": {+ "name": "invitation",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "team_id": {+ "name": "team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'pending'"+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "inviter_id": {+ "name": "inviter_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {+ "invitation_workspaceId_idx": {+ "name": "invitation_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "invitation_email_idx": {+ "name": "invitation_email_idx",+ "columns": [+ {+ "expression": "email",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "invitation_workspace_id_workspace_id_fk": {+ "name": "invitation_workspace_id_workspace_id_fk",+ "tableFrom": "invitation",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "invitation_inviter_id_user_id_fk": {+ "name": "invitation_inviter_id_user_id_fk",+ "tableFrom": "invitation",+ "tableTo": "user",+ "columnsFrom": ["inviter_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.label": {+ "name": "label",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "label_task_id_task_id_fk": {+ "name": "label_task_id_task_id_fk",+ "tableFrom": "label",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "label_workspace_id_workspace_id_fk": {+ "name": "label_workspace_id_workspace_id_fk",+ "tableFrom": "label",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.notification": {+ "name": "notification",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'info'"+ },+ "event_data": {+ "name": "event_data",+ "type": "jsonb",+ "primaryKey": false,+ "notNull": false+ },+ "is_read": {+ "name": "is_read",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "resource_id": {+ "name": "resource_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "resource_type": {+ "name": "resource_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp with time zone",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "notification_user_id_user_id_fk": {+ "name": "notification_user_id_user_id_fk",+ "tableFrom": "notification",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.project": {+ "name": "project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "default": "'Layout'"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "is_public": {+ "name": "is_public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "archived_at": {+ "name": "archived_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "project_workspace_id_workspace_id_fk": {+ "name": "project_workspace_id_workspace_id_fk",+ "tableFrom": "project",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.session": {+ "name": "session",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "ip_address": {+ "name": "ip_address",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "user_agent": {+ "name": "user_agent",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "active_organization_id": {+ "name": "active_organization_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "active_team_id": {+ "name": "active_team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "session_userId_idx": {+ "name": "session_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "session_user_id_user_id_fk": {+ "name": "session_user_id_user_id_fk",+ "tableFrom": "session",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "session_token_unique": {+ "name": "session_token_unique",+ "nullsNotDistinct": false,+ "columns": ["token"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.task_relation": {+ "name": "task_relation",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "source_task_id": {+ "name": "source_task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "target_task_id": {+ "name": "target_task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "relation_type": {+ "name": "relation_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "task_relation_source_idx": {+ "name": "task_relation_source_idx",+ "columns": [+ {+ "expression": "source_task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "task_relation_target_idx": {+ "name": "task_relation_target_idx",+ "columns": [+ {+ "expression": "target_task_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "task_relation_source_task_id_task_id_fk": {+ "name": "task_relation_source_task_id_task_id_fk",+ "tableFrom": "task_relation",+ "tableTo": "task",+ "columnsFrom": ["source_task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "task_relation_target_task_id_task_id_fk": {+ "name": "task_relation_target_task_id_task_id_fk",+ "tableFrom": "task_relation",+ "tableTo": "task",+ "columnsFrom": ["target_task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.task": {+ "name": "task",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "position": {+ "name": "position",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "number": {+ "name": "number",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 1+ },+ "assignee_id": {+ "name": "assignee_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'to-do'"+ },+ "column_id": {+ "name": "column_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "priority": {+ "name": "priority",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "default": "'low'"+ },+ "start_date": {+ "name": "start_date",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "due_date": {+ "name": "due_date",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "task_project_id_project_id_fk": {+ "name": "task_project_id_project_id_fk",+ "tableFrom": "task",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "task_assignee_id_user_id_fk": {+ "name": "task_assignee_id_user_id_fk",+ "tableFrom": "task",+ "tableTo": "user",+ "columnsFrom": ["assignee_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "task_column_id_column_id_fk": {+ "name": "task_column_id_column_id_fk",+ "tableFrom": "task",+ "tableTo": "column",+ "columnsFrom": ["column_id"],+ "columnsTo": ["id"],+ "onDelete": "set null",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.team": {+ "name": "team",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "team_workspaceId_idx": {+ "name": "team_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "team_workspace_id_workspace_id_fk": {+ "name": "team_workspace_id_workspace_id_fk",+ "tableFrom": "team",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.team_member": {+ "name": "team_member",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "team_id": {+ "name": "team_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ }+ },+ "indexes": {+ "teamMember_teamId_idx": {+ "name": "teamMember_teamId_idx",+ "columns": [+ {+ "expression": "team_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "teamMember_userId_idx": {+ "name": "teamMember_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "team_member_team_id_team_id_fk": {+ "name": "team_member_team_id_team_id_fk",+ "tableFrom": "team_member",+ "tableTo": "team",+ "columnsFrom": ["team_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "team_member_user_id_user_id_fk": {+ "name": "team_member_user_id_user_id_fk",+ "tableFrom": "team_member",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.time_entry": {+ "name": "time_entry",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "start_time": {+ "name": "start_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "end_time": {+ "name": "end_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "duration": {+ "name": "duration",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "time_entry_task_id_task_id_fk": {+ "name": "time_entry_task_id_task_id_fk",+ "tableFrom": "time_entry",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "time_entry_user_id_user_id_fk": {+ "name": "time_entry_user_id_user_id_fk",+ "tableFrom": "time_entry",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user": {+ "name": "user",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "email_verified": {+ "name": "email_verified",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true+ },+ "image": {+ "name": "image",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "locale": {+ "name": "locale",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "is_anonymous": {+ "name": "is_anonymous",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_email_unique": {+ "name": "user_email_unique",+ "nullsNotDistinct": false,+ "columns": ["email"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_preference": {+ "name": "user_notification_preference",+ "schema": "",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "email_enabled": {+ "name": "email_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_enabled": {+ "name": "ntfy_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_server_url": {+ "name": "ntfy_server_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "ntfy_topic": {+ "name": "ntfy_topic",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "ntfy_token": {+ "name": "ntfy_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "gotify_enabled": {+ "name": "gotify_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "gotify_server_url": {+ "name": "gotify_server_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "gotify_token": {+ "name": "gotify_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "webhook_enabled": {+ "name": "webhook_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "webhook_url": {+ "name": "webhook_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "webhook_secret": {+ "name": "webhook_secret",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "user_notification_preference_user_id_user_id_fk": {+ "name": "user_notification_preference_user_id_user_id_fk",+ "tableFrom": "user_notification_preference",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_workspace_project": {+ "name": "user_notification_workspace_project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_rule_id": {+ "name": "workspace_rule_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "user_notification_workspace_project_ruleId_idx": {+ "name": "user_notification_workspace_project_ruleId_idx",+ "columns": [+ {+ "expression": "workspace_rule_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "user_notification_workspace_project_projectId_idx": {+ "name": "user_notification_workspace_project_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "user_notification_workspace_project_workspace_rule_id_user_notification_workspace_rule_id_fk": {+ "name": "user_notification_workspace_project_workspace_rule_id_user_notification_workspace_rule_id_fk",+ "tableFrom": "user_notification_workspace_project",+ "tableTo": "user_notification_workspace_rule",+ "columnsFrom": ["workspace_rule_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "user_notification_workspace_project_project_id_project_id_fk": {+ "name": "user_notification_workspace_project_project_id_project_id_fk",+ "tableFrom": "user_notification_workspace_project",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_notification_workspace_project_rule_project_unique": {+ "name": "user_notification_workspace_project_rule_project_unique",+ "nullsNotDistinct": false,+ "columns": ["workspace_rule_id", "project_id"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user_notification_workspace_rule": {+ "name": "user_notification_workspace_rule",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "is_active": {+ "name": "is_active",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": true+ },+ "email_enabled": {+ "name": "email_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "ntfy_enabled": {+ "name": "ntfy_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "gotify_enabled": {+ "name": "gotify_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "webhook_enabled": {+ "name": "webhook_enabled",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "default": false+ },+ "project_mode": {+ "name": "project_mode",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'all'"+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "user_notification_workspace_rule_userId_idx": {+ "name": "user_notification_workspace_rule_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "user_notification_workspace_rule_workspaceId_idx": {+ "name": "user_notification_workspace_rule_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "user_notification_workspace_rule_user_id_user_id_fk": {+ "name": "user_notification_workspace_rule_user_id_user_id_fk",+ "tableFrom": "user_notification_workspace_rule",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "user_notification_workspace_rule_workspace_id_workspace_id_fk": {+ "name": "user_notification_workspace_rule_workspace_id_workspace_id_fk",+ "tableFrom": "user_notification_workspace_rule",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "user_notification_workspace_rule_user_workspace_unique": {+ "name": "user_notification_workspace_rule_user_workspace_unique",+ "nullsNotDistinct": false,+ "columns": ["user_id", "workspace_id"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.verification": {+ "name": "verification",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "identifier": {+ "name": "identifier",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "value": {+ "name": "value",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "expires_at": {+ "name": "expires_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "verification_identifier_idx": {+ "name": "verification_identifier_idx",+ "columns": [+ {+ "expression": "identifier",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workflow_rule": {+ "name": "workflow_rule",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "project_id": {+ "name": "project_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "integration_type": {+ "name": "integration_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "event_type": {+ "name": "event_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "column_id": {+ "name": "column_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {+ "workflow_rule_projectId_idx": {+ "name": "workflow_rule_projectId_idx",+ "columns": [+ {+ "expression": "project_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workflow_rule_project_id_project_id_fk": {+ "name": "workflow_rule_project_id_project_id_fk",+ "tableFrom": "workflow_rule",+ "tableTo": "project",+ "columnsFrom": ["project_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "workflow_rule_column_id_column_id_fk": {+ "name": "workflow_rule_column_id_column_id_fk",+ "tableFrom": "workflow_rule",+ "tableTo": "column",+ "columnsFrom": ["column_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace": {+ "name": "workspace",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "logo": {+ "name": "logo",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {+ "workspace_slug_unique": {+ "name": "workspace_slug_unique",+ "nullsNotDistinct": false,+ "columns": ["slug"]+ }+ },+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.workspace_member": {+ "name": "workspace_member",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "default": "'member'"+ },+ "joined_at": {+ "name": "joined_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {+ "workspace_member_workspaceId_idx": {+ "name": "workspace_member_workspaceId_idx",+ "columns": [+ {+ "expression": "workspace_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ },+ "workspace_member_userId_idx": {+ "name": "workspace_member_userId_idx",+ "columns": [+ {+ "expression": "user_id",+ "isExpression": false,+ "asc": true,+ "nulls": "last"+ }+ ],+ "isUnique": false,+ "concurrently": false,+ "method": "btree",+ "with": {}+ }+ },+ "foreignKeys": {+ "workspace_member_workspace_id_workspace_id_fk": {+ "name": "workspace_member_workspace_id_workspace_id_fk",+ "tableFrom": "workspace_member",+ "tableTo": "workspace",+ "columnsFrom": ["workspace_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "workspace_member_user_id_user_id_fk": {+ "name": "workspace_member_user_id_user_id_fk",+ "tableFrom": "workspace_member",+ "tableTo": "user",+ "columnsFrom": ["user_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ }+ },+ "enums": {},+ "schemas": {},+ "sequences": {},+ "roles": {},+ "policies": {},+ "views": {},+ "_meta": {+ "columns": {},+ "schemas": {},+ "tables": {}+ }+}diff --git a/apps/api/drizzle/meta/_journal.json b/apps/api/drizzle/meta/_journal.jsonindex 7f4e8b1e8..59309dd19 100644--- a/apps/api/drizzle/meta/_journal.json+++ b/apps/api/drizzle/meta/_journal.json@@ -148,6 +148,13 @@"when": 1775035770523,"tag": "0020_careful_shiver_man","breakpoints": true+ },+ {+ "idx": 21,+ "version": "7",+ "when": 1775037521104,+ "tag": "0021_tiny_bill_hollister",+ "breakpoints": true}]}diff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.tsindex 428941f7d..e1a9f5017 100644--- a/apps/api/src/database/schema.ts+++ b/apps/api/src/database/schema.ts@@ -443,6 +443,9 @@ export const userNotificationPreferenceTable = pgTable(ntfyServerUrl: text("ntfy_server_url"),ntfyTopic: text("ntfy_topic"),ntfyToken: text("ntfy_token"),+ gotifyEnabled: boolean("gotify_enabled").default(false).notNull(),+ gotifyServerUrl: text("gotify_server_url"),+ gotifyToken: text("gotify_token"),webhookEnabled: boolean("webhook_enabled").default(false).notNull(),webhookUrl: text("webhook_url"),webhookSecret: text("webhook_secret"),@@ -475,6 +478,7 @@ export const userNotificationWorkspaceRuleTable = pgTable(isActive: boolean("is_active").default(true).notNull(),emailEnabled: boolean("email_enabled").default(false).notNull(),ntfyEnabled: boolean("ntfy_enabled").default(false).notNull(),+ gotifyEnabled: boolean("gotify_enabled").default(false).notNull(),webhookEnabled: boolean("webhook_enabled").default(false).notNull(),projectMode: text("project_mode").default("all").notNull(),createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),diff --git a/apps/api/src/notification-preferences/delivery.ts b/apps/api/src/notification-preferences/delivery.tsindex 0985ddce0..17fe6e616 100644--- a/apps/api/src/notification-preferences/delivery.ts+++ b/apps/api/src/notification-preferences/delivery.ts@@ -215,6 +215,51 @@ async function sendNtfyNotification(input: {}}+async function sendGotifyNotification(input: {+ serverUrl: string;+ token: string;+ title: string;+ body: string;+ clickUrl?: string | null;+}) {+ await assertPublicWebhookDestination(input.serverUrl);++ const response = await fetch(+ `${input.serverUrl.replace(/\/+$/, "")}/message?token=${encodeURIComponent(+ input.token,+ )}`,+ {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ title: input.title,+ message: input.body,+ priority: 5,+ extras: input.clickUrl+ ? {+ "client::notification": {+ click: {+ url: input.clickUrl,+ },+ },+ "client::display": {+ contentType: "text/plain",+ },+ }+ : undefined,+ }),+ },+ );++ if (!response.ok) {+ throw new Error(+ `Gotify delivery failed (${response.status}): ${await response.text()}`,+ );+ }+}+async function sendWebhookNotification(input: {webhookUrl: string;secret?: string | null;@@ -385,6 +430,23 @@ export async function deliverNotification();}+ if (+ preference.gotifyEnabled &&+ preference.gotifyServerUrl &&+ preference.gotifyToken &&+ rule.gotifyEnabled+ ) {+ deliveries.push(+ sendGotifyNotification({+ serverUrl: preference.gotifyServerUrl,+ token: preference.gotifyToken,+ title: content.title,+ body: content.body,+ clickUrl: context.taskUrl,+ }),+ );+ }+if (preference.webhookEnabled &&preference.webhookUrl &&diff --git a/apps/api/src/notification-preferences/index.ts b/apps/api/src/notification-preferences/index.tsindex 711fba234..9cadda17c 100644--- a/apps/api/src/notification-preferences/index.ts+++ b/apps/api/src/notification-preferences/index.ts@@ -13,6 +13,7 @@ const workspaceRuleSchema = v.object({isActive: v.boolean(),emailEnabled: v.boolean(),ntfyEnabled: v.boolean(),+ gotifyEnabled: v.boolean(),webhookEnabled: v.boolean(),projectMode: v.picklist(["all", "selected"] as const),selectedProjectIds: v.optional(v.array(v.string())),@@ -76,6 +77,9 @@ notificationPreferencesntfyServerUrl: v.optional(v.nullable(v.string())),ntfyTopic: v.optional(v.nullable(v.string())),ntfyToken: v.optional(v.nullable(v.string())),+ gotifyEnabled: v.optional(v.boolean()),+ gotifyServerUrl: v.optional(v.nullable(v.string())),+ gotifyToken: v.optional(v.nullable(v.string())),webhookEnabled: v.optional(v.boolean()),webhookUrl: v.optional(v.nullable(v.string())),webhookSecret: v.optional(v.nullable(v.string())),diff --git a/apps/api/src/notification-preferences/service.ts b/apps/api/src/notification-preferences/service.tsindex 3312f17c0..65842d405 100644--- a/apps/api/src/notification-preferences/service.ts+++ b/apps/api/src/notification-preferences/service.ts@@ -21,6 +21,11 @@ export type NotificationPreferenceResponse = {ntfyTopic: string | null;ntfyTokenConfigured: boolean;maskedNtfyToken: string | null;+ gotifyEnabled: boolean;+ gotifyConfigured: boolean;+ gotifyServerUrl: string | null;+ gotifyTokenConfigured: boolean;+ maskedGotifyToken: string | null;webhookEnabled: boolean;webhookConfigured: boolean;webhookUrl: string | null;@@ -33,6 +38,7 @@ export type NotificationPreferenceResponse = {isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: NotificationPreferenceProjectMode;selectedProjectIds: string[];@@ -49,6 +55,9 @@ export type UpdateNotificationPreferenceInput = {ntfyServerUrl?: string | null;ntfyTopic?: string | null;ntfyToken?: string | null;+ gotifyEnabled?: boolean;+ gotifyServerUrl?: string | null;+ gotifyToken?: string | null;webhookEnabled?: boolean;webhookUrl?: string | null;webhookSecret?: string | null;@@ -58,6 +67,7 @@ export type UpsertWorkspaceRuleInput = {isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: NotificationPreferenceProjectMode;selectedProjectIds?: string[];@@ -149,6 +159,13 @@ export async function getNotificationPreferences(ntfyTopic: preference?.ntfyTopic ?? null,ntfyTokenConfigured: Boolean(preference?.ntfyToken),maskedNtfyToken: maskValue(preference?.ntfyToken),+ gotifyEnabled: preference?.gotifyEnabled ?? false,+ gotifyConfigured: Boolean(+ preference?.gotifyServerUrl && preference?.gotifyToken,+ ),+ gotifyServerUrl: preference?.gotifyServerUrl ?? null,+ gotifyTokenConfigured: Boolean(preference?.gotifyToken),+ maskedGotifyToken: maskValue(preference?.gotifyToken),webhookEnabled: preference?.webhookEnabled ?? false,webhookConfigured: Boolean(preference?.webhookUrl),webhookUrl: preference?.webhookUrl ?? null,@@ -161,6 +178,7 @@ export async function getNotificationPreferences(isActive: rule.isActive ?? true,emailEnabled: rule.emailEnabled ?? false,ntfyEnabled: rule.ntfyEnabled ?? false,+ gotifyEnabled: rule.gotifyEnabled ?? false,webhookEnabled: rule.webhookEnabled ?? false,projectMode:rule.projectMode === "selected" ? "selected" : ("all" as const),@@ -191,6 +209,10 @@ export async function updateNotificationPreferences(input.ntfyTopic ?? existing?.ntfyTopic,);const ntfyToken = normalizeOptionalString(input.ntfyToken ?? undefined);+ const gotifyServerUrl = normalizeOptionalString(+ input.gotifyServerUrl ?? existing?.gotifyServerUrl,+ );+ const gotifyToken = normalizeOptionalString(input.gotifyToken ?? undefined);const webhookUrl = normalizeOptionalString(input.webhookUrl ?? existing?.webhookUrl,);@@ -200,6 +222,7 @@ export async function updateNotificationPreferences(const emailEnabled = input.emailEnabled ?? existing?.emailEnabled ?? false;const ntfyEnabled = input.ntfyEnabled ?? existing?.ntfyEnabled ?? false;+ const gotifyEnabled = input.gotifyEnabled ?? existing?.gotifyEnabled ?? false;const webhookEnabled =input.webhookEnabled ?? existing?.webhookEnabled ?? false;@@ -227,6 +250,24 @@ export async function updateNotificationPreferences(}}+ if (gotifyEnabled || gotifyServerUrl || gotifyToken !== undefined) {+ if (!gotifyServerUrl || !gotifyToken) {+ throw new HTTPException(400, {+ message: "Gotify requires a server URL and app token",+ });+ }++ try {+ new URL(gotifyServerUrl);+ await assertPublicWebhookDestination(gotifyServerUrl);+ } catch (error) {+ throw new HTTPException(400, {+ message:+ error instanceof Error ? error.message : "Invalid Gotify server URL",+ });+ }+ }+if (webhookEnabled || webhookUrl || webhookSecret !== undefined) {if (!webhookUrl) {throw new HTTPException(400, {@@ -252,6 +293,10 @@ export async function updateNotificationPreferences(ntfyTopic,ntfyToken:ntfyToken === undefined ? (existing?.ntfyToken ?? null) : ntfyToken,+ gotifyEnabled,+ gotifyServerUrl,+ gotifyToken:+ gotifyToken === undefined ? (existing?.gotifyToken ?? null) : gotifyToken,webhookEnabled,webhookUrl,webhookSecret:@@ -286,6 +331,13 @@ export async function updateNotificationPreferences(.where(eq(userNotificationWorkspaceRuleTable.userId, userId));}+ if (!gotifyEnabled || !gotifyServerUrl || !data.gotifyToken) {+ await db+ .update(userNotificationWorkspaceRuleTable)+ .set({ gotifyEnabled: false, updatedAt: new Date() })+ .where(eq(userNotificationWorkspaceRuleTable.userId, userId));+ }+if (!webhookEnabled || !webhookUrl) {await db.update(userNotificationWorkspaceRuleTable)@@ -338,6 +390,17 @@ export async function upsertWorkspaceRule(});}+ if (+ input.gotifyEnabled &&+ (!preference?.gotifyEnabled ||+ !preference.gotifyServerUrl ||+ !preference.gotifyToken)+ ) {+ throw new HTTPException(400, {+ message: "Enable Gotify notifications globally before using them here",+ });+ }+const existing = await db.query.userNotificationWorkspaceRuleTable.findFirst({where: and(eq(userNotificationWorkspaceRuleTable.userId, userId),@@ -354,6 +417,7 @@ export async function upsertWorkspaceRule(isActive: input.isActive,emailEnabled: input.emailEnabled,ntfyEnabled: input.ntfyEnabled,+ gotifyEnabled: input.gotifyEnabled,webhookEnabled: input.webhookEnabled,projectMode: input.projectMode,updatedAt: new Date(),@@ -368,6 +432,7 @@ export async function upsertWorkspaceRule(isActive: input.isActive,emailEnabled: input.emailEnabled,ntfyEnabled: input.ntfyEnabled,+ gotifyEnabled: input.gotifyEnabled,webhookEnabled: input.webhookEnabled,projectMode: input.projectMode,})diff --git a/apps/api/src/schemas.ts b/apps/api/src/schemas.tsindex bf17a3004..658436c20 100644--- a/apps/api/src/schemas.ts+++ b/apps/api/src/schemas.ts@@ -105,6 +105,7 @@ export const notificationPreferenceWorkspaceRuleSchema = v.object({isActive: v.boolean(),emailEnabled: v.boolean(),ntfyEnabled: v.boolean(),+ gotifyEnabled: v.boolean(),webhookEnabled: v.boolean(),projectMode: v.picklist(["all", "selected"] as const),selectedProjectIds: v.array(v.string()),@@ -121,6 +122,11 @@ export const notificationPreferenceSchema = v.object({ntfyTopic: v.nullable(v.string()),ntfyTokenConfigured: v.boolean(),maskedNtfyToken: v.nullable(v.string()),+ gotifyEnabled: v.boolean(),+ gotifyConfigured: v.boolean(),+ gotifyServerUrl: v.nullable(v.string()),+ gotifyTokenConfigured: v.boolean(),+ maskedGotifyToken: v.nullable(v.string()),webhookEnabled: v.boolean(),webhookConfigured: v.boolean(),webhookUrl: v.nullable(v.string()),diff --git a/apps/web/src/components/account/notification-preferences-settings.tsx b/apps/web/src/components/account/notification-preferences-settings.tsxindex 276bdef79..5741bb6d4 100644--- a/apps/web/src/components/account/notification-preferences-settings.tsx+++ b/apps/web/src/components/account/notification-preferences-settings.tsx@@ -27,6 +27,7 @@ type WorkspaceRuleState = {isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: "all" | "selected";selectedProjectIds: string[];@@ -62,6 +63,7 @@ function ChannelToggle({function WorkspaceRuleCard({hasEmailChannel,+ hasGotifyChannel,hasNtfyChannel,hasWebhookChannel,onDelete,@@ -70,6 +72,7 @@ function WorkspaceRuleCard({workspace,}: {hasEmailChannel: boolean;+ hasGotifyChannel: boolean;hasNtfyChannel: boolean;hasWebhookChannel: boolean;onDelete: (workspaceId: string) => Promise<unknown>;@@ -78,6 +81,7 @@ function WorkspaceRuleCard({isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: "all" | "selected";selectedProjectIds: string[];@@ -89,6 +93,7 @@ function WorkspaceRuleCard({isActive: rule?.isActive ?? false,emailEnabled: rule?.emailEnabled ?? false,ntfyEnabled: rule?.ntfyEnabled ?? false,+ gotifyEnabled: rule?.gotifyEnabled ?? false,webhookEnabled: rule?.webhookEnabled ?? false,projectMode: rule?.projectMode ?? "all",selectedProjectIds: rule?.selectedProjectIds ?? [],@@ -108,6 +113,7 @@ function WorkspaceRuleCard({isActive: rule?.isActive ?? false,emailEnabled: rule?.emailEnabled ?? false,ntfyEnabled: rule?.ntfyEnabled ?? false,+ gotifyEnabled: rule?.gotifyEnabled ?? false,webhookEnabled: rule?.webhookEnabled ?? false,projectMode: rule?.projectMode ?? "all",selectedProjectIds: rule?.selectedProjectIds ?? [],@@ -186,6 +192,19 @@ function WorkspaceRuleCard({setState((current) => ({ ...current, ntfyEnabled: checked }))}/>+ <ChannelToggle+ checked={state.gotifyEnabled}+ disabled={!hasGotifyChannel || isBusy}+ hint={+ hasGotifyChannel+ ? t("settings:notificationsPage.gotifyChannelHintEnabled")+ : t("settings:notificationsPage.gotifyChannelHintDisabled")+ }+ label={t("settings:notificationsPage.workspaceCardLabelGotify")}+ onCheckedChange={(checked) =>+ setState((current) => ({ ...current, gotifyEnabled: checked }))+ }+ /><ChannelTogglechecked={state.webhookEnabled}disabled={!hasWebhookChannel || isBusy}@@ -383,6 +402,9 @@ export function NotificationPreferencesSettings() {const [ntfyServerUrl, setNtfyServerUrl] = React.useState("");const [ntfyTopic, setNtfyTopic] = React.useState("");const [ntfyToken, setNtfyToken] = React.useState("");+ const [gotifyEnabled, setGotifyEnabled] = React.useState(false);+ const [gotifyServerUrl, setGotifyServerUrl] = React.useState("");+ const [gotifyToken, setGotifyToken] = React.useState("");const [webhookEnabled, setWebhookEnabled] = React.useState(false);const [webhookUrl, setWebhookUrl] = React.useState("");const [webhookSecret, setWebhookSecret] = React.useState("");@@ -394,6 +416,9 @@ export function NotificationPreferencesSettings() {setNtfyServerUrl(preferences.ntfyServerUrl ?? "");setNtfyTopic(preferences.ntfyTopic ?? "");setNtfyToken("");+ setGotifyEnabled(preferences.gotifyEnabled);+ setGotifyServerUrl(preferences.gotifyServerUrl ?? "");+ setGotifyToken("");setWebhookEnabled(preferences.webhookEnabled);setWebhookUrl(preferences.webhookUrl ?? "");setWebhookSecret("");@@ -486,6 +511,134 @@ export function NotificationPreferencesSettings() {</div></div>+ <div className="space-y-4 rounded-md border border-border bg-sidebar p-4">+ <div className="flex items-start justify-between gap-4">+ <div className="space-y-1">+ <h3 className="font-medium">+ {t("settings:notificationsPage.gotifyTitle")}+ </h3>+ <p className="text-sm text-muted-foreground">+ {t("settings:notificationsPage.gotifyDescription")}+ </p>+ </div>+ <div className="flex items-center gap-3">+ {preferences?.gotifyConfigured ? (+ <div className="flex items-center gap-2 text-sm text-muted-foreground">+ <CheckCircle className="size-4 text-green-600" />+ <span>+ {preferences.gotifyEnabled+ ? t("settings:notificationsPage.statusConnected")+ : t("settings:notificationsPage.statusPaused")}+ </span>+ </div>+ ) : null}+ <Switch+ checked={gotifyEnabled}+ disabled={isSavingPreferences}+ onCheckedChange={setGotifyEnabled}+ />+ </div>+ </div>++ <div className="space-y-4">+ <div className="space-y-1">+ <Label className="text-sm font-medium">+ {t("settings:notificationsPage.serverUrl")}+ </Label>+ <Input+ autoComplete="off"+ placeholder={t(+ "settings:notificationsPage.gotifyServerPlaceholder",+ )}+ value={gotifyServerUrl}+ onChange={(event) => setGotifyServerUrl(event.target.value)}+ />+ </div>+ <div className="space-y-1">+ <Label className="text-sm font-medium">+ {t("settings:notificationsPage.gotifyTokenLabel")}+ </Label>+ <Input+ autoComplete="off"+ placeholder={t(+ "settings:notificationsPage.gotifyTokenPlaceholder",+ )}+ type="password"+ value={gotifyToken}+ onChange={(event) => setGotifyToken(event.target.value)}+ />+ <p className="text-xs text-muted-foreground">+ {preferences?.gotifyTokenConfigured+ ? t("settings:notificationsPage.gotifyTokenHintConfigured", {+ masked: preferences.maskedGotifyToken ?? "••••",+ })+ : t("settings:notificationsPage.gotifyTokenHintRequired")}+ </p>+ </div>+ </div>++ <div className="flex flex-wrap gap-2">+ <Button+ disabled={isSavingPreferences}+ onClick={async () => {+ try {+ await updatePreferences({+ gotifyEnabled,+ gotifyServerUrl,+ gotifyToken: gotifyToken.trim() ? gotifyToken : undefined,+ });+ setGotifyToken("");+ toast.success(t("settings:notificationsPage.toastGotifySaved"));+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t("settings:notificationsPage.toastGotifySaveFailed"),+ );+ }+ }}+ type="button"+ >+ {preferences?.gotifyConfigured+ ? t("settings:notificationsPage.saveChanges")+ : t("settings:notificationsPage.connectGotify")}+ </Button>+ {preferences?.gotifyConfigured ? (+ <Button+ disabled={isSavingPreferences}+ onClick={async () => {+ try {+ await updatePreferences({+ gotifyEnabled: false,+ gotifyServerUrl: null,+ gotifyToken: null,+ });+ setGotifyEnabled(false);+ setGotifyServerUrl("");+ setGotifyToken("");+ toast.success(+ t("settings:notificationsPage.toastGotifyDisconnected"),+ );+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t(+ "settings:notificationsPage.toastGotifyDisconnectFailed",+ ),+ );+ }+ }}+ type="button"+ variant="outline"+ >+ <Trash2 className="size-4" />+ {t("settings:notificationsPage.disconnect")}+ </Button>+ ) : null}+ </div>+ </div>+<div className="space-y-4 rounded-md border border-border bg-sidebar p-4"><div className="flex items-start justify-between gap-4"><div className="space-y-1">@@ -777,6 +930,9 @@ export function NotificationPreferencesSettings() {<WorkspaceRuleCardkey={workspace.id}hasEmailChannel={Boolean(preferences?.emailEnabled)}+ hasGotifyChannel={Boolean(+ preferences?.gotifyEnabled && preferences?.gotifyConfigured,+ )}hasNtfyChannel={Boolean(preferences?.ntfyEnabled && preferences?.ntfyConfigured,)}diff --git a/apps/web/src/fetchers/notification-preferences/get-notification-preferences.ts b/apps/web/src/fetchers/notification-preferences/get-notification-preferences.tsindex ecd108a7a..510a6e85a 100644--- a/apps/web/src/fetchers/notification-preferences/get-notification-preferences.ts+++ b/apps/web/src/fetchers/notification-preferences/get-notification-preferences.ts@@ -7,6 +7,7 @@ export type NotificationPreferenceWorkspaceRule = {isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: "all" | "selected";selectedProjectIds: string[];@@ -23,6 +24,11 @@ export type NotificationPreferences = {ntfyTopic: string | null;ntfyTokenConfigured: boolean;maskedNtfyToken: string | null;+ gotifyEnabled: boolean;+ gotifyConfigured: boolean;+ gotifyServerUrl: string | null;+ gotifyTokenConfigured: boolean;+ maskedGotifyToken: string | null;webhookEnabled: boolean;webhookConfigured: boolean;webhookUrl: string | null;diff --git a/apps/web/src/fetchers/notification-preferences/update-notification-preferences.ts b/apps/web/src/fetchers/notification-preferences/update-notification-preferences.tsindex 149d812fc..4b6f4b074 100644--- a/apps/web/src/fetchers/notification-preferences/update-notification-preferences.ts+++ b/apps/web/src/fetchers/notification-preferences/update-notification-preferences.ts@@ -7,6 +7,9 @@ export type UpdateNotificationPreferencesRequest = {ntfyServerUrl?: string | null;ntfyTopic?: string | null;ntfyToken?: string | null;+ gotifyEnabled?: boolean;+ gotifyServerUrl?: string | null;+ gotifyToken?: string | null;webhookEnabled?: boolean;webhookUrl?: string | null;webhookSecret?: string | null;diff --git a/apps/web/src/fetchers/notification-preferences/upsert-notification-workspace-rule.ts b/apps/web/src/fetchers/notification-preferences/upsert-notification-workspace-rule.tsindex 8508dc3e4..de84ac388 100644--- a/apps/web/src/fetchers/notification-preferences/upsert-notification-workspace-rule.ts+++ b/apps/web/src/fetchers/notification-preferences/upsert-notification-workspace-rule.ts@@ -5,6 +5,7 @@ export type UpsertNotificationWorkspaceRuleRequest = {isActive: boolean;emailEnabled: boolean;ntfyEnabled: boolean;+ gotifyEnabled: boolean;webhookEnabled: boolean;projectMode: "all" | "selected";selectedProjectIds?: string[];diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 3bbd6b268..d8b0114ce 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -344,6 +344,14 @@"ntfyTokenHintConfigured": "Ein Token ist bereits konfiguriert ({{masked}}). Gib einen neuen Token ein, um ihn zu ersetzen.","ntfyTokenHintOptional": "Optional. Gib einen Token an, wenn dein ntfy-Server eine Authentifizierung verlangt.","connectNtfy": "ntfy verbinden",+ "gotifyTitle": "Gotify",+ "gotifyDescription": "Sende Kontobenachrichtigungen an deinen Gotify-Server.",+ "gotifyTokenLabel": "App-Token",+ "gotifyServerPlaceholder": "https://gotify.example.com",+ "gotifyTokenPlaceholder": "Gotify-App-Token",+ "gotifyTokenHintConfigured": "Ein App-Token ist bereits konfiguriert ({{masked}}). Gib ein neues Token ein, um es zu ersetzen.",+ "gotifyTokenHintRequired": "Erforderlich. Verwende ein Anwendungstoken von deinem Gotify-Server.",+ "connectGotify": "Gotify verbinden","webhookTitle": "Benutzerdefinierter Webhook","webhookDescription": "Kontobenachrichtigungen als JSON an deinen eigenen Endpunkt senden.","endpointUrl": "Endpunkt-URL",@@ -358,11 +366,14 @@"workspaceCardHint": "Wähle, welche Kanäle dieser Arbeitsbereich für Kontobenachrichtigungen nutzen darf.","workspaceCardLabelEmail": "E-Mail","workspaceCardLabelNtfy": "ntfy",+ "workspaceCardLabelGotify": "Gotify","workspaceCardLabelWebhook": "Benutzerdefinierter Webhook","emailChannelHintEnabled": "Passende Arbeitsbereichs-Benachrichtigungen per E-Mail senden.","emailChannelHintDisabled": "E-Mail zuerst global konfigurieren und aktivieren.","ntfyChannelHintEnabled": "Passende Arbeitsbereichs-Benachrichtigungen an ntfy senden.","ntfyChannelHintDisabled": "ntfy zuerst global konfigurieren und aktivieren.",+ "gotifyChannelHintEnabled": "Passende Arbeitsbereichs-Benachrichtigungen an Gotify senden.",+ "gotifyChannelHintDisabled": "Gotify zuerst global konfigurieren und aktivieren.","webhookChannelHintEnabled": "Passende Arbeitsbereichs-Benachrichtigungen an deinen Webhook senden.","webhookChannelHintDisabled": "Webhook zuerst global konfigurieren und aktivieren.","projectScope": "Projektbereich",@@ -380,6 +391,10 @@"toastNtfySaveFailed": "ntfy-Einstellungen konnten nicht gespeichert werden","toastNtfyDisconnected": "ntfy getrennt","toastNtfyDisconnectFailed": "ntfy konnte nicht getrennt werden",+ "toastGotifySaved": "Gotify-Einstellungen gespeichert",+ "toastGotifySaveFailed": "Gotify-Einstellungen konnten nicht gespeichert werden",+ "toastGotifyDisconnected": "Gotify getrennt",+ "toastGotifyDisconnectFailed": "Gotify konnte nicht getrennt werden","toastWebhookSaved": "Webhook-Einstellungen gespeichert","toastWebhookSaveFailed": "Webhook-Einstellungen konnten nicht gespeichert werden","toastWebhookDisconnected": "Webhook getrennt",diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex fb7c5a11a..0a534717c 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -344,6 +344,14 @@"ntfyTokenHintConfigured": "Ένα διακριτικό έχει ήδη ρυθμιστεί ({{masked}}). Εισαγάγετε νέο για αντικατάσταση.","ntfyTokenHintOptional": "Προαιρετικό. Δώστε διακριτικό αν ο διακομιστής ntfy απαιτεί πιστοποίηση.","connectNtfy": "Σύνδεση ntfy",+ "gotifyTitle": "Gotify",+ "gotifyDescription": "Στείλτε ειδοποιήσεις λογαριασμού στον διακομιστή Gotify σας.",+ "gotifyTokenLabel": "Διακριτικό εφαρμογής",+ "gotifyServerPlaceholder": "https://gotify.example.com",+ "gotifyTokenPlaceholder": "Διακριτικό εφαρμογής Gotify",+ "gotifyTokenHintConfigured": "Ένα διακριτικό εφαρμογής έχει ήδη ρυθμιστεί ({{masked}}). Εισαγάγετε νέο για αντικατάσταση.",+ "gotifyTokenHintRequired": "Απαιτείται. Χρησιμοποιήστε διακριτικό εφαρμογής από τον διακομιστή Gotify σας.",+ "connectGotify": "Σύνδεση Gotify","webhookTitle": "Προσαρμοσμένο webhook","webhookDescription": "Στείλτε ειδοποιήσεις λογαριασμού στο δικό σας endpoint ως JSON.","endpointUrl": "URL τελικού σημείου",@@ -358,11 +366,14 @@"workspaceCardHint": "Επιλέξτε ποια κανάλια μπορεί να χρησιμοποιεί αυτός ο χώρος εργασίας για ειδοποιήσεις λογαριασμού.","workspaceCardLabelEmail": "Email","workspaceCardLabelNtfy": "ntfy",+ "workspaceCardLabelGotify": "Gotify","workspaceCardLabelWebhook": "Προσαρμοσμένο webhook","emailChannelHintEnabled": "Αποστολή αντίστοιχων ειδοποιήσεων χώρου εργασίας μέσω email.","emailChannelHintDisabled": "Ρυθμίστε και ενεργοποιήστε πρώτα το email καθολικά.","ntfyChannelHintEnabled": "Αποστολή αντίστοιχων ειδοποιήσεων χώρου εργασίας στο ntfy.","ntfyChannelHintDisabled": "Ρυθμίστε και ενεργοποιήστε πρώτα το ntfy καθολικά.",+ "gotifyChannelHintEnabled": "Αποστολή αντίστοιχων ειδοποιήσεων χώρου εργασίας στο Gotify.",+ "gotifyChannelHintDisabled": "Ρυθμίστε και ενεργοποιήστε πρώτα το Gotify καθολικά.","webhookChannelHintEnabled": "Αποστολή αντίστοιχων ειδοποιήσεων χώρου εργασίας στο webhook σας.","webhookChannelHintDisabled": "Ρυθμίστε και ενεργοποιήστε πρώτα το webhook καθολικά.","projectScope": "Εύρος έργων",@@ -380,6 +391,10 @@"toastNtfySaveFailed": "Αποτυχία αποθήκευσης ρυθμίσεων ntfy","toastNtfyDisconnected": "Το ntfy αποσυνδέθηκε","toastNtfyDisconnectFailed": "Αποτυχία αποσύνδεσης ntfy",+ "toastGotifySaved": "Οι ρυθμίσεις Gotify αποθηκεύτηκαν",+ "toastGotifySaveFailed": "Αποτυχία αποθήκευσης ρυθμίσεων Gotify",+ "toastGotifyDisconnected": "Το Gotify αποσυνδέθηκε",+ "toastGotifyDisconnectFailed": "Αποτυχία αποσύνδεσης Gotify","toastWebhookSaved": "Οι ρυθμίσεις webhook αποθηκεύτηκαν","toastWebhookSaveFailed": "Αποτυχία αποθήκευσης ρυθμίσεων webhook","toastWebhookDisconnected": "Το webhook αποσυνδέθηκε",diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex aaeddfa25..4c9af4f74 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -344,6 +344,14 @@"ntfyTokenHintConfigured": "A token is already configured ({{masked}}). Enter a new token to replace it.","ntfyTokenHintOptional": "Optional. Provide a token if your ntfy server requires authentication.","connectNtfy": "Connect ntfy",+ "gotifyTitle": "Gotify",+ "gotifyDescription": "Send account notifications to your Gotify server.",+ "gotifyTokenLabel": "App token",+ "gotifyServerPlaceholder": "https://gotify.example.com",+ "gotifyTokenPlaceholder": "Gotify app token",+ "gotifyTokenHintConfigured": "An app token is already configured ({{masked}}). Enter a new token to replace it.",+ "gotifyTokenHintRequired": "Required. Use an application token from your Gotify server.",+ "connectGotify": "Connect Gotify","webhookTitle": "Custom webhook","webhookDescription": "Send account notifications to your own endpoint as JSON.","endpointUrl": "Endpoint URL",@@ -358,11 +366,14 @@"workspaceCardHint": "Choose which channels this workspace can use for account notifications.","workspaceCardLabelEmail": "Email","workspaceCardLabelNtfy": "ntfy",+ "workspaceCardLabelGotify": "Gotify","workspaceCardLabelWebhook": "Custom webhook","emailChannelHintEnabled": "Send matching workspace notifications by email.","emailChannelHintDisabled": "Configure and enable email globally first.","ntfyChannelHintEnabled": "Send matching workspace notifications to ntfy.","ntfyChannelHintDisabled": "Configure and enable ntfy globally first.",+ "gotifyChannelHintEnabled": "Send matching workspace notifications to Gotify.",+ "gotifyChannelHintDisabled": "Configure and enable Gotify globally first.","webhookChannelHintEnabled": "Send matching workspace notifications to your webhook.","webhookChannelHintDisabled": "Configure and enable the webhook globally first.","projectScope": "Project scope",@@ -380,6 +391,10 @@"toastNtfySaveFailed": "Failed to save ntfy settings","toastNtfyDisconnected": "ntfy disconnected","toastNtfyDisconnectFailed": "Failed to disconnect ntfy",+ "toastGotifySaved": "Gotify settings saved",+ "toastGotifySaveFailed": "Failed to save Gotify settings",+ "toastGotifyDisconnected": "Gotify disconnected",+ "toastGotifyDisconnectFailed": "Failed to disconnect Gotify","toastWebhookSaved": "Webhook settings saved","toastWebhookSaveFailed": "Failed to save webhook settings","toastWebhookDisconnected": "Webhook disconnected",diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 3555446e5..d2ae4918a 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -344,6 +344,14 @@"ntfyTokenHintConfigured": "Un jeton est déjà configuré ({{masked}}). Saisissez-en un nouveau pour le remplacer.","ntfyTokenHintOptional": "Facultatif. Indiquez un jeton si votre serveur ntfy exige une authentification.","connectNtfy": "Connecter ntfy",+ "gotifyTitle": "Gotify",+ "gotifyDescription": "Envoyer les notifications de compte vers votre serveur Gotify.",+ "gotifyTokenLabel": "Jeton d’application",+ "gotifyServerPlaceholder": "https://gotify.example.com",+ "gotifyTokenPlaceholder": "Jeton d’application Gotify",+ "gotifyTokenHintConfigured": "Un jeton d’application est déjà configuré ({{masked}}). Saisissez-en un nouveau pour le remplacer.",+ "gotifyTokenHintRequired": "Obligatoire. Utilisez un jeton d’application de votre serveur Gotify.",+ "connectGotify": "Connecter Gotify","webhookTitle": "Webhook personnalisé","webhookDescription": "Envoyer les notifications de compte vers votre propre point de terminaison en JSON.","endpointUrl": "URL du point de terminaison",@@ -358,11 +366,14 @@"workspaceCardHint": "Choisissez les canaux que cet espace de travail peut utiliser pour les notifications de compte.","workspaceCardLabelEmail": "E-mail","workspaceCardLabelNtfy": "ntfy",+ "workspaceCardLabelGotify": "Gotify","workspaceCardLabelWebhook": "Webhook personnalisé","emailChannelHintEnabled": "Envoyer les notifications d’espace de travail correspondantes par e-mail.","emailChannelHintDisabled": "Configurez et activez d’abord l’e-mail globalement.","ntfyChannelHintEnabled": "Envoyer les notifications d’espace de travail correspondantes vers ntfy.","ntfyChannelHintDisabled": "Configurez et activez d’abord ntfy globalement.",+ "gotifyChannelHintEnabled": "Envoyer les notifications d’espace de travail correspondantes vers Gotify.",+ "gotifyChannelHintDisabled": "Configurez et activez d’abord Gotify globalement.","webhookChannelHintEnabled": "Envoyer les notifications d’espace de travail correspondantes vers votre webhook.","webhookChannelHintDisabled": "Configurez et activez d’abord le webhook globalement.","projectScope": "Portée des projets",@@ -380,6 +391,10 @@"toastNtfySaveFailed": "Échec de l’enregistrement des paramètres ntfy","toastNtfyDisconnected": "ntfy déconnecté","toastNtfyDisconnectFailed": "Échec de la déconnexion de ntfy",+ "toastGotifySaved": "Paramètres Gotify enregistrés",+ "toastGotifySaveFailed": "Échec de l’enregistrement des paramètres Gotify",+ "toastGotifyDisconnected": "Gotify déconnecté",+ "toastGotifyDisconnectFailed": "Échec de la déconnexion de Gotify","toastWebhookSaved": "Paramètres du webhook enregistrés","toastWebhookSaveFailed": "Échec de l’enregistrement des paramètres du webhook","toastWebhookDisconnected": "Webhook déconnecté",diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex a32d1abc4..4cc547a3c 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -344,6 +344,14 @@"ntfyTokenHintConfigured": "Токенот веќе е конфигуриран ({{masked}}). Внеси нов за да го замениш.","ntfyTokenHintOptional": "Опционално. Дај токен ако ntfy серверот бара автентикација.","connectNtfy": "Поврзи ntfy",+ "gotifyTitle": "Gotify",+ "gotifyDescription": "Испрати известувања за сметката до твојот Gotify сервер.",+ "gotifyTokenLabel": "Апликациски токен",+ "gotifyServerPlaceholder": "https://gotify.example.com",+ "gotifyTokenPlaceholder": "Gotify апликациски токен",+ "gotifyTokenHintConfigured": "Апликациски токен веќе е конфигуриран ({{masked}}). Внеси нов за да го замениш.",+ "gotifyTokenHintRequired": "Задолжително. Користи апликациски токен од твојот Gotify сервер.",+ "connectGotify": "Поврзи Gotify","webhookTitle": "Прилагоден webhook","webhookDescription": "Испрати известувања за сметката до сопствениот endpoint како JSON.","endpointUrl": "URL на endpoint",@@ -358,11 +366,14 @@"workspaceCardHint": "Одбери кои канали овој работен простор може да ги користи за известувања за сметката.","workspaceCardLabelEmail": "Е-пошта","workspaceCardLabelNtfy": "ntfy",+ "workspaceCardLabelGotify": "Gotify","workspaceCardLabelWebhook": "Прилагоден webhook","emailChannelHintEnabled": "Испрати соодветни известувања за работниот простор по е-пошта.","emailChannelHintDisabled": "Прво конфигурирај и овозможи е-пошта глобално.","ntfyChannelHintEnabled": "Испрати соодветни известувања за работниот простор до ntfy.","ntfyChannelHintDisabled": "Прво конфигурирај и овозможи ntfy глобално.",+ "gotifyChannelHintEnabled": "Испрати соодветни известувања за работниот простор до Gotify.",+ "gotifyChannelHintDisabled": "Прво конфигурирај и овозможи Gotify глобално.","webhookChannelHintEnabled": "Испрати соодветни известувања за работниот простор до твојот webhook.","webhookChannelHintDisabled": "Прво конфигурирај и овозможи webhook глобално.","projectScope": "Опсег на проекти",@@ -380,6 +391,10 @@"toastNtfySaveFailed": "Не успеа зачувувањето на ntfy поставките","toastNtfyDisconnected": "ntfy е исклучен","toastNtfyDisconnectFailed": "Не успеа исклучувањето на ntfy",+ "toastGotifySaved": "Зачувани се Gotify поставките",+ "toastGotifySaveFailed": "Не успеа зачувувањето на Gotify поставките",+ "toastGotifyDisconnected": "Gotify е исклучен",+ "toastGotifyDisconnectFailed": "Не успеа исклучувањето на Gotify","toastWebhookSaved": "Зачувани се webhook поставките","toastWebhookSaveFailed": "Не успеа зачувувањето на webhook поставките","toastWebhookDisconnected": "Webhook е исклучен",