openship 0.2.3 → 0.4.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/README.md +104 -61
- package/dist/bare-ITM45QBX.js +18 -0
- package/dist/bowser-MFQA6OS4.js +2821 -0
- package/dist/chunk-3U4SPZD5.js +241 -0
- package/dist/chunk-46YJFP4S.js +1771 -0
- package/dist/chunk-4CQWT2WL.js +116 -0
- package/dist/chunk-4FABQGQP.js +23 -0
- package/dist/chunk-4LEL3H2Z.js +84 -0
- package/dist/chunk-4MG3BVHE.js +326 -0
- package/dist/chunk-4VNS5WPM.js +42 -0
- package/dist/chunk-5N7VUGL6.js +2094 -0
- package/dist/chunk-5ZCKQ2MI.js +1360 -0
- package/dist/chunk-6ERIMTBC.js +1412 -0
- package/dist/chunk-7UOB5GGQ.js +132 -0
- package/dist/chunk-BUBSSKO6.js +1384 -0
- package/dist/chunk-E6W2JMMU.js +341 -0
- package/dist/chunk-E77LJWJK.js +1535 -0
- package/dist/chunk-F4DFVG6Q.js +573 -0
- package/dist/chunk-HFYDYK4D.js +1092 -0
- package/dist/chunk-JR2OCMJA.js +46 -0
- package/dist/chunk-JUJBBF5U.js +746 -0
- package/dist/chunk-JZLNHGLW.js +19145 -0
- package/dist/chunk-KD7VO4LG.js +2617 -0
- package/dist/chunk-LBFH7THC.js +435 -0
- package/dist/chunk-NB2VEIWG.js +129 -0
- package/dist/chunk-OJE6YWPQ.js +2866 -0
- package/dist/chunk-QKFRZNKN.js +4941 -0
- package/dist/chunk-RBZPFTHV.js +13354 -0
- package/dist/chunk-S6DSRLNE.js +121 -0
- package/dist/chunk-TEYJYSMT.js +409 -0
- package/dist/chunk-U2DPZSXA.js +112 -0
- package/dist/chunk-WJPCBU7Z.js +3147 -0
- package/dist/chunk-XIFRMKYT.js +13 -0
- package/dist/chunk-XVSAUO2I.js +7946 -0
- package/dist/chunk-Y37KHU7L.js +31 -0
- package/dist/chunk-YL67EWYZ.js +416 -0
- package/dist/chunk-ZKJOFWBJ.js +1879 -0
- package/dist/cloud-JMPHO3CW.js +7 -0
- package/dist/cloud-W5G6YXAY.js +24 -0
- package/dist/dist-L3MPOWCA.js +65 -0
- package/dist/dist-es-4C322O5D.js +22 -0
- package/dist/dist-es-GTAMF674.js +87 -0
- package/dist/dist-es-KE56MWYO.js +169 -0
- package/dist/dist-es-NRZIQY5B.js +484 -0
- package/dist/dist-es-WZCR7DHQ.js +317 -0
- package/dist/dist-es-XQCOTGC7.js +376 -0
- package/dist/dist-es-ZW3HFQUM.js +69 -0
- package/dist/docker-3FVJMFC3.js +12 -0
- package/dist/docker-edge-executor-ZIWAZWPL.js +9 -0
- package/dist/edge-import-53M5DGWZ.js +39 -0
- package/dist/event-streams-7LGDL56D.js +42 -0
- package/dist/executor-J7BHW5HF.js +26 -0
- package/dist/index.js +2459 -3461
- package/dist/loadSso-N273C5I7.js +577 -0
- package/dist/nginx-YZWKYKQU.js +16 -0
- package/dist/noop-RRNCIUI5.js +7 -0
- package/dist/openresty-lua-HAO4EUDY.js +32 -0
- package/dist/server/index.js +217916 -205055
- package/dist/server/migrations/0057_complete_prism.sql +18 -0
- package/dist/server/migrations/0058_add_server_is_local.sql +1 -0
- package/dist/server/migrations/0059_legal_fixer.sql +18 -0
- package/dist/server/migrations/0060_add_route_strategy_host_port.sql +3 -0
- package/dist/server/migrations/0061_notification_default_multi_kind.sql +3 -0
- package/dist/server/migrations/0062_add_incoming_webhook.sql +21 -0
- package/dist/server/migrations/0063_add_migration_logs.sql +1 -0
- package/dist/server/migrations/0064_add_migration_partial.sql +2 -0
- package/dist/server/migrations/0065_custom_app_template.sql +14 -0
- package/dist/server/migrations/0066_ensure_migration_partial_columns.sql +2 -0
- package/dist/server/migrations/0067_webhook_delivery.sql +28 -0
- package/dist/server/migrations/0068_add_migration_target_volumes.sql +1 -0
- package/dist/server/migrations/0069_add_project_composite_routes.sql +1 -0
- package/dist/server/migrations/0070_forward_git_to_server.sql +1 -0
- package/dist/server/migrations/meta/0057_snapshot.json +9326 -0
- package/dist/server/migrations/meta/0058_snapshot.json +9333 -0
- package/dist/server/migrations/meta/0059_snapshot.json +9495 -0
- package/dist/server/migrations/meta/0060_snapshot.json +9515 -0
- package/dist/server/migrations/meta/_journal.json +99 -1
- package/dist/setup-5X3WEEHA.js +14 -0
- package/dist/signin-DR462ERO.js +663 -0
- package/dist/sso-oidc-VBZLJUK5.js +830 -0
- package/dist/sts-EJLZ4Z77.js +1422 -0
- package/package.json +6 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
CREATE TABLE "webhook_source" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" text NOT NULL,
|
|
4
|
+
"kind" text NOT NULL,
|
|
5
|
+
"label" text NOT NULL,
|
|
6
|
+
"secret" text NOT NULL,
|
|
7
|
+
"enabled" boolean DEFAULT true NOT NULL,
|
|
8
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
9
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
10
|
+
);
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "domain" ALTER COLUMN "project_id" DROP NOT NULL;--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "domain" ADD COLUMN "owner_type" text DEFAULT 'project' NOT NULL;--> statement-breakpoint
|
|
14
|
+
ALTER TABLE "domain" ADD COLUMN "webhook_source_id" text;--> statement-breakpoint
|
|
15
|
+
ALTER TABLE "webhook_source" ADD CONSTRAINT "webhook_source_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
16
|
+
CREATE INDEX "idx_webhook_source_org" ON "webhook_source" USING btree ("organization_id");--> statement-breakpoint
|
|
17
|
+
ALTER TABLE "domain" ADD CONSTRAINT "domain_webhook_source_id_webhook_source_id_fk" FOREIGN KEY ("webhook_source_id") REFERENCES "public"."webhook_source"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
18
|
+
CREATE INDEX "idx_domain_webhook_source" ON "domain" USING btree ("webhook_source_id");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "servers" ADD COLUMN "is_local" boolean DEFAULT false NOT NULL;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
CREATE TABLE "project_connection" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" text NOT NULL,
|
|
4
|
+
"source_project_id" text NOT NULL,
|
|
5
|
+
"target_project_id" text NOT NULL,
|
|
6
|
+
"output_id" text NOT NULL,
|
|
7
|
+
"env_key" text NOT NULL,
|
|
8
|
+
"mode" text DEFAULT 'public' NOT NULL,
|
|
9
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
10
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
11
|
+
);
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "project_connection" ADD CONSTRAINT "project_connection_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
14
|
+
ALTER TABLE "project_connection" ADD CONSTRAINT "project_connection_source_project_id_project_id_fk" FOREIGN KEY ("source_project_id") REFERENCES "public"."project"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint
|
|
15
|
+
ALTER TABLE "project_connection" ADD CONSTRAINT "project_connection_target_project_id_project_id_fk" FOREIGN KEY ("target_project_id") REFERENCES "public"."project"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
16
|
+
CREATE UNIQUE INDEX "uq_project_connection_target_env" ON "project_connection" USING btree ("target_project_id","env_key");--> statement-breakpoint
|
|
17
|
+
CREATE INDEX "idx_project_connection_target" ON "project_connection" USING btree ("target_project_id");--> statement-breakpoint
|
|
18
|
+
CREATE INDEX "idx_project_connection_source" ON "project_connection" USING btree ("source_project_id");
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
ALTER TABLE "notification_default" ADD COLUMN "default_channel_kinds" jsonb DEFAULT '["email"]'::jsonb NOT NULL;--> statement-breakpoint
|
|
2
|
+
UPDATE "notification_default" SET "default_channel_kinds" = jsonb_build_array("default_channel_kind");--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "notification_default" DROP COLUMN "default_channel_kind";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
CREATE TABLE "incoming_webhook" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" text NOT NULL,
|
|
4
|
+
"project_id" text NOT NULL,
|
|
5
|
+
"name" text NOT NULL,
|
|
6
|
+
"enabled" boolean DEFAULT true NOT NULL,
|
|
7
|
+
"action_type" text NOT NULL,
|
|
8
|
+
"action_config" jsonb DEFAULT '{}'::jsonb NOT NULL,
|
|
9
|
+
"auth_mode" text DEFAULT 'token' NOT NULL,
|
|
10
|
+
"token_encrypted" text,
|
|
11
|
+
"hmac_secret_encrypted" text,
|
|
12
|
+
"created_by" text,
|
|
13
|
+
"last_fired_at" timestamp,
|
|
14
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
15
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
ALTER TABLE "incoming_webhook" ADD CONSTRAINT "incoming_webhook_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
19
|
+
ALTER TABLE "incoming_webhook" ADD CONSTRAINT "incoming_webhook_project_id_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."project"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
20
|
+
CREATE INDEX "idx_incoming_webhook_project" ON "incoming_webhook" USING btree ("project_id");--> statement-breakpoint
|
|
21
|
+
CREATE INDEX "idx_incoming_webhook_org" ON "incoming_webhook" USING btree ("organization_id");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "docker_migration_run" ADD COLUMN "logs" text;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
CREATE TABLE "custom_app_template" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" text NOT NULL,
|
|
4
|
+
"app_id" text NOT NULL,
|
|
5
|
+
"template" jsonb NOT NULL,
|
|
6
|
+
"created_by_user_id" text,
|
|
7
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
8
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
ALTER TABLE "custom_app_template" ADD CONSTRAINT "custom_app_template_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "custom_app_template" ADD CONSTRAINT "custom_app_template_created_by_user_id_user_id_fk" FOREIGN KEY ("created_by_user_id") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
13
|
+
CREATE UNIQUE INDEX "uq_custom_app_template_org_app" ON "custom_app_template" USING btree ("organization_id","app_id");--> statement-breakpoint
|
|
14
|
+
CREATE INDEX "idx_custom_app_template_org" ON "custom_app_template" USING btree ("organization_id");
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
CREATE TABLE "webhook_delivery" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" text,
|
|
4
|
+
"project_id" text,
|
|
5
|
+
"source" text NOT NULL,
|
|
6
|
+
"hook_id" text,
|
|
7
|
+
"delivery_id" text,
|
|
8
|
+
"event" text NOT NULL,
|
|
9
|
+
"auth_result" text,
|
|
10
|
+
"outcome" text NOT NULL,
|
|
11
|
+
"action_ref" text,
|
|
12
|
+
"status_code" integer,
|
|
13
|
+
"error" text,
|
|
14
|
+
"summary" jsonb,
|
|
15
|
+
"client_ip" text,
|
|
16
|
+
"user_agent" text,
|
|
17
|
+
"duration_ms" integer,
|
|
18
|
+
"received_at" timestamp DEFAULT now() NOT NULL,
|
|
19
|
+
"processed_at" timestamp
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
DROP TABLE IF EXISTS "github_webhook_event";--> statement-breakpoint
|
|
23
|
+
ALTER TABLE "webhook_delivery" ADD CONSTRAINT "webhook_delivery_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
24
|
+
ALTER TABLE "webhook_delivery" ADD CONSTRAINT "webhook_delivery_project_id_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."project"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
25
|
+
CREATE UNIQUE INDEX "uq_webhook_delivery_github_delivery" ON "webhook_delivery" USING btree ("source","delivery_id") WHERE "webhook_delivery"."source" = 'github' AND "webhook_delivery"."delivery_id" IS NOT NULL;--> statement-breakpoint
|
|
26
|
+
CREATE INDEX "idx_webhook_delivery_project" ON "webhook_delivery" USING btree ("project_id","received_at");--> statement-breakpoint
|
|
27
|
+
CREATE INDEX "idx_webhook_delivery_org" ON "webhook_delivery" USING btree ("organization_id","received_at");--> statement-breakpoint
|
|
28
|
+
CREATE INDEX "idx_webhook_delivery_hook" ON "webhook_delivery" USING btree ("hook_id","received_at");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "docker_migration_run" ADD COLUMN IF NOT EXISTS "target_volumes" jsonb DEFAULT '[]'::jsonb;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "project" ADD COLUMN IF NOT EXISTS "composite_routes" jsonb;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "user_settings" ADD COLUMN IF NOT EXISTS "forward_git_to_server" boolean DEFAULT false NOT NULL;
|