@rudderhq/server 0.2.10-canary.8 → 0.2.10
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/dist/bootstrap/plugin-host-runtime.d.ts +38 -38
- package/dist/bundled-plugins/plugin-linear/dist/worker.js +311 -159
- package/dist/bundled-plugins/plugin-linear/dist/worker.js.map +2 -2
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -0
- package/dist/config.js.map +1 -1
- package/dist/home-paths.d.ts +23 -4
- package/dist/home-paths.d.ts.map +1 -1
- package/dist/home-paths.js +46 -11
- package/dist/home-paths.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/routes/access.helpers.d.ts +8 -8
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/agents.js +15 -1
- package/dist/routes/agents.js.map +1 -1
- package/dist/routes/approvals.d.ts.map +1 -1
- package/dist/routes/approvals.js +34 -2
- package/dist/routes/approvals.js.map +1 -1
- package/dist/routes/chat-issue-assignment-wakeup.d.ts +28 -0
- package/dist/routes/chat-issue-assignment-wakeup.d.ts.map +1 -0
- package/dist/routes/chat-issue-assignment-wakeup.js +54 -0
- package/dist/routes/chat-issue-assignment-wakeup.js.map +1 -0
- package/dist/routes/chats.d.ts.map +1 -1
- package/dist/routes/chats.js +24 -6
- package/dist/routes/chats.js.map +1 -1
- package/dist/routes/chats.stream-routes.d.ts.map +1 -1
- package/dist/routes/chats.stream-routes.js +14 -3
- package/dist/routes/chats.stream-routes.js.map +1 -1
- package/dist/routes/issues.d.ts.map +1 -1
- package/dist/routes/issues.js +3 -0
- package/dist/routes/issues.js.map +1 -1
- package/dist/routes/issues.mutations.d.ts.map +1 -1
- package/dist/routes/issues.mutations.js +89 -32
- package/dist/routes/issues.mutations.js.map +1 -1
- package/dist/routes/orgs.d.ts.map +1 -1
- package/dist/routes/orgs.js +302 -3
- package/dist/routes/orgs.js.map +1 -1
- package/dist/routes/plugin-ui-static.d.ts +2 -1
- package/dist/routes/plugin-ui-static.d.ts.map +1 -1
- package/dist/routes/plugin-ui-static.js +8 -42
- package/dist/routes/plugin-ui-static.js.map +1 -1
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/projects.js +6 -0
- package/dist/routes/projects.js.map +1 -1
- package/dist/services/access.d.ts +21 -21
- package/dist/services/activity.d.ts +19 -19
- package/dist/services/agent-run-context.d.ts +0 -2
- package/dist/services/agent-run-context.d.ts.map +1 -1
- package/dist/services/agent-run-context.js +6 -3
- package/dist/services/agent-run-context.js.map +1 -1
- package/dist/services/agents.d.ts +171 -171
- package/dist/services/approvals.d.ts +29 -29
- package/dist/services/assets.d.ts +8 -8
- package/dist/services/automation-chat-output.d.ts +3 -3
- package/dist/services/automations.d.ts +40 -32
- package/dist/services/automations.d.ts.map +1 -1
- package/dist/services/automations.js +467 -0
- package/dist/services/automations.js.map +1 -1
- package/dist/services/automations.scheduler.d.ts.map +1 -1
- package/dist/services/automations.scheduler.js +5 -3
- package/dist/services/automations.scheduler.js.map +1 -1
- package/dist/services/board-auth.d.ts +32 -32
- package/dist/services/calendar.d.ts +26 -26
- package/dist/services/chat-assistant.d.ts.map +1 -1
- package/dist/services/chat-assistant.helpers.d.ts +3 -2
- package/dist/services/chat-assistant.helpers.d.ts.map +1 -1
- package/dist/services/chat-assistant.helpers.js +3 -2
- package/dist/services/chat-assistant.helpers.js.map +1 -1
- package/dist/services/chat-assistant.js +11 -1
- package/dist/services/chat-assistant.js.map +1 -1
- package/dist/services/chat-generation-locks.d.ts +1 -0
- package/dist/services/chat-generation-locks.d.ts.map +1 -1
- package/dist/services/chat-generation-locks.js +10 -0
- package/dist/services/chat-generation-locks.js.map +1 -1
- package/dist/services/chats.d.ts +185 -161
- package/dist/services/chats.d.ts.map +1 -1
- package/dist/services/chats.helpers.d.ts +4 -4
- package/dist/services/chats.js +27 -0
- package/dist/services/chats.js.map +1 -1
- package/dist/services/costs.d.ts +8 -8
- package/dist/services/documents.d.ts +126 -0
- package/dist/services/documents.d.ts.map +1 -1
- package/dist/services/documents.js +323 -1
- package/dist/services/documents.js.map +1 -1
- package/dist/services/finance.d.ts +18 -18
- package/dist/services/goals.d.ts +30 -30
- package/dist/services/issue-approvals.d.ts +4 -4
- package/dist/services/issue-goal-fallback.d.ts.map +1 -1
- package/dist/services/issue-goal-fallback.js +9 -3
- package/dist/services/issue-goal-fallback.js.map +1 -1
- package/dist/services/issue-review-wakeup.d.ts +3 -3
- package/dist/services/issues.comments-attachments.d.ts +6 -6
- package/dist/services/issues.d.ts +26 -26
- package/dist/services/issues.d.ts.map +1 -1
- package/dist/services/issues.js +20 -0
- package/dist/services/issues.js.map +1 -1
- package/dist/services/knowledge-portability/organization-portability.core.d.ts +1 -1
- package/dist/services/knowledge-portability/organization-skills.catalog.d.ts +1 -1
- package/dist/services/messenger.d.ts +3 -2
- package/dist/services/messenger.d.ts.map +1 -1
- package/dist/services/messenger.js +98 -26
- package/dist/services/messenger.js.map +1 -1
- package/dist/services/organization-workspace-browser.d.ts +10 -1
- package/dist/services/organization-workspace-browser.d.ts.map +1 -1
- package/dist/services/organization-workspace-browser.js +286 -8
- package/dist/services/organization-workspace-browser.js.map +1 -1
- package/dist/services/orgs.d.ts +9 -9
- package/dist/services/plugin-loader.worker-paths.d.ts +5 -1
- package/dist/services/plugin-loader.worker-paths.d.ts.map +1 -1
- package/dist/services/plugin-loader.worker-paths.js +27 -24
- package/dist/services/plugin-loader.worker-paths.js.map +1 -1
- package/dist/services/plugin-registry.d.ts +137 -137
- package/dist/services/projects.d.ts +8 -8
- package/dist/services/projects.d.ts.map +1 -1
- package/dist/services/projects.js +52 -6
- package/dist/services/projects.js.map +1 -1
- package/dist/services/resource-catalog.d.ts.map +1 -1
- package/dist/services/resource-catalog.js +93 -27
- package/dist/services/resource-catalog.js.map +1 -1
- package/dist/services/runtime-kernel/heartbeat.d.ts +40 -33
- package/dist/services/runtime-kernel/heartbeat.d.ts.map +1 -1
- package/dist/services/runtime-kernel/heartbeat.execute.d.ts.map +1 -1
- package/dist/services/runtime-kernel/heartbeat.execute.js +19 -0
- package/dist/services/runtime-kernel/heartbeat.execute.js.map +1 -1
- package/dist/services/runtime-kernel/heartbeat.js +88 -1
- package/dist/services/runtime-kernel/heartbeat.js.map +1 -1
- package/dist/services/runtime-kernel/heartbeat.sessions.d.ts +1 -1
- package/dist/services/secrets.d.ts +25 -25
- package/dist/services/sidebar-badges.d.ts +0 -3
- package/dist/services/sidebar-badges.d.ts.map +1 -1
- package/dist/services/sidebar-badges.js +4 -54
- package/dist/services/sidebar-badges.js.map +1 -1
- package/dist/services/workspace-runtime.services.d.ts +13 -13
- package/package.json +13 -13
- package/resources/bundled-skills/para-memory-files/SKILL.md +4 -4
- package/resources/bundled-skills/rudder/SKILL.md +30 -13
- package/resources/bundled-skills/rudder/references/api-reference.md +16 -0
- package/resources/bundled-skills/rudder/references/cli-reference.md +9 -1
- package/resources/bundled-skills/rudder/references/organization-skills.md +1 -1
- package/skills/para-memory-files/SKILL.md +4 -4
- package/skills/rudder/SKILL.md +30 -13
- package/skills/rudder/references/api-reference.md +16 -0
- package/skills/rudder/references/cli-reference.md +9 -1
- package/skills/rudder/references/organization-skills.md +1 -1
- package/ui-dist/assets/_basePickBy-CSCT5uM-.js +1 -0
- package/ui-dist/assets/_baseUniq-6uzN-zvk.js +1 -0
- package/ui-dist/assets/{arc-DJicYGuR.js → arc-BwwnVVnu.js} +1 -1
- package/ui-dist/assets/{architectureDiagram-2XIMDMQ5-CNAjB0bS.js → architectureDiagram-2XIMDMQ5-DiP6mFDS.js} +1 -1
- package/ui-dist/assets/{blockDiagram-WCTKOSBZ-Cb2SN0O8.js → blockDiagram-WCTKOSBZ-DS7tlCEj.js} +1 -1
- package/ui-dist/assets/{c4Diagram-IC4MRINW-BUwidppn.js → c4Diagram-IC4MRINW-B2RNViSE.js} +1 -1
- package/ui-dist/assets/channel-D5xRBEMp.js +1 -0
- package/ui-dist/assets/{chunk-4BX2VUAB-DRq9D-c0.js → chunk-4BX2VUAB-Cg9RRkJ9.js} +1 -1
- package/ui-dist/assets/{chunk-55IACEB6-BU7fhJ5E.js → chunk-55IACEB6-C3OAh-Nm.js} +1 -1
- package/ui-dist/assets/{chunk-FMBD7UC4-B5KY7bkB.js → chunk-FMBD7UC4-BQ2yCpRL.js} +1 -1
- package/ui-dist/assets/{chunk-JSJVCQXG-CcU3d2u7.js → chunk-JSJVCQXG-D6lFBo3f.js} +1 -1
- package/ui-dist/assets/{chunk-KX2RTZJC-HQV7Thyw.js → chunk-KX2RTZJC-CUaDFynR.js} +1 -1
- package/ui-dist/assets/{chunk-NQ4KR5QH-CFZQUHUm.js → chunk-NQ4KR5QH-DOffnVy8.js} +1 -1
- package/ui-dist/assets/{chunk-QZHKN3VN-qWkcATvx.js → chunk-QZHKN3VN-C7Jx3r9m.js} +1 -1
- package/ui-dist/assets/{chunk-WL4C6EOR-rWD9bJYe.js → chunk-WL4C6EOR-DeATO8Iz.js} +1 -1
- package/ui-dist/assets/classDiagram-VBA2DB6C-CX2-VvTG.js +1 -0
- package/ui-dist/assets/classDiagram-v2-RAHNMMFH-CX2-VvTG.js +1 -0
- package/ui-dist/assets/clone-CAhALgsh.js +1 -0
- package/ui-dist/assets/{cose-bilkent-S5V4N54A-CsSjm2Co.js → cose-bilkent-S5V4N54A-x_82-QHb.js} +1 -1
- package/ui-dist/assets/{dagre-KLK3FWXG-mcPh1s1q.js → dagre-KLK3FWXG-B3xaAjXo.js} +1 -1
- package/ui-dist/assets/{diagram-E7M64L7V-BcWqAyuY.js → diagram-E7M64L7V-B7f9YQXK.js} +1 -1
- package/ui-dist/assets/{diagram-IFDJBPK2-B-5OERYu.js → diagram-IFDJBPK2-BdIywx8n.js} +1 -1
- package/ui-dist/assets/{diagram-P4PSJMXO-BPCuOOZ2.js → diagram-P4PSJMXO-B6Jz8GYG.js} +1 -1
- package/ui-dist/assets/{erDiagram-INFDFZHY-Cvau-JqB.js → erDiagram-INFDFZHY-CD_uFaUj.js} +1 -1
- package/ui-dist/assets/{flowDiagram-PKNHOUZH-BmTY4iN1.js → flowDiagram-PKNHOUZH-Btsi4bIC.js} +1 -1
- package/ui-dist/assets/{ganttDiagram-A5KZAMGK-Rx3_ciMY.js → ganttDiagram-A5KZAMGK-D9607_n7.js} +1 -1
- package/ui-dist/assets/{gitGraphDiagram-K3NZZRJ6-BSRwIrhI.js → gitGraphDiagram-K3NZZRJ6-DuJZbawi.js} +1 -1
- package/ui-dist/assets/{graph-C8ZACe2j.js → graph-CzzcMZjZ.js} +1 -1
- package/ui-dist/assets/{index-BZKsiCwA.js → index-6-mBOW4L.js} +1 -1
- package/ui-dist/assets/{index-z1an-zlr.js → index-BElMoOcl.js} +1 -1
- package/ui-dist/assets/{index-DP8nG4Ma.js → index-BHTArDmw.js} +1 -1
- package/ui-dist/assets/{index-jdhuEGPi.js → index-B_mXuEqJ.js} +1 -1
- package/ui-dist/assets/{index-B_wfe9Sq.js → index-Be1rLxo8.js} +1 -1
- package/ui-dist/assets/{index-B-SBJR-6.js → index-BlzWsRRW.js} +1 -1
- package/ui-dist/assets/{index-B8VxXSbS.js → index-C7eD9kLO.js} +1 -1
- package/ui-dist/assets/{index-ChHRnQjN.js → index-CB2kOtYK.js} +1 -1
- package/ui-dist/assets/{index-BWBQ0gJ1.js → index-CF3c2_3B.js} +1 -1
- package/ui-dist/assets/{index-BBtSnB9K.js → index-CIKUBddL.js} +1 -1
- package/ui-dist/assets/{index-DgPWaICy.js → index-CV51eG9V.js} +1 -1
- package/ui-dist/assets/index-Cl8ezghO.js +1575 -0
- package/ui-dist/assets/{index-B1jERrQP.js → index-CnKhnjg4.js} +1 -1
- package/ui-dist/assets/{index-oZ4uufqd.js → index-CxEId4kL.js} +1 -1
- package/ui-dist/assets/{index-Bc2KXsRy.js → index-CzoiRvOV.js} +1 -1
- package/ui-dist/assets/{index-BMaTBxHN.js → index-DFXiVVb9.js} +1 -1
- package/ui-dist/assets/{index-BZSbMc-V.js → index-DIM_TiMc.js} +1 -1
- package/ui-dist/assets/{index-B1lP_8Qm.js → index-DNHf2t08.js} +1 -1
- package/ui-dist/assets/{index-CIs6NOKk.js → index-DUi_nJkz.js} +1 -1
- package/ui-dist/assets/{index-CBTxOaVA.js → index-DZhxjaRV.js} +1 -1
- package/ui-dist/assets/{index-CCpTBOz2.js → index-De1w_DPK.js} +1 -1
- package/ui-dist/assets/index-DqSQXuKR.css +1 -0
- package/ui-dist/assets/{index-Av1vlrq_.js → index-DwK538a4.js} +1 -1
- package/ui-dist/assets/{index-jXMbbWhe.js → index-PLtyPrYV.js} +1 -1
- package/ui-dist/assets/{infoDiagram-LFFYTUFH-ZZkrWlCG.js → infoDiagram-LFFYTUFH-DiGITl2v.js} +1 -1
- package/ui-dist/assets/{ishikawaDiagram-PHBUUO56-C2kVJE3b.js → ishikawaDiagram-PHBUUO56-B0Wcc98L.js} +1 -1
- package/ui-dist/assets/{journeyDiagram-4ABVD52K-CUD8BfGC.js → journeyDiagram-4ABVD52K-CcwSx0Z4.js} +1 -1
- package/ui-dist/assets/{kanban-definition-K7BYSVSG-BSWhRDpQ.js → kanban-definition-K7BYSVSG-DeFt4kJ_.js} +1 -1
- package/ui-dist/assets/layout-BrGj-OnF.js +1 -0
- package/ui-dist/assets/{linear-B-yRz7s6.js → linear-DuFtuF_z.js} +1 -1
- package/ui-dist/assets/{mermaid.core-C-baF8bZ.js → mermaid.core-2Rx3AQaR.js} +57 -57
- package/ui-dist/assets/{mindmap-definition-YRQLILUH--gAgZZcl.js → mindmap-definition-YRQLILUH-B1Ng106P.js} +1 -1
- package/ui-dist/assets/{pieDiagram-SKSYHLDU-D98SS0Px.js → pieDiagram-SKSYHLDU-CHZc9iJf.js} +1 -1
- package/ui-dist/assets/{quadrantDiagram-337W2JSQ-BmE8vYkT.js → quadrantDiagram-337W2JSQ-vPyVOekT.js} +1 -1
- package/ui-dist/assets/{requirementDiagram-Z7DCOOCP-CBQB1rD1.js → requirementDiagram-Z7DCOOCP-OigqxZdS.js} +1 -1
- package/ui-dist/assets/{sankeyDiagram-WA2Y5GQK-B3YGzVwa.js → sankeyDiagram-WA2Y5GQK-BlqJUkbX.js} +1 -1
- package/ui-dist/assets/{sequenceDiagram-2WXFIKYE-B2MI2OVq.js → sequenceDiagram-2WXFIKYE-Dz0GHXK-.js} +1 -1
- package/ui-dist/assets/{stateDiagram-RAJIS63D-CnS8Uc6U.js → stateDiagram-RAJIS63D-BDp0frpT.js} +1 -1
- package/ui-dist/assets/stateDiagram-v2-FVOUBMTO-5yU2N9vK.js +1 -0
- package/ui-dist/assets/{timeline-definition-YZTLITO2-BSfReMsG.js → timeline-definition-YZTLITO2-Dluuvy7L.js} +1 -1
- package/ui-dist/assets/{treemap-KZPCXAKY-C4agj3NM.js → treemap-KZPCXAKY-CPpWyCyI.js} +4 -4
- package/ui-dist/assets/{vennDiagram-LZ73GAT5-tQ-QmgUr.js → vennDiagram-LZ73GAT5-CROeIBwe.js} +1 -1
- package/ui-dist/assets/{xychartDiagram-JWTSCODW-BcGHupvs.js → xychartDiagram-JWTSCODW-C3xQ6szH.js} +1 -1
- package/ui-dist/brands/claude-logo.svg +1 -0
- package/ui-dist/brands/cursor-logo.svg +1 -0
- package/ui-dist/brands/google-gemini-logo.svg +1 -0
- package/ui-dist/brands/openai-logo.svg +1 -0
- package/ui-dist/brands/pi-logo.svg +28 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/_basePickBy-DHmAX-Ut.js +0 -1
- package/ui-dist/assets/_baseUniq-DpYhcode.js +0 -1
- package/ui-dist/assets/channel-L2R-jds5.js +0 -1
- package/ui-dist/assets/classDiagram-VBA2DB6C-CGKCZZyI.js +0 -1
- package/ui-dist/assets/classDiagram-v2-RAHNMMFH-CGKCZZyI.js +0 -1
- package/ui-dist/assets/clone-DxezikrM.js +0 -1
- package/ui-dist/assets/index-DB4yE_BH.js +0 -1537
- package/ui-dist/assets/index-bF3vOu6G.css +0 -1
- package/ui-dist/assets/layout-ChF-xA6S.js +0 -1
- package/ui-dist/assets/stateDiagram-v2-FVOUBMTO-DU4TN-D0.js +0 -1
|
@@ -106,7 +106,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
106
106
|
tableName: "plugins";
|
|
107
107
|
dataType: "json";
|
|
108
108
|
columnType: "PgJsonb";
|
|
109
|
-
data: ("
|
|
109
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
110
110
|
driverParam: unknown;
|
|
111
111
|
notNull: true;
|
|
112
112
|
hasDefault: true;
|
|
@@ -118,7 +118,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
118
118
|
identity: undefined;
|
|
119
119
|
generated: undefined;
|
|
120
120
|
}, {}, {
|
|
121
|
-
$type: ("
|
|
121
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
122
122
|
}>;
|
|
123
123
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
124
124
|
name: "manifest_json";
|
|
@@ -144,7 +144,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
144
144
|
tableName: "plugins";
|
|
145
145
|
dataType: "string";
|
|
146
146
|
columnType: "PgText";
|
|
147
|
-
data: "
|
|
147
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
148
148
|
driverParam: string;
|
|
149
149
|
notNull: true;
|
|
150
150
|
hasDefault: true;
|
|
@@ -156,7 +156,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
156
156
|
identity: undefined;
|
|
157
157
|
generated: undefined;
|
|
158
158
|
}, {}, {
|
|
159
|
-
$type: "
|
|
159
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
160
160
|
}>;
|
|
161
161
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
162
162
|
name: "install_order";
|
|
@@ -244,18 +244,18 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
244
244
|
generated: undefined;
|
|
245
245
|
}, {}, {}>;
|
|
246
246
|
}, "single", Record<"plugins", "not-null">, false, "orderBy", {
|
|
247
|
-
version: string;
|
|
248
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
249
247
|
id: string;
|
|
248
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
250
249
|
updatedAt: Date;
|
|
250
|
+
version: string;
|
|
251
|
+
apiVersion: number;
|
|
252
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
253
|
+
packageName: string;
|
|
254
|
+
packagePath: string | null;
|
|
251
255
|
lastError: string | null;
|
|
252
256
|
pluginKey: string;
|
|
253
|
-
packageName: string;
|
|
254
|
-
apiVersion: number;
|
|
255
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
256
257
|
manifestJson: PaperclipPluginManifestV1;
|
|
257
258
|
installOrder: number | null;
|
|
258
|
-
packagePath: string | null;
|
|
259
259
|
installedAt: Date;
|
|
260
260
|
}[], {
|
|
261
261
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -348,7 +348,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
348
348
|
tableName: "plugins";
|
|
349
349
|
dataType: "json";
|
|
350
350
|
columnType: "PgJsonb";
|
|
351
|
-
data: ("
|
|
351
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
352
352
|
driverParam: unknown;
|
|
353
353
|
notNull: true;
|
|
354
354
|
hasDefault: true;
|
|
@@ -360,7 +360,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
360
360
|
identity: undefined;
|
|
361
361
|
generated: undefined;
|
|
362
362
|
}, {}, {
|
|
363
|
-
$type: ("
|
|
363
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
364
364
|
}>;
|
|
365
365
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
366
366
|
name: "manifest_json";
|
|
@@ -386,7 +386,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
386
386
|
tableName: "plugins";
|
|
387
387
|
dataType: "string";
|
|
388
388
|
columnType: "PgText";
|
|
389
|
-
data: "
|
|
389
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
390
390
|
driverParam: string;
|
|
391
391
|
notNull: true;
|
|
392
392
|
hasDefault: true;
|
|
@@ -398,7 +398,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
398
398
|
identity: undefined;
|
|
399
399
|
generated: undefined;
|
|
400
400
|
}, {}, {
|
|
401
|
-
$type: "
|
|
401
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
402
402
|
}>;
|
|
403
403
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
404
404
|
name: "install_order";
|
|
@@ -581,7 +581,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
581
581
|
tableName: "plugins";
|
|
582
582
|
dataType: "json";
|
|
583
583
|
columnType: "PgJsonb";
|
|
584
|
-
data: ("
|
|
584
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
585
585
|
driverParam: unknown;
|
|
586
586
|
notNull: true;
|
|
587
587
|
hasDefault: true;
|
|
@@ -593,7 +593,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
593
593
|
identity: undefined;
|
|
594
594
|
generated: undefined;
|
|
595
595
|
}, {}, {
|
|
596
|
-
$type: ("
|
|
596
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
597
597
|
}>;
|
|
598
598
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
599
599
|
name: "manifest_json";
|
|
@@ -619,7 +619,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
619
619
|
tableName: "plugins";
|
|
620
620
|
dataType: "string";
|
|
621
621
|
columnType: "PgText";
|
|
622
|
-
data: "
|
|
622
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
623
623
|
driverParam: string;
|
|
624
624
|
notNull: true;
|
|
625
625
|
hasDefault: true;
|
|
@@ -631,7 +631,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
631
631
|
identity: undefined;
|
|
632
632
|
generated: undefined;
|
|
633
633
|
}, {}, {
|
|
634
|
-
$type: "
|
|
634
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
635
635
|
}>;
|
|
636
636
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
637
637
|
name: "install_order";
|
|
@@ -719,18 +719,18 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
719
719
|
generated: undefined;
|
|
720
720
|
}, {}, {}>;
|
|
721
721
|
}, "single", Record<"plugins", "not-null">, false, "where" | "orderBy", {
|
|
722
|
-
version: string;
|
|
723
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
724
722
|
id: string;
|
|
723
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
725
724
|
updatedAt: Date;
|
|
725
|
+
version: string;
|
|
726
|
+
apiVersion: number;
|
|
727
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
728
|
+
packageName: string;
|
|
729
|
+
packagePath: string | null;
|
|
726
730
|
lastError: string | null;
|
|
727
731
|
pluginKey: string;
|
|
728
|
-
packageName: string;
|
|
729
|
-
apiVersion: number;
|
|
730
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
731
732
|
manifestJson: PaperclipPluginManifestV1;
|
|
732
733
|
installOrder: number | null;
|
|
733
|
-
packagePath: string | null;
|
|
734
734
|
installedAt: Date;
|
|
735
735
|
}[], {
|
|
736
736
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -823,7 +823,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
823
823
|
tableName: "plugins";
|
|
824
824
|
dataType: "json";
|
|
825
825
|
columnType: "PgJsonb";
|
|
826
|
-
data: ("
|
|
826
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
827
827
|
driverParam: unknown;
|
|
828
828
|
notNull: true;
|
|
829
829
|
hasDefault: true;
|
|
@@ -835,7 +835,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
835
835
|
identity: undefined;
|
|
836
836
|
generated: undefined;
|
|
837
837
|
}, {}, {
|
|
838
|
-
$type: ("
|
|
838
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
839
839
|
}>;
|
|
840
840
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
841
841
|
name: "manifest_json";
|
|
@@ -861,7 +861,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
861
861
|
tableName: "plugins";
|
|
862
862
|
dataType: "string";
|
|
863
863
|
columnType: "PgText";
|
|
864
|
-
data: "
|
|
864
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
865
865
|
driverParam: string;
|
|
866
866
|
notNull: true;
|
|
867
867
|
hasDefault: true;
|
|
@@ -873,7 +873,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
873
873
|
identity: undefined;
|
|
874
874
|
generated: undefined;
|
|
875
875
|
}, {}, {
|
|
876
|
-
$type: "
|
|
876
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
877
877
|
}>;
|
|
878
878
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
879
879
|
name: "install_order";
|
|
@@ -1053,7 +1053,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1053
1053
|
tableName: "plugins";
|
|
1054
1054
|
dataType: "json";
|
|
1055
1055
|
columnType: "PgJsonb";
|
|
1056
|
-
data: ("
|
|
1056
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1057
1057
|
driverParam: unknown;
|
|
1058
1058
|
notNull: true;
|
|
1059
1059
|
hasDefault: true;
|
|
@@ -1065,7 +1065,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1065
1065
|
identity: undefined;
|
|
1066
1066
|
generated: undefined;
|
|
1067
1067
|
}, {}, {
|
|
1068
|
-
$type: ("
|
|
1068
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1069
1069
|
}>;
|
|
1070
1070
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
1071
1071
|
name: "manifest_json";
|
|
@@ -1091,7 +1091,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1091
1091
|
tableName: "plugins";
|
|
1092
1092
|
dataType: "string";
|
|
1093
1093
|
columnType: "PgText";
|
|
1094
|
-
data: "
|
|
1094
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1095
1095
|
driverParam: string;
|
|
1096
1096
|
notNull: true;
|
|
1097
1097
|
hasDefault: true;
|
|
@@ -1103,7 +1103,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1103
1103
|
identity: undefined;
|
|
1104
1104
|
generated: undefined;
|
|
1105
1105
|
}, {}, {
|
|
1106
|
-
$type: "
|
|
1106
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1107
1107
|
}>;
|
|
1108
1108
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
1109
1109
|
name: "install_order";
|
|
@@ -1191,18 +1191,18 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1191
1191
|
generated: undefined;
|
|
1192
1192
|
}, {}, {}>;
|
|
1193
1193
|
}, "single", Record<"plugins", "not-null">, false, "where" | "orderBy", {
|
|
1194
|
-
version: string;
|
|
1195
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
1196
1194
|
id: string;
|
|
1195
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1197
1196
|
updatedAt: Date;
|
|
1197
|
+
version: string;
|
|
1198
|
+
apiVersion: number;
|
|
1199
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1200
|
+
packageName: string;
|
|
1201
|
+
packagePath: string | null;
|
|
1198
1202
|
lastError: string | null;
|
|
1199
1203
|
pluginKey: string;
|
|
1200
|
-
packageName: string;
|
|
1201
|
-
apiVersion: number;
|
|
1202
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
1203
1204
|
manifestJson: PaperclipPluginManifestV1;
|
|
1204
1205
|
installOrder: number | null;
|
|
1205
|
-
packagePath: string | null;
|
|
1206
1206
|
installedAt: Date;
|
|
1207
1207
|
}[], {
|
|
1208
1208
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -1295,7 +1295,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1295
1295
|
tableName: "plugins";
|
|
1296
1296
|
dataType: "json";
|
|
1297
1297
|
columnType: "PgJsonb";
|
|
1298
|
-
data: ("
|
|
1298
|
+
data: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1299
1299
|
driverParam: unknown;
|
|
1300
1300
|
notNull: true;
|
|
1301
1301
|
hasDefault: true;
|
|
@@ -1307,7 +1307,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1307
1307
|
identity: undefined;
|
|
1308
1308
|
generated: undefined;
|
|
1309
1309
|
}, {}, {
|
|
1310
|
-
$type: ("
|
|
1310
|
+
$type: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1311
1311
|
}>;
|
|
1312
1312
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
1313
1313
|
name: "manifest_json";
|
|
@@ -1333,7 +1333,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1333
1333
|
tableName: "plugins";
|
|
1334
1334
|
dataType: "string";
|
|
1335
1335
|
columnType: "PgText";
|
|
1336
|
-
data: "
|
|
1336
|
+
data: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1337
1337
|
driverParam: string;
|
|
1338
1338
|
notNull: true;
|
|
1339
1339
|
hasDefault: true;
|
|
@@ -1345,7 +1345,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1345
1345
|
identity: undefined;
|
|
1346
1346
|
generated: undefined;
|
|
1347
1347
|
}, {}, {
|
|
1348
|
-
$type: "
|
|
1348
|
+
$type: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1349
1349
|
}>;
|
|
1350
1350
|
installOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
1351
1351
|
name: "install_order";
|
|
@@ -1435,34 +1435,34 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1435
1435
|
}>, "where" | "orderBy">;
|
|
1436
1436
|
/** Get a single plugin by primary key. */
|
|
1437
1437
|
getById: (id: string) => Promise<{
|
|
1438
|
-
version: string;
|
|
1439
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
1440
1438
|
id: string;
|
|
1439
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1441
1440
|
updatedAt: Date;
|
|
1441
|
+
version: string;
|
|
1442
|
+
apiVersion: number;
|
|
1443
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1444
|
+
packageName: string;
|
|
1445
|
+
packagePath: string | null;
|
|
1442
1446
|
lastError: string | null;
|
|
1443
1447
|
pluginKey: string;
|
|
1444
|
-
packageName: string;
|
|
1445
|
-
apiVersion: number;
|
|
1446
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
1447
1448
|
manifestJson: PaperclipPluginManifestV1;
|
|
1448
1449
|
installOrder: number | null;
|
|
1449
|
-
packagePath: string | null;
|
|
1450
1450
|
installedAt: Date;
|
|
1451
1451
|
}>;
|
|
1452
1452
|
/** Get a single plugin by its unique `pluginKey`. */
|
|
1453
1453
|
getByKey: (pluginKey: string) => Promise<{
|
|
1454
|
-
version: string;
|
|
1455
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
1456
1454
|
id: string;
|
|
1455
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1457
1456
|
updatedAt: Date;
|
|
1457
|
+
version: string;
|
|
1458
|
+
apiVersion: number;
|
|
1459
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1460
|
+
packageName: string;
|
|
1461
|
+
packagePath: string | null;
|
|
1458
1462
|
lastError: string | null;
|
|
1459
1463
|
pluginKey: string;
|
|
1460
|
-
packageName: string;
|
|
1461
|
-
apiVersion: number;
|
|
1462
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
1463
1464
|
manifestJson: PaperclipPluginManifestV1;
|
|
1464
1465
|
installOrder: number | null;
|
|
1465
|
-
packagePath: string | null;
|
|
1466
1466
|
installedAt: Date;
|
|
1467
1467
|
}>;
|
|
1468
1468
|
/**
|
|
@@ -1473,18 +1473,18 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1473
1473
|
* assigns the next install order.
|
|
1474
1474
|
*/
|
|
1475
1475
|
install: (input: InstallPlugin, manifest: PaperclipPluginManifestV1) => Promise<{
|
|
1476
|
-
version: string;
|
|
1477
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
1478
1476
|
id: string;
|
|
1477
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1479
1478
|
updatedAt: Date;
|
|
1479
|
+
version: string;
|
|
1480
|
+
apiVersion: number;
|
|
1481
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1482
|
+
packageName: string;
|
|
1483
|
+
packagePath: string | null;
|
|
1480
1484
|
lastError: string | null;
|
|
1481
1485
|
pluginKey: string;
|
|
1482
|
-
packageName: string;
|
|
1483
|
-
apiVersion: number;
|
|
1484
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
1485
1486
|
manifestJson: PaperclipPluginManifestV1;
|
|
1486
1487
|
installOrder: number | null;
|
|
1487
|
-
packagePath: string | null;
|
|
1488
1488
|
installedAt: Date;
|
|
1489
1489
|
}>;
|
|
1490
1490
|
/**
|
|
@@ -1501,9 +1501,9 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1501
1501
|
packageName: string;
|
|
1502
1502
|
version: string;
|
|
1503
1503
|
apiVersion: number;
|
|
1504
|
-
categories: ("
|
|
1504
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1505
1505
|
manifestJson: PaperclipPluginManifestV1;
|
|
1506
|
-
status: "
|
|
1506
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1507
1507
|
installOrder: number | null;
|
|
1508
1508
|
packagePath: string | null;
|
|
1509
1509
|
lastError: string | null;
|
|
@@ -1517,9 +1517,9 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1517
1517
|
packageName: string;
|
|
1518
1518
|
version: string;
|
|
1519
1519
|
apiVersion: number;
|
|
1520
|
-
categories: ("
|
|
1520
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1521
1521
|
manifestJson: PaperclipPluginManifestV1;
|
|
1522
|
-
status: "
|
|
1522
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1523
1523
|
installOrder: number | null;
|
|
1524
1524
|
packagePath: string | null;
|
|
1525
1525
|
lastError: string | null;
|
|
@@ -1534,28 +1534,28 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1534
1534
|
* a soft-delete that preserves the record.
|
|
1535
1535
|
*/
|
|
1536
1536
|
uninstall: (id: string, removeData?: boolean) => Promise<{
|
|
1537
|
-
version: string;
|
|
1538
|
-
status: "error" | "installed" | "ready" | "disabled" | "upgrade_pending" | "uninstalled";
|
|
1539
1537
|
id: string;
|
|
1538
|
+
status: "disabled" | "error" | "installed" | "ready" | "upgrade_pending" | "uninstalled";
|
|
1540
1539
|
updatedAt: Date;
|
|
1540
|
+
version: string;
|
|
1541
|
+
apiVersion: number;
|
|
1542
|
+
categories: ("automation" | "connector" | "workspace" | "ui")[];
|
|
1543
|
+
packageName: string;
|
|
1544
|
+
packagePath: string | null;
|
|
1541
1545
|
lastError: string | null;
|
|
1542
1546
|
pluginKey: string;
|
|
1543
|
-
packageName: string;
|
|
1544
|
-
apiVersion: number;
|
|
1545
|
-
categories: ("connector" | "workspace" | "automation" | "ui")[];
|
|
1546
1547
|
manifestJson: PaperclipPluginManifestV1;
|
|
1547
1548
|
installOrder: number | null;
|
|
1548
|
-
packagePath: string | null;
|
|
1549
1549
|
installedAt: Date;
|
|
1550
1550
|
}>;
|
|
1551
1551
|
/** Retrieve a plugin's instance configuration. */
|
|
1552
1552
|
getConfig: (pluginId: string) => Promise<{
|
|
1553
|
-
createdAt: Date;
|
|
1554
1553
|
id: string;
|
|
1555
1554
|
updatedAt: Date;
|
|
1555
|
+
createdAt: Date;
|
|
1556
|
+
configJson: Record<string, unknown>;
|
|
1556
1557
|
lastError: string | null;
|
|
1557
1558
|
pluginId: string;
|
|
1558
|
-
configJson: Record<string, unknown>;
|
|
1559
1559
|
}>;
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Create or fully replace a plugin's instance configuration.
|
|
@@ -1563,24 +1563,24 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1563
1563
|
* otherwise a new row is inserted.
|
|
1564
1564
|
*/
|
|
1565
1565
|
upsertConfig: (pluginId: string, input: UpsertPluginConfig) => Promise<{
|
|
1566
|
-
createdAt: Date;
|
|
1567
1566
|
id: string;
|
|
1568
1567
|
updatedAt: Date;
|
|
1568
|
+
createdAt: Date;
|
|
1569
|
+
configJson: Record<string, unknown>;
|
|
1569
1570
|
lastError: string | null;
|
|
1570
1571
|
pluginId: string;
|
|
1571
|
-
configJson: Record<string, unknown>;
|
|
1572
1572
|
}>;
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Partially update a plugin's instance configuration via shallow merge.
|
|
1575
1575
|
* If no config row exists yet one is created with the supplied values.
|
|
1576
1576
|
*/
|
|
1577
1577
|
patchConfig: (pluginId: string, input: PatchPluginConfig) => Promise<{
|
|
1578
|
-
createdAt: Date;
|
|
1579
1578
|
id: string;
|
|
1580
1579
|
updatedAt: Date;
|
|
1580
|
+
createdAt: Date;
|
|
1581
|
+
configJson: Record<string, unknown>;
|
|
1581
1582
|
lastError: string | null;
|
|
1582
1583
|
pluginId: string;
|
|
1583
|
-
configJson: Record<string, unknown>;
|
|
1584
1584
|
}>;
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Record an error against a plugin's config (e.g. validation failure
|
|
@@ -1596,12 +1596,12 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1596
1596
|
}>;
|
|
1597
1597
|
/** Delete a plugin's config row. */
|
|
1598
1598
|
deleteConfig: (pluginId: string) => Promise<{
|
|
1599
|
-
createdAt: Date;
|
|
1600
1599
|
id: string;
|
|
1601
1600
|
updatedAt: Date;
|
|
1601
|
+
createdAt: Date;
|
|
1602
|
+
configJson: Record<string, unknown>;
|
|
1602
1603
|
lastError: string | null;
|
|
1603
1604
|
pluginId: string;
|
|
1604
|
-
configJson: Record<string, unknown>;
|
|
1605
1605
|
}>;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* List persistent entity mappings owned by a specific plugin, with filtering and pagination.
|
|
@@ -1667,7 +1667,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1667
1667
|
tableName: "plugin_entities";
|
|
1668
1668
|
dataType: "string";
|
|
1669
1669
|
columnType: "PgText";
|
|
1670
|
-
data: "
|
|
1670
|
+
data: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
1671
1671
|
driverParam: string;
|
|
1672
1672
|
notNull: true;
|
|
1673
1673
|
hasDefault: false;
|
|
@@ -1679,7 +1679,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1679
1679
|
identity: undefined;
|
|
1680
1680
|
generated: undefined;
|
|
1681
1681
|
}, {}, {
|
|
1682
|
-
$type: "
|
|
1682
|
+
$type: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
1683
1683
|
}>;
|
|
1684
1684
|
scopeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1685
1685
|
name: "scope_id";
|
|
@@ -1803,17 +1803,17 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1803
1803
|
generated: undefined;
|
|
1804
1804
|
}, {}, {}>;
|
|
1805
1805
|
}, "single", Record<"plugin_entities", "not-null">, false, "where" | "orderBy" | "limit" | "offset", {
|
|
1806
|
-
|
|
1807
|
-
createdAt: Date;
|
|
1808
|
-
status: string | null;
|
|
1806
|
+
title: string | null;
|
|
1809
1807
|
id: string;
|
|
1808
|
+
status: string | null;
|
|
1810
1809
|
updatedAt: Date;
|
|
1811
|
-
|
|
1812
|
-
pluginId: string;
|
|
1813
|
-
entityType: string;
|
|
1814
|
-
scopeKind: "agent" | "organization" | "project_workspace" | "run" | "issue" | "instance" | "project" | "goal";
|
|
1810
|
+
createdAt: Date;
|
|
1815
1811
|
scopeId: string | null;
|
|
1812
|
+
entityType: string;
|
|
1813
|
+
data: Record<string, unknown>;
|
|
1816
1814
|
externalId: string | null;
|
|
1815
|
+
scopeKind: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
1816
|
+
pluginId: string;
|
|
1817
1817
|
}[], {
|
|
1818
1818
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
1819
1819
|
name: "id";
|
|
@@ -1871,7 +1871,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1871
1871
|
tableName: "plugin_entities";
|
|
1872
1872
|
dataType: "string";
|
|
1873
1873
|
columnType: "PgText";
|
|
1874
|
-
data: "
|
|
1874
|
+
data: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
1875
1875
|
driverParam: string;
|
|
1876
1876
|
notNull: true;
|
|
1877
1877
|
hasDefault: false;
|
|
@@ -1883,7 +1883,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
1883
1883
|
identity: undefined;
|
|
1884
1884
|
generated: undefined;
|
|
1885
1885
|
}, {}, {
|
|
1886
|
-
$type: "
|
|
1886
|
+
$type: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
1887
1887
|
}>;
|
|
1888
1888
|
scopeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1889
1889
|
name: "scope_id";
|
|
@@ -2016,17 +2016,17 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2016
2016
|
* @returns The matching `PluginEntityRecord` or null.
|
|
2017
2017
|
*/
|
|
2018
2018
|
getEntityByExternalId: (pluginId: string, entityType: string, externalId: string) => Promise<{
|
|
2019
|
-
|
|
2020
|
-
createdAt: Date;
|
|
2021
|
-
status: string | null;
|
|
2019
|
+
title: string | null;
|
|
2022
2020
|
id: string;
|
|
2021
|
+
status: string | null;
|
|
2023
2022
|
updatedAt: Date;
|
|
2024
|
-
|
|
2025
|
-
pluginId: string;
|
|
2026
|
-
entityType: string;
|
|
2027
|
-
scopeKind: "agent" | "organization" | "project_workspace" | "run" | "issue" | "instance" | "project" | "goal";
|
|
2023
|
+
createdAt: Date;
|
|
2028
2024
|
scopeId: string | null;
|
|
2025
|
+
entityType: string;
|
|
2026
|
+
data: Record<string, unknown>;
|
|
2029
2027
|
externalId: string | null;
|
|
2028
|
+
scopeKind: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
2029
|
+
pluginId: string;
|
|
2030
2030
|
}>;
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Create or update a persistent mapping between a Rudder object and an
|
|
@@ -2037,17 +2037,17 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2037
2037
|
* @returns The newly created or updated `PluginEntityRecord`.
|
|
2038
2038
|
*/
|
|
2039
2039
|
upsertEntity: (pluginId: string, input: Omit<typeof pluginEntities.$inferInsert, "id" | "pluginId" | "createdAt" | "updatedAt">) => Promise<{
|
|
2040
|
-
|
|
2041
|
-
createdAt: Date;
|
|
2042
|
-
status: string | null;
|
|
2040
|
+
title: string | null;
|
|
2043
2041
|
id: string;
|
|
2042
|
+
status: string | null;
|
|
2044
2043
|
updatedAt: Date;
|
|
2045
|
-
|
|
2046
|
-
pluginId: string;
|
|
2047
|
-
entityType: string;
|
|
2048
|
-
scopeKind: "agent" | "organization" | "project_workspace" | "run" | "issue" | "instance" | "project" | "goal";
|
|
2044
|
+
createdAt: Date;
|
|
2049
2045
|
scopeId: string | null;
|
|
2046
|
+
entityType: string;
|
|
2047
|
+
data: Record<string, unknown>;
|
|
2050
2048
|
externalId: string | null;
|
|
2049
|
+
scopeKind: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
2050
|
+
pluginId: string;
|
|
2051
2051
|
}>;
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Delete a specific plugin-owned entity mapping by its internal UUID.
|
|
@@ -2056,17 +2056,17 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2056
2056
|
* @returns The deleted record, or null if not found.
|
|
2057
2057
|
*/
|
|
2058
2058
|
deleteEntity: (id: string) => Promise<{
|
|
2059
|
-
|
|
2060
|
-
createdAt: Date;
|
|
2061
|
-
status: string | null;
|
|
2059
|
+
title: string | null;
|
|
2062
2060
|
id: string;
|
|
2061
|
+
status: string | null;
|
|
2063
2062
|
updatedAt: Date;
|
|
2064
|
-
|
|
2065
|
-
pluginId: string;
|
|
2066
|
-
entityType: string;
|
|
2067
|
-
scopeKind: "agent" | "organization" | "project_workspace" | "run" | "issue" | "instance" | "project" | "goal";
|
|
2063
|
+
createdAt: Date;
|
|
2068
2064
|
scopeId: string | null;
|
|
2065
|
+
entityType: string;
|
|
2066
|
+
data: Record<string, unknown>;
|
|
2069
2067
|
externalId: string | null;
|
|
2068
|
+
scopeKind: "agent" | "issue" | "project" | "organization" | "goal" | "run" | "instance" | "project_workspace";
|
|
2069
|
+
pluginId: string;
|
|
2070
2070
|
}>;
|
|
2071
2071
|
/**
|
|
2072
2072
|
* List all scheduled jobs registered for a specific plugin.
|
|
@@ -2231,15 +2231,15 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2231
2231
|
generated: undefined;
|
|
2232
2232
|
}, {}, {}>;
|
|
2233
2233
|
}, "single", Record<"plugin_jobs", "not-null">, false, "where" | "orderBy", {
|
|
2234
|
-
|
|
2235
|
-
status: "active" | "failed" | "paused";
|
|
2234
|
+
schedule: string;
|
|
2236
2235
|
id: string;
|
|
2236
|
+
status: "active" | "paused" | "failed";
|
|
2237
2237
|
updatedAt: Date;
|
|
2238
|
-
|
|
2239
|
-
|
|
2238
|
+
createdAt: Date;
|
|
2239
|
+
nextRunAt: Date | null;
|
|
2240
2240
|
jobKey: string;
|
|
2241
|
+
pluginId: string;
|
|
2241
2242
|
lastRunAt: Date | null;
|
|
2242
|
-
nextRunAt: Date | null;
|
|
2243
2243
|
}[], {
|
|
2244
2244
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2245
2245
|
name: "id";
|
|
@@ -2405,15 +2405,15 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2405
2405
|
* @returns The matching `PluginJobRecord` or null.
|
|
2406
2406
|
*/
|
|
2407
2407
|
getJobByKey: (pluginId: string, jobKey: string) => Promise<{
|
|
2408
|
-
|
|
2409
|
-
status: "active" | "failed" | "paused";
|
|
2408
|
+
schedule: string;
|
|
2410
2409
|
id: string;
|
|
2410
|
+
status: "active" | "paused" | "failed";
|
|
2411
2411
|
updatedAt: Date;
|
|
2412
|
-
|
|
2413
|
-
|
|
2412
|
+
createdAt: Date;
|
|
2413
|
+
nextRunAt: Date | null;
|
|
2414
2414
|
jobKey: string;
|
|
2415
|
+
pluginId: string;
|
|
2415
2416
|
lastRunAt: Date | null;
|
|
2416
|
-
nextRunAt: Date | null;
|
|
2417
2417
|
}>;
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Register or update a scheduled job for a plugin.
|
|
@@ -2427,15 +2427,15 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2427
2427
|
schedule: string;
|
|
2428
2428
|
status?: PluginJobStatus;
|
|
2429
2429
|
}) => Promise<{
|
|
2430
|
-
|
|
2431
|
-
status: "active" | "failed" | "paused";
|
|
2430
|
+
schedule: string;
|
|
2432
2431
|
id: string;
|
|
2432
|
+
status: "active" | "paused" | "failed";
|
|
2433
2433
|
updatedAt: Date;
|
|
2434
|
-
|
|
2435
|
-
|
|
2434
|
+
createdAt: Date;
|
|
2435
|
+
nextRunAt: Date | null;
|
|
2436
2436
|
jobKey: string;
|
|
2437
|
+
pluginId: string;
|
|
2437
2438
|
lastRunAt: Date | null;
|
|
2438
|
-
nextRunAt: Date | null;
|
|
2439
2439
|
}>;
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Record the start of a specific job execution.
|
|
@@ -2446,17 +2446,17 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2446
2446
|
* @returns The newly created `PluginJobRunRecord` in 'pending' status.
|
|
2447
2447
|
*/
|
|
2448
2448
|
createJobRun: (pluginId: string, jobId: string, trigger: PluginJobRunTrigger) => Promise<{
|
|
2449
|
-
logs: string[];
|
|
2450
|
-
startedAt: Date | null;
|
|
2451
|
-
createdAt: Date;
|
|
2452
|
-
status: "pending" | "cancelled" | "running" | "failed" | "queued" | "succeeded";
|
|
2453
2449
|
error: string | null;
|
|
2454
2450
|
id: string;
|
|
2451
|
+
status: "running" | "cancelled" | "failed" | "pending" | "queued" | "succeeded";
|
|
2452
|
+
startedAt: Date | null;
|
|
2453
|
+
createdAt: Date;
|
|
2455
2454
|
finishedAt: Date | null;
|
|
2456
2455
|
pluginId: string;
|
|
2457
2456
|
jobId: string;
|
|
2458
2457
|
trigger: "manual" | "schedule" | "retry";
|
|
2459
2458
|
durationMs: number | null;
|
|
2459
|
+
logs: string[];
|
|
2460
2460
|
}>;
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Update the status, duration, and logs of a job execution record.
|
|
@@ -2477,7 +2477,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2477
2477
|
jobId: string;
|
|
2478
2478
|
pluginId: string;
|
|
2479
2479
|
trigger: "manual" | "schedule" | "retry";
|
|
2480
|
-
status: "
|
|
2480
|
+
status: "running" | "cancelled" | "failed" | "pending" | "queued" | "succeeded";
|
|
2481
2481
|
durationMs: number | null;
|
|
2482
2482
|
error: string | null;
|
|
2483
2483
|
logs: string[];
|
|
@@ -2498,18 +2498,18 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2498
2498
|
payload: Record<string, unknown>;
|
|
2499
2499
|
headers?: Record<string, string>;
|
|
2500
2500
|
}) => Promise<{
|
|
2501
|
-
startedAt: Date | null;
|
|
2502
|
-
createdAt: Date;
|
|
2503
|
-
status: "pending" | "failed" | "success";
|
|
2504
2501
|
error: string | null;
|
|
2505
2502
|
id: string;
|
|
2506
|
-
|
|
2507
|
-
|
|
2503
|
+
status: "failed" | "pending" | "success";
|
|
2504
|
+
startedAt: Date | null;
|
|
2505
|
+
createdAt: Date;
|
|
2508
2506
|
payload: Record<string, unknown>;
|
|
2509
|
-
pluginId: string;
|
|
2510
2507
|
externalId: string | null;
|
|
2508
|
+
finishedAt: Date | null;
|
|
2509
|
+
pluginId: string;
|
|
2511
2510
|
durationMs: number | null;
|
|
2512
2511
|
webhookKey: string;
|
|
2512
|
+
headers: Record<string, string>;
|
|
2513
2513
|
}>;
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Update the status and processing metrics of a webhook delivery.
|
|
@@ -2529,7 +2529,7 @@ export declare function pluginRegistryService(db: Db): {
|
|
|
2529
2529
|
pluginId: string;
|
|
2530
2530
|
webhookKey: string;
|
|
2531
2531
|
externalId: string | null;
|
|
2532
|
-
status: "
|
|
2532
|
+
status: "failed" | "pending" | "success";
|
|
2533
2533
|
durationMs: number | null;
|
|
2534
2534
|
error: string | null;
|
|
2535
2535
|
payload: Record<string, unknown>;
|