@paperclipai/db 2026.626.0-canary.8 → 2026.626.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/dist/migrations/0124_agent_api_key_scope_config.sql +1 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/schema/agent_api_keys.d.ts +37 -0
- package/dist/schema/agent_api_keys.d.ts.map +1 -1
- package/dist/schema/agent_api_keys.js +2 -1
- package/dist/schema/agent_api_keys.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "agent_api_keys" ADD COLUMN IF NOT EXISTS "scope_config" jsonb;
|
|
@@ -869,6 +869,13 @@
|
|
|
869
869
|
"when": 1781903700000,
|
|
870
870
|
"tag": "0123_document_annotation_source_trust",
|
|
871
871
|
"breakpoints": true
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"idx": 124,
|
|
875
|
+
"version": "7",
|
|
876
|
+
"when": 1782440000000,
|
|
877
|
+
"tag": "0124_agent_api_key_scope_config",
|
|
878
|
+
"breakpoints": true
|
|
872
879
|
}
|
|
873
880
|
]
|
|
874
881
|
}
|
|
@@ -87,6 +87,43 @@ export declare const agentApiKeys: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
87
87
|
identity: undefined;
|
|
88
88
|
generated: undefined;
|
|
89
89
|
}, {}, {}>;
|
|
90
|
+
scopeConfig: import("drizzle-orm/pg-core").PgColumn<{
|
|
91
|
+
name: "scope_config";
|
|
92
|
+
tableName: "agent_api_keys";
|
|
93
|
+
dataType: "json";
|
|
94
|
+
columnType: "PgJsonb";
|
|
95
|
+
data: {
|
|
96
|
+
kind: "task_bridge";
|
|
97
|
+
projectId?: string | null | undefined;
|
|
98
|
+
projectIds?: string[] | undefined;
|
|
99
|
+
parentIssueId?: string | null | undefined;
|
|
100
|
+
parentIssueIds?: string[] | undefined;
|
|
101
|
+
allowedAssigneeAgentIds?: string[] | undefined;
|
|
102
|
+
} | {
|
|
103
|
+
kind: "standard";
|
|
104
|
+
} | null;
|
|
105
|
+
driverParam: unknown;
|
|
106
|
+
notNull: false;
|
|
107
|
+
hasDefault: false;
|
|
108
|
+
isPrimaryKey: false;
|
|
109
|
+
isAutoincrement: false;
|
|
110
|
+
hasRuntimeDefault: false;
|
|
111
|
+
enumValues: undefined;
|
|
112
|
+
baseColumn: never;
|
|
113
|
+
identity: undefined;
|
|
114
|
+
generated: undefined;
|
|
115
|
+
}, {}, {
|
|
116
|
+
$type: {
|
|
117
|
+
kind: "task_bridge";
|
|
118
|
+
projectId?: string | null | undefined;
|
|
119
|
+
projectIds?: string[] | undefined;
|
|
120
|
+
parentIssueId?: string | null | undefined;
|
|
121
|
+
parentIssueIds?: string[] | undefined;
|
|
122
|
+
allowedAssigneeAgentIds?: string[] | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
kind: "standard";
|
|
125
|
+
} | null;
|
|
126
|
+
}>;
|
|
90
127
|
lastUsedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
91
128
|
name: "last_used_at";
|
|
92
129
|
tableName: "agent_api_keys";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_api_keys.d.ts","sourceRoot":"","sources":["../../src/schema/agent_api_keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent_api_keys.d.ts","sourceRoot":"","sources":["../../src/schema/agent_api_keys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pgTable, uuid, text, timestamp, index } from "drizzle-orm/pg-core";
|
|
1
|
+
import { pgTable, uuid, text, timestamp, index, jsonb } from "drizzle-orm/pg-core";
|
|
2
2
|
import { agents } from "./agents.js";
|
|
3
3
|
import { companies } from "./companies.js";
|
|
4
4
|
export const agentApiKeys = pgTable("agent_api_keys", {
|
|
@@ -7,6 +7,7 @@ export const agentApiKeys = pgTable("agent_api_keys", {
|
|
|
7
7
|
companyId: uuid("company_id").notNull().references(() => companies.id),
|
|
8
8
|
name: text("name").notNull(),
|
|
9
9
|
keyHash: text("key_hash").notNull(),
|
|
10
|
+
scopeConfig: jsonb("scope_config").$type(),
|
|
10
11
|
lastUsedAt: timestamp("last_used_at", { withTimezone: true }),
|
|
11
12
|
revokedAt: timestamp("revoked_at", { withTimezone: true }),
|
|
12
13
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_api_keys.js","sourceRoot":"","sources":["../../src/schema/agent_api_keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent_api_keys.js","sourceRoot":"","sources":["../../src/schema/agent_api_keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CACjC,gBAAgB,EAChB;IACE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC,aAAa,EAAE;IAC3C,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IAC/D,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;IACtE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,KAAK,EAA2B;IACnE,UAAU,EAAE,SAAS,CAAC,cAAc,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;IAC7D,SAAS,EAAE,SAAS,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;IAC1D,SAAS,EAAE,SAAS,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE;CAClF,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IAClE,eAAe,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC;CAC9F,CAAC,CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperclipai/db",
|
|
3
|
-
"version": "2026.626.0
|
|
3
|
+
"version": "2026.626.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/paperclipai/paperclip",
|
|
6
6
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@paperclipai/shared": "2026.626.0
|
|
32
|
+
"@paperclipai/shared": "2026.626.0",
|
|
33
33
|
"drizzle-orm": "^0.45.2",
|
|
34
34
|
"embedded-postgres": "^18.1.0-beta.16",
|
|
35
35
|
"postgres": "^3.4.9"
|