@develit-io/backend-sdk 9.11.16 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as drizzle_orm from 'drizzle-orm';
2
2
  import { Table, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, AnyColumn } from 'drizzle-orm';
3
3
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
4
  import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
5
- import { ZodObject, ZodType, ZodOptional, z as z$1 } from 'zod';
5
+ import { z as z$1, ZodObject, ZodType, ZodOptional } from 'zod';
6
6
  import * as z from 'zod/v4/core';
7
7
  import { ContentfulStatusCode, SuccessStatusCode } from 'hono/utils/http-status';
8
8
  export { ContentfulStatusCode as InternalResponseStatus } from 'hono/utils/http-status';
@@ -30,87 +30,229 @@ declare const base: {
30
30
  deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
31
31
  };
32
32
 
33
- declare const bankAccount: {
34
- holderName: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"holder_name", [string, ...string[]], number | undefined>>;
35
- number: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"number", [string, ...string[]], number | undefined>;
36
- bankCode: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bank_code", ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610")[]], number | undefined>;
37
- iban: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"iban", [string, ...string[]], number | undefined>;
38
- address: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"address", [string, ...string[]], number | undefined>;
39
- swiftBic: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"swift_bic", [string, ...string[]], number | undefined>;
40
- bicCor: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bic_cor", [string, ...string[]], number | undefined>;
41
- currency: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"currency", ["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")[]], number | undefined>>;
42
- countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"country_code", ["IM" | "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" | "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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("IM" | "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" | "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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]], number | undefined>>;
43
- routingNumber: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"routing_number", [string, ...string[]], number | undefined>;
44
- sortCode: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"sort_code", [string, ...string[]], number | undefined>;
45
- clabe: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"clabe", [string, ...string[]], number | undefined>;
46
- bsb: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bsb", [string, ...string[]], number | undefined>;
47
- brBankNumber: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"br_bank_number", [string, ...string[]], number | undefined>;
48
- };
49
-
50
- declare const auditFieldKeys: readonly ["createdAt", "createdBy", "updatedAt", "updatedBy", "deletedAt", "deletedBy"];
51
- type AuditKey = (typeof auditFieldKeys)[number];
52
- type InsertSchemaOf<TTable extends Table> = ZodObject<{
53
- [K in keyof Omit<TTable['$inferInsert'], AuditKey | 'id'>]: ZodType<TTable['$inferInsert'][K]>;
54
- } & {
55
- id: ZodOptional<ZodType<string>>;
56
- }>;
57
- type UpdateSchemaOf<TTable extends Table> = ZodObject<{
58
- [K in keyof Omit<TTable['$inferInsert'], AuditKey | 'id'>]: ZodOptional<ZodType<TTable['$inferInsert'][K]>>;
59
- } & {
60
- id: ZodType<string>;
61
- }>;
62
- /**
63
- * Creates Zod schema for DB insert
64
- * - `id` optional (auto-generated if not provided)
65
- * - Audit fields omitted (set by DB)
66
- */
67
- declare function createInsertSchema<TTable extends Table>(table: TTable): InsertSchemaOf<TTable>;
68
- /**
69
- * Creates Zod schema for DB update
70
- * - `id` required
71
- * - All other fields optional
72
- * - Audit fields omitted
73
- */
74
- declare function createUpdateSchema<TTable extends Table>(table: TTable): UpdateSchemaOf<TTable>;
75
- /**
76
- * Creates Zod schema for API PATCH (alias for updateSchema)
77
- */
78
- declare const createPatchSchema: typeof createUpdateSchema;
79
-
80
- declare const USER_ROLES: readonly ["OWNER", "ADMIN", "MEMBER"];
81
- type UserRole = (typeof USER_ROLES)[number];
82
-
83
- declare const composeWranglerBase: ({ project, name, }: {
84
- project: string;
85
- name: string;
86
- }) => {
87
- $schema: string;
88
- name: string;
89
- main: string;
90
- compatibility_date: string;
91
- compatibility_flags: string[];
92
- observability: {
93
- enabled: boolean;
94
- head_sampling_rate: number;
95
- logs: {
96
- enabled: boolean;
97
- invocation_logs: boolean;
98
- };
99
- };
100
- workers_dev: boolean;
101
- keep_vars: boolean;
102
- };
103
-
104
- interface AuditLogPayload<T> {
105
- action: T;
106
- actorId: string;
107
- actorUsername?: string;
108
- service: string;
109
- entityId?: string;
110
- }
111
-
112
33
  declare const ibanSchema: z$1.ZodString;
113
34
  declare const bicSchema: z$1.ZodString;
35
+ declare const structuredAddressSchema: z$1.ZodObject<{
36
+ streetName: z$1.ZodOptional<z$1.ZodString>;
37
+ buildingNumber: z$1.ZodOptional<z$1.ZodString>;
38
+ city: z$1.ZodOptional<z$1.ZodString>;
39
+ postalCode: z$1.ZodOptional<z$1.ZodString>;
40
+ countryCode: z$1.ZodOptional<z$1.ZodEnum<{
41
+ AF: "AF";
42
+ AL: "AL";
43
+ DZ: "DZ";
44
+ AS: "AS";
45
+ AD: "AD";
46
+ AO: "AO";
47
+ AG: "AG";
48
+ AR: "AR";
49
+ AM: "AM";
50
+ AW: "AW";
51
+ AU: "AU";
52
+ AT: "AT";
53
+ AZ: "AZ";
54
+ BS: "BS";
55
+ BH: "BH";
56
+ BD: "BD";
57
+ BB: "BB";
58
+ BY: "BY";
59
+ BE: "BE";
60
+ BZ: "BZ";
61
+ BJ: "BJ";
62
+ BO: "BO";
63
+ BQ: "BQ";
64
+ BA: "BA";
65
+ BW: "BW";
66
+ BR: "BR";
67
+ IO: "IO";
68
+ VG: "VG";
69
+ BG: "BG";
70
+ BF: "BF";
71
+ BI: "BI";
72
+ KH: "KH";
73
+ CM: "CM";
74
+ CA: "CA";
75
+ CV: "CV";
76
+ CF: "CF";
77
+ TD: "TD";
78
+ CL: "CL";
79
+ CN: "CN";
80
+ CO: "CO";
81
+ KM: "KM";
82
+ CK: "CK";
83
+ CR: "CR";
84
+ HR: "HR";
85
+ CW: "CW";
86
+ CY: "CY";
87
+ CZ: "CZ";
88
+ CD: "CD";
89
+ DK: "DK";
90
+ DJ: "DJ";
91
+ DM: "DM";
92
+ DO: "DO";
93
+ TL: "TL";
94
+ EC: "EC";
95
+ EG: "EG";
96
+ SV: "SV";
97
+ GQ: "GQ";
98
+ ER: "ER";
99
+ EE: "EE";
100
+ ET: "ET";
101
+ FO: "FO";
102
+ FJ: "FJ";
103
+ FI: "FI";
104
+ FR: "FR";
105
+ GF: "GF";
106
+ PF: "PF";
107
+ GA: "GA";
108
+ GM: "GM";
109
+ GE: "GE";
110
+ DE: "DE";
111
+ GH: "GH";
112
+ GR: "GR";
113
+ GD: "GD";
114
+ GP: "GP";
115
+ GU: "GU";
116
+ GT: "GT";
117
+ GN: "GN";
118
+ GW: "GW";
119
+ GY: "GY";
120
+ HT: "HT";
121
+ HN: "HN";
122
+ HU: "HU";
123
+ IS: "IS";
124
+ IN: "IN";
125
+ ID: "ID";
126
+ IR: "IR";
127
+ IQ: "IQ";
128
+ IE: "IE";
129
+ IM: "IM";
130
+ IL: "IL";
131
+ IT: "IT";
132
+ CI: "CI";
133
+ JM: "JM";
134
+ JP: "JP";
135
+ JE: "JE";
136
+ JO: "JO";
137
+ KZ: "KZ";
138
+ KE: "KE";
139
+ KI: "KI";
140
+ XK: "XK";
141
+ KW: "KW";
142
+ KG: "KG";
143
+ LA: "LA";
144
+ LV: "LV";
145
+ LB: "LB";
146
+ LS: "LS";
147
+ LR: "LR";
148
+ LI: "LI";
149
+ LT: "LT";
150
+ LU: "LU";
151
+ MK: "MK";
152
+ MG: "MG";
153
+ MW: "MW";
154
+ MY: "MY";
155
+ MV: "MV";
156
+ ML: "ML";
157
+ MT: "MT";
158
+ MQ: "MQ";
159
+ MR: "MR";
160
+ MU: "MU";
161
+ MX: "MX";
162
+ FM: "FM";
163
+ MD: "MD";
164
+ MC: "MC";
165
+ MN: "MN";
166
+ ME: "ME";
167
+ MS: "MS";
168
+ MA: "MA";
169
+ MZ: "MZ";
170
+ NA: "NA";
171
+ NP: "NP";
172
+ NL: "NL";
173
+ NZ: "NZ";
174
+ NI: "NI";
175
+ NE: "NE";
176
+ NG: "NG";
177
+ NU: "NU";
178
+ NF: "NF";
179
+ KP: "KP";
180
+ NO: "NO";
181
+ OM: "OM";
182
+ PK: "PK";
183
+ PS: "PS";
184
+ PA: "PA";
185
+ PG: "PG";
186
+ PY: "PY";
187
+ PE: "PE";
188
+ PH: "PH";
189
+ PL: "PL";
190
+ PT: "PT";
191
+ PR: "PR";
192
+ QA: "QA";
193
+ CG: "CG";
194
+ RE: "RE";
195
+ RO: "RO";
196
+ RU: "RU";
197
+ RW: "RW";
198
+ BL: "BL";
199
+ KN: "KN";
200
+ LC: "LC";
201
+ MF: "MF";
202
+ VC: "VC";
203
+ WS: "WS";
204
+ SM: "SM";
205
+ SA: "SA";
206
+ SN: "SN";
207
+ RS: "RS";
208
+ SC: "SC";
209
+ SL: "SL";
210
+ SG: "SG";
211
+ SX: "SX";
212
+ SK: "SK";
213
+ SI: "SI";
214
+ SO: "SO";
215
+ ZA: "ZA";
216
+ KR: "KR";
217
+ SS: "SS";
218
+ ES: "ES";
219
+ LK: "LK";
220
+ SD: "SD";
221
+ SR: "SR";
222
+ SJ: "SJ";
223
+ SZ: "SZ";
224
+ SE: "SE";
225
+ CH: "CH";
226
+ TW: "TW";
227
+ TJ: "TJ";
228
+ TZ: "TZ";
229
+ TH: "TH";
230
+ TG: "TG";
231
+ TO: "TO";
232
+ TT: "TT";
233
+ TN: "TN";
234
+ TR: "TR";
235
+ TM: "TM";
236
+ UM: "UM";
237
+ VI: "VI";
238
+ UG: "UG";
239
+ UA: "UA";
240
+ AE: "AE";
241
+ GB: "GB";
242
+ US: "US";
243
+ UZ: "UZ";
244
+ VU: "VU";
245
+ VE: "VE";
246
+ VN: "VN";
247
+ WF: "WF";
248
+ EH: "EH";
249
+ YE: "YE";
250
+ ZM: "ZM";
251
+ ZW: "ZW";
252
+ }>>;
253
+ }, z$1.core.$strip>;
254
+ interface StructuredAddress extends z$1.infer<typeof structuredAddressSchema> {
255
+ }
114
256
  declare const bankAccountMetadataSchema: z$1.ZodObject<{
115
257
  id: z$1.ZodOptional<z$1.ZodString>;
116
258
  number: z$1.ZodOptional<z$1.ZodString>;
@@ -179,7 +321,225 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
179
321
  }>>;
180
322
  holderName: z$1.ZodOptional<z$1.ZodString>;
181
323
  iban: z$1.ZodOptional<z$1.ZodString>;
182
- address: z$1.ZodOptional<z$1.ZodString>;
324
+ address: z$1.ZodOptional<z$1.ZodObject<{
325
+ streetName: z$1.ZodOptional<z$1.ZodString>;
326
+ buildingNumber: z$1.ZodOptional<z$1.ZodString>;
327
+ city: z$1.ZodOptional<z$1.ZodString>;
328
+ postalCode: z$1.ZodOptional<z$1.ZodString>;
329
+ countryCode: z$1.ZodOptional<z$1.ZodEnum<{
330
+ AF: "AF";
331
+ AL: "AL";
332
+ DZ: "DZ";
333
+ AS: "AS";
334
+ AD: "AD";
335
+ AO: "AO";
336
+ AG: "AG";
337
+ AR: "AR";
338
+ AM: "AM";
339
+ AW: "AW";
340
+ AU: "AU";
341
+ AT: "AT";
342
+ AZ: "AZ";
343
+ BS: "BS";
344
+ BH: "BH";
345
+ BD: "BD";
346
+ BB: "BB";
347
+ BY: "BY";
348
+ BE: "BE";
349
+ BZ: "BZ";
350
+ BJ: "BJ";
351
+ BO: "BO";
352
+ BQ: "BQ";
353
+ BA: "BA";
354
+ BW: "BW";
355
+ BR: "BR";
356
+ IO: "IO";
357
+ VG: "VG";
358
+ BG: "BG";
359
+ BF: "BF";
360
+ BI: "BI";
361
+ KH: "KH";
362
+ CM: "CM";
363
+ CA: "CA";
364
+ CV: "CV";
365
+ CF: "CF";
366
+ TD: "TD";
367
+ CL: "CL";
368
+ CN: "CN";
369
+ CO: "CO";
370
+ KM: "KM";
371
+ CK: "CK";
372
+ CR: "CR";
373
+ HR: "HR";
374
+ CW: "CW";
375
+ CY: "CY";
376
+ CZ: "CZ";
377
+ CD: "CD";
378
+ DK: "DK";
379
+ DJ: "DJ";
380
+ DM: "DM";
381
+ DO: "DO";
382
+ TL: "TL";
383
+ EC: "EC";
384
+ EG: "EG";
385
+ SV: "SV";
386
+ GQ: "GQ";
387
+ ER: "ER";
388
+ EE: "EE";
389
+ ET: "ET";
390
+ FO: "FO";
391
+ FJ: "FJ";
392
+ FI: "FI";
393
+ FR: "FR";
394
+ GF: "GF";
395
+ PF: "PF";
396
+ GA: "GA";
397
+ GM: "GM";
398
+ GE: "GE";
399
+ DE: "DE";
400
+ GH: "GH";
401
+ GR: "GR";
402
+ GD: "GD";
403
+ GP: "GP";
404
+ GU: "GU";
405
+ GT: "GT";
406
+ GN: "GN";
407
+ GW: "GW";
408
+ GY: "GY";
409
+ HT: "HT";
410
+ HN: "HN";
411
+ HU: "HU";
412
+ IS: "IS";
413
+ IN: "IN";
414
+ ID: "ID";
415
+ IR: "IR";
416
+ IQ: "IQ";
417
+ IE: "IE";
418
+ IM: "IM";
419
+ IL: "IL";
420
+ IT: "IT";
421
+ CI: "CI";
422
+ JM: "JM";
423
+ JP: "JP";
424
+ JE: "JE";
425
+ JO: "JO";
426
+ KZ: "KZ";
427
+ KE: "KE";
428
+ KI: "KI";
429
+ XK: "XK";
430
+ KW: "KW";
431
+ KG: "KG";
432
+ LA: "LA";
433
+ LV: "LV";
434
+ LB: "LB";
435
+ LS: "LS";
436
+ LR: "LR";
437
+ LI: "LI";
438
+ LT: "LT";
439
+ LU: "LU";
440
+ MK: "MK";
441
+ MG: "MG";
442
+ MW: "MW";
443
+ MY: "MY";
444
+ MV: "MV";
445
+ ML: "ML";
446
+ MT: "MT";
447
+ MQ: "MQ";
448
+ MR: "MR";
449
+ MU: "MU";
450
+ MX: "MX";
451
+ FM: "FM";
452
+ MD: "MD";
453
+ MC: "MC";
454
+ MN: "MN";
455
+ ME: "ME";
456
+ MS: "MS";
457
+ MA: "MA";
458
+ MZ: "MZ";
459
+ NA: "NA";
460
+ NP: "NP";
461
+ NL: "NL";
462
+ NZ: "NZ";
463
+ NI: "NI";
464
+ NE: "NE";
465
+ NG: "NG";
466
+ NU: "NU";
467
+ NF: "NF";
468
+ KP: "KP";
469
+ NO: "NO";
470
+ OM: "OM";
471
+ PK: "PK";
472
+ PS: "PS";
473
+ PA: "PA";
474
+ PG: "PG";
475
+ PY: "PY";
476
+ PE: "PE";
477
+ PH: "PH";
478
+ PL: "PL";
479
+ PT: "PT";
480
+ PR: "PR";
481
+ QA: "QA";
482
+ CG: "CG";
483
+ RE: "RE";
484
+ RO: "RO";
485
+ RU: "RU";
486
+ RW: "RW";
487
+ BL: "BL";
488
+ KN: "KN";
489
+ LC: "LC";
490
+ MF: "MF";
491
+ VC: "VC";
492
+ WS: "WS";
493
+ SM: "SM";
494
+ SA: "SA";
495
+ SN: "SN";
496
+ RS: "RS";
497
+ SC: "SC";
498
+ SL: "SL";
499
+ SG: "SG";
500
+ SX: "SX";
501
+ SK: "SK";
502
+ SI: "SI";
503
+ SO: "SO";
504
+ ZA: "ZA";
505
+ KR: "KR";
506
+ SS: "SS";
507
+ ES: "ES";
508
+ LK: "LK";
509
+ SD: "SD";
510
+ SR: "SR";
511
+ SJ: "SJ";
512
+ SZ: "SZ";
513
+ SE: "SE";
514
+ CH: "CH";
515
+ TW: "TW";
516
+ TJ: "TJ";
517
+ TZ: "TZ";
518
+ TH: "TH";
519
+ TG: "TG";
520
+ TO: "TO";
521
+ TT: "TT";
522
+ TN: "TN";
523
+ TR: "TR";
524
+ TM: "TM";
525
+ UM: "UM";
526
+ VI: "VI";
527
+ UG: "UG";
528
+ UA: "UA";
529
+ AE: "AE";
530
+ GB: "GB";
531
+ US: "US";
532
+ UZ: "UZ";
533
+ VU: "VU";
534
+ VE: "VE";
535
+ VN: "VN";
536
+ WF: "WF";
537
+ EH: "EH";
538
+ YE: "YE";
539
+ ZM: "ZM";
540
+ ZW: "ZW";
541
+ }>>;
542
+ }, z$1.core.$strip>>;
183
543
  swiftBic: z$1.ZodOptional<z$1.ZodString>;
184
544
  bicCor: z$1.ZodOptional<z$1.ZodString>;
185
545
  currency: z$1.ZodOptional<z$1.ZodEnum<{
@@ -238,7 +598,6 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
238
598
  AVAX: "AVAX";
239
599
  }>>;
240
600
  countryCode: z$1.ZodOptional<z$1.ZodEnum<{
241
- IM: "IM";
242
601
  AF: "AF";
243
602
  AL: "AL";
244
603
  DZ: "DZ";
@@ -327,6 +686,7 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
327
686
  IR: "IR";
328
687
  IQ: "IQ";
329
688
  IE: "IE";
689
+ IM: "IM";
330
690
  IL: "IL";
331
691
  IT: "IT";
332
692
  CI: "CI";
@@ -459,6 +819,85 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
459
819
  interface BankAccountMetadata extends z$1.infer<typeof bankAccountMetadataSchema> {
460
820
  }
461
821
 
822
+ declare const bankAccount: {
823
+ holderName: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"holder_name", [string, ...string[]], number | undefined>>;
824
+ number: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"number", [string, ...string[]], number | undefined>;
825
+ bankCode: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bank_code", ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610")[]], number | undefined>;
826
+ iban: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"iban", [string, ...string[]], number | undefined>;
827
+ address: drizzle_orm.$Type<drizzle_orm_sqlite_core.SQLiteTextJsonBuilderInitial<"address">, StructuredAddress | null>;
828
+ swiftBic: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"swift_bic", [string, ...string[]], number | undefined>;
829
+ bicCor: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bic_cor", [string, ...string[]], number | undefined>;
830
+ currency: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"currency", ["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")[]], number | undefined>>;
831
+ countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"country_code", ["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" | "US" | "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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]], number | undefined>>;
832
+ routingNumber: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"routing_number", [string, ...string[]], number | undefined>;
833
+ sortCode: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"sort_code", [string, ...string[]], number | undefined>;
834
+ clabe: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"clabe", [string, ...string[]], number | undefined>;
835
+ bsb: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bsb", [string, ...string[]], number | undefined>;
836
+ brBankNumber: drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"br_bank_number", [string, ...string[]], number | undefined>;
837
+ };
838
+
839
+ declare const auditFieldKeys: readonly ["createdAt", "createdBy", "updatedAt", "updatedBy", "deletedAt", "deletedBy"];
840
+ type AuditKey = (typeof auditFieldKeys)[number];
841
+ type InsertSchemaOf<TTable extends Table> = ZodObject<{
842
+ [K in keyof Omit<TTable['$inferInsert'], AuditKey | 'id'>]: ZodType<TTable['$inferInsert'][K]>;
843
+ } & {
844
+ id: ZodOptional<ZodType<string>>;
845
+ }>;
846
+ type UpdateSchemaOf<TTable extends Table> = ZodObject<{
847
+ [K in keyof Omit<TTable['$inferInsert'], AuditKey | 'id'>]: ZodOptional<ZodType<TTable['$inferInsert'][K]>>;
848
+ } & {
849
+ id: ZodType<string>;
850
+ }>;
851
+ /**
852
+ * Creates Zod schema for DB insert
853
+ * - `id` optional (auto-generated if not provided)
854
+ * - Audit fields omitted (set by DB)
855
+ */
856
+ declare function createInsertSchema<TTable extends Table>(table: TTable): InsertSchemaOf<TTable>;
857
+ /**
858
+ * Creates Zod schema for DB update
859
+ * - `id` required
860
+ * - All other fields optional
861
+ * - Audit fields omitted
862
+ */
863
+ declare function createUpdateSchema<TTable extends Table>(table: TTable): UpdateSchemaOf<TTable>;
864
+ /**
865
+ * Creates Zod schema for API PATCH (alias for updateSchema)
866
+ */
867
+ declare const createPatchSchema: typeof createUpdateSchema;
868
+
869
+ declare const USER_ROLES: readonly ["OWNER", "ADMIN", "MEMBER"];
870
+ type UserRole = (typeof USER_ROLES)[number];
871
+
872
+ declare const composeWranglerBase: ({ project, name, }: {
873
+ project: string;
874
+ name: string;
875
+ }) => {
876
+ $schema: string;
877
+ name: string;
878
+ main: string;
879
+ compatibility_date: string;
880
+ compatibility_flags: string[];
881
+ observability: {
882
+ enabled: boolean;
883
+ head_sampling_rate: number;
884
+ logs: {
885
+ enabled: boolean;
886
+ invocation_logs: boolean;
887
+ };
888
+ };
889
+ workers_dev: boolean;
890
+ keep_vars: boolean;
891
+ };
892
+
893
+ interface AuditLogPayload<T> {
894
+ action: T;
895
+ actorId: string;
896
+ actorUsername?: string;
897
+ service: string;
898
+ entityId?: string;
899
+ }
900
+
462
901
  declare const workflowInstanceStatusSchema: z$1.ZodObject<{
463
902
  status: z$1.ZodEnum<{
464
903
  unknown: "unknown";
@@ -900,5 +1339,5 @@ interface WithRetryCounterOptions {
900
1339
  type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
901
1340
  declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
902
1341
 
903
- export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, asNonEmpty, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInsertSchema, createInternalError, createPatchSchema, createUpdateSchema, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, resolveColumn, service, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
904
- export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyContextVariables, IdentityContextVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, RequestLog, ResponseLog, UserRole, ValidatedInput, WorkflowInstanceStatus };
1342
+ export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, asNonEmpty, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInsertSchema, createInternalError, createPatchSchema, createUpdateSchema, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
1343
+ export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyContextVariables, IdentityContextVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, RequestLog, ResponseLog, StructuredAddress, UserRole, ValidatedInput, WorkflowInstanceStatus };