@develit-services/bank 0.0.28 → 0.0.30

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 (39) hide show
  1. package/dist/database/schema.cjs +10 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +8 -1
  6. package/dist/export/worker.cjs +888 -575
  7. package/dist/export/worker.d.cts +210 -12
  8. package/dist/export/worker.d.mts +210 -12
  9. package/dist/export/worker.d.ts +210 -12
  10. package/dist/export/worker.mjs +859 -546
  11. package/dist/export/wrangler.cjs +1 -11
  12. package/dist/export/wrangler.d.cts +8 -9
  13. package/dist/export/wrangler.d.mts +8 -9
  14. package/dist/export/wrangler.d.ts +8 -9
  15. package/dist/export/wrangler.mjs +1 -11
  16. package/dist/shared/{bank.Cy_TcyKb.cjs → bank.BMRBXGF1.cjs} +347 -106
  17. package/dist/shared/{bank.CEZKAEiY.d.cts → bank.BchnXQDL.d.cts} +2 -2
  18. package/dist/shared/{bank.CEZKAEiY.d.mts → bank.BchnXQDL.d.mts} +2 -2
  19. package/dist/shared/{bank.CEZKAEiY.d.ts → bank.BchnXQDL.d.ts} +2 -2
  20. package/dist/shared/bank.CtUeOz8i.d.ts +1648 -0
  21. package/dist/shared/bank.D8o86NLF.d.mts +1648 -0
  22. package/dist/shared/bank.DUalSuEK.d.cts +1648 -0
  23. package/dist/shared/bank.DbNuuGvb.mjs +9 -0
  24. package/dist/shared/bank.DuY4d2y_.cjs +11 -0
  25. package/dist/shared/{bank.BuNG2S8h.d.cts → bank.Nf6oaNfB.d.cts} +547 -11
  26. package/dist/shared/{bank.BuNG2S8h.d.mts → bank.Nf6oaNfB.d.mts} +547 -11
  27. package/dist/shared/{bank.BuNG2S8h.d.ts → bank.Nf6oaNfB.d.ts} +547 -11
  28. package/dist/shared/{bank.DnDcNEvX.mjs → bank.YCUhOduX.mjs} +330 -107
  29. package/dist/types.cjs +32 -20
  30. package/dist/types.d.cts +496 -35
  31. package/dist/types.d.mts +496 -35
  32. package/dist/types.d.ts +496 -35
  33. package/dist/types.mjs +5 -4
  34. package/package.json +1 -1
  35. package/dist/shared/bank.BkLncGmL.d.ts +0 -122
  36. package/dist/shared/bank.C9jAvwna.mjs +0 -90
  37. package/dist/shared/bank.DWVLVMDa.d.mts +0 -122
  38. package/dist/shared/bank.DmypH3Au.d.cts +0 -122
  39. package/dist/shared/bank.P9gDUycr.cjs +0 -98
@@ -0,0 +1,1648 @@
1
+ import { Environment } from '@develit-io/backend-sdk';
2
+ import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
3
+ import { a as PaymentInsertType, t as tables } from './bank.Nf6oaNfB.mjs';
4
+ import { DrizzleD1Database } from 'drizzle-orm/d1';
5
+ import { z } from 'zod';
6
+ import * as drizzle_zod from 'drizzle-zod';
7
+ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
8
+
9
+ declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
10
+ type PaymentType = (typeof PAYMENT_TYPES)[number];
11
+ declare const PAYMENT_STATUSES: readonly ["PREPARED", "INITIALIZED", "FAILED", "PENDING", "COMPLETED", "CREATED"];
12
+ type PaymentStatus = (typeof PAYMENT_STATUSES)[number];
13
+ declare const PAYMENT_DIRECTIONS: readonly ["INCOMING", "OUTGOING"];
14
+ type PaymentDirection = (typeof PAYMENT_DIRECTIONS)[number];
15
+
16
+ type CurrencyCode = (typeof CURRENCY_CODES)[number];
17
+ /**
18
+ * Batch status constants
19
+ */
20
+ declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "WAITING_FOR_PROCESSING", "PREPARED", "COMPLETED", "FAILED"];
21
+ /**
22
+ * Type definition for batch status
23
+ */
24
+ type BatchStatus = (typeof BATCH_STATUSES)[number];
25
+ declare const ACCOUNT_STATUSES: readonly ["AUTHORIZED", "DISABLED", "EXPIRED"];
26
+ /**
27
+ * Type definition for account status
28
+ */
29
+ type AccountStatus = (typeof ACCOUNT_STATUSES)[number];
30
+ type Currency = CODES.Currency;
31
+
32
+ type BankCode = (typeof BANK_CODES)[number];
33
+ declare const COUNTRY_CODES: ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
34
+ type CountryCode = (typeof COUNTRY_CODES)[number];
35
+
36
+ interface BankAccountWithLastSync extends ConnectedAccount {
37
+ lastSyncAt: SyncLog;
38
+ }
39
+ declare const CONNECTOR_KEYS: readonly ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
40
+ type ConnectorKey = (typeof CONNECTOR_KEYS)[number];
41
+ declare const CREDENTIALS_TYPES: readonly ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
42
+ type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
43
+ declare const TOKEN_TYPES: readonly ["ACCOUNT_AUTHORIZATION"];
44
+ type TokenType = (typeof TOKEN_TYPES)[number];
45
+ interface ConfigEnvironmentBank {
46
+ allowedProviders: ConnectorKey[];
47
+ }
48
+
49
+ interface SyncLog {
50
+ lastSyncedAt: Date;
51
+ }
52
+
53
+ type WithStatus<T extends {
54
+ status: PaymentStatus;
55
+ }, S extends PaymentStatus> = Omit<T, 'status'> & {
56
+ status: S;
57
+ };
58
+ type PaymentFailedInsertType = WithStatus<PaymentInsertType, 'FAILED'>;
59
+ type PaymentPreparedInsertType = WithStatus<PaymentInsertType, 'PREPARED'>;
60
+ type paymentInitializedInsertType = WithStatus<PaymentInsertType, 'INITIALIZED'>;
61
+ type BatchMetadata = {
62
+ signHash: string;
63
+ signId: string;
64
+ };
65
+ type InitiatedPayment = {
66
+ authorizationUrl: string;
67
+ payment: paymentInitializedInsertType;
68
+ };
69
+ type InitiatedBatch = {
70
+ id: string;
71
+ authorizationUrls: string[];
72
+ payments: paymentInitializedInsertType[];
73
+ metadata?: BatchMetadata | null;
74
+ };
75
+ type ConnectedAccount = {
76
+ token: string;
77
+ id: string;
78
+ iban: string;
79
+ currency: CurrencyCode;
80
+ connectorKey: ConnectorKey;
81
+ };
82
+ type AuthInput = {
83
+ token: string;
84
+ refreshToken?: string;
85
+ };
86
+ declare abstract class IBankConnector {
87
+ abstract connectorKey: ConnectorKey;
88
+ abstract connectedAccounts: ConnectedAccount[];
89
+ abstract authenticate(tokens?: {
90
+ token?: string;
91
+ refreshToken?: string;
92
+ }): Promise<string>;
93
+ abstract getAuthUri({ ott }: {
94
+ ott: string;
95
+ }): Promise<string>;
96
+ abstract authorizeAccount({ urlParams }: {
97
+ urlParams: string;
98
+ }): Promise<{
99
+ credentials: AccountCredentialsInsertType[];
100
+ accounts: AccountInsertType[];
101
+ }>;
102
+ abstract listAccounts(): Promise<AccountInsertType[]>;
103
+ abstract preparePayment(payment: IncomingPaymentMessage): Promise<PaymentPreparedInsertType>;
104
+ abstract initiateBatchFromPayments({ payments, }: {
105
+ payments: PaymentPreparedInsertType[];
106
+ }): Promise<InitiatedBatch>;
107
+ abstract initiateSEPAPayment(payment: IncomingPaymentMessage): Promise<InitiatedPayment>;
108
+ abstract initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
109
+ abstract getAllAccountPayments({ account, lastSync, db, env, }: {
110
+ account: ConnectedAccount;
111
+ lastSync: SyncLog;
112
+ db: DrizzleD1Database<typeof tables>;
113
+ env: Environment;
114
+ }): Promise<PaymentInsertType[]>;
115
+ abstract getPaymentStatus({ paymentId, }: {
116
+ paymentId: string;
117
+ }): Promise<PaymentStatus>;
118
+ abstract getBatchStatus({ batchId, }: {
119
+ batchId: string;
120
+ }): Promise<BatchStatus>;
121
+ }
122
+
123
+ interface IncomingPaymentMessage extends PaymentInsertType {
124
+ }
125
+ interface OutgoingPaymentMessage extends PaymentInsertType {
126
+ }
127
+
128
+ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
129
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
130
+ name: "connector_key";
131
+ tableName: "account";
132
+ dataType: "string";
133
+ columnType: "SQLiteText";
134
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
135
+ driverParam: string;
136
+ notNull: true;
137
+ hasDefault: false;
138
+ isPrimaryKey: false;
139
+ isAutoincrement: false;
140
+ hasRuntimeDefault: false;
141
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
142
+ baseColumn: never;
143
+ identity: undefined;
144
+ generated: undefined;
145
+ }, {}, {
146
+ length: number | undefined;
147
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
148
+ }>;
149
+ status: drizzle_orm_sqlite_core.SQLiteColumn<{
150
+ name: "status";
151
+ tableName: "account";
152
+ dataType: "string";
153
+ columnType: "SQLiteText";
154
+ data: "AUTHORIZED" | "DISABLED" | "EXPIRED";
155
+ driverParam: string;
156
+ notNull: true;
157
+ hasDefault: false;
158
+ isPrimaryKey: false;
159
+ isAutoincrement: false;
160
+ hasRuntimeDefault: false;
161
+ enumValues: ["AUTHORIZED", "DISABLED", "EXPIRED"];
162
+ baseColumn: never;
163
+ identity: undefined;
164
+ generated: undefined;
165
+ }, {}, {
166
+ length: number | undefined;
167
+ $type: "AUTHORIZED" | "DISABLED" | "EXPIRED";
168
+ }>;
169
+ sync: drizzle_orm_sqlite_core.SQLiteColumn<{
170
+ name: "sync";
171
+ tableName: "account";
172
+ dataType: "boolean";
173
+ columnType: "SQLiteBoolean";
174
+ data: boolean;
175
+ driverParam: number;
176
+ notNull: true;
177
+ hasDefault: true;
178
+ isPrimaryKey: false;
179
+ isAutoincrement: false;
180
+ hasRuntimeDefault: false;
181
+ enumValues: undefined;
182
+ baseColumn: never;
183
+ identity: undefined;
184
+ generated: undefined;
185
+ }, {}, {}>;
186
+ syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
187
+ name: "sync_period";
188
+ tableName: "account";
189
+ dataType: "number";
190
+ columnType: "SQLiteInteger";
191
+ data: number;
192
+ driverParam: number;
193
+ notNull: false;
194
+ hasDefault: false;
195
+ isPrimaryKey: false;
196
+ isAutoincrement: false;
197
+ hasRuntimeDefault: false;
198
+ enumValues: undefined;
199
+ baseColumn: never;
200
+ identity: undefined;
201
+ generated: undefined;
202
+ }, {}, {}>;
203
+ lastSyncedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
204
+ name: "last_synced_at";
205
+ tableName: "account";
206
+ dataType: "date";
207
+ columnType: "SQLiteTimestamp";
208
+ data: Date;
209
+ driverParam: number;
210
+ notNull: false;
211
+ hasDefault: false;
212
+ isPrimaryKey: false;
213
+ isAutoincrement: false;
214
+ hasRuntimeDefault: false;
215
+ enumValues: undefined;
216
+ baseColumn: never;
217
+ identity: undefined;
218
+ generated: undefined;
219
+ }, {}, {}>;
220
+ holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
221
+ name: "holder_name";
222
+ tableName: "account";
223
+ dataType: "string";
224
+ columnType: "SQLiteText";
225
+ data: string;
226
+ driverParam: string;
227
+ notNull: true;
228
+ hasDefault: false;
229
+ isPrimaryKey: false;
230
+ isAutoincrement: false;
231
+ hasRuntimeDefault: false;
232
+ enumValues: [string, ...string[]];
233
+ baseColumn: never;
234
+ identity: undefined;
235
+ generated: undefined;
236
+ }, {}, {
237
+ length: number | undefined;
238
+ }>;
239
+ number: drizzle_orm_sqlite_core.SQLiteColumn<{
240
+ name: "number";
241
+ tableName: "account";
242
+ dataType: "string";
243
+ columnType: "SQLiteText";
244
+ data: string;
245
+ driverParam: string;
246
+ notNull: true;
247
+ hasDefault: false;
248
+ isPrimaryKey: false;
249
+ isAutoincrement: false;
250
+ hasRuntimeDefault: false;
251
+ enumValues: [string, ...string[]];
252
+ baseColumn: never;
253
+ identity: undefined;
254
+ generated: undefined;
255
+ }, {}, {
256
+ length: number | undefined;
257
+ }>;
258
+ bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
259
+ name: "bank_code";
260
+ tableName: "account";
261
+ dataType: "string";
262
+ columnType: "SQLiteText";
263
+ data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
264
+ driverParam: string;
265
+ notNull: true;
266
+ hasDefault: false;
267
+ isPrimaryKey: false;
268
+ isAutoincrement: false;
269
+ hasRuntimeDefault: false;
270
+ enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
271
+ baseColumn: never;
272
+ identity: undefined;
273
+ generated: undefined;
274
+ }, {}, {
275
+ length: number | undefined;
276
+ }>;
277
+ iban: drizzle_orm_sqlite_core.SQLiteColumn<{
278
+ name: "iban";
279
+ tableName: "account";
280
+ dataType: "string";
281
+ columnType: "SQLiteText";
282
+ data: string;
283
+ driverParam: string;
284
+ notNull: true;
285
+ hasDefault: false;
286
+ isPrimaryKey: false;
287
+ isAutoincrement: false;
288
+ hasRuntimeDefault: false;
289
+ enumValues: [string, ...string[]];
290
+ baseColumn: never;
291
+ identity: undefined;
292
+ generated: undefined;
293
+ }, {}, {
294
+ length: number | undefined;
295
+ }>;
296
+ address: drizzle_orm_sqlite_core.SQLiteColumn<{
297
+ name: "address";
298
+ tableName: "account";
299
+ dataType: "string";
300
+ columnType: "SQLiteText";
301
+ data: string;
302
+ driverParam: string;
303
+ notNull: false;
304
+ hasDefault: false;
305
+ isPrimaryKey: false;
306
+ isAutoincrement: false;
307
+ hasRuntimeDefault: false;
308
+ enumValues: [string, ...string[]];
309
+ baseColumn: never;
310
+ identity: undefined;
311
+ generated: undefined;
312
+ }, {}, {
313
+ length: number | undefined;
314
+ }>;
315
+ swiftBic: drizzle_orm_sqlite_core.SQLiteColumn<{
316
+ name: "swift_bic";
317
+ tableName: "account";
318
+ dataType: "string";
319
+ columnType: "SQLiteText";
320
+ data: string;
321
+ driverParam: string;
322
+ notNull: false;
323
+ hasDefault: false;
324
+ isPrimaryKey: false;
325
+ isAutoincrement: false;
326
+ hasRuntimeDefault: false;
327
+ enumValues: [string, ...string[]];
328
+ baseColumn: never;
329
+ identity: undefined;
330
+ generated: undefined;
331
+ }, {}, {
332
+ length: number | undefined;
333
+ }>;
334
+ bicCor: drizzle_orm_sqlite_core.SQLiteColumn<{
335
+ name: "bic_cor";
336
+ tableName: "account";
337
+ dataType: "string";
338
+ columnType: "SQLiteText";
339
+ data: string;
340
+ driverParam: string;
341
+ notNull: false;
342
+ hasDefault: false;
343
+ isPrimaryKey: false;
344
+ isAutoincrement: false;
345
+ hasRuntimeDefault: false;
346
+ enumValues: [string, ...string[]];
347
+ baseColumn: never;
348
+ identity: undefined;
349
+ generated: undefined;
350
+ }, {}, {
351
+ length: number | undefined;
352
+ }>;
353
+ currency: drizzle_orm_sqlite_core.SQLiteColumn<{
354
+ name: "currency";
355
+ tableName: "account";
356
+ dataType: "string";
357
+ columnType: "SQLiteText";
358
+ data: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
359
+ driverParam: string;
360
+ notNull: true;
361
+ hasDefault: false;
362
+ isPrimaryKey: false;
363
+ isAutoincrement: false;
364
+ hasRuntimeDefault: false;
365
+ enumValues: ["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]];
366
+ baseColumn: never;
367
+ identity: undefined;
368
+ generated: undefined;
369
+ }, {}, {
370
+ length: number | undefined;
371
+ }>;
372
+ countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
373
+ name: "country_code";
374
+ tableName: "account";
375
+ dataType: "string";
376
+ columnType: "SQLiteText";
377
+ data: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
378
+ driverParam: string;
379
+ notNull: true;
380
+ hasDefault: false;
381
+ isPrimaryKey: false;
382
+ isAutoincrement: false;
383
+ hasRuntimeDefault: false;
384
+ enumValues: ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
385
+ baseColumn: never;
386
+ identity: undefined;
387
+ generated: undefined;
388
+ }, {}, {
389
+ length: number | undefined;
390
+ }>;
391
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
392
+ name: "id";
393
+ tableName: "account";
394
+ dataType: "string";
395
+ columnType: "SQLiteText";
396
+ data: string;
397
+ driverParam: string;
398
+ notNull: true;
399
+ hasDefault: false;
400
+ isPrimaryKey: true;
401
+ isAutoincrement: false;
402
+ hasRuntimeDefault: false;
403
+ enumValues: [string, ...string[]];
404
+ baseColumn: never;
405
+ identity: undefined;
406
+ generated: undefined;
407
+ }, {}, {
408
+ length: number | undefined;
409
+ }>;
410
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
411
+ name: "created_at";
412
+ tableName: "account";
413
+ dataType: "date";
414
+ columnType: "SQLiteTimestamp";
415
+ data: Date;
416
+ driverParam: number;
417
+ notNull: false;
418
+ hasDefault: true;
419
+ isPrimaryKey: false;
420
+ isAutoincrement: false;
421
+ hasRuntimeDefault: false;
422
+ enumValues: undefined;
423
+ baseColumn: never;
424
+ identity: undefined;
425
+ generated: undefined;
426
+ }, {}, {}>;
427
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
428
+ name: "updated_at";
429
+ tableName: "account";
430
+ dataType: "date";
431
+ columnType: "SQLiteTimestamp";
432
+ data: Date;
433
+ driverParam: number;
434
+ notNull: false;
435
+ hasDefault: true;
436
+ isPrimaryKey: false;
437
+ isAutoincrement: false;
438
+ hasRuntimeDefault: false;
439
+ enumValues: undefined;
440
+ baseColumn: never;
441
+ identity: undefined;
442
+ generated: undefined;
443
+ }, {}, {}>;
444
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
445
+ name: "deleted_at";
446
+ tableName: "account";
447
+ dataType: "date";
448
+ columnType: "SQLiteTimestamp";
449
+ data: Date;
450
+ driverParam: number;
451
+ notNull: false;
452
+ hasDefault: true;
453
+ isPrimaryKey: false;
454
+ isAutoincrement: false;
455
+ hasRuntimeDefault: false;
456
+ enumValues: undefined;
457
+ baseColumn: never;
458
+ identity: undefined;
459
+ generated: undefined;
460
+ }, {}, {}>;
461
+ }, undefined, undefined>;
462
+ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
463
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
464
+ name: "connector_key";
465
+ tableName: "account";
466
+ dataType: "string";
467
+ columnType: "SQLiteText";
468
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
469
+ driverParam: string;
470
+ notNull: true;
471
+ hasDefault: false;
472
+ isPrimaryKey: false;
473
+ isAutoincrement: false;
474
+ hasRuntimeDefault: false;
475
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
476
+ baseColumn: never;
477
+ identity: undefined;
478
+ generated: undefined;
479
+ }, {}, {
480
+ length: number | undefined;
481
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
482
+ }>;
483
+ status: drizzle_orm_sqlite_core.SQLiteColumn<{
484
+ name: "status";
485
+ tableName: "account";
486
+ dataType: "string";
487
+ columnType: "SQLiteText";
488
+ data: "AUTHORIZED" | "DISABLED" | "EXPIRED";
489
+ driverParam: string;
490
+ notNull: true;
491
+ hasDefault: false;
492
+ isPrimaryKey: false;
493
+ isAutoincrement: false;
494
+ hasRuntimeDefault: false;
495
+ enumValues: ["AUTHORIZED", "DISABLED", "EXPIRED"];
496
+ baseColumn: never;
497
+ identity: undefined;
498
+ generated: undefined;
499
+ }, {}, {
500
+ length: number | undefined;
501
+ $type: "AUTHORIZED" | "DISABLED" | "EXPIRED";
502
+ }>;
503
+ sync: drizzle_orm_sqlite_core.SQLiteColumn<{
504
+ name: "sync";
505
+ tableName: "account";
506
+ dataType: "boolean";
507
+ columnType: "SQLiteBoolean";
508
+ data: boolean;
509
+ driverParam: number;
510
+ notNull: true;
511
+ hasDefault: true;
512
+ isPrimaryKey: false;
513
+ isAutoincrement: false;
514
+ hasRuntimeDefault: false;
515
+ enumValues: undefined;
516
+ baseColumn: never;
517
+ identity: undefined;
518
+ generated: undefined;
519
+ }, {}, {}>;
520
+ syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
521
+ name: "sync_period";
522
+ tableName: "account";
523
+ dataType: "number";
524
+ columnType: "SQLiteInteger";
525
+ data: number;
526
+ driverParam: number;
527
+ notNull: false;
528
+ hasDefault: false;
529
+ isPrimaryKey: false;
530
+ isAutoincrement: false;
531
+ hasRuntimeDefault: false;
532
+ enumValues: undefined;
533
+ baseColumn: never;
534
+ identity: undefined;
535
+ generated: undefined;
536
+ }, {}, {}>;
537
+ lastSyncedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
538
+ name: "last_synced_at";
539
+ tableName: "account";
540
+ dataType: "date";
541
+ columnType: "SQLiteTimestamp";
542
+ data: Date;
543
+ driverParam: number;
544
+ notNull: false;
545
+ hasDefault: false;
546
+ isPrimaryKey: false;
547
+ isAutoincrement: false;
548
+ hasRuntimeDefault: false;
549
+ enumValues: undefined;
550
+ baseColumn: never;
551
+ identity: undefined;
552
+ generated: undefined;
553
+ }, {}, {}>;
554
+ holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
555
+ name: "holder_name";
556
+ tableName: "account";
557
+ dataType: "string";
558
+ columnType: "SQLiteText";
559
+ data: string;
560
+ driverParam: string;
561
+ notNull: true;
562
+ hasDefault: false;
563
+ isPrimaryKey: false;
564
+ isAutoincrement: false;
565
+ hasRuntimeDefault: false;
566
+ enumValues: [string, ...string[]];
567
+ baseColumn: never;
568
+ identity: undefined;
569
+ generated: undefined;
570
+ }, {}, {
571
+ length: number | undefined;
572
+ }>;
573
+ number: drizzle_orm_sqlite_core.SQLiteColumn<{
574
+ name: "number";
575
+ tableName: "account";
576
+ dataType: "string";
577
+ columnType: "SQLiteText";
578
+ data: string;
579
+ driverParam: string;
580
+ notNull: true;
581
+ hasDefault: false;
582
+ isPrimaryKey: false;
583
+ isAutoincrement: false;
584
+ hasRuntimeDefault: false;
585
+ enumValues: [string, ...string[]];
586
+ baseColumn: never;
587
+ identity: undefined;
588
+ generated: undefined;
589
+ }, {}, {
590
+ length: number | undefined;
591
+ }>;
592
+ bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
593
+ name: "bank_code";
594
+ tableName: "account";
595
+ dataType: "string";
596
+ columnType: "SQLiteText";
597
+ data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
598
+ driverParam: string;
599
+ notNull: true;
600
+ hasDefault: false;
601
+ isPrimaryKey: false;
602
+ isAutoincrement: false;
603
+ hasRuntimeDefault: false;
604
+ enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
605
+ baseColumn: never;
606
+ identity: undefined;
607
+ generated: undefined;
608
+ }, {}, {
609
+ length: number | undefined;
610
+ }>;
611
+ iban: drizzle_orm_sqlite_core.SQLiteColumn<{
612
+ name: "iban";
613
+ tableName: "account";
614
+ dataType: "string";
615
+ columnType: "SQLiteText";
616
+ data: string;
617
+ driverParam: string;
618
+ notNull: true;
619
+ hasDefault: false;
620
+ isPrimaryKey: false;
621
+ isAutoincrement: false;
622
+ hasRuntimeDefault: false;
623
+ enumValues: [string, ...string[]];
624
+ baseColumn: never;
625
+ identity: undefined;
626
+ generated: undefined;
627
+ }, {}, {
628
+ length: number | undefined;
629
+ }>;
630
+ address: drizzle_orm_sqlite_core.SQLiteColumn<{
631
+ name: "address";
632
+ tableName: "account";
633
+ dataType: "string";
634
+ columnType: "SQLiteText";
635
+ data: string;
636
+ driverParam: string;
637
+ notNull: false;
638
+ hasDefault: false;
639
+ isPrimaryKey: false;
640
+ isAutoincrement: false;
641
+ hasRuntimeDefault: false;
642
+ enumValues: [string, ...string[]];
643
+ baseColumn: never;
644
+ identity: undefined;
645
+ generated: undefined;
646
+ }, {}, {
647
+ length: number | undefined;
648
+ }>;
649
+ swiftBic: drizzle_orm_sqlite_core.SQLiteColumn<{
650
+ name: "swift_bic";
651
+ tableName: "account";
652
+ dataType: "string";
653
+ columnType: "SQLiteText";
654
+ data: string;
655
+ driverParam: string;
656
+ notNull: false;
657
+ hasDefault: false;
658
+ isPrimaryKey: false;
659
+ isAutoincrement: false;
660
+ hasRuntimeDefault: false;
661
+ enumValues: [string, ...string[]];
662
+ baseColumn: never;
663
+ identity: undefined;
664
+ generated: undefined;
665
+ }, {}, {
666
+ length: number | undefined;
667
+ }>;
668
+ bicCor: drizzle_orm_sqlite_core.SQLiteColumn<{
669
+ name: "bic_cor";
670
+ tableName: "account";
671
+ dataType: "string";
672
+ columnType: "SQLiteText";
673
+ data: string;
674
+ driverParam: string;
675
+ notNull: false;
676
+ hasDefault: false;
677
+ isPrimaryKey: false;
678
+ isAutoincrement: false;
679
+ hasRuntimeDefault: false;
680
+ enumValues: [string, ...string[]];
681
+ baseColumn: never;
682
+ identity: undefined;
683
+ generated: undefined;
684
+ }, {}, {
685
+ length: number | undefined;
686
+ }>;
687
+ currency: drizzle_orm_sqlite_core.SQLiteColumn<{
688
+ name: "currency";
689
+ tableName: "account";
690
+ dataType: "string";
691
+ columnType: "SQLiteText";
692
+ data: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
693
+ driverParam: string;
694
+ notNull: true;
695
+ hasDefault: false;
696
+ isPrimaryKey: false;
697
+ isAutoincrement: false;
698
+ hasRuntimeDefault: false;
699
+ enumValues: ["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]];
700
+ baseColumn: never;
701
+ identity: undefined;
702
+ generated: undefined;
703
+ }, {}, {
704
+ length: number | undefined;
705
+ }>;
706
+ countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
707
+ name: "country_code";
708
+ tableName: "account";
709
+ dataType: "string";
710
+ columnType: "SQLiteText";
711
+ data: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
712
+ driverParam: string;
713
+ notNull: true;
714
+ hasDefault: false;
715
+ isPrimaryKey: false;
716
+ isAutoincrement: false;
717
+ hasRuntimeDefault: false;
718
+ enumValues: ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
719
+ baseColumn: never;
720
+ identity: undefined;
721
+ generated: undefined;
722
+ }, {}, {
723
+ length: number | undefined;
724
+ }>;
725
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
726
+ name: "id";
727
+ tableName: "account";
728
+ dataType: "string";
729
+ columnType: "SQLiteText";
730
+ data: string;
731
+ driverParam: string;
732
+ notNull: true;
733
+ hasDefault: false;
734
+ isPrimaryKey: true;
735
+ isAutoincrement: false;
736
+ hasRuntimeDefault: false;
737
+ enumValues: [string, ...string[]];
738
+ baseColumn: never;
739
+ identity: undefined;
740
+ generated: undefined;
741
+ }, {}, {
742
+ length: number | undefined;
743
+ }>;
744
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
745
+ name: "created_at";
746
+ tableName: "account";
747
+ dataType: "date";
748
+ columnType: "SQLiteTimestamp";
749
+ data: Date;
750
+ driverParam: number;
751
+ notNull: false;
752
+ hasDefault: true;
753
+ isPrimaryKey: false;
754
+ isAutoincrement: false;
755
+ hasRuntimeDefault: false;
756
+ enumValues: undefined;
757
+ baseColumn: never;
758
+ identity: undefined;
759
+ generated: undefined;
760
+ }, {}, {}>;
761
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
762
+ name: "updated_at";
763
+ tableName: "account";
764
+ dataType: "date";
765
+ columnType: "SQLiteTimestamp";
766
+ data: Date;
767
+ driverParam: number;
768
+ notNull: false;
769
+ hasDefault: true;
770
+ isPrimaryKey: false;
771
+ isAutoincrement: false;
772
+ hasRuntimeDefault: false;
773
+ enumValues: undefined;
774
+ baseColumn: never;
775
+ identity: undefined;
776
+ generated: undefined;
777
+ }, {}, {}>;
778
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
779
+ name: "deleted_at";
780
+ tableName: "account";
781
+ dataType: "date";
782
+ columnType: "SQLiteTimestamp";
783
+ data: Date;
784
+ driverParam: number;
785
+ notNull: false;
786
+ hasDefault: true;
787
+ isPrimaryKey: false;
788
+ isAutoincrement: false;
789
+ hasRuntimeDefault: false;
790
+ enumValues: undefined;
791
+ baseColumn: never;
792
+ identity: undefined;
793
+ generated: undefined;
794
+ }, {}, {}>;
795
+ }, undefined, undefined>;
796
+ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
797
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
798
+ name: "connector_key";
799
+ tableName: "account";
800
+ dataType: "string";
801
+ columnType: "SQLiteText";
802
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
803
+ driverParam: string;
804
+ notNull: true;
805
+ hasDefault: false;
806
+ isPrimaryKey: false;
807
+ isAutoincrement: false;
808
+ hasRuntimeDefault: false;
809
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
810
+ baseColumn: never;
811
+ identity: undefined;
812
+ generated: undefined;
813
+ }, {}, {
814
+ length: number | undefined;
815
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
816
+ }>;
817
+ status: drizzle_orm_sqlite_core.SQLiteColumn<{
818
+ name: "status";
819
+ tableName: "account";
820
+ dataType: "string";
821
+ columnType: "SQLiteText";
822
+ data: "AUTHORIZED" | "DISABLED" | "EXPIRED";
823
+ driverParam: string;
824
+ notNull: true;
825
+ hasDefault: false;
826
+ isPrimaryKey: false;
827
+ isAutoincrement: false;
828
+ hasRuntimeDefault: false;
829
+ enumValues: ["AUTHORIZED", "DISABLED", "EXPIRED"];
830
+ baseColumn: never;
831
+ identity: undefined;
832
+ generated: undefined;
833
+ }, {}, {
834
+ length: number | undefined;
835
+ $type: "AUTHORIZED" | "DISABLED" | "EXPIRED";
836
+ }>;
837
+ sync: drizzle_orm_sqlite_core.SQLiteColumn<{
838
+ name: "sync";
839
+ tableName: "account";
840
+ dataType: "boolean";
841
+ columnType: "SQLiteBoolean";
842
+ data: boolean;
843
+ driverParam: number;
844
+ notNull: true;
845
+ hasDefault: true;
846
+ isPrimaryKey: false;
847
+ isAutoincrement: false;
848
+ hasRuntimeDefault: false;
849
+ enumValues: undefined;
850
+ baseColumn: never;
851
+ identity: undefined;
852
+ generated: undefined;
853
+ }, {}, {}>;
854
+ syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
855
+ name: "sync_period";
856
+ tableName: "account";
857
+ dataType: "number";
858
+ columnType: "SQLiteInteger";
859
+ data: number;
860
+ driverParam: number;
861
+ notNull: false;
862
+ hasDefault: false;
863
+ isPrimaryKey: false;
864
+ isAutoincrement: false;
865
+ hasRuntimeDefault: false;
866
+ enumValues: undefined;
867
+ baseColumn: never;
868
+ identity: undefined;
869
+ generated: undefined;
870
+ }, {}, {}>;
871
+ lastSyncedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
872
+ name: "last_synced_at";
873
+ tableName: "account";
874
+ dataType: "date";
875
+ columnType: "SQLiteTimestamp";
876
+ data: Date;
877
+ driverParam: number;
878
+ notNull: false;
879
+ hasDefault: false;
880
+ isPrimaryKey: false;
881
+ isAutoincrement: false;
882
+ hasRuntimeDefault: false;
883
+ enumValues: undefined;
884
+ baseColumn: never;
885
+ identity: undefined;
886
+ generated: undefined;
887
+ }, {}, {}>;
888
+ holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
889
+ name: "holder_name";
890
+ tableName: "account";
891
+ dataType: "string";
892
+ columnType: "SQLiteText";
893
+ data: string;
894
+ driverParam: string;
895
+ notNull: true;
896
+ hasDefault: false;
897
+ isPrimaryKey: false;
898
+ isAutoincrement: false;
899
+ hasRuntimeDefault: false;
900
+ enumValues: [string, ...string[]];
901
+ baseColumn: never;
902
+ identity: undefined;
903
+ generated: undefined;
904
+ }, {}, {
905
+ length: number | undefined;
906
+ }>;
907
+ number: drizzle_orm_sqlite_core.SQLiteColumn<{
908
+ name: "number";
909
+ tableName: "account";
910
+ dataType: "string";
911
+ columnType: "SQLiteText";
912
+ data: string;
913
+ driverParam: string;
914
+ notNull: true;
915
+ hasDefault: false;
916
+ isPrimaryKey: false;
917
+ isAutoincrement: false;
918
+ hasRuntimeDefault: false;
919
+ enumValues: [string, ...string[]];
920
+ baseColumn: never;
921
+ identity: undefined;
922
+ generated: undefined;
923
+ }, {}, {
924
+ length: number | undefined;
925
+ }>;
926
+ bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
927
+ name: "bank_code";
928
+ tableName: "account";
929
+ dataType: "string";
930
+ columnType: "SQLiteText";
931
+ data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
932
+ driverParam: string;
933
+ notNull: true;
934
+ hasDefault: false;
935
+ isPrimaryKey: false;
936
+ isAutoincrement: false;
937
+ hasRuntimeDefault: false;
938
+ enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
939
+ baseColumn: never;
940
+ identity: undefined;
941
+ generated: undefined;
942
+ }, {}, {
943
+ length: number | undefined;
944
+ }>;
945
+ iban: drizzle_orm_sqlite_core.SQLiteColumn<{
946
+ name: "iban";
947
+ tableName: "account";
948
+ dataType: "string";
949
+ columnType: "SQLiteText";
950
+ data: string;
951
+ driverParam: string;
952
+ notNull: true;
953
+ hasDefault: false;
954
+ isPrimaryKey: false;
955
+ isAutoincrement: false;
956
+ hasRuntimeDefault: false;
957
+ enumValues: [string, ...string[]];
958
+ baseColumn: never;
959
+ identity: undefined;
960
+ generated: undefined;
961
+ }, {}, {
962
+ length: number | undefined;
963
+ }>;
964
+ address: drizzle_orm_sqlite_core.SQLiteColumn<{
965
+ name: "address";
966
+ tableName: "account";
967
+ dataType: "string";
968
+ columnType: "SQLiteText";
969
+ data: string;
970
+ driverParam: string;
971
+ notNull: false;
972
+ hasDefault: false;
973
+ isPrimaryKey: false;
974
+ isAutoincrement: false;
975
+ hasRuntimeDefault: false;
976
+ enumValues: [string, ...string[]];
977
+ baseColumn: never;
978
+ identity: undefined;
979
+ generated: undefined;
980
+ }, {}, {
981
+ length: number | undefined;
982
+ }>;
983
+ swiftBic: drizzle_orm_sqlite_core.SQLiteColumn<{
984
+ name: "swift_bic";
985
+ tableName: "account";
986
+ dataType: "string";
987
+ columnType: "SQLiteText";
988
+ data: string;
989
+ driverParam: string;
990
+ notNull: false;
991
+ hasDefault: false;
992
+ isPrimaryKey: false;
993
+ isAutoincrement: false;
994
+ hasRuntimeDefault: false;
995
+ enumValues: [string, ...string[]];
996
+ baseColumn: never;
997
+ identity: undefined;
998
+ generated: undefined;
999
+ }, {}, {
1000
+ length: number | undefined;
1001
+ }>;
1002
+ bicCor: drizzle_orm_sqlite_core.SQLiteColumn<{
1003
+ name: "bic_cor";
1004
+ tableName: "account";
1005
+ dataType: "string";
1006
+ columnType: "SQLiteText";
1007
+ data: string;
1008
+ driverParam: string;
1009
+ notNull: false;
1010
+ hasDefault: false;
1011
+ isPrimaryKey: false;
1012
+ isAutoincrement: false;
1013
+ hasRuntimeDefault: false;
1014
+ enumValues: [string, ...string[]];
1015
+ baseColumn: never;
1016
+ identity: undefined;
1017
+ generated: undefined;
1018
+ }, {}, {
1019
+ length: number | undefined;
1020
+ }>;
1021
+ currency: drizzle_orm_sqlite_core.SQLiteColumn<{
1022
+ name: "currency";
1023
+ tableName: "account";
1024
+ dataType: "string";
1025
+ columnType: "SQLiteText";
1026
+ data: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1027
+ driverParam: string;
1028
+ notNull: true;
1029
+ hasDefault: false;
1030
+ isPrimaryKey: false;
1031
+ isAutoincrement: false;
1032
+ hasRuntimeDefault: false;
1033
+ enumValues: ["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]];
1034
+ baseColumn: never;
1035
+ identity: undefined;
1036
+ generated: undefined;
1037
+ }, {}, {
1038
+ length: number | undefined;
1039
+ }>;
1040
+ countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
1041
+ name: "country_code";
1042
+ tableName: "account";
1043
+ dataType: "string";
1044
+ columnType: "SQLiteText";
1045
+ data: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
1046
+ driverParam: string;
1047
+ notNull: true;
1048
+ hasDefault: false;
1049
+ isPrimaryKey: false;
1050
+ isAutoincrement: false;
1051
+ hasRuntimeDefault: false;
1052
+ enumValues: ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
1053
+ baseColumn: never;
1054
+ identity: undefined;
1055
+ generated: undefined;
1056
+ }, {}, {
1057
+ length: number | undefined;
1058
+ }>;
1059
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
+ name: "id";
1061
+ tableName: "account";
1062
+ dataType: "string";
1063
+ columnType: "SQLiteText";
1064
+ data: string;
1065
+ driverParam: string;
1066
+ notNull: true;
1067
+ hasDefault: false;
1068
+ isPrimaryKey: true;
1069
+ isAutoincrement: false;
1070
+ hasRuntimeDefault: false;
1071
+ enumValues: [string, ...string[]];
1072
+ baseColumn: never;
1073
+ identity: undefined;
1074
+ generated: undefined;
1075
+ }, {}, {
1076
+ length: number | undefined;
1077
+ }>;
1078
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1079
+ name: "created_at";
1080
+ tableName: "account";
1081
+ dataType: "date";
1082
+ columnType: "SQLiteTimestamp";
1083
+ data: Date;
1084
+ driverParam: number;
1085
+ notNull: false;
1086
+ hasDefault: true;
1087
+ isPrimaryKey: false;
1088
+ isAutoincrement: false;
1089
+ hasRuntimeDefault: false;
1090
+ enumValues: undefined;
1091
+ baseColumn: never;
1092
+ identity: undefined;
1093
+ generated: undefined;
1094
+ }, {}, {}>;
1095
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1096
+ name: "updated_at";
1097
+ tableName: "account";
1098
+ dataType: "date";
1099
+ columnType: "SQLiteTimestamp";
1100
+ data: Date;
1101
+ driverParam: number;
1102
+ notNull: false;
1103
+ hasDefault: true;
1104
+ isPrimaryKey: false;
1105
+ isAutoincrement: false;
1106
+ hasRuntimeDefault: false;
1107
+ enumValues: undefined;
1108
+ baseColumn: never;
1109
+ identity: undefined;
1110
+ generated: undefined;
1111
+ }, {}, {}>;
1112
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1113
+ name: "deleted_at";
1114
+ tableName: "account";
1115
+ dataType: "date";
1116
+ columnType: "SQLiteTimestamp";
1117
+ data: Date;
1118
+ driverParam: number;
1119
+ notNull: false;
1120
+ hasDefault: true;
1121
+ isPrimaryKey: false;
1122
+ isAutoincrement: false;
1123
+ hasRuntimeDefault: false;
1124
+ enumValues: undefined;
1125
+ baseColumn: never;
1126
+ identity: undefined;
1127
+ generated: undefined;
1128
+ }, {}, {}>;
1129
+ }, undefined, undefined>;
1130
+
1131
+ type AccountInsertType = Omit<z.infer<typeof accountInsertSchema>, 'id'> & {
1132
+ id?: string;
1133
+ };
1134
+ type AccountUpdateType = z.infer<typeof accountInsertSchema>;
1135
+ type AccountPatchType = z.infer<typeof accountUpdateSchema>;
1136
+ type AccountSelectType = z.infer<typeof accountSelectSchema>;
1137
+
1138
+ declare const accountCredentialsInsertSchema: drizzle_zod.BuildSchema<"insert", {
1139
+ accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
1140
+ name: "account_id";
1141
+ tableName: "account_credentials";
1142
+ dataType: "string";
1143
+ columnType: "SQLiteText";
1144
+ data: string;
1145
+ driverParam: string;
1146
+ notNull: true;
1147
+ hasDefault: false;
1148
+ isPrimaryKey: false;
1149
+ isAutoincrement: false;
1150
+ hasRuntimeDefault: false;
1151
+ enumValues: [string, ...string[]];
1152
+ baseColumn: never;
1153
+ identity: undefined;
1154
+ generated: undefined;
1155
+ }, {}, {
1156
+ length: number | undefined;
1157
+ }>;
1158
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
1159
+ name: "connector_key";
1160
+ tableName: "account_credentials";
1161
+ dataType: "string";
1162
+ columnType: "SQLiteText";
1163
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1164
+ driverParam: string;
1165
+ notNull: true;
1166
+ hasDefault: false;
1167
+ isPrimaryKey: false;
1168
+ isAutoincrement: false;
1169
+ hasRuntimeDefault: false;
1170
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
1171
+ baseColumn: never;
1172
+ identity: undefined;
1173
+ generated: undefined;
1174
+ }, {}, {
1175
+ length: number | undefined;
1176
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1177
+ }>;
1178
+ type: drizzle_orm_sqlite_core.SQLiteColumn<{
1179
+ name: "type";
1180
+ tableName: "account_credentials";
1181
+ dataType: "string";
1182
+ columnType: "SQLiteText";
1183
+ data: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1184
+ driverParam: string;
1185
+ notNull: true;
1186
+ hasDefault: false;
1187
+ isPrimaryKey: false;
1188
+ isAutoincrement: false;
1189
+ hasRuntimeDefault: false;
1190
+ enumValues: ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
1191
+ baseColumn: never;
1192
+ identity: undefined;
1193
+ generated: undefined;
1194
+ }, {}, {
1195
+ length: number | undefined;
1196
+ $type: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1197
+ }>;
1198
+ value: drizzle_orm_sqlite_core.SQLiteColumn<{
1199
+ name: "value";
1200
+ tableName: "account_credentials";
1201
+ dataType: "string";
1202
+ columnType: "SQLiteText";
1203
+ data: string;
1204
+ driverParam: string;
1205
+ notNull: true;
1206
+ hasDefault: false;
1207
+ isPrimaryKey: false;
1208
+ isAutoincrement: false;
1209
+ hasRuntimeDefault: false;
1210
+ enumValues: [string, ...string[]];
1211
+ baseColumn: never;
1212
+ identity: undefined;
1213
+ generated: undefined;
1214
+ }, {}, {
1215
+ length: number | undefined;
1216
+ }>;
1217
+ expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1218
+ name: "expires_at";
1219
+ tableName: "account_credentials";
1220
+ dataType: "date";
1221
+ columnType: "SQLiteTimestamp";
1222
+ data: Date;
1223
+ driverParam: number;
1224
+ notNull: true;
1225
+ hasDefault: false;
1226
+ isPrimaryKey: false;
1227
+ isAutoincrement: false;
1228
+ hasRuntimeDefault: false;
1229
+ enumValues: undefined;
1230
+ baseColumn: never;
1231
+ identity: undefined;
1232
+ generated: undefined;
1233
+ }, {}, {}>;
1234
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1235
+ name: "id";
1236
+ tableName: "account_credentials";
1237
+ dataType: "string";
1238
+ columnType: "SQLiteText";
1239
+ data: string;
1240
+ driverParam: string;
1241
+ notNull: true;
1242
+ hasDefault: false;
1243
+ isPrimaryKey: true;
1244
+ isAutoincrement: false;
1245
+ hasRuntimeDefault: false;
1246
+ enumValues: [string, ...string[]];
1247
+ baseColumn: never;
1248
+ identity: undefined;
1249
+ generated: undefined;
1250
+ }, {}, {
1251
+ length: number | undefined;
1252
+ }>;
1253
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1254
+ name: "created_at";
1255
+ tableName: "account_credentials";
1256
+ dataType: "date";
1257
+ columnType: "SQLiteTimestamp";
1258
+ data: Date;
1259
+ driverParam: number;
1260
+ notNull: false;
1261
+ hasDefault: true;
1262
+ isPrimaryKey: false;
1263
+ isAutoincrement: false;
1264
+ hasRuntimeDefault: false;
1265
+ enumValues: undefined;
1266
+ baseColumn: never;
1267
+ identity: undefined;
1268
+ generated: undefined;
1269
+ }, {}, {}>;
1270
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1271
+ name: "updated_at";
1272
+ tableName: "account_credentials";
1273
+ dataType: "date";
1274
+ columnType: "SQLiteTimestamp";
1275
+ data: Date;
1276
+ driverParam: number;
1277
+ notNull: false;
1278
+ hasDefault: true;
1279
+ isPrimaryKey: false;
1280
+ isAutoincrement: false;
1281
+ hasRuntimeDefault: false;
1282
+ enumValues: undefined;
1283
+ baseColumn: never;
1284
+ identity: undefined;
1285
+ generated: undefined;
1286
+ }, {}, {}>;
1287
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1288
+ name: "deleted_at";
1289
+ tableName: "account_credentials";
1290
+ dataType: "date";
1291
+ columnType: "SQLiteTimestamp";
1292
+ data: Date;
1293
+ driverParam: number;
1294
+ notNull: false;
1295
+ hasDefault: true;
1296
+ isPrimaryKey: false;
1297
+ isAutoincrement: false;
1298
+ hasRuntimeDefault: false;
1299
+ enumValues: undefined;
1300
+ baseColumn: never;
1301
+ identity: undefined;
1302
+ generated: undefined;
1303
+ }, {}, {}>;
1304
+ }, undefined, undefined>;
1305
+ declare const accountCredentialsUpdateSchema: drizzle_zod.BuildSchema<"update", {
1306
+ accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
1307
+ name: "account_id";
1308
+ tableName: "account_credentials";
1309
+ dataType: "string";
1310
+ columnType: "SQLiteText";
1311
+ data: string;
1312
+ driverParam: string;
1313
+ notNull: true;
1314
+ hasDefault: false;
1315
+ isPrimaryKey: false;
1316
+ isAutoincrement: false;
1317
+ hasRuntimeDefault: false;
1318
+ enumValues: [string, ...string[]];
1319
+ baseColumn: never;
1320
+ identity: undefined;
1321
+ generated: undefined;
1322
+ }, {}, {
1323
+ length: number | undefined;
1324
+ }>;
1325
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
1326
+ name: "connector_key";
1327
+ tableName: "account_credentials";
1328
+ dataType: "string";
1329
+ columnType: "SQLiteText";
1330
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1331
+ driverParam: string;
1332
+ notNull: true;
1333
+ hasDefault: false;
1334
+ isPrimaryKey: false;
1335
+ isAutoincrement: false;
1336
+ hasRuntimeDefault: false;
1337
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
1338
+ baseColumn: never;
1339
+ identity: undefined;
1340
+ generated: undefined;
1341
+ }, {}, {
1342
+ length: number | undefined;
1343
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1344
+ }>;
1345
+ type: drizzle_orm_sqlite_core.SQLiteColumn<{
1346
+ name: "type";
1347
+ tableName: "account_credentials";
1348
+ dataType: "string";
1349
+ columnType: "SQLiteText";
1350
+ data: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1351
+ driverParam: string;
1352
+ notNull: true;
1353
+ hasDefault: false;
1354
+ isPrimaryKey: false;
1355
+ isAutoincrement: false;
1356
+ hasRuntimeDefault: false;
1357
+ enumValues: ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
1358
+ baseColumn: never;
1359
+ identity: undefined;
1360
+ generated: undefined;
1361
+ }, {}, {
1362
+ length: number | undefined;
1363
+ $type: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1364
+ }>;
1365
+ value: drizzle_orm_sqlite_core.SQLiteColumn<{
1366
+ name: "value";
1367
+ tableName: "account_credentials";
1368
+ dataType: "string";
1369
+ columnType: "SQLiteText";
1370
+ data: string;
1371
+ driverParam: string;
1372
+ notNull: true;
1373
+ hasDefault: false;
1374
+ isPrimaryKey: false;
1375
+ isAutoincrement: false;
1376
+ hasRuntimeDefault: false;
1377
+ enumValues: [string, ...string[]];
1378
+ baseColumn: never;
1379
+ identity: undefined;
1380
+ generated: undefined;
1381
+ }, {}, {
1382
+ length: number | undefined;
1383
+ }>;
1384
+ expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1385
+ name: "expires_at";
1386
+ tableName: "account_credentials";
1387
+ dataType: "date";
1388
+ columnType: "SQLiteTimestamp";
1389
+ data: Date;
1390
+ driverParam: number;
1391
+ notNull: true;
1392
+ hasDefault: false;
1393
+ isPrimaryKey: false;
1394
+ isAutoincrement: false;
1395
+ hasRuntimeDefault: false;
1396
+ enumValues: undefined;
1397
+ baseColumn: never;
1398
+ identity: undefined;
1399
+ generated: undefined;
1400
+ }, {}, {}>;
1401
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1402
+ name: "id";
1403
+ tableName: "account_credentials";
1404
+ dataType: "string";
1405
+ columnType: "SQLiteText";
1406
+ data: string;
1407
+ driverParam: string;
1408
+ notNull: true;
1409
+ hasDefault: false;
1410
+ isPrimaryKey: true;
1411
+ isAutoincrement: false;
1412
+ hasRuntimeDefault: false;
1413
+ enumValues: [string, ...string[]];
1414
+ baseColumn: never;
1415
+ identity: undefined;
1416
+ generated: undefined;
1417
+ }, {}, {
1418
+ length: number | undefined;
1419
+ }>;
1420
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1421
+ name: "created_at";
1422
+ tableName: "account_credentials";
1423
+ dataType: "date";
1424
+ columnType: "SQLiteTimestamp";
1425
+ data: Date;
1426
+ driverParam: number;
1427
+ notNull: false;
1428
+ hasDefault: true;
1429
+ isPrimaryKey: false;
1430
+ isAutoincrement: false;
1431
+ hasRuntimeDefault: false;
1432
+ enumValues: undefined;
1433
+ baseColumn: never;
1434
+ identity: undefined;
1435
+ generated: undefined;
1436
+ }, {}, {}>;
1437
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1438
+ name: "updated_at";
1439
+ tableName: "account_credentials";
1440
+ dataType: "date";
1441
+ columnType: "SQLiteTimestamp";
1442
+ data: Date;
1443
+ driverParam: number;
1444
+ notNull: false;
1445
+ hasDefault: true;
1446
+ isPrimaryKey: false;
1447
+ isAutoincrement: false;
1448
+ hasRuntimeDefault: false;
1449
+ enumValues: undefined;
1450
+ baseColumn: never;
1451
+ identity: undefined;
1452
+ generated: undefined;
1453
+ }, {}, {}>;
1454
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1455
+ name: "deleted_at";
1456
+ tableName: "account_credentials";
1457
+ dataType: "date";
1458
+ columnType: "SQLiteTimestamp";
1459
+ data: Date;
1460
+ driverParam: number;
1461
+ notNull: false;
1462
+ hasDefault: true;
1463
+ isPrimaryKey: false;
1464
+ isAutoincrement: false;
1465
+ hasRuntimeDefault: false;
1466
+ enumValues: undefined;
1467
+ baseColumn: never;
1468
+ identity: undefined;
1469
+ generated: undefined;
1470
+ }, {}, {}>;
1471
+ }, undefined, undefined>;
1472
+ declare const accountCredentialsSelectSchema: drizzle_zod.BuildSchema<"select", {
1473
+ accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
1474
+ name: "account_id";
1475
+ tableName: "account_credentials";
1476
+ dataType: "string";
1477
+ columnType: "SQLiteText";
1478
+ data: string;
1479
+ driverParam: string;
1480
+ notNull: true;
1481
+ hasDefault: false;
1482
+ isPrimaryKey: false;
1483
+ isAutoincrement: false;
1484
+ hasRuntimeDefault: false;
1485
+ enumValues: [string, ...string[]];
1486
+ baseColumn: never;
1487
+ identity: undefined;
1488
+ generated: undefined;
1489
+ }, {}, {
1490
+ length: number | undefined;
1491
+ }>;
1492
+ connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
1493
+ name: "connector_key";
1494
+ tableName: "account_credentials";
1495
+ dataType: "string";
1496
+ columnType: "SQLiteText";
1497
+ data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1498
+ driverParam: string;
1499
+ notNull: true;
1500
+ hasDefault: false;
1501
+ isPrimaryKey: false;
1502
+ isAutoincrement: false;
1503
+ hasRuntimeDefault: false;
1504
+ enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
1505
+ baseColumn: never;
1506
+ identity: undefined;
1507
+ generated: undefined;
1508
+ }, {}, {
1509
+ length: number | undefined;
1510
+ $type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
1511
+ }>;
1512
+ type: drizzle_orm_sqlite_core.SQLiteColumn<{
1513
+ name: "type";
1514
+ tableName: "account_credentials";
1515
+ dataType: "string";
1516
+ columnType: "SQLiteText";
1517
+ data: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1518
+ driverParam: string;
1519
+ notNull: true;
1520
+ hasDefault: false;
1521
+ isPrimaryKey: false;
1522
+ isAutoincrement: false;
1523
+ hasRuntimeDefault: false;
1524
+ enumValues: ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
1525
+ baseColumn: never;
1526
+ identity: undefined;
1527
+ generated: undefined;
1528
+ }, {}, {
1529
+ length: number | undefined;
1530
+ $type: "AUTH_TOKEN" | "REFRESH_TOKEN" | "CLIENT_ID" | "API_KEY";
1531
+ }>;
1532
+ value: drizzle_orm_sqlite_core.SQLiteColumn<{
1533
+ name: "value";
1534
+ tableName: "account_credentials";
1535
+ dataType: "string";
1536
+ columnType: "SQLiteText";
1537
+ data: string;
1538
+ driverParam: string;
1539
+ notNull: true;
1540
+ hasDefault: false;
1541
+ isPrimaryKey: false;
1542
+ isAutoincrement: false;
1543
+ hasRuntimeDefault: false;
1544
+ enumValues: [string, ...string[]];
1545
+ baseColumn: never;
1546
+ identity: undefined;
1547
+ generated: undefined;
1548
+ }, {}, {
1549
+ length: number | undefined;
1550
+ }>;
1551
+ expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1552
+ name: "expires_at";
1553
+ tableName: "account_credentials";
1554
+ dataType: "date";
1555
+ columnType: "SQLiteTimestamp";
1556
+ data: Date;
1557
+ driverParam: number;
1558
+ notNull: true;
1559
+ hasDefault: false;
1560
+ isPrimaryKey: false;
1561
+ isAutoincrement: false;
1562
+ hasRuntimeDefault: false;
1563
+ enumValues: undefined;
1564
+ baseColumn: never;
1565
+ identity: undefined;
1566
+ generated: undefined;
1567
+ }, {}, {}>;
1568
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1569
+ name: "id";
1570
+ tableName: "account_credentials";
1571
+ dataType: "string";
1572
+ columnType: "SQLiteText";
1573
+ data: string;
1574
+ driverParam: string;
1575
+ notNull: true;
1576
+ hasDefault: false;
1577
+ isPrimaryKey: true;
1578
+ isAutoincrement: false;
1579
+ hasRuntimeDefault: false;
1580
+ enumValues: [string, ...string[]];
1581
+ baseColumn: never;
1582
+ identity: undefined;
1583
+ generated: undefined;
1584
+ }, {}, {
1585
+ length: number | undefined;
1586
+ }>;
1587
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1588
+ name: "created_at";
1589
+ tableName: "account_credentials";
1590
+ dataType: "date";
1591
+ columnType: "SQLiteTimestamp";
1592
+ data: Date;
1593
+ driverParam: number;
1594
+ notNull: false;
1595
+ hasDefault: true;
1596
+ isPrimaryKey: false;
1597
+ isAutoincrement: false;
1598
+ hasRuntimeDefault: false;
1599
+ enumValues: undefined;
1600
+ baseColumn: never;
1601
+ identity: undefined;
1602
+ generated: undefined;
1603
+ }, {}, {}>;
1604
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1605
+ name: "updated_at";
1606
+ tableName: "account_credentials";
1607
+ dataType: "date";
1608
+ columnType: "SQLiteTimestamp";
1609
+ data: Date;
1610
+ driverParam: number;
1611
+ notNull: false;
1612
+ hasDefault: true;
1613
+ isPrimaryKey: false;
1614
+ isAutoincrement: false;
1615
+ hasRuntimeDefault: false;
1616
+ enumValues: undefined;
1617
+ baseColumn: never;
1618
+ identity: undefined;
1619
+ generated: undefined;
1620
+ }, {}, {}>;
1621
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1622
+ name: "deleted_at";
1623
+ tableName: "account_credentials";
1624
+ dataType: "date";
1625
+ columnType: "SQLiteTimestamp";
1626
+ data: Date;
1627
+ driverParam: number;
1628
+ notNull: false;
1629
+ hasDefault: true;
1630
+ isPrimaryKey: false;
1631
+ isAutoincrement: false;
1632
+ hasRuntimeDefault: false;
1633
+ enumValues: undefined;
1634
+ baseColumn: never;
1635
+ identity: undefined;
1636
+ generated: undefined;
1637
+ }, {}, {}>;
1638
+ }, undefined, undefined>;
1639
+
1640
+ type AccountCredentialsInsertType = Omit<z.infer<typeof accountCredentialsInsertSchema>, 'id'> & {
1641
+ id?: string;
1642
+ };
1643
+ type AccountCredentialsUpdateType = z.infer<typeof accountCredentialsInsertSchema>;
1644
+ type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema>;
1645
+ type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
1646
+
1647
+ export { CONNECTOR_KEYS as D, CREDENTIALS_TYPES as E, accountInsertSchema as H, IBankConnector as I, accountUpdateSchema as J, accountSelectSchema as K, accountCredentialsInsertSchema as N, accountCredentialsUpdateSchema as Q, accountCredentialsSelectSchema as R, TOKEN_TYPES as T, BATCH_STATUSES as r, PAYMENT_TYPES as s, PAYMENT_STATUSES as u, PAYMENT_DIRECTIONS as v, ACCOUNT_STATUSES as x, COUNTRY_CODES as z };
1648
+ export type { AccountSelectType as A, BankAccountWithLastSync as B, ConfigEnvironmentBank as C, CredentialsType as F, TokenType as G, AccountUpdateType as L, AccountPatchType as M, OutgoingPaymentMessage as O, PaymentPreparedInsertType as P, SyncLog as S, AccountCredentialsUpdateType as U, AccountCredentialsPatchType as V, AccountCredentialsSelectType as W, ConnectorKey as a, CurrencyCode as b, BankCode as c, CountryCode as d, ConnectedAccount as e, AccountCredentialsInsertType as f, AccountInsertType as g, AuthInput as h, IncomingPaymentMessage as i, InitiatedBatch as j, InitiatedPayment as k, PaymentStatus as l, BatchStatus as m, BatchMetadata as n, Currency as o, PaymentFailedInsertType as p, paymentInitializedInsertType as q, PaymentType as t, PaymentDirection as w, AccountStatus as y };