@develit-io/backend-sdk 9.11.16 → 10.0.1

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
+ IM: "IM";
42
+ AF: "AF";
43
+ AL: "AL";
44
+ DZ: "DZ";
45
+ AS: "AS";
46
+ AD: "AD";
47
+ AO: "AO";
48
+ AG: "AG";
49
+ AR: "AR";
50
+ AM: "AM";
51
+ AW: "AW";
52
+ AU: "AU";
53
+ AT: "AT";
54
+ AZ: "AZ";
55
+ BS: "BS";
56
+ BH: "BH";
57
+ BD: "BD";
58
+ BB: "BB";
59
+ BY: "BY";
60
+ BE: "BE";
61
+ BZ: "BZ";
62
+ BJ: "BJ";
63
+ BO: "BO";
64
+ BQ: "BQ";
65
+ BA: "BA";
66
+ BW: "BW";
67
+ BR: "BR";
68
+ IO: "IO";
69
+ VG: "VG";
70
+ BG: "BG";
71
+ BF: "BF";
72
+ BI: "BI";
73
+ KH: "KH";
74
+ CM: "CM";
75
+ CA: "CA";
76
+ CV: "CV";
77
+ CF: "CF";
78
+ TD: "TD";
79
+ CL: "CL";
80
+ CN: "CN";
81
+ CO: "CO";
82
+ KM: "KM";
83
+ CK: "CK";
84
+ CR: "CR";
85
+ HR: "HR";
86
+ CW: "CW";
87
+ CY: "CY";
88
+ CZ: "CZ";
89
+ CD: "CD";
90
+ DK: "DK";
91
+ DJ: "DJ";
92
+ DM: "DM";
93
+ DO: "DO";
94
+ TL: "TL";
95
+ EC: "EC";
96
+ EG: "EG";
97
+ SV: "SV";
98
+ GQ: "GQ";
99
+ ER: "ER";
100
+ EE: "EE";
101
+ ET: "ET";
102
+ FO: "FO";
103
+ FJ: "FJ";
104
+ FI: "FI";
105
+ FR: "FR";
106
+ GF: "GF";
107
+ PF: "PF";
108
+ GA: "GA";
109
+ GM: "GM";
110
+ GE: "GE";
111
+ DE: "DE";
112
+ GH: "GH";
113
+ GR: "GR";
114
+ GD: "GD";
115
+ GP: "GP";
116
+ GU: "GU";
117
+ GT: "GT";
118
+ GN: "GN";
119
+ GW: "GW";
120
+ GY: "GY";
121
+ HT: "HT";
122
+ HN: "HN";
123
+ HU: "HU";
124
+ IS: "IS";
125
+ IN: "IN";
126
+ ID: "ID";
127
+ IR: "IR";
128
+ IQ: "IQ";
129
+ IE: "IE";
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
+ IM: "IM";
331
+ AF: "AF";
332
+ AL: "AL";
333
+ DZ: "DZ";
334
+ AS: "AS";
335
+ AD: "AD";
336
+ AO: "AO";
337
+ AG: "AG";
338
+ AR: "AR";
339
+ AM: "AM";
340
+ AW: "AW";
341
+ AU: "AU";
342
+ AT: "AT";
343
+ AZ: "AZ";
344
+ BS: "BS";
345
+ BH: "BH";
346
+ BD: "BD";
347
+ BB: "BB";
348
+ BY: "BY";
349
+ BE: "BE";
350
+ BZ: "BZ";
351
+ BJ: "BJ";
352
+ BO: "BO";
353
+ BQ: "BQ";
354
+ BA: "BA";
355
+ BW: "BW";
356
+ BR: "BR";
357
+ IO: "IO";
358
+ VG: "VG";
359
+ BG: "BG";
360
+ BF: "BF";
361
+ BI: "BI";
362
+ KH: "KH";
363
+ CM: "CM";
364
+ CA: "CA";
365
+ CV: "CV";
366
+ CF: "CF";
367
+ TD: "TD";
368
+ CL: "CL";
369
+ CN: "CN";
370
+ CO: "CO";
371
+ KM: "KM";
372
+ CK: "CK";
373
+ CR: "CR";
374
+ HR: "HR";
375
+ CW: "CW";
376
+ CY: "CY";
377
+ CZ: "CZ";
378
+ CD: "CD";
379
+ DK: "DK";
380
+ DJ: "DJ";
381
+ DM: "DM";
382
+ DO: "DO";
383
+ TL: "TL";
384
+ EC: "EC";
385
+ EG: "EG";
386
+ SV: "SV";
387
+ GQ: "GQ";
388
+ ER: "ER";
389
+ EE: "EE";
390
+ ET: "ET";
391
+ FO: "FO";
392
+ FJ: "FJ";
393
+ FI: "FI";
394
+ FR: "FR";
395
+ GF: "GF";
396
+ PF: "PF";
397
+ GA: "GA";
398
+ GM: "GM";
399
+ GE: "GE";
400
+ DE: "DE";
401
+ GH: "GH";
402
+ GR: "GR";
403
+ GD: "GD";
404
+ GP: "GP";
405
+ GU: "GU";
406
+ GT: "GT";
407
+ GN: "GN";
408
+ GW: "GW";
409
+ GY: "GY";
410
+ HT: "HT";
411
+ HN: "HN";
412
+ HU: "HU";
413
+ IS: "IS";
414
+ IN: "IN";
415
+ ID: "ID";
416
+ IR: "IR";
417
+ IQ: "IQ";
418
+ IE: "IE";
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<{
@@ -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", ["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>>;
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 };