@elizaos/plugin-sql 2.0.3-beta.2 → 2.0.3-beta.3

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.
Files changed (85) hide show
  1. package/package.json +3 -3
  2. package/src/dist/base.d.ts +1169 -0
  3. package/src/dist/browser/index.browser.d.ts +2 -0
  4. package/src/dist/browser/index.browser.js +31167 -0
  5. package/src/dist/browser/index.browser.js.map +76 -0
  6. package/src/dist/browser/index.d.ts +2 -0
  7. package/src/dist/cjs/index.d.ts +2 -0
  8. package/src/dist/cjs/index.node.cjs +13565 -0
  9. package/src/dist/cjs/index.node.cjs.map +75 -0
  10. package/src/dist/cjs/index.node.d.cts +2 -0
  11. package/src/dist/connector-credential-store.d.ts +48 -0
  12. package/src/dist/drizzle/index.d.ts +1 -0
  13. package/src/dist/drizzle/index.js +1 -0
  14. package/src/dist/index.d.ts +4 -0
  15. package/src/dist/index.js +2 -0
  16. package/src/dist/index.node.d.ts +53 -0
  17. package/src/dist/migration-service.d.ts +17 -0
  18. package/src/dist/migrations.d.ts +15 -0
  19. package/src/dist/node/index.d.ts +2 -0
  20. package/src/dist/node/index.node.d.ts +2 -0
  21. package/src/dist/node/index.node.js +13588 -0
  22. package/src/dist/node/index.node.js.map +75 -0
  23. package/src/dist/pg/adapter.d.ts +42 -0
  24. package/src/dist/pg/manager.d.ts +17 -0
  25. package/src/dist/pg/sslmode.d.ts +6 -0
  26. package/src/dist/pglite/adapter.d.ts +63 -0
  27. package/src/dist/pglite/errors.d.ts +20 -0
  28. package/src/dist/pglite/manager.d.ts +213 -0
  29. package/src/dist/rls.d.ts +13 -0
  30. package/src/dist/runtime-migrator/crypto-utils.d.ts +25 -0
  31. package/src/dist/runtime-migrator/drizzle-adapters/database-introspector.d.ts +58 -0
  32. package/src/dist/runtime-migrator/drizzle-adapters/diff-calculator.d.ts +77 -0
  33. package/src/dist/runtime-migrator/drizzle-adapters/snapshot-generator.d.ts +21 -0
  34. package/src/dist/runtime-migrator/drizzle-adapters/sql-generator.d.ts +38 -0
  35. package/src/dist/runtime-migrator/extension-manager.d.ts +6 -0
  36. package/src/dist/runtime-migrator/index.d.ts +8 -0
  37. package/src/dist/runtime-migrator/runtime-migrator.d.ts +95 -0
  38. package/src/dist/runtime-migrator/schema-transformer.d.ts +18 -0
  39. package/src/dist/runtime-migrator/storage/journal-storage.d.ts +10 -0
  40. package/src/dist/runtime-migrator/storage/migration-tracker.d.ts +13 -0
  41. package/src/dist/runtime-migrator/storage/snapshot-storage.d.ts +9 -0
  42. package/src/dist/runtime-migrator/types.d.ts +157 -0
  43. package/src/dist/schema/agent.d.ts +344 -0
  44. package/src/dist/schema/approvalRequests.d.ts +277 -0
  45. package/src/dist/schema/authAuditEvent.d.ts +153 -0
  46. package/src/dist/schema/authBootstrapJti.d.ts +49 -0
  47. package/src/dist/schema/authIdentity.d.ts +121 -0
  48. package/src/dist/schema/authOwnerBinding.d.ts +168 -0
  49. package/src/dist/schema/authOwnerLoginToken.d.ts +122 -0
  50. package/src/dist/schema/authSession.d.ts +225 -0
  51. package/src/dist/schema/cache.d.ts +97 -0
  52. package/src/dist/schema/channel.d.ts +177 -0
  53. package/src/dist/schema/channelParticipant.d.ts +41 -0
  54. package/src/dist/schema/component.d.ts +163 -0
  55. package/src/dist/schema/connectorAccounts.d.ts +981 -0
  56. package/src/dist/schema/embedding.d.ts +225 -0
  57. package/src/dist/schema/entity.d.ts +125 -0
  58. package/src/dist/schema/entityIdentity.d.ts +577 -0
  59. package/src/dist/schema/index.d.ts +35 -0
  60. package/src/dist/schema/index.js +1 -0
  61. package/src/dist/schema/log.d.ts +114 -0
  62. package/src/dist/schema/longTermMemories.d.ts +254 -0
  63. package/src/dist/schema/memory.d.ts +185 -0
  64. package/src/dist/schema/memoryAccessLogs.d.ts +109 -0
  65. package/src/dist/schema/message.d.ts +194 -0
  66. package/src/dist/schema/messageServer.d.ts +126 -0
  67. package/src/dist/schema/messageServerAgent.d.ts +41 -0
  68. package/src/dist/schema/pairingAllowlist.d.ts +113 -0
  69. package/src/dist/schema/pairingRequest.d.ts +147 -0
  70. package/src/dist/schema/participant.d.ts +114 -0
  71. package/src/dist/schema/relationship.d.ts +156 -0
  72. package/src/dist/schema/room.d.ts +195 -0
  73. package/src/dist/schema/server.d.ts +64 -0
  74. package/src/dist/schema/sessionSummaries.d.ts +273 -0
  75. package/src/dist/schema/tasks.d.ts +225 -0
  76. package/src/dist/schema/types.d.ts +68 -0
  77. package/src/dist/schema/world.d.ts +114 -0
  78. package/src/dist/services/advanced-memory-storage.d.ts +36 -0
  79. package/src/dist/stores/connectorAccount.store.d.ts +64 -0
  80. package/src/dist/stores/types.d.ts +25 -0
  81. package/src/dist/types.d.ts +13 -0
  82. package/src/dist/utils/string-to-uuid.d.ts +2 -0
  83. package/src/dist/utils.d.ts +4 -0
  84. package/src/dist/utils.node.d.ts +4 -0
  85. package/src/dist/write-back/index.d.ts +56 -0
@@ -0,0 +1,95 @@
1
+ import { type DataLossCheck } from "./drizzle-adapters/sql-generator.js";
2
+ import type { DrizzleDB, RuntimeMigrationOptions } from "./types.js";
3
+ export declare class RuntimeMigrator {
4
+ private db;
5
+ private migrationTracker;
6
+ private journalStorage;
7
+ private snapshotStorage;
8
+ private extensionManager;
9
+ private introspector;
10
+ constructor(db: DrizzleDB);
11
+ /**
12
+ * Get expected schema name for a plugin
13
+ * @elizaos/plugin-sql uses 'public' schema (core application)
14
+ * All other plugins should use namespaced schemas
15
+ */
16
+ private getExpectedSchemaName;
17
+ /**
18
+ * Ensure all schemas used in the snapshot exist
19
+ */
20
+ private ensureSchemasExist;
21
+ /**
22
+ * Validate schema usage and provide warnings
23
+ */
24
+ private validateSchemaUsage;
25
+ /**
26
+ * Generate a stable advisory lock ID from plugin name
27
+ * PostgreSQL advisory locks use bigint, so we need to hash the plugin name
28
+ * and convert to a stable bigint value
29
+ * Uses browser-compatible hashing
30
+ */
31
+ private getAdvisoryLockId;
32
+ /**
33
+ * Validate that a value is a valid PostgreSQL bigint
34
+ * PostgreSQL bigint range: -9223372036854775808 to 9223372036854775807
35
+ */
36
+ private validateBigInt;
37
+ /**
38
+ * Detect if a connection string represents a real PostgreSQL database
39
+ * (not PGLite, in-memory, or other non-PostgreSQL databases)
40
+ */
41
+ private isRealPostgresDatabase;
42
+ /**
43
+ * Initialize migration system - create necessary tables
44
+ * @throws Error if table creation fails
45
+ */
46
+ initialize(): Promise<void>;
47
+ /**
48
+ * Run migrations for a plugin/schema
49
+ * @param pluginName - Plugin identifier
50
+ * @param schema - Drizzle schema object
51
+ * @param options - Migration options (verbose, force, dryRun, allowDataLoss)
52
+ * @throws Error if destructive migrations blocked or migration fails
53
+ */
54
+ migrate(pluginName: string, schema: Record<string, unknown>, options?: RuntimeMigrationOptions): Promise<void>;
55
+ /**
56
+ * Execute migration in a transaction
57
+ */
58
+ private executeMigration;
59
+ /**
60
+ * Generate migration tag (like 0000_jazzy_shard)
61
+ */
62
+ private generateMigrationTag;
63
+ /**
64
+ * Get migration status for a plugin
65
+ * @param pluginName - Plugin identifier
66
+ * @returns Migration history and current state
67
+ */
68
+ getStatus(pluginName: string): Promise<{
69
+ hasRun: boolean;
70
+ lastMigration: {
71
+ id: number;
72
+ hash: string;
73
+ created_at: string;
74
+ } | null;
75
+ journal: {
76
+ version: string;
77
+ dialect: string;
78
+ entries: unknown[];
79
+ } | null;
80
+ snapshots: number;
81
+ }>;
82
+ /**
83
+ * Reset migrations for a plugin (dangerous - for development only)
84
+ * @param pluginName - Plugin identifier
85
+ * @warning Deletes all migration history - use only in development
86
+ */
87
+ reset(pluginName: string): Promise<void>;
88
+ /**
89
+ * Check if a migration would cause data loss without executing it
90
+ * @param pluginName - Plugin identifier
91
+ * @param schema - Drizzle schema to check
92
+ * @returns Data loss analysis or null if no changes
93
+ */
94
+ checkMigration(pluginName: string, schema: Record<string, unknown>): Promise<DataLossCheck | null>;
95
+ }
@@ -0,0 +1,18 @@
1
+ type DrizzleSchema = Record<string, unknown>;
2
+ /**
3
+ * Transform a plugin's schema to use the appropriate namespace
4
+ *
5
+ * @elizaos/plugin-sql uses 'public' schema (no transformation)
6
+ * Other plugins get their tables wrapped in a namespaced schema
7
+ */
8
+ export declare function transformPluginSchema(pluginName: string, schema: DrizzleSchema): DrizzleSchema;
9
+ /**
10
+ * Derive a valid PostgreSQL schema name from a plugin name
11
+ */
12
+ export declare function deriveSchemaName(pluginName: string): string;
13
+ /**
14
+ * Create a namespaced schema helper for plugins
15
+ * This is what plugins should ideally use to define their tables
16
+ */
17
+ export declare function createPluginSchema(pluginName: string): import("drizzle-orm/pg-core").PgSchema<string>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { DrizzleDB, Journal, JournalEntry } from "../types.js";
2
+ export declare class JournalStorage {
3
+ private db;
4
+ constructor(db: DrizzleDB);
5
+ loadJournal(pluginName: string): Promise<Journal | null>;
6
+ saveJournal(pluginName: string, journal: Journal): Promise<void>;
7
+ addEntry(pluginName: string, entry: JournalEntry): Promise<void>;
8
+ getNextIdx(pluginName: string): Promise<number>;
9
+ updateJournal(pluginName: string, idx: number, tag: string, breakpoints?: boolean): Promise<void>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import type { DrizzleDB } from "../types.js";
2
+ export declare class MigrationTracker {
3
+ private db;
4
+ constructor(db: DrizzleDB);
5
+ ensureSchema(): Promise<void>;
6
+ ensureTables(): Promise<void>;
7
+ getLastMigration(pluginName: string): Promise<{
8
+ id: number;
9
+ hash: string;
10
+ created_at: string;
11
+ } | null>;
12
+ recordMigration(pluginName: string, hash: string, createdAt: number): Promise<void>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import type { DrizzleDB, SchemaSnapshot } from "../types.js";
2
+ export declare class SnapshotStorage {
3
+ private db;
4
+ constructor(db: DrizzleDB);
5
+ saveSnapshot(pluginName: string, idx: number, snapshot: SchemaSnapshot): Promise<void>;
6
+ loadSnapshot(pluginName: string, idx: number): Promise<SchemaSnapshot | null>;
7
+ getLatestSnapshot(pluginName: string): Promise<SchemaSnapshot | null>;
8
+ getAllSnapshots(pluginName: string): Promise<SchemaSnapshot[]>;
9
+ }
@@ -0,0 +1,157 @@
1
+ import type { NodePgDatabase } from "drizzle-orm/node-postgres";
2
+ import type { PgliteDatabase } from "drizzle-orm/pglite";
3
+ export type DrizzleDB = NodePgDatabase | PgliteDatabase;
4
+ export interface Journal {
5
+ version: string;
6
+ dialect: string;
7
+ entries: JournalEntry[];
8
+ }
9
+ export interface JournalEntry {
10
+ idx: number;
11
+ version: string;
12
+ when: number;
13
+ tag: string;
14
+ breakpoints: boolean;
15
+ }
16
+ export interface MigrationMeta {
17
+ sql: string[];
18
+ folderMillis: number;
19
+ hash: string;
20
+ bps: boolean;
21
+ }
22
+ export interface SchemaColumn {
23
+ name: string;
24
+ type: string;
25
+ primaryKey?: boolean;
26
+ notNull?: boolean;
27
+ default?: string | number | boolean;
28
+ isUnique?: boolean;
29
+ uniqueName?: string;
30
+ uniqueType?: string;
31
+ }
32
+ export interface IndexColumn {
33
+ expression: string;
34
+ isExpression: boolean;
35
+ asc?: boolean;
36
+ nulls?: string;
37
+ }
38
+ export interface SchemaIndex {
39
+ name: string;
40
+ columns: IndexColumn[];
41
+ isUnique: boolean;
42
+ method?: string;
43
+ where?: string;
44
+ concurrently?: boolean;
45
+ }
46
+ export interface SchemaForeignKey {
47
+ name: string;
48
+ tableFrom: string;
49
+ schemaFrom?: string;
50
+ tableTo: string;
51
+ schemaTo: string;
52
+ columnsFrom: string[];
53
+ columnsTo: string[];
54
+ onDelete?: string;
55
+ onUpdate?: string;
56
+ }
57
+ export interface SchemaPrimaryKey {
58
+ name: string;
59
+ columns: string[];
60
+ }
61
+ export interface SchemaUniqueConstraint {
62
+ name: string;
63
+ columns: string[];
64
+ nullsNotDistinct?: boolean;
65
+ }
66
+ export interface SchemaCheckConstraint {
67
+ name: string;
68
+ value: string;
69
+ }
70
+ export interface SchemaTable {
71
+ name: string;
72
+ schema: string;
73
+ columns: Record<string, SchemaColumn>;
74
+ indexes: Record<string, SchemaIndex>;
75
+ foreignKeys: Record<string, SchemaForeignKey>;
76
+ compositePrimaryKeys: Record<string, SchemaPrimaryKey>;
77
+ uniqueConstraints: Record<string, SchemaUniqueConstraint>;
78
+ checkConstraints: Record<string, SchemaCheckConstraint>;
79
+ }
80
+ export interface SchemaEnum {
81
+ name: string;
82
+ schema: string;
83
+ values: string[];
84
+ }
85
+ export interface SchemaMeta {
86
+ schemas: Record<string, string>;
87
+ tables: Record<string, string>;
88
+ columns: Record<string, string>;
89
+ }
90
+ export interface SchemaSnapshot {
91
+ version: string;
92
+ dialect: string;
93
+ tables: Record<string, SchemaTable>;
94
+ schemas: Record<string, string>;
95
+ enums?: Record<string, SchemaEnum>;
96
+ _meta: SchemaMeta;
97
+ internal?: Record<string, unknown>;
98
+ }
99
+ export interface TableInfoRow {
100
+ table_schema: string;
101
+ table_name: string;
102
+ }
103
+ export interface ColumnInfoRow {
104
+ column_name: string;
105
+ is_nullable: string;
106
+ data_type: string;
107
+ column_default: string | null;
108
+ is_primary: boolean;
109
+ }
110
+ export interface IndexInfoRow {
111
+ name: string;
112
+ is_unique: boolean;
113
+ is_primary: boolean;
114
+ is_unique_constraint?: boolean;
115
+ columns: string[];
116
+ method?: string;
117
+ }
118
+ export interface ForeignKeyInfoRow {
119
+ name: string;
120
+ column_name: string;
121
+ foreign_table_name: string;
122
+ foreign_table_schema: string;
123
+ foreign_column_name: string;
124
+ delete_rule: string;
125
+ update_rule: string;
126
+ }
127
+ export interface PrimaryKeyInfoRow {
128
+ name: string;
129
+ columns: string[];
130
+ }
131
+ export interface UniqueConstraintInfoRow {
132
+ name: string;
133
+ columns: string[];
134
+ }
135
+ export interface CheckConstraintInfoRow {
136
+ name: string;
137
+ definition: string;
138
+ }
139
+ export interface EnumInfoRow {
140
+ schema: string;
141
+ name: string;
142
+ value: string;
143
+ }
144
+ export interface MigrationOptions {
145
+ migrationsTable?: string;
146
+ migrationsSchema?: string;
147
+ }
148
+ export interface RuntimeMigrationOptions {
149
+ /** Run without executing SQL statements */
150
+ dryRun?: boolean;
151
+ /** Log detailed information about the migration */
152
+ verbose?: boolean;
153
+ /** Force migration even in production with destructive changes */
154
+ force?: boolean;
155
+ /** Allow operations that will cause data loss (tables/columns being dropped) */
156
+ allowDataLoss?: boolean;
157
+ }
@@ -0,0 +1,344 @@
1
+ import type { MessageExample } from "@elizaos/core";
2
+ /**
3
+ * Represents a table for storing agent data.
4
+ *
5
+ * @type {Table}
6
+ */
7
+ export declare const agentTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
8
+ name: "agents";
9
+ schema: undefined;
10
+ columns: {
11
+ id: import("drizzle-orm/pg-core").PgColumn<{
12
+ name: "id";
13
+ tableName: "agents";
14
+ dataType: "string";
15
+ columnType: "PgUUID";
16
+ data: string;
17
+ driverParam: string;
18
+ notNull: true;
19
+ hasDefault: true;
20
+ isPrimaryKey: true;
21
+ isAutoincrement: false;
22
+ hasRuntimeDefault: false;
23
+ enumValues: undefined;
24
+ baseColumn: never;
25
+ identity: undefined;
26
+ generated: undefined;
27
+ }, {}, {}>;
28
+ enabled: import("drizzle-orm/pg-core").PgColumn<{
29
+ name: "enabled";
30
+ tableName: "agents";
31
+ dataType: "boolean";
32
+ columnType: "PgBoolean";
33
+ data: boolean;
34
+ driverParam: boolean;
35
+ notNull: true;
36
+ hasDefault: true;
37
+ isPrimaryKey: false;
38
+ isAutoincrement: false;
39
+ hasRuntimeDefault: false;
40
+ enumValues: undefined;
41
+ baseColumn: never;
42
+ identity: undefined;
43
+ generated: undefined;
44
+ }, {}, {}>;
45
+ server_id: import("drizzle-orm/pg-core").PgColumn<{
46
+ name: "server_id";
47
+ tableName: "agents";
48
+ dataType: "string";
49
+ columnType: "PgUUID";
50
+ data: string;
51
+ driverParam: string;
52
+ notNull: false;
53
+ hasDefault: false;
54
+ isPrimaryKey: false;
55
+ isAutoincrement: false;
56
+ hasRuntimeDefault: false;
57
+ enumValues: undefined;
58
+ baseColumn: never;
59
+ identity: undefined;
60
+ generated: undefined;
61
+ }, {}, {}>;
62
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
63
+ name: "created_at";
64
+ tableName: "agents";
65
+ dataType: "date";
66
+ columnType: "PgTimestamp";
67
+ data: Date;
68
+ driverParam: string;
69
+ notNull: true;
70
+ hasDefault: true;
71
+ isPrimaryKey: false;
72
+ isAutoincrement: false;
73
+ hasRuntimeDefault: false;
74
+ enumValues: undefined;
75
+ baseColumn: never;
76
+ identity: undefined;
77
+ generated: undefined;
78
+ }, {}, {}>;
79
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
80
+ name: "updated_at";
81
+ tableName: "agents";
82
+ dataType: "date";
83
+ columnType: "PgTimestamp";
84
+ data: Date;
85
+ driverParam: string;
86
+ notNull: true;
87
+ hasDefault: true;
88
+ isPrimaryKey: false;
89
+ isAutoincrement: false;
90
+ hasRuntimeDefault: false;
91
+ enumValues: undefined;
92
+ baseColumn: never;
93
+ identity: undefined;
94
+ generated: undefined;
95
+ }, {}, {}>;
96
+ name: import("drizzle-orm/pg-core").PgColumn<{
97
+ name: "name";
98
+ tableName: "agents";
99
+ dataType: "string";
100
+ columnType: "PgText";
101
+ data: string;
102
+ driverParam: string;
103
+ notNull: true;
104
+ hasDefault: false;
105
+ isPrimaryKey: false;
106
+ isAutoincrement: false;
107
+ hasRuntimeDefault: false;
108
+ enumValues: [string, ...string[]];
109
+ baseColumn: never;
110
+ identity: undefined;
111
+ generated: undefined;
112
+ }, {}, {}>;
113
+ username: import("drizzle-orm/pg-core").PgColumn<{
114
+ name: "username";
115
+ tableName: "agents";
116
+ dataType: "string";
117
+ columnType: "PgText";
118
+ data: string;
119
+ driverParam: string;
120
+ notNull: false;
121
+ hasDefault: false;
122
+ isPrimaryKey: false;
123
+ isAutoincrement: false;
124
+ hasRuntimeDefault: false;
125
+ enumValues: [string, ...string[]];
126
+ baseColumn: never;
127
+ identity: undefined;
128
+ generated: undefined;
129
+ }, {}, {}>;
130
+ system: import("drizzle-orm/pg-core").PgColumn<{
131
+ name: "system";
132
+ tableName: "agents";
133
+ dataType: "string";
134
+ columnType: "PgText";
135
+ data: string;
136
+ driverParam: string;
137
+ notNull: false;
138
+ hasDefault: true;
139
+ isPrimaryKey: false;
140
+ isAutoincrement: false;
141
+ hasRuntimeDefault: false;
142
+ enumValues: [string, ...string[]];
143
+ baseColumn: never;
144
+ identity: undefined;
145
+ generated: undefined;
146
+ }, {}, {}>;
147
+ bio: import("drizzle-orm/pg-core").PgColumn<{
148
+ name: "bio";
149
+ tableName: "agents";
150
+ dataType: "json";
151
+ columnType: "PgJsonb";
152
+ data: string | string[];
153
+ driverParam: unknown;
154
+ notNull: false;
155
+ hasDefault: true;
156
+ isPrimaryKey: false;
157
+ isAutoincrement: false;
158
+ hasRuntimeDefault: false;
159
+ enumValues: undefined;
160
+ baseColumn: never;
161
+ identity: undefined;
162
+ generated: undefined;
163
+ }, {}, {
164
+ $type: string | string[];
165
+ }>;
166
+ messageExamples: import("drizzle-orm/pg-core").PgColumn<{
167
+ name: "message_examples";
168
+ tableName: "agents";
169
+ dataType: "json";
170
+ columnType: "PgJsonb";
171
+ data: MessageExample[][];
172
+ driverParam: unknown;
173
+ notNull: true;
174
+ hasDefault: true;
175
+ isPrimaryKey: false;
176
+ isAutoincrement: false;
177
+ hasRuntimeDefault: false;
178
+ enumValues: undefined;
179
+ baseColumn: never;
180
+ identity: undefined;
181
+ generated: undefined;
182
+ }, {}, {
183
+ $type: MessageExample[][];
184
+ }>;
185
+ postExamples: import("drizzle-orm/pg-core").PgColumn<{
186
+ name: "post_examples";
187
+ tableName: "agents";
188
+ dataType: "json";
189
+ columnType: "PgJsonb";
190
+ data: string[];
191
+ driverParam: unknown;
192
+ notNull: true;
193
+ hasDefault: true;
194
+ isPrimaryKey: false;
195
+ isAutoincrement: false;
196
+ hasRuntimeDefault: false;
197
+ enumValues: undefined;
198
+ baseColumn: never;
199
+ identity: undefined;
200
+ generated: undefined;
201
+ }, {}, {
202
+ $type: string[];
203
+ }>;
204
+ topics: import("drizzle-orm/pg-core").PgColumn<{
205
+ name: "topics";
206
+ tableName: "agents";
207
+ dataType: "json";
208
+ columnType: "PgJsonb";
209
+ data: string[];
210
+ driverParam: unknown;
211
+ notNull: true;
212
+ hasDefault: true;
213
+ isPrimaryKey: false;
214
+ isAutoincrement: false;
215
+ hasRuntimeDefault: false;
216
+ enumValues: undefined;
217
+ baseColumn: never;
218
+ identity: undefined;
219
+ generated: undefined;
220
+ }, {}, {
221
+ $type: string[];
222
+ }>;
223
+ adjectives: import("drizzle-orm/pg-core").PgColumn<{
224
+ name: "adjectives";
225
+ tableName: "agents";
226
+ dataType: "json";
227
+ columnType: "PgJsonb";
228
+ data: string[];
229
+ driverParam: unknown;
230
+ notNull: true;
231
+ hasDefault: true;
232
+ isPrimaryKey: false;
233
+ isAutoincrement: false;
234
+ hasRuntimeDefault: false;
235
+ enumValues: undefined;
236
+ baseColumn: never;
237
+ identity: undefined;
238
+ generated: undefined;
239
+ }, {}, {
240
+ $type: string[];
241
+ }>;
242
+ knowledge: import("drizzle-orm/pg-core").PgColumn<{
243
+ name: "knowledge";
244
+ tableName: "agents";
245
+ dataType: "json";
246
+ columnType: "PgJsonb";
247
+ data: (string | {
248
+ path: string;
249
+ shared?: boolean;
250
+ })[];
251
+ driverParam: unknown;
252
+ notNull: true;
253
+ hasDefault: true;
254
+ isPrimaryKey: false;
255
+ isAutoincrement: false;
256
+ hasRuntimeDefault: false;
257
+ enumValues: undefined;
258
+ baseColumn: never;
259
+ identity: undefined;
260
+ generated: undefined;
261
+ }, {}, {
262
+ $type: (string | {
263
+ path: string;
264
+ shared?: boolean;
265
+ })[];
266
+ }>;
267
+ plugins: import("drizzle-orm/pg-core").PgColumn<{
268
+ name: "plugins";
269
+ tableName: "agents";
270
+ dataType: "json";
271
+ columnType: "PgJsonb";
272
+ data: string[];
273
+ driverParam: unknown;
274
+ notNull: true;
275
+ hasDefault: true;
276
+ isPrimaryKey: false;
277
+ isAutoincrement: false;
278
+ hasRuntimeDefault: false;
279
+ enumValues: undefined;
280
+ baseColumn: never;
281
+ identity: undefined;
282
+ generated: undefined;
283
+ }, {}, {
284
+ $type: string[];
285
+ }>;
286
+ settings: import("drizzle-orm/pg-core").PgColumn<{
287
+ name: "settings";
288
+ tableName: "agents";
289
+ dataType: "json";
290
+ columnType: "PgJsonb";
291
+ data: {
292
+ [key: string]: string | number | boolean | Record<string, unknown> | undefined;
293
+ secrets?: {
294
+ [key: string]: string | boolean | number;
295
+ };
296
+ };
297
+ driverParam: unknown;
298
+ notNull: true;
299
+ hasDefault: true;
300
+ isPrimaryKey: false;
301
+ isAutoincrement: false;
302
+ hasRuntimeDefault: false;
303
+ enumValues: undefined;
304
+ baseColumn: never;
305
+ identity: undefined;
306
+ generated: undefined;
307
+ }, {}, {
308
+ $type: {
309
+ [key: string]: string | number | boolean | Record<string, unknown> | undefined;
310
+ secrets?: {
311
+ [key: string]: string | boolean | number;
312
+ };
313
+ };
314
+ }>;
315
+ style: import("drizzle-orm/pg-core").PgColumn<{
316
+ name: "style";
317
+ tableName: "agents";
318
+ dataType: "json";
319
+ columnType: "PgJsonb";
320
+ data: {
321
+ all?: string[];
322
+ chat?: string[];
323
+ post?: string[];
324
+ };
325
+ driverParam: unknown;
326
+ notNull: true;
327
+ hasDefault: true;
328
+ isPrimaryKey: false;
329
+ isAutoincrement: false;
330
+ hasRuntimeDefault: false;
331
+ enumValues: undefined;
332
+ baseColumn: never;
333
+ identity: undefined;
334
+ generated: undefined;
335
+ }, {}, {
336
+ $type: {
337
+ all?: string[];
338
+ chat?: string[];
339
+ post?: string[];
340
+ };
341
+ }>;
342
+ };
343
+ dialect: "pg";
344
+ }>;