@develit-io/backend-sdk 11.1.0 → 11.2.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 +27 -5
- package/dist/index.d.ts +27 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -38,7 +38,6 @@ declare const structuredAddressSchema: z$1.ZodObject<{
|
|
|
38
38
|
city: z$1.ZodOptional<z$1.ZodString>;
|
|
39
39
|
postalCode: z$1.ZodOptional<z$1.ZodString>;
|
|
40
40
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
41
|
-
IM: "IM";
|
|
42
41
|
AF: "AF";
|
|
43
42
|
AL: "AL";
|
|
44
43
|
DZ: "DZ";
|
|
@@ -127,6 +126,7 @@ declare const structuredAddressSchema: z$1.ZodObject<{
|
|
|
127
126
|
IR: "IR";
|
|
128
127
|
IQ: "IQ";
|
|
129
128
|
IE: "IE";
|
|
129
|
+
IM: "IM";
|
|
130
130
|
IL: "IL";
|
|
131
131
|
IT: "IT";
|
|
132
132
|
CI: "CI";
|
|
@@ -327,7 +327,6 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
327
327
|
city: z$1.ZodOptional<z$1.ZodString>;
|
|
328
328
|
postalCode: z$1.ZodOptional<z$1.ZodString>;
|
|
329
329
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
330
|
-
IM: "IM";
|
|
331
330
|
AF: "AF";
|
|
332
331
|
AL: "AL";
|
|
333
332
|
DZ: "DZ";
|
|
@@ -416,6 +415,7 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
416
415
|
IR: "IR";
|
|
417
416
|
IQ: "IQ";
|
|
418
417
|
IE: "IE";
|
|
418
|
+
IM: "IM";
|
|
419
419
|
IL: "IL";
|
|
420
420
|
IT: "IT";
|
|
421
421
|
CI: "CI";
|
|
@@ -598,7 +598,6 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
598
598
|
AVAX: "AVAX";
|
|
599
599
|
}>>;
|
|
600
600
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
601
|
-
IM: "IM";
|
|
602
601
|
AF: "AF";
|
|
603
602
|
AL: "AL";
|
|
604
603
|
DZ: "DZ";
|
|
@@ -687,6 +686,7 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
687
686
|
IR: "IR";
|
|
688
687
|
IQ: "IQ";
|
|
689
688
|
IE: "IE";
|
|
689
|
+
IM: "IM";
|
|
690
690
|
IL: "IL";
|
|
691
691
|
IT: "IT";
|
|
692
692
|
CI: "CI";
|
|
@@ -828,7 +828,7 @@ declare const bankAccount: {
|
|
|
828
828
|
swiftBic: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
829
829
|
bicCor: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
830
830
|
currency: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["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")[]]>>;
|
|
831
|
-
countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["
|
|
831
|
+
countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["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")[]]>>;
|
|
832
832
|
routingNumber: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
833
833
|
sortCode: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
834
834
|
clabe: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
@@ -1223,6 +1223,28 @@ type OptionalToNull<T> = {
|
|
|
1223
1223
|
declare function optionalToNull<T extends object>(obj: T): OptionalToNull<T>;
|
|
1224
1224
|
|
|
1225
1225
|
declare const calculateExponentialBackoff: (attempts: number, baseDelaySeconds: number) => number;
|
|
1226
|
+
/**
|
|
1227
|
+
* Splits messages into chunks that fit Cloudflare Queue sendBatch limits
|
|
1228
|
+
* (100 messages OR 256 KB total per batch). Oversized single messages are
|
|
1229
|
+
* emitted alone — Cloudflare will reject them, but the helper does not loop.
|
|
1230
|
+
*/
|
|
1231
|
+
declare function chunkQueueMessages<T>(messages: T[]): Generator<T[]>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Sends a single message via `queue.send()` or a batch via `queue.sendBatch()`.
|
|
1234
|
+
* Batches are automatically chunked to respect Cloudflare Queue limits.
|
|
1235
|
+
*/
|
|
1236
|
+
declare function pushToQueue<T>(queue: Queue, message: T | T[]): Promise<void>;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Deep-clones an object and replaces values of sensitive keys with '[REDACTED]'.
|
|
1240
|
+
* Key matching is case-insensitive and ignores underscores/hyphens,
|
|
1241
|
+
* so `password`, `Password`, `access_token`, `accessToken`, `ACCESS_TOKEN` are all matched.
|
|
1242
|
+
*
|
|
1243
|
+
* @param value - The value to redact
|
|
1244
|
+
* @param sensitiveKeys - Additional keys to redact (merged with defaults)
|
|
1245
|
+
* @returns A deep copy with sensitive values replaced
|
|
1246
|
+
*/
|
|
1247
|
+
declare function redact<T>(value: T, sensitiveKeys?: string[]): T;
|
|
1226
1248
|
|
|
1227
1249
|
declare const RPCResponse: {
|
|
1228
1250
|
/**
|
|
@@ -1311,5 +1333,5 @@ interface WithRetryCounterOptions {
|
|
|
1311
1333
|
type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
|
|
1312
1334
|
declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
|
|
1313
1335
|
|
|
1314
|
-
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, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
|
|
1336
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, asNonEmpty, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, chunkQueueMessages, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInsertSchema, createInternalError, createPatchSchema, createUpdateSchema, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, pushToQueue, redact, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
|
|
1315
1337
|
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyContextVariables, IdentityContextVariables, InternalError, InternalErrorResponseStatus, Project, RequestLog, ResponseLog, StructuredAddress, UserRole, ValidatedInput, WorkflowInstanceStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ declare const structuredAddressSchema: z$1.ZodObject<{
|
|
|
38
38
|
city: z$1.ZodOptional<z$1.ZodString>;
|
|
39
39
|
postalCode: z$1.ZodOptional<z$1.ZodString>;
|
|
40
40
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
41
|
-
IM: "IM";
|
|
42
41
|
AF: "AF";
|
|
43
42
|
AL: "AL";
|
|
44
43
|
DZ: "DZ";
|
|
@@ -127,6 +126,7 @@ declare const structuredAddressSchema: z$1.ZodObject<{
|
|
|
127
126
|
IR: "IR";
|
|
128
127
|
IQ: "IQ";
|
|
129
128
|
IE: "IE";
|
|
129
|
+
IM: "IM";
|
|
130
130
|
IL: "IL";
|
|
131
131
|
IT: "IT";
|
|
132
132
|
CI: "CI";
|
|
@@ -327,7 +327,6 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
327
327
|
city: z$1.ZodOptional<z$1.ZodString>;
|
|
328
328
|
postalCode: z$1.ZodOptional<z$1.ZodString>;
|
|
329
329
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
330
|
-
IM: "IM";
|
|
331
330
|
AF: "AF";
|
|
332
331
|
AL: "AL";
|
|
333
332
|
DZ: "DZ";
|
|
@@ -416,6 +415,7 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
416
415
|
IR: "IR";
|
|
417
416
|
IQ: "IQ";
|
|
418
417
|
IE: "IE";
|
|
418
|
+
IM: "IM";
|
|
419
419
|
IL: "IL";
|
|
420
420
|
IT: "IT";
|
|
421
421
|
CI: "CI";
|
|
@@ -598,7 +598,6 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
598
598
|
AVAX: "AVAX";
|
|
599
599
|
}>>;
|
|
600
600
|
countryCode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
601
|
-
IM: "IM";
|
|
602
601
|
AF: "AF";
|
|
603
602
|
AL: "AL";
|
|
604
603
|
DZ: "DZ";
|
|
@@ -687,6 +686,7 @@ declare const bankAccountMetadataSchema: z$1.ZodObject<{
|
|
|
687
686
|
IR: "IR";
|
|
688
687
|
IQ: "IQ";
|
|
689
688
|
IE: "IE";
|
|
689
|
+
IM: "IM";
|
|
690
690
|
IL: "IL";
|
|
691
691
|
IT: "IT";
|
|
692
692
|
CI: "CI";
|
|
@@ -828,7 +828,7 @@ declare const bankAccount: {
|
|
|
828
828
|
swiftBic: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
829
829
|
bicCor: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
830
830
|
currency: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["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")[]]>>;
|
|
831
|
-
countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["
|
|
831
|
+
countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilder<["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")[]]>>;
|
|
832
832
|
routingNumber: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
833
833
|
sortCode: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
834
834
|
clabe: drizzle_orm_sqlite_core.SQLiteTextBuilder<[string, ...string[]]>;
|
|
@@ -1223,6 +1223,28 @@ type OptionalToNull<T> = {
|
|
|
1223
1223
|
declare function optionalToNull<T extends object>(obj: T): OptionalToNull<T>;
|
|
1224
1224
|
|
|
1225
1225
|
declare const calculateExponentialBackoff: (attempts: number, baseDelaySeconds: number) => number;
|
|
1226
|
+
/**
|
|
1227
|
+
* Splits messages into chunks that fit Cloudflare Queue sendBatch limits
|
|
1228
|
+
* (100 messages OR 256 KB total per batch). Oversized single messages are
|
|
1229
|
+
* emitted alone — Cloudflare will reject them, but the helper does not loop.
|
|
1230
|
+
*/
|
|
1231
|
+
declare function chunkQueueMessages<T>(messages: T[]): Generator<T[]>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Sends a single message via `queue.send()` or a batch via `queue.sendBatch()`.
|
|
1234
|
+
* Batches are automatically chunked to respect Cloudflare Queue limits.
|
|
1235
|
+
*/
|
|
1236
|
+
declare function pushToQueue<T>(queue: Queue, message: T | T[]): Promise<void>;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Deep-clones an object and replaces values of sensitive keys with '[REDACTED]'.
|
|
1240
|
+
* Key matching is case-insensitive and ignores underscores/hyphens,
|
|
1241
|
+
* so `password`, `Password`, `access_token`, `accessToken`, `ACCESS_TOKEN` are all matched.
|
|
1242
|
+
*
|
|
1243
|
+
* @param value - The value to redact
|
|
1244
|
+
* @param sensitiveKeys - Additional keys to redact (merged with defaults)
|
|
1245
|
+
* @returns A deep copy with sensitive values replaced
|
|
1246
|
+
*/
|
|
1247
|
+
declare function redact<T>(value: T, sensitiveKeys?: string[]): T;
|
|
1226
1248
|
|
|
1227
1249
|
declare const RPCResponse: {
|
|
1228
1250
|
/**
|
|
@@ -1311,5 +1333,5 @@ interface WithRetryCounterOptions {
|
|
|
1311
1333
|
type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
|
|
1312
1334
|
declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
|
|
1313
1335
|
|
|
1314
|
-
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, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
|
|
1336
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, asNonEmpty, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, chunkQueueMessages, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInsertSchema, createInternalError, createPatchSchema, createUpdateSchema, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, pushToQueue, redact, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, uuidv4, uuidv5, workflowInstanceStatusSchema };
|
|
1315
1337
|
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyContextVariables, IdentityContextVariables, InternalError, InternalErrorResponseStatus, Project, RequestLog, ResponseLog, StructuredAddress, UserRole, ValidatedInput, WorkflowInstanceStatus };
|
package/dist/index.mjs
CHANGED
|
@@ -919,4 +919,4 @@ function develitWorker(Worker) {
|
|
|
919
919
|
return DevelitWorker;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
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, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, workflowInstanceStatusSchema };
|
|
922
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, asNonEmpty, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, chunkQueueMessages, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInsertSchema, createInternalError, createPatchSchema, createUpdateSchema, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getDrizzleD1Config, getLocalD1DatabaseIdFromWrangler, getSecret, handleAction, ibanSchema, isInternalError, nullToOptional, optionalToNull, paginationQuerySchema, paginationSchema, pushToQueue, redact, resolveColumn, service, structuredAddressSchema, useFetch, useResult, useResultSync, workflowInstanceStatusSchema };
|