@digilogiclabs/platform-core 1.27.1 → 1.28.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
@@ -15,8 +15,8 @@ import { A as AuthUser, a as AuthSession, b as AuthError, c as AuthResult } from
15
15
  export { q as AuthConfig, d as AuthErrorCode, u as AuthErrorMessages, o as AuthEventType, p as AuthStateChangeCallback, r as AuthStorage, D as DeleteAccountOptions, E as EnrollMfaOptions, l as EnrollMfaResult, I as IAuth, w as MemoryAuth, k as MfaChallenge, j as MfaFactor, M as MfaFactorType, f as OAuthOptions, O as OAuthProvider, g as OAuthResult, R as ResetPasswordOptions, S as SignInWithEmailOptions, i as SignInWithMagicLinkOptions, h as SignInWithPhoneOptions, e as SignUpWithEmailOptions, x as SupabaseAuth, y as SupabaseAuthConfig, z as Unsubscribe, U as UpdatePasswordOptions, n as UpdateUserOptions, m as VerifyMfaOptions, V as VerifyPhoneOtpOptions, s as createAuthError, v as generateSecureToken, t as isAuthError } from './index-cN9dgBsn.mjs';
16
16
  import { I as IAIUsage, A as AIUsageConfig, U as UsageRecord, a as UsageQuery, b as UsageQueryResult, Q as Quota, c as QuotaType, d as UsageCategory, e as QuotaStatus, B as Budget, f as BudgetStatus, g as UsageInterval, h as UsageSummary, i as UsageTrend, C as CostBreakdown, j as UsageInvoice, k as AlertType, l as UsageAlert } from './agents-C7FPA8y9.mjs';
17
17
  export { G as AgentBudget, q as AgentCumulativeUsage, s as AgentIterationCallback, r as AgentIterationEvent, u as AgentLoopOptions, v as AgentLoopResult, t as AgentStopReason, o as AgentTool, p as AgentToolResult, y as AgentTracer, x as AgentTracerOptions, F as AgentUsageRecordParams, H as AgentUsageTracker, E as AgentUsageTrackerOptions, D as DEFAULT_AGENT_LOOP_OPTIONS, M as MemoryAIUsage, O as OllamaAdapter, n as OllamaAdapterConfig, T as ToolExecutor, K as TracedAIOptions, m as UsageInvoiceItem, z as createAgentTracer, J as createAgentUsageTracker, L as createTracedAI, w as runAgentLoop } from './agents-C7FPA8y9.mjs';
18
- import { aS as IBeta, aT as BetaConfig, aU as BetaSettings, aV as UpdateBetaSettingsOptions, aW as CreateBetaCodesOptions, aX as BetaInviteCode, aY as ListBetaCodesOptions, aZ as BetaValidationResult, a_ as BetaConsumeResult, a$ as BetaTester, b0 as BetaStats, b1 as BetaCodeUsageReport } from './env-Cgwf8ZG2.mjs';
19
- export { al as AllowlistConfig, A as ApiError, d as ApiErrorCode, f as ApiErrorCodeType, h as ApiPaginatedResponse, Q as ApiSecurityConfig, V as ApiSecurityContext, g as ApiSuccessResponse, aD as AuditRequest, H as AuthCookiesConfig, N as AuthMethod, aL as BetaClientConfig, b6 as BetaCodeStatus, C as CommonApiErrors, ar as CommonRateLimits, ac as DateRangeInput, a6 as DateRangeSchema, ag as DeploymentStage, aa as EmailInput, $ as EmailSchema, E as EnvValidationConfig, p as EnvValidationResult, ai as FlagDefinition, aj as FlagDefinitions, ah as FlagValue, r as KEYCLOAK_DEFAULT_ROLES, F as KeycloakCallbacksConfig, K as KeycloakConfig, G as KeycloakJwtFields, q as KeycloakTokenSet, ae as LoginInput, a8 as LoginSchema, b2 as MemoryBeta, ay as OpsAuditActor, aA as OpsAuditEvent, aC as OpsAuditLoggerOptions, aB as OpsAuditRecord, az as OpsAuditResource, b7 as PG_ERROR_MAP, ab as PaginationInput, a5 as PaginationSchema, a0 as PasswordSchema, a3 as PersonNameSchema, a2 as PhoneSchema, aq as RateLimitCheckResult, b as RateLimitOptions, P as RateLimitPreset, a as RateLimitRule, R as RateLimitStore, J as RedirectCallbackConfig, ak as ResolvedFlags, O as RouteAuditConfig, ad as SearchQueryInput, a7 as SearchQuerySchema, U as SecuritySession, af as SignupInput, a9 as SignupSchema, a1 as SlugSchema, aF as StandardAuditActionType, aE as StandardAuditActions, S as StandardRateLimitPresets, T as TokenRefreshResult, _ as WrapperPresets, ao as buildAllowlist, I as buildAuthCookies, Z as buildErrorBody, M as buildKeycloakCallbacks, e as buildPagination, Y as buildRateLimitHeaders, aw as buildRateLimitResponseHeaders, L as buildRedirectCallback, y as buildTokenRefreshParams, n as checkEnvVars, at as checkRateLimit, c as classifyError, aR as clearStoredBetaCode, aJ as createAuditActor, aK as createAuditLogger, aM as createBetaClient, an as createFeatureFlags, as as createMemoryRateLimitStore, a4 as createSafeTextSchema, am as detectStage, aG as extractAuditIp, aI as extractAuditRequestId, aH as extractAuditUserAgent, X as extractClientIp, aN as fetchBetaSettings, b3 as generateBetaCode, b5 as generateBetaId, l as getBoolEnv, B as getEndSessionEndpoint, o as getEnvSummary, m as getIntEnv, k as getOptionalEnv, au as getRateLimitStatus, j as getRequiredEnv, aQ as getStoredBetaCode, z as getTokenEndpoint, w as hasAllRoles, u as hasAnyRole, t as hasRole, ap as isAllowlisted, i as isApiError, x as isTokenExpired, b4 as normalizeBetaCode, s as parseKeycloakRoles, D as refreshKeycloakToken, av as resetRateLimitForKey, ax as resolveIdentifier, W as resolveRateLimitIdentifier, aP as storeBetaCode, aO as validateBetaCode, v as validateEnvVars } from './env-Cgwf8ZG2.mjs';
18
+ import { aS as IBeta, aT as BetaConfig, aU as BetaSettings, aV as UpdateBetaSettingsOptions, aW as CreateBetaCodesOptions, aX as BetaInviteCode, aY as ListBetaCodesOptions, aZ as BetaValidationResult, a_ as BetaConsumeResult, a$ as BetaTester, b0 as BetaStats, b1 as BetaCodeUsageReport } from './env-CHg-CUuD.mjs';
19
+ export { al as AllowlistConfig, A as ApiError, d as ApiErrorCode, f as ApiErrorCodeType, h as ApiPaginatedResponse, Q as ApiSecurityConfig, V as ApiSecurityContext, g as ApiSuccessResponse, aD as AuditRequest, H as AuthCookiesConfig, N as AuthMethod, aL as BetaClientConfig, b6 as BetaCodeStatus, C as CommonApiErrors, ar as CommonRateLimits, ac as DateRangeInput, a6 as DateRangeSchema, ag as DeploymentStage, aa as EmailInput, $ as EmailSchema, E as EnvValidationConfig, p as EnvValidationResult, ai as FlagDefinition, aj as FlagDefinitions, ah as FlagValue, r as KEYCLOAK_DEFAULT_ROLES, F as KeycloakCallbacksConfig, K as KeycloakConfig, G as KeycloakJwtFields, q as KeycloakTokenSet, ae as LoginInput, a8 as LoginSchema, b2 as MemoryBeta, ay as OpsAuditActor, aA as OpsAuditEvent, aC as OpsAuditLoggerOptions, aB as OpsAuditRecord, az as OpsAuditResource, b7 as PG_ERROR_MAP, ab as PaginationInput, a5 as PaginationSchema, a0 as PasswordSchema, a3 as PersonNameSchema, a2 as PhoneSchema, aq as RateLimitCheckResult, b as RateLimitOptions, P as RateLimitPreset, a as RateLimitRule, R as RateLimitStore, J as RedirectCallbackConfig, ak as ResolvedFlags, O as RouteAuditConfig, ad as SearchQueryInput, a7 as SearchQuerySchema, U as SecuritySession, af as SignupInput, a9 as SignupSchema, a1 as SlugSchema, aF as StandardAuditActionType, aE as StandardAuditActions, S as StandardRateLimitPresets, T as TokenRefreshResult, _ as WrapperPresets, ao as buildAllowlist, I as buildAuthCookies, Z as buildErrorBody, M as buildKeycloakCallbacks, e as buildPagination, Y as buildRateLimitHeaders, aw as buildRateLimitResponseHeaders, L as buildRedirectCallback, y as buildTokenRefreshParams, n as checkEnvVars, at as checkRateLimit, c as classifyError, aR as clearStoredBetaCode, aJ as createAuditActor, aK as createAuditLogger, aM as createBetaClient, an as createFeatureFlags, as as createMemoryRateLimitStore, a4 as createSafeTextSchema, am as detectStage, aG as extractAuditIp, aI as extractAuditRequestId, aH as extractAuditUserAgent, X as extractClientIp, aN as fetchBetaSettings, b3 as generateBetaCode, b5 as generateBetaId, l as getBoolEnv, B as getEndSessionEndpoint, o as getEnvSummary, m as getIntEnv, k as getOptionalEnv, au as getRateLimitStatus, j as getRequiredEnv, aQ as getStoredBetaCode, z as getTokenEndpoint, w as hasAllRoles, u as hasAnyRole, t as hasRole, ap as isAllowlisted, i as isApiError, x as isTokenExpired, b4 as normalizeBetaCode, s as parseKeycloakRoles, D as refreshKeycloakToken, av as resetRateLimitForKey, ax as resolveIdentifier, W as resolveRateLimitIdentifier, aP as storeBetaCode, aO as validateBetaCode, v as validateEnvVars } from './env-CHg-CUuD.mjs';
20
20
  export { i as CircuitBreaker, C as CircuitBreakerOptions, k as CircuitBreakerRegistry, h as CircuitBreakerStats, g as CircuitOpenError, e as CircuitState, f as DEFAULT_CIRCUIT_BREAKER_OPTIONS, D as DEFAULT_RETRY_OPTIONS, d as RetryConfigs, R as RetryOptions, c as RetryPredicates, a as RetryResult, j as createCircuitBreaker, r as retryable, w as withRetry, b as withRetryResult } from './circuit-breaker-CsQivd57.mjs';
21
21
  export { H as HTML_TAG_PATTERN, k as URL_DOMAIN_PATTERN, U as URL_PROTOCOL_PATTERN, c as constantTimeEqual, b as containsHtml, a as containsUrls, i as defangUrl, e as escapeHtml, h as getCorrelationId, g as sanitizeApiError, j as sanitizeForEmail, s as stripHtml, d as stripNullBytes, f as stripNullBytesDeep } from './security-DMUNYqQI.mjs';
22
22
  export { NextHeaderEntry, SecurityHeaderPresets, SecurityHeadersConfig, generateSecurityHeaders } from './security-headers.mjs';
@@ -7715,6 +7715,189 @@ declare class MemoryCompliance implements ICompliance {
7715
7715
  }>;
7716
7716
  }
7717
7717
 
7718
+ /**
7719
+ * Credit Ledger Interface
7720
+ *
7721
+ * Prepaid usage credits for metered features (AI calls, paid third-party
7722
+ * APIs). A user buys credits once; each use reserves an upper bound before
7723
+ * the paid call and settles the actual cost after it. One card charge then
7724
+ * covers many small uses, so per-use processor fees never apply.
7725
+ *
7726
+ * Guarantees every adapter must keep:
7727
+ * - Balances never go negative, under any concurrency.
7728
+ * - Every write carries an idempotency key. Replaying a key returns the
7729
+ * original result, so retried webhooks or requests cannot double-grant or
7730
+ * double-charge. Reusing a key for a different request is an error.
7731
+ * - Credits are whole numbers. The app chooses what one credit is worth.
7732
+ * - Entries are append-only; the balance is derived state.
7733
+ *
7734
+ * @example
7735
+ * ```typescript
7736
+ * const ledger = new MemoryCreditLedger();
7737
+ * await ledger.grant({ accountId: 'u1', credits: 5000, kind: 'purchase',
7738
+ * idempotencyKey: 'checkout:cs_123', reference: 'cs_123' });
7739
+ *
7740
+ * const hold = await ledger.reserve({ accountId: 'u1', credits: 40,
7741
+ * idempotencyKey: 'ask:req_9' });
7742
+ * try {
7743
+ * const result = await callProvider();
7744
+ * await ledger.settle(hold.id, costInCredits(result.usage));
7745
+ * } catch (error) {
7746
+ * await ledger.release(hold.id);
7747
+ * throw error;
7748
+ * }
7749
+ * ```
7750
+ */
7751
+ /** What moved credits. `grant` covers free allowances and comps. */
7752
+ type CreditEntryKind = "purchase" | "grant" | "reserve" | "settle" | "release" | "clawback";
7753
+ type CreditReservationStatus = "held" | "settled" | "released";
7754
+ interface CreditBalanceSnapshot {
7755
+ accountId: string;
7756
+ /** Credits that can be reserved now. */
7757
+ available: number;
7758
+ /** Credits held by open reservations. */
7759
+ reserved: number;
7760
+ }
7761
+ interface CreditEntry {
7762
+ id: string;
7763
+ accountId: string;
7764
+ kind: CreditEntryKind;
7765
+ /** Change to `available` made by this entry. */
7766
+ delta: number;
7767
+ /** Credits actually spent (settle only; 0 otherwise). */
7768
+ consumed: number;
7769
+ /** `available` immediately after this entry. */
7770
+ availableAfter: number;
7771
+ reservationId: string | null;
7772
+ /** Free-form pointer to the cause: a checkout session, a request ID. */
7773
+ reference: string | null;
7774
+ idempotencyKey: string;
7775
+ createdAt: Date;
7776
+ }
7777
+ interface CreditReservation {
7778
+ id: string;
7779
+ accountId: string;
7780
+ credits: number;
7781
+ status: CreditReservationStatus;
7782
+ /** Set once settled. */
7783
+ consumed: number | null;
7784
+ reference: string | null;
7785
+ idempotencyKey: string;
7786
+ expiresAt: Date;
7787
+ createdAt: Date;
7788
+ }
7789
+ interface GrantCreditsInput {
7790
+ accountId: string;
7791
+ credits: number;
7792
+ kind: "purchase" | "grant";
7793
+ idempotencyKey: string;
7794
+ reference?: string;
7795
+ }
7796
+ interface ReserveCreditsInput {
7797
+ accountId: string;
7798
+ credits: number;
7799
+ idempotencyKey: string;
7800
+ reference?: string;
7801
+ /** Hold lifetime before expireReservations() releases it. Default 600. */
7802
+ expiresInSeconds?: number;
7803
+ }
7804
+ interface ClawbackCreditsInput {
7805
+ accountId: string;
7806
+ /** Upper bound. Only what is still available is taken back. */
7807
+ credits: number;
7808
+ idempotencyKey: string;
7809
+ reference?: string;
7810
+ }
7811
+ interface ClawbackResult {
7812
+ entry: CreditEntry;
7813
+ /** Credits actually removed: min(requested, available). */
7814
+ clawedBack: number;
7815
+ }
7816
+ interface ListCreditEntriesOptions {
7817
+ limit?: number;
7818
+ }
7819
+ declare class InsufficientCreditsError extends Error {
7820
+ readonly accountId: string;
7821
+ readonly requested: number;
7822
+ readonly available: number;
7823
+ readonly code = "INSUFFICIENT_CREDITS";
7824
+ constructor(accountId: string, requested: number, available: number);
7825
+ }
7826
+ /** The idempotency key was already used for a different request. */
7827
+ declare class CreditIdempotencyConflictError extends Error {
7828
+ readonly idempotencyKey: string;
7829
+ readonly code = "IDEMPOTENCY_CONFLICT";
7830
+ constructor(idempotencyKey: string);
7831
+ }
7832
+ declare class CreditReservationStateError extends Error {
7833
+ readonly code = "RESERVATION_STATE";
7834
+ constructor(message: string);
7835
+ }
7836
+ interface ICreditLedger {
7837
+ getBalance(accountId: string): Promise<CreditBalanceSnapshot>;
7838
+ /** Add credits. Creates the account on first use. */
7839
+ grant(input: GrantCreditsInput): Promise<CreditEntry>;
7840
+ /**
7841
+ * Hold credits ahead of a paid call.
7842
+ * @throws InsufficientCreditsError when available < credits
7843
+ */
7844
+ reserve(input: ReserveCreditsInput): Promise<CreditReservation>;
7845
+ /**
7846
+ * Spend `consumed` of a held reservation and return the rest. Settling an
7847
+ * already-settled reservation with the same amount returns its entry.
7848
+ * @throws CreditReservationStateError if released, or consumed > held
7849
+ */
7850
+ settle(reservationId: string, consumed: number): Promise<CreditEntry>;
7851
+ /** Return all held credits (the paid call failed). Idempotent. */
7852
+ release(reservationId: string): Promise<void>;
7853
+ /**
7854
+ * Remove up to `credits` of unspent balance, e.g. after a refund. Only
7855
+ * `available` is taken; credits held at that moment return to available
7856
+ * when their hold closes and are not clawed back.
7857
+ */
7858
+ clawback(input: ClawbackCreditsInput): Promise<ClawbackResult>;
7859
+ /**
7860
+ * Release holds whose expiry has passed. Returns how many this call
7861
+ * closed. Without `now`, the adapter's own clock decides (the database
7862
+ * clock for Postgres, which also stamps expires_at).
7863
+ */
7864
+ expireReservations(now?: Date): Promise<number>;
7865
+ getReservation(reservationId: string): Promise<CreditReservation | null>;
7866
+ /** Newest first. */
7867
+ listEntries(accountId: string, options?: ListCreditEntriesOptions): Promise<CreditEntry[]>;
7868
+ }
7869
+ declare const DEFAULT_RESERVATION_SECONDS = 600;
7870
+ declare function assertWholeCredits(value: number, field: string): void;
7871
+ declare function assertIdempotencyKey(key: string): void;
7872
+ declare function reservationSeconds(value: number | undefined): number;
7873
+ declare const MAX_LIST_ENTRIES = 500;
7874
+ declare function clampEntryLimit(limit: number | undefined): number;
7875
+ declare function generateCreditId(prefix: "ce" | "cr"): string;
7876
+ /**
7877
+ * In-process reference implementation. Single-threaded JS makes each method
7878
+ * atomic, which is the behavior the Postgres adapter reproduces with
7879
+ * conditional updates and row locks.
7880
+ */
7881
+ declare class MemoryCreditLedger implements ICreditLedger {
7882
+ private accounts;
7883
+ private entries;
7884
+ private entriesByKey;
7885
+ private reservations;
7886
+ private reservationsByKey;
7887
+ getBalance(accountId: string): Promise<CreditBalanceSnapshot>;
7888
+ grant(input: GrantCreditsInput): Promise<CreditEntry>;
7889
+ reserve(input: ReserveCreditsInput): Promise<CreditReservation>;
7890
+ settle(reservationId: string, consumed: number): Promise<CreditEntry>;
7891
+ release(reservationId: string): Promise<void>;
7892
+ clawback(input: ClawbackCreditsInput): Promise<ClawbackResult>;
7893
+ expireReservations(now?: Date): Promise<number>;
7894
+ getReservation(reservationId: string): Promise<CreditReservation | null>;
7895
+ listEntries(accountId: string, options?: ListCreditEntriesOptions): Promise<CreditEntry[]>;
7896
+ private account;
7897
+ private close;
7898
+ private record;
7899
+ }
7900
+
7718
7901
  /**
7719
7902
  * Middleware System for Platform Core
7720
7903
  *
@@ -11533,6 +11716,73 @@ declare class PostgresBeta implements IBeta {
11533
11716
  healthCheck(): Promise<boolean>;
11534
11717
  }
11535
11718
 
11719
+ /**
11720
+ * PostgreSQL Credit Ledger Adapter
11721
+ *
11722
+ * Production ICreditLedger. Correctness comes from the database, not from
11723
+ * the application process, so it holds across any number of app instances:
11724
+ *
11725
+ * - Spending is one conditional UPDATE (`... WHERE available >= $n`). Two
11726
+ * concurrent reservations cannot both spend the same balance, and CHECK
11727
+ * constraints reject a negative balance even if a query is wrong.
11728
+ * - Settle/release lock the reservation row (`FOR UPDATE`), so a hold closes
11729
+ * exactly once.
11730
+ * - Every entry has a UNIQUE idempotency key. A concurrent duplicate loses
11731
+ * the insert, rolls back its balance change, and returns the winner.
11732
+ *
11733
+ * @example
11734
+ * ```typescript
11735
+ * import { Pool } from 'pg';
11736
+ * import { PostgresCreditLedger } from '@digilogiclabs/platform-core';
11737
+ *
11738
+ * const ledger = new PostgresCreditLedger({ pool: new Pool({ connectionString }), schema: 'oss' });
11739
+ * await ledger.initialize(); // or apply ledger.schemaSql() as a reviewed migration
11740
+ * ```
11741
+ */
11742
+
11743
+ interface PostgresCreditLedgerConfig {
11744
+ /** PostgreSQL connection pool (pg.Pool) */
11745
+ pool: unknown;
11746
+ /** Schema for ledger tables (default: 'public') */
11747
+ schema?: string;
11748
+ /** Table name prefix (default: 'credit_') */
11749
+ tablePrefix?: string;
11750
+ }
11751
+ declare class PostgresCreditLedger implements ICreditLedger {
11752
+ private pool;
11753
+ private prefix;
11754
+ private accounts;
11755
+ private entries;
11756
+ private reservations;
11757
+ constructor(config: PostgresCreditLedgerConfig);
11758
+ /**
11759
+ * DDL for the ledger. Exposed so apps that hand-apply migrations can ship
11760
+ * it as a reviewed file instead of calling initialize() at runtime.
11761
+ */
11762
+ schemaSql(): string;
11763
+ initialize(): Promise<void>;
11764
+ getBalance(accountId: string): Promise<CreditBalanceSnapshot>;
11765
+ grant(input: GrantCreditsInput): Promise<CreditEntry>;
11766
+ reserve(input: ReserveCreditsInput): Promise<CreditReservation>;
11767
+ settle(reservationId: string, consumed: number): Promise<CreditEntry>;
11768
+ release(reservationId: string): Promise<void>;
11769
+ clawback(input: ClawbackCreditsInput): Promise<ClawbackResult>;
11770
+ expireReservations(now?: Date): Promise<number>;
11771
+ getReservation(reservationId: string): Promise<CreditReservation | null>;
11772
+ listEntries(accountId: string, options?: ListCreditEntriesOptions): Promise<CreditEntry[]>;
11773
+ /**
11774
+ * Runs `write` in a transaction keyed by `idempotencyKey`. An existing
11775
+ * entry with that key is replayed instead; a concurrent duplicate that
11776
+ * loses the unique insert rolls back and replays the winner.
11777
+ */
11778
+ private idempotent;
11779
+ private closeReservation;
11780
+ private insertEntry;
11781
+ private entryByKey;
11782
+ private reservationByKey;
11783
+ private replayReservation;
11784
+ }
11785
+
11536
11786
  /**
11537
11787
  * Application Logger
11538
11788
  *
@@ -11668,4 +11918,4 @@ declare function getSharedRedis(): Redis$2 | null;
11668
11918
  */
11669
11919
  declare function closeSharedRedis(): Promise<void>;
11670
11920
 
11671
- export { AIChatRequest, AIChatResponse, AICompletionRequest, AICompletionResponse, AIConfig, AIEmbeddingRequest, AIEmbeddingResponse, AIModelConfig, AIModelType, AIProvider, AIStreamCallback, AIStreamChunk, AIUsageConfig, type AccountCapabilities, type AccountLink, type AccountType, type Address, AlertType, AnthropicAdapter, type AnthropicAdapterConfig, type ApiAuthentication, type ApiChangelog, type ApiDocumentation, type ApiEndpoint, type ApiExample, type ApiKey, type ApiKeyStatus, type ApiKeyType, type ApiKeyValidationResult, type ApiParameter, type ApiResponse, type ApiSchema, type ApiSchemaProperty, type ApiUsageStats, type ApiUsageTimeSeries, type AppLogContext, type AppLogger, type AppLoggerOptions, AssembledContext, type AuditActor, type AuditCategory, type AuditEvent, AuditEvents, type AuditEvidence, type AuditLogConfig, type AuditOutcome, type AuditQuery, type AuditQueryResult, type AuditRetentionPolicy, type AuditStats, type AuditTarget, AuthError, AuthResult, AuthSession, AuthUser, type Balance, type BalanceAmount, type BankAccountDetails, type BatchNotificationOptions, BetaCodeUsageReport, BetaConfig, BetaConsumeResult, BetaInviteCode, BetaSettings, BetaStats, BetaTester, BetaValidationResult, type BillingConfig, type BillingDetails, type BillingPeriod, type Breadcrumb, Budget, BudgetStatus, BulkIngestionResult, Bulkhead, type BulkheadOptions, BulkheadRegistry, BulkheadRejectedError, type BulkheadStats, type BullMQConfig, BullMQQueue, type BusinessProfile, type CancelationReason, type CaptureOptions, type CapturePaymentIntentOptions, type CardBrand, type CardDetails, type ChainExecutionResult, type CommandStatus, type ComplianceConfig, type ComplianceReport, type ConfirmPaymentIntentOptions, type ConnectedAccount, type ConnectedAccountStatus, type ConsentPreferences, type ConsentPurpose, type ConsentRecord, type ConsentStatus, ContextAssemblyConfig, type ControlFramework, type ControlStatus, type CorrelationData, CostBreakdown, type Coupon, type CreateAccountLinkOptions, type CreateApiKeyOptions, CreateBetaCodesOptions, CreateCollectionOptions, type CreateConnectedAccountOptions, type CreateCustomerOptions, type CreateDsarOptions, type CreatePaymentIntentOptions, type CreatePayoutOptions, type CreateRefundOptions, type CreateSandboxOptions, type CreateScheduleOptions, type CreateTenantOptions, type CreateTransferOptions, type CreateWebhookOptions, type CreditBalance, type CreditTransaction, type CreditType, type CronExpression, CronPresets, CryptoKeyMetadata, type Currency, type Customer, DEFAULT_BULKHEAD_OPTIONS, type DataBreachRecord, type DataCategory, type DataInventoryItem, type DataMap, type DataSensitivity, type DataSubjectRequest, type DataType, DatabaseAIUsage, type DatabaseAIUsageConfig, DatabaseAuditLog, type DatabaseAuditLogConfig, DatabaseBilling, type DatabaseBillingConfig, DatabaseCompliance, DatabaseErrorReporter, type DatabaseErrorReporterConfig, DatabaseNotification, type DatabaseNotificationConfig, DatabasePromptStore, type DatabasePromptStoreConfig, DefaultTimeouts, type DeleteHookContext, type DeliveryAttempt, type DeliveryQuery, type DeliveryStatus, type DetailedHealthResponse, DeterministicEncryptedField, type DevPortalConfig, type DeveloperMetrics, type Device, type DeviceAuthMethod, type DeviceCommand, type DeviceConfig, type DeviceConnectionState, type DeviceCredentials, type DeviceGroup, type DeviceGroupQuery, type DeviceLocation, type DeviceQuery, type DeviceQueryResult, type DeviceShadow, type DeviceStatus, type DirectoryAttributeMapping, type DirectoryConfig, DocumentStatus, type DsarAttachment, type DsarNote, type DsarStatus, type DsarType, type DunningActionType, type DunningAttempt, type DunningConfig, type EmailHookContext, EmailMessage, EmailResult, EncryptOptions, EncryptedField, type ErrorContext, type ErrorHookContext, type ErrorLevel, type ErrorReport, type ErrorReporterConfig, type EvidenceType, type ExperimentMetrics, type FallbackOptions, type FallbackResult, FallbackStrategies, type FirmwareStatus, type FirmwareUpdate, type FirmwareVersion, type GeneratedSdk, GenericOIDCAuthSSO, type GenericOIDCConfig, GoogleAIAdapter, type GoogleAIAdapterConfig, type HealthCheckResult, type HealthEndpoints, type HealthEndpointsOptions, type HealthStatus, type HookRegistry, type HttpMethod, HttpWebhook, type HttpWebhookConfig, IAI, IAIUsage, type IAuditLog, type IAuthSSO, IBeta, type IBilling, ICache, type ICompliance, ICrypto, IDatabase, type IDevPortal, type IDevice, IEmail, type IErrorReporter, type IHealth, type IHealthCheckable, ILogger, IMetrics, type INotification, type IPayment, IPlatform, type IPromptStore, IQueryBuilder, IQueue, IRAG, type IScheduler, IStorage, type ITenant, type IWebhook, type InboundWebhookConfig, type InboundWebhookContext, IngestionOptions, IngestionResult, type InsertHookContext, type InviteMemberOptions, type Invoice, type InvoiceLineItem, type InvoiceQuery, type InvoiceStatus, Job, JobEventHandler, JobEventType, type JobHookContext, JobOptions, JobState, KeyRotationResult, ListBetaCodesOptions, type ListTenantsOptions, type LivenessResponse, MemoryAuditLog, type MemoryAuditLogConfig, MemoryAuthSSO, MemoryBilling, MemoryCompliance, MemoryCrypto, MemoryDevPortal, MemoryDevice, MemoryErrorReporter, type MemoryErrorReporterConfig, MemoryNotification, type MemoryNotificationConfig, MemoryPayment, MemoryPromptStore, MemoryRateLimiterStorage, MemoryScheduler, type MemorySchedulerConfig, MemoryTenant, MemoryWebhook, type MemoryWebhookConfig, type Meter, type MetricsEndpoint, type MetricsEndpointOptions, MetricsSummary, type Middleware, type MiddlewareChain, type MiddlewareChainOptions, type MiddlewareContext, NodeCrypto, type NodeCryptoConfig, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationConfig, type NotificationData, type NotificationPreferences, type NotificationPriority, type NotificationQuery, type NotificationResult, type NotificationStats, type NotificationStatus, type NotificationTarget, NotificationTemplates, type OidcAuthRequest, type OidcAuthResponse, type OidcClaimMapping, type OidcIdpConfig, OpenAIAdapter, type OpenAIAdapterConfig, type ParameterLocation, type PaymentConfig, type PaymentError, type PaymentErrorCode, PaymentErrorMessages, type PaymentEventType, type PaymentIntent, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentWebhookEvent, type Payout, type PayoutStatus, type PiaMitigation, type PiaRisk, type PiaStatus, PineconeRAG, type PineconeRAGConfig, type PlatformHealthResult, PlatformHealthStatus, type PlatformHooks, PostgresBeta, type PostgresBetaConfig, type PostgresConfig, PostgresDatabase, PostgresTenant, type PostgresTenantConfig, type Price, type PricingModel, type PricingTier, type PrivacyImpactAssessment, type Product, type Prompt, type PromptChain, type PromptChainStep, type PromptExperiment, type PromptQuery, type PromptQueryResult, type PromptStatus, type PromptStoreConfig, type PromptType, type PromptUsageRecord, type PromptUsageStats, type PromptVariable, type PromptVariant, type PromptVersion, type ProvisioningConfig, type ProvisioningRequest, type ProvisioningResult, type ProvisioningStatus, type PushSubscription, type QueryHookContext, QueryResult, QueueScheduler, type QueueSchedulerConfig, Quota, QuotaStatus, QuotaType, RAGChunk, RAGCollection, RAGConfig, RAGDocument, RAGPipeline, RAGSearchQuery, RAGSearchResponse, RAGSearchResult, type RateLimitAlgorithm, RateLimitError, type RateLimitInfo, RateLimitPresets, type RateLimiterStorage, type ReadinessResponse, type RecordConsentOptions, RedisCache, type RedisClientOptions, type RedisConfig, type Refund, type RefundReason, type RefundStatus, type RenderOptions, type RenderedPrompt, RepeatOptions, ResendEmail, type RetentionAction, type RetentionExecution, type RetentionPolicy, type RevenueMetrics, type RiskLevel, S3Storage, type SamlAssertion, type SamlAttributeMapping, type SamlAuthRequest, type SamlAuthResponse, type SamlIdpConfig, type SamlNameIdFormat, type SamlSpConfig, type Sandbox, type SandboxConfig, type SandboxLimits, type SandboxStatus, type SandboxUsage, type ScheduleContext, type ScheduleExecution, type ScheduleHandler, type ScheduleQuery, type ScheduleState, type ScheduleUpdateOptions, type ScheduledJob, type SchedulerConfig, type SchedulerStats, type ScimConfig, type ScimUser, type SdkConfig, type SdkFile, type SdkLanguage, type SendCommandOptions, type SendNotificationOptions, type ServiceHealth, type ShadowDelta, type ShadowMetadata, type ShadowUpdate, type SignatureAlgorithm, type SlidingWindowRateLimitOptions, type SmtpConfig, SmtpEmail, type SsoSession, type StartupResponse, StorageFile, type StoredAuditEvent, type StoredNotification, StripePayment, type StripePaymentConfig, type Subscription, type SubscriptionDiscount, type SubscriptionItem, type SubscriptionMetrics, type SubscriptionQuery, type SubscriptionStatus, type TaxBreakdown, type TelemetryMessage, type TelemetryQuery, type TelemetryResult, type Tenant, type TenantBranding, type TenantContext, type TenantDatabaseConfig, type TenantInvitation, type TenantIsolationModel, type TenantMember, type TenantMemberStatus, type TenantQuotas, type TenantResolutionOptions, type TenantResolutionStrategy, type TenantRole, type TenantSecuritySettings, type TenantSettings, type TenantStatus, type TenantUsage, TimeoutError, type TimeoutOptions, type TokenBucketOptions, type TosAcceptance, type Transfer, type TransferStatus, UpdateBetaSettingsOptions, type UpdateCustomerOptions, type UpdateHookContext, type UpdatePaymentIntentOptions, type UpdateScheduleOptions, type UpdateStatus, type UpdateTenantOptions, type UpdateWebhookOptions, type UploadHookContext, UploadOptions, UpstashCache, UsageAlert, UsageCategory, type UsageEvent, UsageInterval, UsageInvoice, UsageQuery, UsageQueryResult, UsageRecord, UsageSummary, type UsageSummaryRecord, UsageTrend, type VerificationResult, type VerifyWebhookOptions, WeaviateRAG, type WeaviateRAGConfig, type WebhookConfig, type WebhookDelivery, type WebhookEndpoint, type WebhookEvent, WebhookEventTypes, type WebhookQuery, type WebhookState, type WebhookStats, type WebhookTestEndpoint, type WebhookTestEvent, calculateRetryDelay, closeSharedRedis, composeHookRegistries, correlationContext, createAnthropicAdapter, createAppLogger, createBulkhead, createCacheMiddleware, createCachedFallback, createDefaultPreferences, createErrorReport, createExpressHealthHandlers, createExpressMetricsHandler, createGoogleAIAdapter, createHealthEndpoints, createHealthServer, createHookRegistry, createIpKeyGenerator, createJobContext, createLoggingMiddleware, createMetricsEndpoint, createMetricsMiddleware, createMetricsServer, createMiddlewareChain, createMiddlewareContext, createObservabilityServer, createOpenAIAdapter, createPaymentError, createPineconeRAG, createRateLimitMiddleware, createRedisClient, createRequestContext, createRequestIdMiddleware, createSlowQueryMiddleware, createTenantMiddleware, createTimeoutMiddleware, createUserKeyGenerator, createWeaviateRAG, describeCron, filterChannelsByPreferences, formatAmount, generateAuditId, generateChecksum, generateDeliveryId, generateErrorId, generateEventId, generateFingerprint, generateNotificationId, generatePaymentId, generateScheduleId, generateWebhookId, generateWebhookSecret, getContext, getLogMeta, getNextCronRun, getRequestId, getSharedRedis, getTenantId, getTraceId, getUserId, isInContext, isInQuietHours, isPaymentError, isValidCron, matchAction, matchEventType, raceTimeout, runWithContext, runWithContextAsync, timedHealthCheck, toHealthCheckResult, withCorrelation, withCorrelationAsync, withFallback, withFallbackChain, withFallbackResult, withTimeout, withTimeoutWrapper };
11921
+ export { AIChatRequest, AIChatResponse, AICompletionRequest, AICompletionResponse, AIConfig, AIEmbeddingRequest, AIEmbeddingResponse, AIModelConfig, AIModelType, AIProvider, AIStreamCallback, AIStreamChunk, AIUsageConfig, type AccountCapabilities, type AccountLink, type AccountType, type Address, AlertType, AnthropicAdapter, type AnthropicAdapterConfig, type ApiAuthentication, type ApiChangelog, type ApiDocumentation, type ApiEndpoint, type ApiExample, type ApiKey, type ApiKeyStatus, type ApiKeyType, type ApiKeyValidationResult, type ApiParameter, type ApiResponse, type ApiSchema, type ApiSchemaProperty, type ApiUsageStats, type ApiUsageTimeSeries, type AppLogContext, type AppLogger, type AppLoggerOptions, AssembledContext, type AuditActor, type AuditCategory, type AuditEvent, AuditEvents, type AuditEvidence, type AuditLogConfig, type AuditOutcome, type AuditQuery, type AuditQueryResult, type AuditRetentionPolicy, type AuditStats, type AuditTarget, AuthError, AuthResult, AuthSession, AuthUser, type Balance, type BalanceAmount, type BankAccountDetails, type BatchNotificationOptions, BetaCodeUsageReport, BetaConfig, BetaConsumeResult, BetaInviteCode, BetaSettings, BetaStats, BetaTester, BetaValidationResult, type BillingConfig, type BillingDetails, type BillingPeriod, type Breadcrumb, Budget, BudgetStatus, BulkIngestionResult, Bulkhead, type BulkheadOptions, BulkheadRegistry, BulkheadRejectedError, type BulkheadStats, type BullMQConfig, BullMQQueue, type BusinessProfile, type CancelationReason, type CaptureOptions, type CapturePaymentIntentOptions, type CardBrand, type CardDetails, type ChainExecutionResult, type ClawbackCreditsInput, type ClawbackResult, type CommandStatus, type ComplianceConfig, type ComplianceReport, type ConfirmPaymentIntentOptions, type ConnectedAccount, type ConnectedAccountStatus, type ConsentPreferences, type ConsentPurpose, type ConsentRecord, type ConsentStatus, ContextAssemblyConfig, type ControlFramework, type ControlStatus, type CorrelationData, CostBreakdown, type Coupon, type CreateAccountLinkOptions, type CreateApiKeyOptions, CreateBetaCodesOptions, CreateCollectionOptions, type CreateConnectedAccountOptions, type CreateCustomerOptions, type CreateDsarOptions, type CreatePaymentIntentOptions, type CreatePayoutOptions, type CreateRefundOptions, type CreateSandboxOptions, type CreateScheduleOptions, type CreateTenantOptions, type CreateTransferOptions, type CreateWebhookOptions, type CreditBalance, type CreditBalanceSnapshot, type CreditEntry, type CreditEntryKind, CreditIdempotencyConflictError, type CreditReservation, CreditReservationStateError, type CreditReservationStatus, type CreditTransaction, type CreditType, type CronExpression, CronPresets, CryptoKeyMetadata, type Currency, type Customer, DEFAULT_BULKHEAD_OPTIONS, DEFAULT_RESERVATION_SECONDS, type DataBreachRecord, type DataCategory, type DataInventoryItem, type DataMap, type DataSensitivity, type DataSubjectRequest, type DataType, DatabaseAIUsage, type DatabaseAIUsageConfig, DatabaseAuditLog, type DatabaseAuditLogConfig, DatabaseBilling, type DatabaseBillingConfig, DatabaseCompliance, DatabaseErrorReporter, type DatabaseErrorReporterConfig, DatabaseNotification, type DatabaseNotificationConfig, DatabasePromptStore, type DatabasePromptStoreConfig, DefaultTimeouts, type DeleteHookContext, type DeliveryAttempt, type DeliveryQuery, type DeliveryStatus, type DetailedHealthResponse, DeterministicEncryptedField, type DevPortalConfig, type DeveloperMetrics, type Device, type DeviceAuthMethod, type DeviceCommand, type DeviceConfig, type DeviceConnectionState, type DeviceCredentials, type DeviceGroup, type DeviceGroupQuery, type DeviceLocation, type DeviceQuery, type DeviceQueryResult, type DeviceShadow, type DeviceStatus, type DirectoryAttributeMapping, type DirectoryConfig, DocumentStatus, type DsarAttachment, type DsarNote, type DsarStatus, type DsarType, type DunningActionType, type DunningAttempt, type DunningConfig, type EmailHookContext, EmailMessage, EmailResult, EncryptOptions, EncryptedField, type ErrorContext, type ErrorHookContext, type ErrorLevel, type ErrorReport, type ErrorReporterConfig, type EvidenceType, type ExperimentMetrics, type FallbackOptions, type FallbackResult, FallbackStrategies, type FirmwareStatus, type FirmwareUpdate, type FirmwareVersion, type GeneratedSdk, GenericOIDCAuthSSO, type GenericOIDCConfig, GoogleAIAdapter, type GoogleAIAdapterConfig, type GrantCreditsInput, type HealthCheckResult, type HealthEndpoints, type HealthEndpointsOptions, type HealthStatus, type HookRegistry, type HttpMethod, HttpWebhook, type HttpWebhookConfig, IAI, IAIUsage, type IAuditLog, type IAuthSSO, IBeta, type IBilling, ICache, type ICompliance, type ICreditLedger, ICrypto, IDatabase, type IDevPortal, type IDevice, IEmail, type IErrorReporter, type IHealth, type IHealthCheckable, ILogger, IMetrics, type INotification, type IPayment, IPlatform, type IPromptStore, IQueryBuilder, IQueue, IRAG, type IScheduler, IStorage, type ITenant, type IWebhook, type InboundWebhookConfig, type InboundWebhookContext, IngestionOptions, IngestionResult, type InsertHookContext, InsufficientCreditsError, type InviteMemberOptions, type Invoice, type InvoiceLineItem, type InvoiceQuery, type InvoiceStatus, Job, JobEventHandler, JobEventType, type JobHookContext, JobOptions, JobState, KeyRotationResult, ListBetaCodesOptions, type ListCreditEntriesOptions, type ListTenantsOptions, type LivenessResponse, MAX_LIST_ENTRIES, MemoryAuditLog, type MemoryAuditLogConfig, MemoryAuthSSO, MemoryBilling, MemoryCompliance, MemoryCreditLedger, MemoryCrypto, MemoryDevPortal, MemoryDevice, MemoryErrorReporter, type MemoryErrorReporterConfig, MemoryNotification, type MemoryNotificationConfig, MemoryPayment, MemoryPromptStore, MemoryRateLimiterStorage, MemoryScheduler, type MemorySchedulerConfig, MemoryTenant, MemoryWebhook, type MemoryWebhookConfig, type Meter, type MetricsEndpoint, type MetricsEndpointOptions, MetricsSummary, type Middleware, type MiddlewareChain, type MiddlewareChainOptions, type MiddlewareContext, NodeCrypto, type NodeCryptoConfig, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationConfig, type NotificationData, type NotificationPreferences, type NotificationPriority, type NotificationQuery, type NotificationResult, type NotificationStats, type NotificationStatus, type NotificationTarget, NotificationTemplates, type OidcAuthRequest, type OidcAuthResponse, type OidcClaimMapping, type OidcIdpConfig, OpenAIAdapter, type OpenAIAdapterConfig, type ParameterLocation, type PaymentConfig, type PaymentError, type PaymentErrorCode, PaymentErrorMessages, type PaymentEventType, type PaymentIntent, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentWebhookEvent, type Payout, type PayoutStatus, type PiaMitigation, type PiaRisk, type PiaStatus, PineconeRAG, type PineconeRAGConfig, type PlatformHealthResult, PlatformHealthStatus, type PlatformHooks, PostgresBeta, type PostgresBetaConfig, type PostgresConfig, PostgresCreditLedger, type PostgresCreditLedgerConfig, PostgresDatabase, PostgresTenant, type PostgresTenantConfig, type Price, type PricingModel, type PricingTier, type PrivacyImpactAssessment, type Product, type Prompt, type PromptChain, type PromptChainStep, type PromptExperiment, type PromptQuery, type PromptQueryResult, type PromptStatus, type PromptStoreConfig, type PromptType, type PromptUsageRecord, type PromptUsageStats, type PromptVariable, type PromptVariant, type PromptVersion, type ProvisioningConfig, type ProvisioningRequest, type ProvisioningResult, type ProvisioningStatus, type PushSubscription, type QueryHookContext, QueryResult, QueueScheduler, type QueueSchedulerConfig, Quota, QuotaStatus, QuotaType, RAGChunk, RAGCollection, RAGConfig, RAGDocument, RAGPipeline, RAGSearchQuery, RAGSearchResponse, RAGSearchResult, type RateLimitAlgorithm, RateLimitError, type RateLimitInfo, RateLimitPresets, type RateLimiterStorage, type ReadinessResponse, type RecordConsentOptions, RedisCache, type RedisClientOptions, type RedisConfig, type Refund, type RefundReason, type RefundStatus, type RenderOptions, type RenderedPrompt, RepeatOptions, ResendEmail, type ReserveCreditsInput, type RetentionAction, type RetentionExecution, type RetentionPolicy, type RevenueMetrics, type RiskLevel, S3Storage, type SamlAssertion, type SamlAttributeMapping, type SamlAuthRequest, type SamlAuthResponse, type SamlIdpConfig, type SamlNameIdFormat, type SamlSpConfig, type Sandbox, type SandboxConfig, type SandboxLimits, type SandboxStatus, type SandboxUsage, type ScheduleContext, type ScheduleExecution, type ScheduleHandler, type ScheduleQuery, type ScheduleState, type ScheduleUpdateOptions, type ScheduledJob, type SchedulerConfig, type SchedulerStats, type ScimConfig, type ScimUser, type SdkConfig, type SdkFile, type SdkLanguage, type SendCommandOptions, type SendNotificationOptions, type ServiceHealth, type ShadowDelta, type ShadowMetadata, type ShadowUpdate, type SignatureAlgorithm, type SlidingWindowRateLimitOptions, type SmtpConfig, SmtpEmail, type SsoSession, type StartupResponse, StorageFile, type StoredAuditEvent, type StoredNotification, StripePayment, type StripePaymentConfig, type Subscription, type SubscriptionDiscount, type SubscriptionItem, type SubscriptionMetrics, type SubscriptionQuery, type SubscriptionStatus, type TaxBreakdown, type TelemetryMessage, type TelemetryQuery, type TelemetryResult, type Tenant, type TenantBranding, type TenantContext, type TenantDatabaseConfig, type TenantInvitation, type TenantIsolationModel, type TenantMember, type TenantMemberStatus, type TenantQuotas, type TenantResolutionOptions, type TenantResolutionStrategy, type TenantRole, type TenantSecuritySettings, type TenantSettings, type TenantStatus, type TenantUsage, TimeoutError, type TimeoutOptions, type TokenBucketOptions, type TosAcceptance, type Transfer, type TransferStatus, UpdateBetaSettingsOptions, type UpdateCustomerOptions, type UpdateHookContext, type UpdatePaymentIntentOptions, type UpdateScheduleOptions, type UpdateStatus, type UpdateTenantOptions, type UpdateWebhookOptions, type UploadHookContext, UploadOptions, UpstashCache, UsageAlert, UsageCategory, type UsageEvent, UsageInterval, UsageInvoice, UsageQuery, UsageQueryResult, UsageRecord, UsageSummary, type UsageSummaryRecord, UsageTrend, type VerificationResult, type VerifyWebhookOptions, WeaviateRAG, type WeaviateRAGConfig, type WebhookConfig, type WebhookDelivery, type WebhookEndpoint, type WebhookEvent, WebhookEventTypes, type WebhookQuery, type WebhookState, type WebhookStats, type WebhookTestEndpoint, type WebhookTestEvent, assertIdempotencyKey, assertWholeCredits, calculateRetryDelay, clampEntryLimit, closeSharedRedis, composeHookRegistries, correlationContext, createAnthropicAdapter, createAppLogger, createBulkhead, createCacheMiddleware, createCachedFallback, createDefaultPreferences, createErrorReport, createExpressHealthHandlers, createExpressMetricsHandler, createGoogleAIAdapter, createHealthEndpoints, createHealthServer, createHookRegistry, createIpKeyGenerator, createJobContext, createLoggingMiddleware, createMetricsEndpoint, createMetricsMiddleware, createMetricsServer, createMiddlewareChain, createMiddlewareContext, createObservabilityServer, createOpenAIAdapter, createPaymentError, createPineconeRAG, createRateLimitMiddleware, createRedisClient, createRequestContext, createRequestIdMiddleware, createSlowQueryMiddleware, createTenantMiddleware, createTimeoutMiddleware, createUserKeyGenerator, createWeaviateRAG, describeCron, filterChannelsByPreferences, formatAmount, generateAuditId, generateChecksum, generateCreditId, generateDeliveryId, generateErrorId, generateEventId, generateFingerprint, generateNotificationId, generatePaymentId, generateScheduleId, generateWebhookId, generateWebhookSecret, getContext, getLogMeta, getNextCronRun, getRequestId, getSharedRedis, getTenantId, getTraceId, getUserId, isInContext, isInQuietHours, isPaymentError, isValidCron, matchAction, matchEventType, raceTimeout, reservationSeconds, runWithContext, runWithContextAsync, timedHealthCheck, toHealthCheckResult, withCorrelation, withCorrelationAsync, withFallback, withFallbackChain, withFallbackResult, withTimeout, withTimeoutWrapper };