@delopay/sdk 0.136.0 → 0.138.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.
@@ -1,5 +1,5 @@
1
1
  import { BillingProfileResponse, ProjectResponse, ShopResponse, PaymentResponse, VaultEnvironment, RequestFn, AuthResponse, SignUpWithMerchantIdRequest, PaymentAttemptsListResponse, PaymentStatusHistoryResponse, RefundListResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, ClientAnalyticsRequest, DevicesAnalyticsResponse, GeoAnalyticsResponse, GeoDrillRequest, DrillResponse, DeviceDrillRequest, ScopeDrillRequest, SubscriptionAnalyticsRequest, SubscriptionAnalyticsResponse, SubscriptionDrillRequest, MerchantAccountResponse, MerchantAccountUpdateRequest, ProfileResponse, PaymentsDeleteResponse, PaymentClientContextListResponse, SettlementStatementListParams, SettlementStatementListResponse, FeeStatementDetail, StatementPdfParams, SettlementOverviewParams, SettlementOverviewResponse, SettlementCurrentParams, SettlementCurrentResponse, JsonExportOptions, ExportEnvelope, BinaryExportOptions, ExportOptions, PlatformFeeRuleInput, PlatformFeeRuleRecord, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Delopay } from './index.js';
2
- export { ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, AcceptInvitationsPreAuthRequest, AddUserRequest, AddUserResponse, Address, AddressDetails, AirwallexApplePayDomainResult, AirwallexApplePayDomainStatus, AirwallexApplePayDomainsRegisterRequest, AirwallexApplePayDomainsRegisterResponse, AllocationListResponse, AllocationResponse, AllocationTransferRequest, AllocationTransferResponse, AmountFilter, AmountRange, Analytics, AnalyticsChannel, AnalyticsChild, AnalyticsConnectorDay, AnalyticsConnectorSeries, AnalyticsDashboard, AnalyticsDayBucket, AnalyticsGranularity, AnalyticsMethodSlice, AnalyticsOutcome, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyExpiration, ApiKeyListConstraints, ApiKeyResponse, ApiKeyRevokeResponse, ApiKeyUpdateRequest, ApplePayVerificationRequest, ApplePayVerificationResponse, ApplePayVerifiedDomainsResponse, AttemptStatus, Audit, AuthenticationCreateRequest, AuthenticationResponse, AuthenticationStatus, AuthenticationType, AutoRechargeConfig, AutoRechargeUpdateRequest, AvailabilityOverrideCreateRequest, AvailabilityOverrideResponse, AvailabilityOverrides, AvailabilityPreviewMethod, AvailabilityPreviewParams, AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, BankCodeResponse, BankDebitTypes, BankTransferTypes, BillingCompleteSetupRequest, BillingSetupRequest, BillingSetupResponse, BlockedAttempt, BlockedAttemptListParams, BlockedAttemptListResponse, BlocklistAddRequest, BlocklistDataKind, BlocklistResponse, BrandingExport, BrandingSource, BuiltInRegionGroupResponse, BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CHECKOUT_LOCALES, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, CancelModeOutcome, CancelSubscriptionRequest, CancelSubscriptionResponse, CaptureMethod, CardDetail, CardDetailFromLocker, CardNetworkTypes, CardReference, CardSpecificFeatures, Cards, ChangePasswordRequest, CheckoutBranding, CheckoutBrandingResponse, CheckoutBrandingUpdate, CheckoutCustomField, CheckoutEventKind, CheckoutLocale, CheckoutSession, CheckoutSessionOptions, CheckoutThemeComparisonSide, CheckoutThemeConversionCaveat, CheckoutThemeConversionCell, CheckoutThemeConversionComparison, CheckoutThemeConversionQuery, CheckoutThemeConversionResponse, CheckoutThemeConversionSegment, CheckoutThemeDenominatorBasis, CheckoutThemeDimension, CheckoutThemeOutput, CheckoutThemeProgram, CheckoutThemeProgramRequest, CheckoutThemeProgramResponse, CheckoutThemeRule, CheckoutThemeSampleVerdict, ClientAnalyticsCaveat, ClientAnalyticsFilters, ClientDrillSortKey, ConditionNode, ConfirmSubscriptionPaymentDetails, ConfirmSubscriptionRequest, ConfirmSubscriptionResponse, Connector, ConnectorCapability, ConnectorCapabilityState, ConnectorCloneRequest, ConnectorCreateRequest, ConnectorFeatureMatrixEntry, ConnectorHealthRequirements, ConnectorHealthResponse, ConnectorHealthState, ConnectorHealthUnknownReason, ConnectorIntegrationStatus, ConnectorListResponse, ConnectorOwnership, ConnectorResponse, ConnectorRisk, ConnectorSelection, ConnectorSettlementAttempt, ConnectorSettlementStatus, ConnectorType, ConnectorUpdateRequest, ConnectorVolumeSplit, ConnectorWebhookEntry, ConnectorWebhookEventType, ConnectorWebhookListResponse, ConnectorWebhookRegisterRequest, ConnectorWebhookRegisterResponse, ConnectorWebhookSyncResponse, ConnectorWebhookSyncResult, CornerRadius, CreateAndConfirmSubscriptionRequest, CreateSubscriptionPaymentDetails, CreateSubscriptionRequest, Currency, CurrencyRevenue, CustomFieldCondition, CustomFieldConditionSource, CustomFieldContext, CustomFieldOperator, CustomFieldOption, CustomFieldTranslations, CustomFieldType, CustomFieldVisibility, CustomerCreateRequest, CustomerListParams, CustomerPaymentMethodsListParams, CustomerPaymentMethodsListResponse, CustomerResponse, CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, DecidePendingOperationRequest, DeleteAccountRequest, DeleteEvidenceRequest, DeleteUserRoleRequest, DelopayAuthenticationError, DelopayConnectorCategory, DelopayError, DelopayLogger, DelopayOptions, DeviceAnalyticsChild, DeviceAnalyticsTotals, DeviceBrowserSlice, DeviceChannelBucket, DeviceClassSlice, DeviceDrillBase, DeviceDrillTarget, DeviceModelSlice, DevicePlatformSlice, DeviceSessionBucket, DisputeEvidenceBlock, DisputeEvidenceRequest, DisputeEvidenceType, DisputeExportRecord, DisputeListParams, DisputeOutcomeReporting, DisputeResponse, DisputeStage, DisputeStatus, DrillListControls, DrillPayment, DrillSortKey, DrillSummary, DynamicExportOptions, EncodedBranding, EntityType, EpayoutsCatalogEntry, EpayoutsCatalogResponse, EpayoutsLocality, EpayoutsMethod, EpayoutsMethodsResponse, EpayoutsRail, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EuclidComparison, EuclidComparisonType, EuclidIfStatement, EuclidValue, EventClass, EventDeliveryAttemptResponse, EventDetailResponse, EventListParams, EventListResponse, EventManualTriggerRequest, EventManualTriggerResponse, EventResponse, EventType, ExpenseAllocation, Export, ExportFormat, FeatureMatrix, FeatureMatrixResponse, FeatureStatus, FeeOwner, FeeProgramBuilder, FeeRuleConditions, FeeRuleDefaultPrecedence, FeeRuleInput, FeeSpecInput, FeeStatementSummary, FeeType, Files, FocusedCheckoutUrlParams, FontFamily, FontWeight, Forex, ForgotPasswordRequest, FromEmailRequest, FutureUsage, GatewayConnectRequest, GatewayResponse, GeoAnalyticsChild, GeoAnalyticsTotals, GeoCitySlice, GeoCountrySlice, GeoLanguageSlice, GetSubscriptionItemsParams, GetSubscriptionItemsResponse, GlobalSearchRequest, GroupNode, HostingFeeTerm, ImpersonateEmployeeRequest, IntentStatus, InvitationEntity, InviteUsersRequest, InviteUsersResponse, InvoiceAmountState, InvoiceOutcomes, InvoiceStatus, InvokeSdkClientNextAction, LOCALIZABLE_COPY_FIELDS, LabelStyle, LayoutStyle, LeafNode, LedgerEntry, LedgerListParams, LedgerResponse, LimitedOperation, LinkedRoutingConfigRetrieveResponse, ListInvitableRolesParams, ListUsersInLineageParams, LocalizableCopyField, LoginHistoryEntry, LoginHistoryParams, LoginHistoryResponse, LogoShape, LogoSize, MAX_SECTION_LABEL_LENGTH, MAX_SECTION_ORDER, METHOD_SECTIONS, MIN_SECTION_ORDER, MandateListParams, MandateResponse, MandateRevokedResponse, MandateStatus, MandateType, ManualTriggerEventType, MarginQuality, MerchantAccountCreateRequest, MerchantAccountType, MerchantAuditActorInfo, MerchantAuditActorKind, MerchantAuditImpersonationKind, MerchantAuditLogEntry, MerchantAuditLogExportRecord, MerchantAuditLogListParams, MerchantAuditLogListResponse, MerchantAuditSessionInfo, MerchantConnectorWebhookDetailsUpdate, MerchantOverviewResponse, MerchantOverviewStat, MerchantRisk, MerchantRoutingAlgorithm, MethodSectionLabels, MethodSectionOrder, MethodSectionSpec, MethodSurcharge, MinimalRoleInfo, NATIVE_ELEMENT_POSITIONS, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, NativeElementPosition, NativePaneCapability, NativePaneMethodInfo, NativePaneNativeElement, NativePaneOpenTarget, NativePaneRail, NativePaneView, NativePaneVisibility, NativePanesCatalogResponse, NativePanesConnectorCatalog, NextActionCall, NextActionDataType, NomupayOppwaCheckoutData, NonPillRadius, OperationLimitOnExceeded, OperationLimitRule, OperationLimitRuleDeleteResponse, OperationLimitRuleListParams, OperationLimitScope, OperationLimitSettings, OperationLimitWindowMode, OperationLimits, OtherNextAction, OverrideAction, OverrideScope, PANES_MAX, PANE_CATEGORY_KEYS, PANE_ICON_KEYS, Pane, PaneCapability, PaneDisplayDefaults, PaneIssue, PaneIssueCode, PaneMethodInfo, PaneNativeElement, PaneOpenTarget, PanePresetCapability, PaneRail, PaneSurcharge, PaneView, PaneVisibility, PanesCatalogResponse, PanesConnectorCatalog, ParentGroup, ParentGroupInfo, PauseSubscriptionRequest, PauseSubscriptionResponse, PaymentAbandonAttemptResponse, PaymentAttemptResponse, PaymentCancelRequest, PaymentCaptureRequest, PaymentClientContextEntry, PaymentConfirmRequest, PaymentConnectorSettlementResponse, PaymentCreateRequest, PaymentErrorDetails, PaymentExperience, PaymentExperienceTypes, PaymentIdFormatConfig, PaymentIdStyle, PaymentIntentStateMetadata, PaymentLayout, PaymentLinkBackgroundImageConfig, PaymentLinkConfigRequest, PaymentLinkListParams, PaymentLinkListResponse, PaymentLinkResponse, PaymentLinkTransactionDetails, PaymentListFilterConstraints, PaymentListFilteredResponse, PaymentListOrder, PaymentListParams, PaymentListResponse, PaymentMethod, PaymentMethodAmountLimits, PaymentMethodCreateRequest, PaymentMethodDeleteResponse, PaymentMethodDisplayInfo, PaymentMethodListInstallmentAmountDetails, PaymentMethodListInstallmentOption, PaymentMethodListInstallmentPlan, PaymentMethodListIntentData, PaymentMethodListParams, PaymentMethodListResponse, PaymentMethodResponse, PaymentMethodType, PaymentMethodUpdateRequest, PaymentRetrieveOptions, PaymentStatusHistoryEntityType, PaymentStatusHistoryEvent, PaymentUpdateRequest, PaymentsDeletePolicyResponse, PaymentsPostSessionTokensNextAction, PaymentsPostSessionTokensRequest, PaymentsPostSessionTokensResponse, PayoutCreateRequest, PayoutExportRecord, PayoutListParams, PayoutListResponse, PayoutResponse, PayoutStatus, PayoutType, PayoutUpdateRequest, PayseproMethod, PayseproMethodsResponse, PendingApprovalErrorDetails, PendingOperation, PendingOperationLimitContext, PendingOperationListParams, PendingOperationListResponse, PendingOperationStatus, PendingOperationSummary, PerMethodSurchargeItem, PeriodExpenseTerm, PermissionScope, PhoneDetails, PhoneOtpRequest, PhoneOtpResponse, PhoneOtpVerifyRequest, PhoneOtpVerifyResponse, PlanSlice, PlatformFeeKind, PlatformFeeOutput, PlatformFeeProgram, PlatformFeeRule, PlatformFeeRuleOutput, PlatformFeeRuleRequest, PollStatus, PollStatusResponse, ProcessorCostBasis, ProcessorCostBucket, ProcessorCostSource, ProcessorSlice, ProfileAcquirerCreateRequest, ProfileAcquirerResponse, ProfileAcquirerUpdateRequest, ProfileCreateRequest, ProfileDefaultRoutingConfig, ProfileDeniedConnectorsResponse, ProfileLogoUploadResponse, ProfilePaymentListFilterConstraints, ProfileUpdateRequest, ProfitCostTerm, ProgramConnectorSelection, ProjectCreateRequest, ProjectStats, ProjectStatsResponse, ProjectUpdateRequest, PublishableKey, RTL_CHECKOUT_LOCALES, RecordCheckoutEventRequest, RecordCheckoutEventResponse, RecoveryCodesResponse, RefundAggregateResponse, RefundCreateRequest, RefundExportRecord, RefundListParams, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest, RegionCountriesResponse, RegionCreateRequest, RegionResponse, RegionSetCountriesRequest, RegionUpdateRequest, Regions, RelayRequest, RelayResponse, RelayStatus, RelayType, RequestExtras, RequestOptions, RequiredFieldInfo, ResetPasswordRequest, ResponsePaymentMethodTypes, ResponsePaymentMethodsEnabled, ResumeSubscriptionRequest, ResumeSubscriptionResponse, RevenueBasis, Risk, RoleConnectorGrant, RoleConnectorGrantEntry, RoutableConnectorChoice, RoutingActivatePayload, RoutingAlgorithmKind, RoutingApproach, RoutingConfigCreateRequest, RoutingConfigDeleteResponse, RoutingConfigHistoryResponse, RoutingConfigResponse, RoutingConfigUpdateRequest, RoutingConfigVersion, RoutingConnectorCap, RoutingConnectorCaps, RoutingDeactivateRequest, RoutingDictionary, RoutingDictionaryRecord, RoutingHistoryParams, RoutingVolumeCounter, RoutingVolumeCounters, RoutingVolumeScope, RoutingVolumeWindow, RuleConnectorSelection, SECTION_ALIASES, STRIPE_FALLBACK_PANE_CATALOG, STRIPE_FALLBACK_PANE_METHODS, STRIPE_NATIVE_PANE_METHODS, SURCHARGE_BORDER_STYLES, SURCHARGE_BORDER_WIDTHS, SURCHARGE_FIGURE_MODES, SURCHARGE_LABEL_MODES, SURCHARGE_POSITIONS, SURCHARGE_SHAPES, SURCHARGE_SIGNS, SURCHARGE_SIZES, SURCHARGE_STYLES, SURCHARGE_WEIGHTS, SalesRevenueTerm, ScopeDrillBase, ScopeDrillSortKey, ScopeDrillTarget, SdkNextActionData, Search, SearchGroupResponse, SearchIndex, SearchStatus, SearchTimeRange, Settlement, SettlementBackfillRequest, SettlementBackfillResponse, SettlementBucket, SettlementCostParams, SettlementCostPeriod, SettlementCostResponse, SettlementLine, SettlementLineBase, SettlementLineListParams, SettlementLineListResponse, SettlementLineWithProcessorCost, SettlementLineWithoutProcessorCost, SettlementPayoutStatus, ShopCreateRequest, ShopFeeConfigEntry, ShopFeeConfigParams, ShopFeeConfigResponse, ShopRisk, ShopSettlementOverview, ShopStats, ShopStatsResponse, ShopUpdateRequest, ShopVisibilityResponse, ShopVisibilityUpdateRequest, SignInRequest, SignUpRequest, SignUpWithMerchantRequest, SizeScale, SpacingScale, StatementAdjustment, StatementAdjustmentCreateRequest, StatementAdjustmentListResponse, StatementGenerateRequest, StatementPayoutUpdateRequest, StaticRoutingAlgorithm, StatsPeriod, StripeConnectAccountRequest, StripeConnectAccountResponse, StripeConnectLinkRequest, StripeConnectLinkResponse, StripeNativePane, StripePaymentMethodDomainResult, StripePaymentMethodDomainStatus, StripePaymentMethodDomainsRegisterRequest, StripePaymentMethodDomainsRegisterResponse, SubscriptionBillingProcessorResponse, SubscriptionBucket, SubscriptionCaveat, SubscriptionChild, SubscriptionDrillBase, SubscriptionDrillSortKey, SubscriptionDrillTarget, SubscriptionEstimateParams, SubscriptionEstimateResponse, SubscriptionExportRecord, SubscriptionFilters, SubscriptionInvoice, SubscriptionInvoiceListParams, SubscriptionInvoiceListResponse, SubscriptionItem, SubscriptionItemPrice, SubscriptionItemType, SubscriptionLineItem, SubscriptionListParams, SubscriptionMovement, SubscriptionPaymentData, SubscriptionPaymentDetails, SubscriptionPaymentLink, SubscriptionPaymentLookupRequest, SubscriptionPaymentLookupResponse, SubscriptionPeriodUnit, SubscriptionProcessors, SubscriptionResponse, SubscriptionStatus, SubscriptionTotals, Subscriptions, SummaryPosition, SupportedPaymentMethod, SurchargeAmountOperator, SurchargeBorderStyle, SurchargeBorderWidth, SurchargeCondition, SurchargeConditionSource, SurchargeCurrencyOperator, SurchargeDetailsResponse, SurchargeDirection, SurchargeFigureMode, SurchargeFigurePart, SurchargeFigurePlan, SurchargeLabelMode, SurchargeMetadataOperator, SurchargeOperator, SurchargePosition, SurchargeResponse, SurchargeRuleRequest, SurchargeRuleResponse, SurchargeShape, SurchargeSign, SurchargeSize, SurchargeStyle, SurchargeWeight, SurfaceStyle, SwitchMerchantRequest, SwitchProfileRequest, TermBearer, Terminate2faQueryParams, ThemeBrowserLanguage, ThemeCheckoutChannel, ThemeChoice, ThemeCondition, ThemeDeviceClass, ThemeEnumCondition, ThemeIfStatement, ThemeMetadataCondition, ThemeNumberCondition, ThemeTrafficSource, ThreeDSDecision, ThreeDsRuleExecuteRequest, ThreeDsRuleResponse, TierSummary, TimeToPayBucket, TimeToPayBucketLabel, TimeToPayStats, TokenPurpose, TokenResponse, TopupRequest, TopupResponse, TotpResponse, TransactionExportParams, TransactionExportRecord, TransactionType, TrustBadge, UNKNOWN_SECTION_ORDER, UpdateMetadataRequest, UpdateOperationLimitSettingsRequest, UpdateRoleConnectorGrantParams, UpdateSubscriptionRequest, UpdateUserDetailsRequest, UpdateUserRoleRequest, UpsertOperationLimitRuleRequest, UpsertRefundLimitRuleRequest, UpsertSettlementAdjustmentLimitRuleRequest, UpsertSettlementPayoutLimitRuleRequest, UserInLineage, UserInvitation, UserResponse, UserSessionEntry, UserSessionListResponse, UserSessionRevokeResponse, VaultCheck, VaultCheckId, VaultCheckStatus, VaultCollectSessionResponse, VaultPaymentMethodRequest, VaultPaymentMethodResponse, VaultRouteApplyVerification, VaultRouteChange, VaultRouteChangeKind, VaultRouteFieldChange, VaultRouteIds, VaultRoutePurpose, VaultRouteWarning, VaultRouteWarningCode, VaultRoutesApplyRequest, VaultRoutesApplyResponse, VaultRoutesFingerprint, VaultRoutesPreviewRequest, VaultRoutesPreviewResponse, VaultVerificationResponse, VaultVerifyRequest, VerifyTotpRequest, WCAG_AA_TEXT, WCAG_AA_UI, WebhookDeliveryAttempt, WebhookDeliveryTerminalReason, WebhookDetails, WebhookEvent, WebhookRefundStatus, WebhookRegistrationEnvironment, Webhooks, allOf, anyOf, applyBrandingVariables, buildBrandingExport, buttonPadValue, canonicalSectionId, checkoutCopy, checkoutLocaleDir, cloneBranding, cloneCustomField, cloneNativePane, clonePane, compareSections, contrastRatio, copyTranslationsKey, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeMethodSectionLabels, decodeMethodSectionOrder, decodeNativePanes, decodePanes, defaultBranding, defaultCustomFieldVisibility, defaultMethodSectionOrder, defaultNativePane, defaultOperatorForSource, defaultPane, emptyPaneCatalog, encodeBadges, encodeBranding, encodeCustomFields, encodeMethodSectionLabels, encodeMethodSectionOrder, encodeNativePanes, encodePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, knownSectionLabelKey, leaf, logoDimensions, nativePaneMethodInfo, offerablePaneMethods, paneCatalogFor, paneDisplayDefaults, paneMethodInfo, paneRailAllowed, paneViewVisibility, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, readableInkOn, ruleMatchToTree, sanitizeCustomCss, sectionLabel, sectionOrderOf, shadowFor, surchargeFigurePlan, surchargeShowsLabel, surchargeStyleDrawsAShape, surchargeWordFor, surfacePadValue, validSectionOrder, validatePanes, verticalGapValue, visibleCustomFields } from './index.js';
2
+ export { AIRWALLEX_AUTOFILL_TREATMENTS, AIRWALLEX_CARD_LAYOUTS, AIRWALLEX_CARD_PRESETS, AIRWALLEX_CARD_PRESET_FALLBACK, AIRWALLEX_FIELD_CHROMES, AIRWALLEX_FIELD_FONT_SIZES, AIRWALLEX_FIELD_WEIGHTS, AIRWALLEX_FOCUS_RINGS, AIRWALLEX_LABEL_STYLES, AIRWALLEX_NETWORK_MARKS, ALL_CUSTOM_FIELD_CONDITION_SOURCES, ALL_CUSTOM_FIELD_OPERATORS, ALL_CUSTOM_FIELD_TYPES, AcceptInvitationsPreAuthRequest, AddUserRequest, AddUserResponse, Address, AddressDetails, AirwallexApplePayDomainResult, AirwallexApplePayDomainStatus, AirwallexApplePayDomainsRegisterRequest, AirwallexApplePayDomainsRegisterResponse, AirwallexAutofillTreatment, AirwallexCardField, AirwallexCardLayout, AirwallexCardPreset, AirwallexFieldChrome, AirwallexFieldFontSize, AirwallexFieldWeight, AirwallexFocusRing, AirwallexLabelStyle, AirwallexNetworkMark, AllocationListResponse, AllocationResponse, AllocationTransferRequest, AllocationTransferResponse, AmountFilter, AmountRange, Analytics, AnalyticsChannel, AnalyticsChild, AnalyticsConnectorDay, AnalyticsConnectorSeries, AnalyticsDashboard, AnalyticsDayBucket, AnalyticsGranularity, AnalyticsMethodSlice, AnalyticsOutcome, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyExpiration, ApiKeyListConstraints, ApiKeyResponse, ApiKeyRevokeResponse, ApiKeyUpdateRequest, ApplePayVerificationRequest, ApplePayVerificationResponse, ApplePayVerifiedDomainsResponse, AttemptStatus, Audit, AuthenticationCreateRequest, AuthenticationResponse, AuthenticationStatus, AuthenticationType, AutoRechargeConfig, AutoRechargeUpdateRequest, AvailabilityOverrideCreateRequest, AvailabilityOverrideResponse, AvailabilityOverrides, AvailabilityPreviewMethod, AvailabilityPreviewParams, AvailabilityPreviewResponse, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, BankCodeResponse, BankDebitTypes, BankTransferTypes, BillingCompleteSetupRequest, BillingSetupRequest, BillingSetupResponse, BlockedAttempt, BlockedAttemptListParams, BlockedAttemptListResponse, BlocklistAddRequest, BlocklistDataKind, BlocklistResponse, BrandingExport, BrandingSource, BuiltInRegionGroupResponse, BusinessPaymentLinkConfig, CHECKBOX_CHECKED, CHECKBOX_UNCHECKED, CHECKOUT_EVENT_KINDS, CHECKOUT_LOCALES, CUSTOM_CSS_MAX_LENGTH, CUSTOM_FIELDS_MAX, CUSTOM_FIELD_CONDITIONS_MAX, CUSTOM_FIELD_KEY_PATTERN, CUSTOM_FIELD_OPERATORS_BY_SOURCE, CUSTOM_FIELD_VALUELESS_OPERATORS, CancelModeOutcome, CancelSubscriptionRequest, CancelSubscriptionResponse, CaptureMethod, CardDetail, CardDetailFromLocker, CardNetworkTypes, CardReference, CardSpecificFeatures, Cards, ChangePasswordRequest, CheckoutBranding, CheckoutBrandingResponse, CheckoutBrandingUpdate, CheckoutCustomField, CheckoutEventKind, CheckoutLocale, CheckoutSession, CheckoutSessionOptions, CheckoutThemeComparisonSide, CheckoutThemeConversionCaveat, CheckoutThemeConversionCell, CheckoutThemeConversionComparison, CheckoutThemeConversionQuery, CheckoutThemeConversionResponse, CheckoutThemeConversionSegment, CheckoutThemeDenominatorBasis, CheckoutThemeDimension, CheckoutThemeOutput, CheckoutThemeProgram, CheckoutThemeProgramRequest, CheckoutThemeProgramResponse, CheckoutThemeRule, CheckoutThemeSampleVerdict, ClientAnalyticsCaveat, ClientAnalyticsFilters, ClientDrillSortKey, ConditionNode, ConfirmSubscriptionPaymentDetails, ConfirmSubscriptionRequest, ConfirmSubscriptionResponse, Connector, ConnectorCapability, ConnectorCapabilityState, ConnectorCloneRequest, ConnectorCreateRequest, ConnectorFeatureMatrixEntry, ConnectorHealthRequirements, ConnectorHealthResponse, ConnectorHealthState, ConnectorHealthUnknownReason, ConnectorIntegrationStatus, ConnectorListResponse, ConnectorOwnership, ConnectorResponse, ConnectorRisk, ConnectorSelection, ConnectorSettlementAttempt, ConnectorSettlementStatus, ConnectorType, ConnectorUpdateRequest, ConnectorVolumeSplit, ConnectorWebhookEntry, ConnectorWebhookEventType, ConnectorWebhookListResponse, ConnectorWebhookRegisterRequest, ConnectorWebhookRegisterResponse, ConnectorWebhookSyncResponse, ConnectorWebhookSyncResult, CornerRadius, CreateAndConfirmSubscriptionRequest, CreateSubscriptionPaymentDetails, CreateSubscriptionRequest, Currency, CurrencyRevenue, CustomFieldCondition, CustomFieldConditionSource, CustomFieldContext, CustomFieldOperator, CustomFieldOption, CustomFieldTranslations, CustomFieldType, CustomFieldVisibility, CustomerCreateRequest, CustomerListParams, CustomerPaymentMethodsListParams, CustomerPaymentMethodsListResponse, CustomerResponse, CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, DecidePendingOperationRequest, DeleteAccountRequest, DeleteEvidenceRequest, DeleteUserRoleRequest, DelopayAuthenticationError, DelopayConnectorCategory, DelopayError, DelopayLogger, DelopayOptions, DeviceAnalyticsChild, DeviceAnalyticsTotals, DeviceBrowserSlice, DeviceChannelBucket, DeviceClassSlice, DeviceDrillBase, DeviceDrillTarget, DeviceModelSlice, DevicePlatformSlice, DeviceSessionBucket, DisputeEvidenceBlock, DisputeEvidenceRequest, DisputeEvidenceType, DisputeExportRecord, DisputeListParams, DisputeOutcomeReporting, DisputeResponse, DisputeStage, DisputeStatus, DrillListControls, DrillPayment, DrillSortKey, DrillSummary, DynamicExportOptions, EncodedBranding, EntityType, EpayoutsCatalogEntry, EpayoutsCatalogResponse, EpayoutsLocality, EpayoutsMethod, EpayoutsMethodsResponse, EpayoutsRail, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EuclidComparison, EuclidComparisonType, EuclidIfStatement, EuclidValue, EventClass, EventDeliveryAttemptResponse, EventDetailResponse, EventListParams, EventListResponse, EventManualTriggerRequest, EventManualTriggerResponse, EventResponse, EventType, ExpenseAllocation, Export, ExportFormat, FeatureMatrix, FeatureMatrixResponse, FeatureStatus, FeeOwner, FeeProgramBuilder, FeeRuleConditions, FeeRuleDefaultPrecedence, FeeRuleInput, FeeSpecInput, FeeStatementSummary, FeeType, Files, FocusedCheckoutUrlParams, FontFamily, FontWeight, Forex, ForgotPasswordRequest, FromEmailRequest, FutureUsage, GatewayConnectRequest, GatewayResponse, GeoAnalyticsChild, GeoAnalyticsTotals, GeoCitySlice, GeoCountrySlice, GeoLanguageSlice, GetSubscriptionItemsParams, GetSubscriptionItemsResponse, GlobalSearchRequest, GroupNode, HostingFeeTerm, ImpersonateEmployeeRequest, IntentStatus, InvitationEntity, InviteUsersRequest, InviteUsersResponse, InvoiceAmountState, InvoiceOutcomes, InvoiceStatus, InvokeSdkClientNextAction, LOCALIZABLE_COPY_FIELDS, LabelStyle, LayoutStyle, LeafNode, LedgerEntry, LedgerListParams, LedgerResponse, LimitedOperation, LinkedRoutingConfigRetrieveResponse, ListInvitableRolesParams, ListUsersInLineageParams, LocalizableCopyField, LoginHistoryEntry, LoginHistoryParams, LoginHistoryResponse, LogoShape, LogoSize, MAX_SECTION_LABEL_LENGTH, MAX_SECTION_ORDER, METHOD_SECTIONS, MIN_SECTION_ORDER, MandateListParams, MandateResponse, MandateRevokedResponse, MandateStatus, MandateType, ManualTriggerEventType, MarginQuality, MerchantAccountCreateRequest, MerchantAccountType, MerchantAuditActorInfo, MerchantAuditActorKind, MerchantAuditImpersonationKind, MerchantAuditLogEntry, MerchantAuditLogExportRecord, MerchantAuditLogListParams, MerchantAuditLogListResponse, MerchantAuditSessionInfo, MerchantConnectorWebhookDetailsUpdate, MerchantOverviewResponse, MerchantOverviewStat, MerchantRisk, MerchantRoutingAlgorithm, MethodSectionLabels, MethodSectionOrder, MethodSectionSpec, MethodSurcharge, MinimalRoleInfo, NATIVE_ELEMENT_POSITIONS, NATIVE_PANES_MAX, NATIVE_PANE_CATEGORY_KEYS, NATIVE_PANE_ICON_KEYS, NativeElementPosition, NativePaneCapability, NativePaneMethodInfo, NativePaneNativeElement, NativePaneOpenTarget, NativePaneRail, NativePaneView, NativePaneVisibility, NativePanesCatalogResponse, NativePanesConnectorCatalog, NextActionCall, NextActionDataType, NomupayOppwaCheckoutData, NonPillRadius, OperationLimitOnExceeded, OperationLimitRule, OperationLimitRuleDeleteResponse, OperationLimitRuleListParams, OperationLimitScope, OperationLimitSettings, OperationLimitWindowMode, OperationLimits, OtherNextAction, OverrideAction, OverrideScope, PANES_MAX, PANE_CATEGORY_KEYS, PANE_ICON_KEYS, Pane, PaneCapability, PaneDisplayDefaults, PaneIssue, PaneIssueCode, PaneMethodInfo, PaneNativeElement, PaneOpenTarget, PanePresetCapability, PaneRail, PaneSurcharge, PaneView, PaneVisibility, PanesCatalogResponse, PanesConnectorCatalog, ParentGroup, ParentGroupInfo, PauseSubscriptionRequest, PauseSubscriptionResponse, PaymentAbandonAttemptResponse, PaymentAttemptResponse, PaymentCancelRequest, PaymentCaptureRequest, PaymentClientContextEntry, PaymentConfirmRequest, PaymentConnectorSettlementResponse, PaymentCreateRequest, PaymentErrorDetails, PaymentExperience, PaymentExperienceTypes, PaymentIdFormatConfig, PaymentIdStyle, PaymentIntentStateMetadata, PaymentLayout, PaymentLinkBackgroundImageConfig, PaymentLinkConfigRequest, PaymentLinkListParams, PaymentLinkListResponse, PaymentLinkResponse, PaymentLinkTransactionDetails, PaymentListFilterConstraints, PaymentListFilteredResponse, PaymentListOrder, PaymentListParams, PaymentListResponse, PaymentMethod, PaymentMethodAmountLimits, PaymentMethodCreateRequest, PaymentMethodDeleteResponse, PaymentMethodDisplayInfo, PaymentMethodListInstallmentAmountDetails, PaymentMethodListInstallmentOption, PaymentMethodListInstallmentPlan, PaymentMethodListIntentData, PaymentMethodListParams, PaymentMethodListResponse, PaymentMethodResponse, PaymentMethodType, PaymentMethodUpdateRequest, PaymentRetrieveOptions, PaymentStatusHistoryEntityType, PaymentStatusHistoryEvent, PaymentUpdateRequest, PaymentsDeletePolicyResponse, PaymentsPostSessionTokensNextAction, PaymentsPostSessionTokensRequest, PaymentsPostSessionTokensResponse, PayoutCreateRequest, PayoutExportRecord, PayoutListParams, PayoutListResponse, PayoutResponse, PayoutStatus, PayoutType, PayoutUpdateRequest, PayseproMethod, PayseproMethodsResponse, PendingApprovalErrorDetails, PendingOperation, PendingOperationLimitContext, PendingOperationListParams, PendingOperationListResponse, PendingOperationStatus, PendingOperationSummary, PerMethodSurchargeItem, PeriodExpenseTerm, PermissionScope, PhoneDetails, PhoneOtpRequest, PhoneOtpResponse, PhoneOtpVerifyRequest, PhoneOtpVerifyResponse, PlanSlice, PlatformFeeKind, PlatformFeeOutput, PlatformFeeProgram, PlatformFeeRule, PlatformFeeRuleOutput, PlatformFeeRuleRequest, PollStatus, PollStatusResponse, ProcessorCostBasis, ProcessorCostBucket, ProcessorCostSource, ProcessorSlice, ProfileAcquirerCreateRequest, ProfileAcquirerResponse, ProfileAcquirerUpdateRequest, ProfileCreateRequest, ProfileDefaultRoutingConfig, ProfileDeniedConnectorsResponse, ProfileLogoUploadResponse, ProfilePaymentListFilterConstraints, ProfileUpdateRequest, ProfitCostTerm, ProgramConnectorSelection, ProjectCreateRequest, ProjectStats, ProjectStatsResponse, ProjectUpdateRequest, PublishableKey, RTL_CHECKOUT_LOCALES, RecordCheckoutEventRequest, RecordCheckoutEventResponse, RecoveryCodesResponse, RefundAggregateResponse, RefundCreateRequest, RefundExportRecord, RefundListParams, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest, RegionCountriesResponse, RegionCreateRequest, RegionResponse, RegionSetCountriesRequest, RegionUpdateRequest, Regions, RelayRequest, RelayResponse, RelayStatus, RelayType, RequestExtras, RequestOptions, RequiredFieldInfo, ResetPasswordRequest, ResponsePaymentMethodTypes, ResponsePaymentMethodsEnabled, ResumeSubscriptionRequest, ResumeSubscriptionResponse, RevenueBasis, Risk, RoleConnectorGrant, RoleConnectorGrantEntry, RoutableConnectorChoice, RoutingActivatePayload, RoutingAlgorithmKind, RoutingApproach, RoutingConfigCreateRequest, RoutingConfigDeleteResponse, RoutingConfigHistoryResponse, RoutingConfigResponse, RoutingConfigUpdateRequest, RoutingConfigVersion, RoutingConnectorCap, RoutingConnectorCaps, RoutingDeactivateRequest, RoutingDictionary, RoutingDictionaryRecord, RoutingHistoryParams, RoutingVolumeCounter, RoutingVolumeCounters, RoutingVolumeScope, RoutingVolumeWindow, RuleConnectorSelection, SECTION_ALIASES, STRIPE_FALLBACK_PANE_CATALOG, STRIPE_FALLBACK_PANE_METHODS, STRIPE_NATIVE_PANE_METHODS, SURCHARGE_BORDER_STYLES, SURCHARGE_BORDER_WIDTHS, SURCHARGE_FIGURE_MODES, SURCHARGE_LABEL_MODES, SURCHARGE_POSITIONS, SURCHARGE_SHAPES, SURCHARGE_SIGNS, SURCHARGE_SIZES, SURCHARGE_STYLES, SURCHARGE_WEIGHTS, SalesRevenueTerm, ScopeDrillBase, ScopeDrillSortKey, ScopeDrillTarget, SdkNextActionData, Search, SearchGroupResponse, SearchIndex, SearchStatus, SearchTimeRange, Settlement, SettlementBackfillRequest, SettlementBackfillResponse, SettlementBucket, SettlementCostParams, SettlementCostPeriod, SettlementCostResponse, SettlementLine, SettlementLineBase, SettlementLineListParams, SettlementLineListResponse, SettlementLineWithProcessorCost, SettlementLineWithoutProcessorCost, SettlementPayoutStatus, ShopCreateRequest, ShopFeeConfigEntry, ShopFeeConfigParams, ShopFeeConfigResponse, ShopRisk, ShopSettlementOverview, ShopStats, ShopStatsResponse, ShopUpdateRequest, ShopVisibilityResponse, ShopVisibilityUpdateRequest, SignInRequest, SignUpRequest, SignUpWithMerchantRequest, SizeScale, SpacingScale, StatementAdjustment, StatementAdjustmentCreateRequest, StatementAdjustmentListResponse, StatementGenerateRequest, StatementPayoutUpdateRequest, StaticRoutingAlgorithm, StatsPeriod, StripeConnectAccountRequest, StripeConnectAccountResponse, StripeConnectLinkRequest, StripeConnectLinkResponse, StripeNativePane, StripePaymentMethodDomainResult, StripePaymentMethodDomainStatus, StripePaymentMethodDomainsRegisterRequest, StripePaymentMethodDomainsRegisterResponse, SubscriptionBillingProcessorResponse, SubscriptionBucket, SubscriptionCaveat, SubscriptionChild, SubscriptionDrillBase, SubscriptionDrillSortKey, SubscriptionDrillTarget, SubscriptionEstimateParams, SubscriptionEstimateResponse, SubscriptionExportRecord, SubscriptionFilters, SubscriptionInvoice, SubscriptionInvoiceListParams, SubscriptionInvoiceListResponse, SubscriptionItem, SubscriptionItemPrice, SubscriptionItemType, SubscriptionLineItem, SubscriptionListParams, SubscriptionMovement, SubscriptionPaymentData, SubscriptionPaymentDetails, SubscriptionPaymentLink, SubscriptionPaymentLookupRequest, SubscriptionPaymentLookupResponse, SubscriptionPeriodUnit, SubscriptionProcessors, SubscriptionResponse, SubscriptionStatus, SubscriptionTotals, Subscriptions, SummaryPosition, SupportedPaymentMethod, SurchargeAmountOperator, SurchargeBorderStyle, SurchargeBorderWidth, SurchargeCondition, SurchargeConditionSource, SurchargeCurrencyOperator, SurchargeDetailsResponse, SurchargeDirection, SurchargeFigureMode, SurchargeFigurePart, SurchargeFigurePlan, SurchargeLabelMode, SurchargeMetadataOperator, SurchargeOperator, SurchargePosition, SurchargeResponse, SurchargeRuleRequest, SurchargeRuleResponse, SurchargeShape, SurchargeSign, SurchargeSize, SurchargeStyle, SurchargeWeight, SurfaceStyle, SwitchMerchantRequest, SwitchProfileRequest, TermBearer, Terminate2faQueryParams, ThemeBrowserLanguage, ThemeCheckoutChannel, ThemeChoice, ThemeCondition, ThemeDeviceClass, ThemeEnumCondition, ThemeIfStatement, ThemeMetadataCondition, ThemeNumberCondition, ThemeTrafficSource, ThreeDSDecision, ThreeDsRuleExecuteRequest, ThreeDsRuleResponse, TierSummary, TimeToPayBucket, TimeToPayBucketLabel, TimeToPayStats, TokenPurpose, TokenResponse, TopupRequest, TopupResponse, TotpResponse, TransactionExportParams, TransactionExportRecord, TransactionType, TrustBadge, UNKNOWN_SECTION_ORDER, UpdateMetadataRequest, UpdateOperationLimitSettingsRequest, UpdateRoleConnectorGrantParams, UpdateSubscriptionRequest, UpdateUserDetailsRequest, UpdateUserRoleRequest, UpsertOperationLimitRuleRequest, UpsertRefundLimitRuleRequest, UpsertSettlementAdjustmentLimitRuleRequest, UpsertSettlementPayoutLimitRuleRequest, UserInLineage, UserInvitation, UserResponse, UserSessionEntry, UserSessionListResponse, UserSessionRevokeResponse, VaultCheck, VaultCheckId, VaultCheckStatus, VaultCollectSessionResponse, VaultPaymentMethodRequest, VaultPaymentMethodResponse, VaultRouteApplyVerification, VaultRouteChange, VaultRouteChangeKind, VaultRouteFieldChange, VaultRouteIds, VaultRoutePurpose, VaultRouteWarning, VaultRouteWarningCode, VaultRoutesApplyRequest, VaultRoutesApplyResponse, VaultRoutesFingerprint, VaultRoutesPreviewRequest, VaultRoutesPreviewResponse, VaultVerificationResponse, VaultVerifyRequest, VerifyTotpRequest, WCAG_AA_TEXT, WCAG_AA_UI, WebhookDeliveryAttempt, WebhookDeliveryTerminalReason, WebhookDetails, WebhookEvent, WebhookRefundStatus, WebhookRegistrationEnvironment, Webhooks, airwallexCardLayout, airwallexCardLayoutIsCoherent, airwallexCellWeight, airwallexFieldFontPx, airwallexFieldWeightValue, allOf, anyOf, applyBrandingVariables, asAirwallexCardPreset, buildBrandingExport, buttonPadValue, canonicalSectionId, checkoutCopy, checkoutLocaleDir, cloneBranding, cloneCustomField, cloneNativePane, clonePane, compareSections, contrastRatio, copyTranslationsKey, customFieldContextFromMetadata, customFieldIsTextLike, customFieldOperatorTakesValue, customFieldOptionLabel, customFieldText, decodeBadges, decodeBranding, decodeCustomFields, decodeMethodSectionLabels, decodeMethodSectionOrder, decodeNativePanes, decodePanes, defaultBranding, defaultCustomFieldVisibility, defaultMethodSectionOrder, defaultNativePane, defaultOperatorForSource, defaultPane, emptyPaneCatalog, encodeBadges, encodeBranding, encodeCustomFields, encodeMethodSectionLabels, encodeMethodSectionOrder, encodeNativePanes, encodePanes, evaluateCustomFieldCondition, evaluateCustomFieldVisibility, feeProgram, focusedCheckoutUrl, fontStack, fontWeightValue, inputPadValue, isCheckboxChecked, isDarkSurface, isHexColor, knownSectionLabelKey, leaf, logoDimensions, nativePaneMethodInfo, offerablePaneMethods, paneCatalogFor, paneDisplayDefaults, paneMethodInfo, paneRailAllowed, paneViewVisibility, parseCustomFieldsLoose, parseImportedBranding, programToTree, radiusValue, readableInkOn, resolveAirwallexCardPreset, resolveAirwallexLabelStyle, ruleMatchToTree, sanitizeCustomCss, sectionLabel, sectionOrderOf, shadowFor, surchargeFigurePlan, surchargeShowsLabel, surchargeStyleDrawsAShape, surchargeWordFor, surfacePadValue, validSectionOrder, validatePanes, verticalGapValue, visibleCustomFields } from './index.js';
3
3
 
4
4
  /**
5
5
  * Internal-only type surface. Exposed via `'@delopay/sdk/internal'` only.
@@ -1081,6 +1081,490 @@ interface AdminAuditLogExportRecord {
1081
1081
  entity_id: string | null;
1082
1082
  entity_name: string | null;
1083
1083
  }
1084
+ /**
1085
+ * Which environment's rows to return.
1086
+ *
1087
+ * **`'all'` is never a default.** The page opens on `DEFAULT_ENV_FILTER` —
1088
+ * live on production, test on the sandbox tenant — and sends the value
1089
+ * explicitly. Omitting the field is read by the backend as `'live'`, not as
1090
+ * `'all'`: a caller that forgot to say gets the safer of the two, and a test
1091
+ * payment never appears in a view that reads as live.
1092
+ */
1093
+ type DiagnosticEnvironment = 'all' | 'live' | 'test';
1094
+ /** The window every tab reads over. ISO 8601, inclusive at both ends. */
1095
+ interface DiagnosticWindow {
1096
+ start_time: string;
1097
+ end_time: string;
1098
+ }
1099
+ /** One page of a list. The console pages at 20; the backend caps `limit` at 200. */
1100
+ interface DiagnosticPage {
1101
+ limit?: number;
1102
+ offset?: number;
1103
+ }
1104
+ /**
1105
+ * A paginated answer.
1106
+ *
1107
+ * `hidden_by_environment` is what lets the environment strip say "612 test-mode
1108
+ * rows are hidden". An operator who cannot see how much is being withheld
1109
+ * cannot tell an empty tab from a filtered one.
1110
+ */
1111
+ interface DiagnosticList<T> {
1112
+ rows: T[];
1113
+ total_count: number;
1114
+ hidden_by_environment: number;
1115
+ }
1116
+ /**
1117
+ * Why a panel has no data, when the reason is not "there is none".
1118
+ *
1119
+ * The distinction this type exists for: **an unreachable log store must never
1120
+ * render as "no errors found"**. Loki being down and Loki answering zero lines
1121
+ * are opposite facts during an incident, and the second tells an operator to
1122
+ * stop looking.
1123
+ */
1124
+ interface DiagnosticSourceUnavailable {
1125
+ /** `loki`, `alertmanager`, `analytics`, or a writer that is switched off. */
1126
+ source: string;
1127
+ /** The endpoint that did not answer, so it can be reached directly. */
1128
+ endpoint: string | null;
1129
+ reason: string;
1130
+ last_success: string | null;
1131
+ /** Where to go instead — Grafana, when one is configured. */
1132
+ fallback_url: string | null;
1133
+ }
1134
+ /**
1135
+ * A panel that either has data or says why it does not.
1136
+ *
1137
+ * Deliberately not `T | null`: a caller cannot tell an absent value from an
1138
+ * absent source by looking at a nullable, and collapsing the two is how a dead
1139
+ * log store comes to read as a quiet one.
1140
+ */
1141
+ type DiagnosticPanel<T> = {
1142
+ status: 'available';
1143
+ data: T;
1144
+ } | {
1145
+ status: 'unavailable';
1146
+ data: DiagnosticSourceUnavailable;
1147
+ };
1148
+ /** Filters shared by every list request. */
1149
+ interface DiagnosticListParamsBase {
1150
+ window?: DiagnosticWindow;
1151
+ environment?: DiagnosticEnvironment;
1152
+ page?: DiagnosticPage;
1153
+ }
1154
+ interface DiagnosticIncomingWebhookListParams extends DiagnosticListParamsBase {
1155
+ merchant_id?: string;
1156
+ profile_id?: string;
1157
+ connector?: string[];
1158
+ /** `applied` | `ignored` | `duplicate` | `rejected` | `dropped` | `error`. */
1159
+ outcome?: string[];
1160
+ provider_event_type?: string;
1161
+ mapped_event_type?: string;
1162
+ /** Any id the operator pasted, matched against every column it could be. */
1163
+ object_id?: string;
1164
+ request_id?: string;
1165
+ /**
1166
+ * `false` selects rows that failed verification **or** never reached it.
1167
+ * "Show me what did not verify" must include the deliveries that failed
1168
+ * before verification was attempted.
1169
+ */
1170
+ source_verified?: boolean;
1171
+ }
1172
+ interface DiagnosticIncomingWebhook {
1173
+ event_id: string;
1174
+ received_at: string;
1175
+ merchant_id: string;
1176
+ profile_id: string | null;
1177
+ merchant_connector_id: string | null;
1178
+ connector: string;
1179
+ request_id: string;
1180
+ /**
1181
+ * Their event string. `null` means it could not be read off the body, which
1182
+ * is an answer rather than a failure — there is no connector method that
1183
+ * hands back a provider's own event name.
1184
+ */
1185
+ provider_event_type: string | null;
1186
+ provider_event_id: string | null;
1187
+ /** Ours. `null` is an unmapped event type, which the page tints amber. */
1188
+ mapped_event_type: string | null;
1189
+ object_type: string | null;
1190
+ object_ref_id: string | null;
1191
+ resolved_payment_id: string | null;
1192
+ resolved_attempt_id: string | null;
1193
+ /**
1194
+ * `null` means verification was never attempted — a different fact from
1195
+ * `false`, which means it was attempted and did not match.
1196
+ */
1197
+ source_verified: boolean | null;
1198
+ outcome: string;
1199
+ outcome_detail: string | null;
1200
+ response_status: number;
1201
+ latency_ms: number;
1202
+ /**
1203
+ * `true` only when the row is positively marked test. The TEST badge gates on
1204
+ * this and never on the absence of it.
1205
+ */
1206
+ test_mode: boolean | null;
1207
+ }
1208
+ /** One delivery in full — what the row drawer draws. */
1209
+ interface DiagnosticIncomingWebhookDetail extends DiagnosticIncomingWebhook {
1210
+ /** Masked. Credential headers were replaced before storage; signatures were not. */
1211
+ headers: Record<string, unknown>;
1212
+ /** Masked on read as well as encrypted at rest. */
1213
+ body: Record<string, unknown>;
1214
+ /**
1215
+ * Which secret verified, in which environment, and whether the entity
1216
+ * matched. Never the secret itself — the fingerprint is a digest.
1217
+ */
1218
+ verification_detail: Record<string, unknown> | null;
1219
+ /**
1220
+ * The router log lines for this delivery. `null` when the log store is
1221
+ * unreachable, which the drawer must render as *unavailable* rather than as
1222
+ * "the router logged nothing".
1223
+ */
1224
+ router_logs: DiagnosticRouterLog[] | null;
1225
+ router_logs_unavailable: DiagnosticSourceUnavailable | null;
1226
+ }
1227
+ interface DiagnosticConnectorCallListParams extends DiagnosticListParamsBase {
1228
+ merchant_id?: string;
1229
+ connector?: string[];
1230
+ flow?: string[];
1231
+ payment_id?: string;
1232
+ attempt_id?: string;
1233
+ request_id?: string;
1234
+ /** Inclusive. `400` is "everything that failed". */
1235
+ status_code_min?: number;
1236
+ /** Exclusive, so `[400, 500)` selects client errors alone. */
1237
+ status_code_max_exclusive?: number;
1238
+ min_latency_ms?: number;
1239
+ }
1240
+ interface DiagnosticConnectorCall {
1241
+ id: string;
1242
+ started_at: string;
1243
+ merchant_id: string;
1244
+ connector: string;
1245
+ flow: string;
1246
+ method: string;
1247
+ url: string;
1248
+ status_code: number;
1249
+ latency_ms: number;
1250
+ payment_id: string | null;
1251
+ attempt_id: string | null;
1252
+ refund_id: string | null;
1253
+ dispute_id: string | null;
1254
+ request_id: string;
1255
+ test_mode: boolean | null;
1256
+ /**
1257
+ * Present on the single-call read only, and masked. List rows omit them so a
1258
+ * page of twenty does not ship twenty payloads the table never renders.
1259
+ */
1260
+ request?: unknown;
1261
+ response?: unknown;
1262
+ error?: unknown;
1263
+ }
1264
+ interface DiagnosticRouterLogParams {
1265
+ window?: DiagnosticWindow;
1266
+ page?: DiagnosticPage;
1267
+ /** `router`, `scheduler`, `drainer`. */
1268
+ service?: string[];
1269
+ hostname?: string[];
1270
+ level?: string[];
1271
+ flow?: string;
1272
+ merchant_id?: string;
1273
+ request_id?: string;
1274
+ contains?: string;
1275
+ collapse_duplicates?: boolean;
1276
+ }
1277
+ interface DiagnosticRouterLog {
1278
+ time: string;
1279
+ level: string;
1280
+ service: string;
1281
+ hostname: string | null;
1282
+ flow: string | null;
1283
+ merchant_id: string | null;
1284
+ request_id: string | null;
1285
+ message: string;
1286
+ /**
1287
+ * How many identical messages this row stands for. `null` means one line —
1288
+ * never `1`, which the page would render as a count badge on every row.
1289
+ */
1290
+ repeat: number | null;
1291
+ }
1292
+ interface DiagnosticPaymentListParams extends DiagnosticListParamsBase {
1293
+ merchant_id?: string;
1294
+ profile_id?: string;
1295
+ connector?: string[];
1296
+ status?: string[];
1297
+ error_code?: string;
1298
+ /** Non-terminal for at least this long. Omit to show failures alone. */
1299
+ stuck_minutes?: number;
1300
+ }
1301
+ interface DiagnosticPayment {
1302
+ payment_id: string;
1303
+ merchant_id: string;
1304
+ profile_id: string | null;
1305
+ merchant_name: string | null;
1306
+ profile_name: string | null;
1307
+ connector: string | null;
1308
+ payment_method: string | null;
1309
+ payment_method_type: string | null;
1310
+ card_network: string | null;
1311
+ card_last4: string | null;
1312
+ amount: number;
1313
+ amount_captured: number | null;
1314
+ currency: string | null;
1315
+ status: string;
1316
+ attempt_count: number;
1317
+ error_code: string | null;
1318
+ error_message: string | null;
1319
+ /**
1320
+ * `null` when no `gateway_status_map` row maps the connector's code, which
1321
+ * the page renders amber: the merchant saw a raw processor string.
1322
+ */
1323
+ unified_code: string | null;
1324
+ unified_message: string | null;
1325
+ created_at: string;
1326
+ modified_at: string;
1327
+ age_seconds: number;
1328
+ test_mode: boolean | null;
1329
+ }
1330
+ interface DiagnosticErrorCodeCount {
1331
+ code: string;
1332
+ count: number;
1333
+ /**
1334
+ * The same code over the previous window of equal length. `null` renders as
1335
+ * "new" — the code did not appear before, which zero would misreport as a
1336
+ * measured fall to nothing.
1337
+ */
1338
+ previous_count: number | null;
1339
+ unmapped: boolean;
1340
+ }
1341
+ /** Which diagnostic writers are recording on this deployment. */
1342
+ interface DiagnosticCaptureState {
1343
+ incoming_webhooks: boolean;
1344
+ connector_calls: boolean;
1345
+ router_logs: boolean;
1346
+ }
1347
+ interface DiagnosticOutgoingWebhookListParams extends DiagnosticListParamsBase {
1348
+ merchant_id?: string;
1349
+ profile_id?: string;
1350
+ object_id?: string;
1351
+ event_type?: string[];
1352
+ delivery?: 'delivered' | 'retrying' | 'stopped';
1353
+ }
1354
+ interface DiagnosticOutgoingAttempt {
1355
+ event_id: string;
1356
+ created_at: string;
1357
+ delivered: boolean | null;
1358
+ /** `events` records whether an attempt was notified, not what the shop answered. */
1359
+ response_status: number | null;
1360
+ }
1361
+ interface DiagnosticOutgoingWebhook {
1362
+ event_id: string;
1363
+ initial_attempt_id: string | null;
1364
+ created_at: string;
1365
+ merchant_id: string | null;
1366
+ profile_id: string | null;
1367
+ event_type: string;
1368
+ object_id: string;
1369
+ object_type: string;
1370
+ /** Not carried on the event row — the URL lives on the profile and is re-read per attempt. */
1371
+ endpoint: string | null;
1372
+ /** One entry per attempt, oldest first — the row of squares the page draws. */
1373
+ attempts: DiagnosticOutgoingAttempt[];
1374
+ delivered: boolean | null;
1375
+ delivery_terminal_reason: string | null;
1376
+ test_mode: boolean | null;
1377
+ }
1378
+ interface DiagnosticOutgoingWebhookSummary {
1379
+ delivered_count: number;
1380
+ total_count: number;
1381
+ retrying_count: number;
1382
+ stopped_count: number;
1383
+ worst_endpoint: string | null;
1384
+ worst_endpoint_failures: number;
1385
+ }
1386
+ interface DiagnosticQueueListParams {
1387
+ page?: DiagnosticPage;
1388
+ name?: string[];
1389
+ runner?: string[];
1390
+ status?: string[];
1391
+ overdue_only?: boolean;
1392
+ tracking_id?: string;
1393
+ }
1394
+ interface DiagnosticQueueItem {
1395
+ id: string;
1396
+ name: string | null;
1397
+ runner: string | null;
1398
+ tracking_id: string;
1399
+ retry_count: number;
1400
+ status: string;
1401
+ business_status: string;
1402
+ schedule_time: string;
1403
+ /** Negative when overdue — the case the page tints. */
1404
+ due_in_seconds: number;
1405
+ created_at: string;
1406
+ }
1407
+ interface DiagnosticQueueSummary {
1408
+ pending_count: number;
1409
+ processing_count: number;
1410
+ retrying_count: number;
1411
+ finished_in_window: number;
1412
+ oldest_overdue_seconds: number | null;
1413
+ /** Approvals waiting on a person — a different queue with a different remedy. */
1414
+ pending_approvals: number;
1415
+ }
1416
+ interface DiagnosticChangeListParams {
1417
+ window?: DiagnosticWindow;
1418
+ page?: DiagnosticPage;
1419
+ merchant_id?: string;
1420
+ kind?: string[];
1421
+ }
1422
+ interface DiagnosticChange {
1423
+ id: string;
1424
+ occurred_at: string;
1425
+ /** `connector` | `routing` | `fees` | `access` | `config`. */
1426
+ kind: string;
1427
+ summary: string;
1428
+ /** `null` for a change no person made — a scheduled job. A fact, not a gap. */
1429
+ actor: string | null;
1430
+ merchant_id: string | null;
1431
+ profile_id: string | null;
1432
+ }
1433
+ type DiagnosticHealthState = 'healthy' | 'degraded' | 'failing' | 'unknown';
1434
+ interface DiagnosticHealthTile {
1435
+ subject: string;
1436
+ state: DiagnosticHealthState;
1437
+ /** Already formatted — "4/4", "61.3%", "Stalled". The unit differs per tile. */
1438
+ value: string;
1439
+ delta: string | null;
1440
+ note: string | null;
1441
+ spark: number[];
1442
+ }
1443
+ type DiagnosticAttentionSeverity = 'critical' | 'warning' | 'watch';
1444
+ interface DiagnosticAttentionItem {
1445
+ id: string;
1446
+ severity: DiagnosticAttentionSeverity;
1447
+ title: string;
1448
+ detail: string;
1449
+ scope: string;
1450
+ count: number;
1451
+ count_unit: string;
1452
+ amount_at_risk: number | null;
1453
+ currency: string | null;
1454
+ shops_touched: number;
1455
+ since_seconds: number | null;
1456
+ /** The filter set Investigate applies. Opaque to the backend. */
1457
+ investigate: Record<string, unknown>;
1458
+ }
1459
+ interface DiagnosticAttentionBoard {
1460
+ items: DiagnosticAttentionItem[];
1461
+ computed_at: string;
1462
+ /**
1463
+ * What was checked, so an empty board reads as a verdict rather than as a
1464
+ * panel that failed to load. A check that could not run is absent from this
1465
+ * list rather than silently counted as clear.
1466
+ */
1467
+ checks_run: string[];
1468
+ vitals: DiagnosticHealthTile[];
1469
+ }
1470
+ interface DiagnosticAttentionParams {
1471
+ window?: DiagnosticWindow;
1472
+ environment?: DiagnosticEnvironment;
1473
+ }
1474
+ interface DiagnosticFiringAlert {
1475
+ name: string;
1476
+ /** From the alert's own labels. This service does not re-rank Alertmanager. */
1477
+ severity: string;
1478
+ summary: string;
1479
+ firing_since: string;
1480
+ labels: Record<string, unknown>;
1481
+ }
1482
+ interface DiagnosticReplicaHealth {
1483
+ hostname: string;
1484
+ version: string | null;
1485
+ build: string | null;
1486
+ state: DiagnosticHealthState;
1487
+ dependencies: [string, string][];
1488
+ }
1489
+ interface DiagnosticDependencyCard {
1490
+ subject: string;
1491
+ value: string;
1492
+ unit: string;
1493
+ fraction: number | null;
1494
+ state: DiagnosticHealthState;
1495
+ note: string | null;
1496
+ }
1497
+ interface DiagnosticInfrastructure {
1498
+ replicas: DiagnosticReplicaHealth[];
1499
+ /** A finding in its own right: one replica answering differently explains a lot. */
1500
+ build_mismatch: boolean;
1501
+ dependencies: DiagnosticDependencyCard[];
1502
+ }
1503
+ interface DiagnosticNearMatch {
1504
+ id: string;
1505
+ kind: string;
1506
+ description: string;
1507
+ }
1508
+ interface DiagnosticEmptyReason {
1509
+ /** `outside_window` | `test_mode` | `typo`. */
1510
+ code: string;
1511
+ /** The one-click fix. `null` for `typo`, which has none. */
1512
+ fix: Record<string, unknown> | null;
1513
+ }
1514
+ /**
1515
+ * What the search box decided a pasted id is.
1516
+ *
1517
+ * `kind` says what it looks like; `found` says whether a row exists. Different
1518
+ * answers, drawn differently: a well-shaped id that matches nothing gets the
1519
+ * three reasons and their fixes, never an empty table.
1520
+ */
1521
+ interface DiagnosticResolvedId {
1522
+ id: string;
1523
+ kind: string | null;
1524
+ found: boolean;
1525
+ near_matches: DiagnosticNearMatch[];
1526
+ reasons: DiagnosticEmptyReason[];
1527
+ }
1528
+ interface DiagnosticTraceSpan {
1529
+ source: string;
1530
+ label: string;
1531
+ started_at: string;
1532
+ /** `null` for a span that has not finished — an enqueued job still unpicked. */
1533
+ duration_ms: number | null;
1534
+ depth: number;
1535
+ failed: boolean;
1536
+ detail: Record<string, unknown> | null;
1537
+ }
1538
+ interface DiagnosticTrace {
1539
+ resolved: DiagnosticResolvedId;
1540
+ payment_id: string | null;
1541
+ spans: DiagnosticTraceSpan[];
1542
+ /**
1543
+ * Sources that could not be read. A waterfall with an unexplained gap reads
1544
+ * as a period when nothing happened, which is the wrong conclusion.
1545
+ */
1546
+ unavailable_sources: DiagnosticSourceUnavailable[];
1547
+ }
1548
+ /**
1549
+ * Unmask one field of one object.
1550
+ *
1551
+ * `reason` is required and stored verbatim on the audit row: an unmask nobody
1552
+ * can review afterwards is a timestamp, not a record.
1553
+ */
1554
+ interface DiagnosticRevealRequest {
1555
+ /** `incoming_webhook` | `connector_call`. */
1556
+ object_type: string;
1557
+ object_id: string;
1558
+ /** A JSON pointer into the stored document, e.g. `/data/object/customer`. */
1559
+ field_path: string;
1560
+ reason: string;
1561
+ }
1562
+ interface DiagnosticRevealResponse {
1563
+ field_path: string;
1564
+ value: unknown;
1565
+ /** The audit row this reveal wrote. */
1566
+ audit_log_id: string;
1567
+ }
1084
1568
 
1085
1569
  declare class Admin {
1086
1570
  private readonly request;
@@ -1519,6 +2003,182 @@ declare class ConnectorRestrictions {
1519
2003
  }>;
1520
2004
  }
1521
2005
 
2006
+ /**
2007
+ * The diagnostic console (todos#122) — everything the router did, without a
2008
+ * shell.
2009
+ *
2010
+ * Cross-merchant by construction: one call answers across every merchant on the
2011
+ * deployment. The backend gates that on the `Diagnostic` permission, which is
2012
+ * granted to DeloPay's internal staff roles alone, which is why this lives in
2013
+ * `@delopay/sdk/internal` and never on the merchant-facing client.
2014
+ *
2015
+ * ## Two shapes worth knowing before you call anything
2016
+ *
2017
+ * **Lists answer {@link DiagnosticList}**, which carries `hidden_by_environment`
2018
+ * beside the rows. That number is what lets a UI say "612 test-mode rows are
2019
+ * hidden" rather than leaving an operator unable to tell an empty tab from a
2020
+ * filtered one.
2021
+ *
2022
+ * **Two reads answer {@link DiagnosticPanel} instead** — {@link routerLogs} and
2023
+ * {@link alerts} — because their sources can be down independently of the
2024
+ * router. A panel is `available` with data or `unavailable` with a reason, and
2025
+ * that distinction is the whole point: **an unreachable log store must never be
2026
+ * rendered as "no errors found"**, and a `T[]` gives a caller no way to tell the
2027
+ * two apart.
2028
+ *
2029
+ * ## The environment filter
2030
+ *
2031
+ * Every list takes `environment`. Omitting it is read by the backend as
2032
+ * `'live'`, never as `'all'` — a caller that forgot to say gets the safer of the
2033
+ * two, and a test payment never appears in a view that reads as live.
2034
+ */
2035
+ declare class Diagnostic {
2036
+ private readonly request;
2037
+ constructor(request: RequestFn);
2038
+ /**
2039
+ * The ranked attention board — the page's landing state, with nothing typed.
2040
+ *
2041
+ * Always carries `checks_run` and `vitals`, so an empty `items` reads as
2042
+ * "checked these things at 14:02, all clear" rather than as a panel that
2043
+ * failed to load. A check that could not run is **absent** from `checks_run`
2044
+ * rather than silently counted as clear.
2045
+ */
2046
+ attention(body?: DiagnosticAttentionParams): Promise<DiagnosticAttentionBoard>;
2047
+ /**
2048
+ * Provider webhooks received, across every merchant.
2049
+ *
2050
+ * `source_verified: false` selects rows that failed verification **or** never
2051
+ * reached it — the deliveries that failed before verification was attempted
2052
+ * are exactly the ones an operator opens this tab for.
2053
+ */
2054
+ listIncomingWebhooks(body?: DiagnosticIncomingWebhookListParams): Promise<DiagnosticList<DiagnosticIncomingWebhook>>;
2055
+ /**
2056
+ * One delivery in full: masked headers and body, the verification verdict,
2057
+ * and the router log lines for its request id.
2058
+ *
2059
+ * `router_logs` is `null` — not `[]` — when the log store is unreachable, and
2060
+ * `router_logs_unavailable` then says why. Render the first as *unavailable*,
2061
+ * never as "the router logged nothing".
2062
+ */
2063
+ getIncomingWebhook(eventId: string): Promise<DiagnosticIncomingWebhookDetail>;
2064
+ /** Shop webhooks sent, across every merchant, with each event's attempts folded in. */
2065
+ listOutgoingWebhooks(body?: DiagnosticOutgoingWebhookListParams): Promise<DiagnosticList<DiagnosticOutgoingWebhook>>;
2066
+ /**
2067
+ * The four tiles above the shop-webhooks table.
2068
+ *
2069
+ * Counted under the same window and environment as the table but **without**
2070
+ * its delivery filter — the tiles say what the window holds, and applying the
2071
+ * filter would make every tile agree with whichever one is selected.
2072
+ */
2073
+ outgoingWebhookSummary(body?: DiagnosticOutgoingWebhookListParams): Promise<DiagnosticOutgoingWebhookSummary>;
2074
+ /**
2075
+ * Connector calls the router made.
2076
+ *
2077
+ * List rows carry no payload. Fetch one with {@link getConnectorCall} for the
2078
+ * masked request and response.
2079
+ */
2080
+ listConnectorCalls(body?: DiagnosticConnectorCallListParams): Promise<DiagnosticList<DiagnosticConnectorCall>>;
2081
+ /** One connector call, with its masked payloads. */
2082
+ getConnectorCall(id: string): Promise<DiagnosticConnectorCall>;
2083
+ /**
2084
+ * Router logs, proxied from the deployment's log store.
2085
+ *
2086
+ * Answers a {@link DiagnosticPanel}. Check `status` before reading `data`:
2087
+ * `'unavailable'` means the store did not answer, which is the opposite of
2088
+ * "there were no errors" and must be rendered as such.
2089
+ */
2090
+ routerLogs(body?: DiagnosticRouterLogParams): Promise<DiagnosticPanel<DiagnosticList<DiagnosticRouterLog>>>;
2091
+ /**
2092
+ * Payments that are stuck or failed.
2093
+ *
2094
+ * Stuck means non-terminal for longer than `stuck_minutes`; failed means it
2095
+ * ended without succeeding inside the window. Omitting `stuck_minutes` turns
2096
+ * the first arm off rather than widening it.
2097
+ */
2098
+ listPayments(body?: DiagnosticPaymentListParams): Promise<DiagnosticList<DiagnosticPayment>>;
2099
+ /**
2100
+ * The error codes in this window, each with its count in the previous window
2101
+ * of equal length.
2102
+ *
2103
+ * `previous_count: null` means the code did not appear before — render it as
2104
+ * "new" rather than as a fall to zero.
2105
+ */
2106
+ paymentErrorCodes(body?: DiagnosticPaymentListParams): Promise<DiagnosticErrorCodeCount[]>;
2107
+ /**
2108
+ * Everything about one payment, in one call: the payment, its attempts, its
2109
+ * status history, its client context, and what it produced — connector calls,
2110
+ * webhooks both ways, and scheduler jobs.
2111
+ *
2112
+ * Read `diagnostic_capture` before rendering an empty section. A payment with
2113
+ * no connector calls and a deployment that never recorded any are different
2114
+ * facts, and the second must not read as the first.
2115
+ *
2116
+ * Typed loosely on purpose: the payment, attempts, status-history and
2117
+ * client-context halves are the merchant-facing shapes this package already
2118
+ * exports, and re-declaring them here would give consumers two names for one
2119
+ * thing that could then drift apart.
2120
+ */
2121
+ getPayment(paymentId: string): Promise<Record<string, unknown>>;
2122
+ /** Scheduler tasks, most overdue first. */
2123
+ listQueues(body?: DiagnosticQueueListParams): Promise<DiagnosticList<DiagnosticQueueItem>>;
2124
+ /**
2125
+ * The four tiles above the queues table, plus the approvals count.
2126
+ *
2127
+ * `pending_approvals` is a **different** queue from `pending_count`: a stalled
2128
+ * scheduler needs a consumer, a full approvals queue needs a person, and
2129
+ * folding them into one number would point an operator at the wrong fix.
2130
+ */
2131
+ queueSummary(): Promise<DiagnosticQueueSummary>;
2132
+ /**
2133
+ * Replicas and their dependencies.
2134
+ *
2135
+ * `build_mismatch` is computed server-side rather than left for a caller to
2136
+ * notice by comparing strings: one replica in four answering differently
2137
+ * explains a whole class of "it only fails sometimes" incident, and is
2138
+ * invisible unless something says it out loud.
2139
+ */
2140
+ infrastructure(): Promise<DiagnosticInfrastructure>;
2141
+ /**
2142
+ * Firing alerts, proxied from Alertmanager.
2143
+ *
2144
+ * Answers a {@link DiagnosticPanel} for the same reason {@link routerLogs}
2145
+ * does: a strip that renders empty because Alertmanager is down says "nothing
2146
+ * is firing", which is the most dangerous sentence this page could print.
2147
+ */
2148
+ alerts(): Promise<DiagnosticPanel<DiagnosticFiringAlert[]>>;
2149
+ /** Config edits and admin actions inside the window. */
2150
+ listChanges(body?: DiagnosticChangeListParams): Promise<DiagnosticList<DiagnosticChange>>;
2151
+ /**
2152
+ * What a pasted id is, and whether we hold it.
2153
+ *
2154
+ * `kind` and `found` are separate answers on purpose. A well-shaped id that
2155
+ * matches nothing comes back `found: false` with the three `reasons` and
2156
+ * their fixes — render that, never an empty table, which reads as "no such
2157
+ * payment" when the real answer is "outside the window" or "it is a test
2158
+ * payment".
2159
+ */
2160
+ resolveId(id: string): Promise<DiagnosticResolvedId>;
2161
+ /**
2162
+ * One id across every source, as an ordered span list.
2163
+ *
2164
+ * Accepts a payment, attempt, event or request id. Sources that could not be
2165
+ * read are named in `unavailable_sources` rather than left out: a waterfall
2166
+ * with an unexplained gap reads as a period when nothing happened.
2167
+ */
2168
+ trace(id: string): Promise<DiagnosticTrace>;
2169
+ /**
2170
+ * Unmask one field of one object.
2171
+ *
2172
+ * **Writes an audit row** naming the operator, the field and the object,
2173
+ * before the value is returned — a reveal that could not be audited does not
2174
+ * happen. Needs a dashboard JWT holding `DiagnosticReveal`; an admin API key
2175
+ * cannot call it, because an API key names no person.
2176
+ *
2177
+ * `reason` is required and is stored verbatim.
2178
+ */
2179
+ reveal(body: DiagnosticRevealRequest): Promise<DiagnosticRevealResponse>;
2180
+ }
2181
+
1522
2182
  declare class Gsm {
1523
2183
  private readonly request;
1524
2184
  constructor(request: RequestFn);
@@ -1747,6 +2407,12 @@ declare class DelopayInternal extends Delopay {
1747
2407
  readonly connectorRestrictions: ConnectorRestrictions;
1748
2408
  /** Per-shop / per-project connector allow-deny rules (routing-time). */
1749
2409
  readonly connectorRestrictionRules: ConnectorRestrictionRules;
2410
+ /**
2411
+ * The diagnostic console — everything the router did, without a shell
2412
+ * (todos#122). Cross-merchant, and gated on the staff-only `Diagnostic`
2413
+ * permission.
2414
+ */
2415
+ readonly diagnostic: Diagnostic;
1750
2416
  /** GSM (Gateway Status Mapping) routing rules. */
1751
2417
  readonly gsm: Gsm;
1752
2418
  /** Admin-only ledger credits/debits against a merchant's balance. */
@@ -1756,4 +2422,4 @@ declare class DelopayInternal extends Delopay {
1756
2422
  constructor(...args: ConstructorParameters<typeof Delopay>);
1757
2423
  }
1758
2424
 
1759
- export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminAttachVaultRequest, type AdminAttachVaultResponse, type AdminAttemptProcessorCost, type AdminAttemptProcessorCostBase, type AdminAttemptProcessorCostKnown, type AdminAttemptProcessorCostUnrecorded, type AdminAttemptProcessorCostWithoutFigure, type AdminAuditLogExportRecord, type AdminCreateLedgerRequest, type AdminCreateLedgerResponse, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminLedgerAnalyticsRequest, type AdminLedgerAnalyticsResponse, AdminPortal, type AdminResetLedgerRequest, type AdminResetLedgerResponse, type AdminSetFreeRequest, type AdminSetHardFloorRequest, type AdminSetTrustedRequest, type AdminShopVaultState, type AdminSignInRequest, type AdminSuspendRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUnsuspendRequest, type AdminUpdateUserRequest, type AdminUserResponse, type AdminVaultEntitlementState, type AdminVaultEnvironmentState, type AdminVaultStateResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, type AuditActorInfo, type AuditActorKind, type AuditImpersonationKind, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, type AuditSessionInfo, AuthResponse, type AuthorizeResponse, BillingProfileResponse, BinaryExportOptions, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, ClientAnalyticsRequest, Configs, type ConnectorRestrictionResponse, type ConnectorRestrictionRuleAction, type ConnectorRestrictionRuleResponse, ConnectorRestrictionRules, type ConnectorRestrictionScope, ConnectorRestrictions, type ConnectorVisibility, type CreateConnectorRestrictionRuleRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, DeviceDrillRequest, DevicesAnalyticsResponse, DrillResponse, ExportEnvelope, ExportOptions, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, FeeStatementDetail, type FeeTotalBound, GeoAnalyticsResponse, GeoDrillRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, JsonExportOptions, type LastAdministratorRefusal, type LastAdministratorRoute, type LedgerDayBucket, type LedgerMerchant, type ListConnectorRestrictionRulesQuery, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentAttemptsListResponse, type PaymentAutoCloseConfigResponse, type PaymentAutoCloseOverrideResponse, PaymentClientContextListResponse, type PaymentPeriodStats, PaymentResponse, PaymentStatusHistoryResponse, PaymentsDeleteResponse, type PlatformAnalyticsResponse, PlatformBilling, PlatformFeeRuleInput, PlatformFeeRuleRecord, PlatformFees, ProfileResponse, ProjectResponse, type PromoConfigResponse, RefundListResponse, RequestFn, ScopeDrillRequest, SettlementCurrentParams, SettlementCurrentResponse, SettlementOverviewParams, SettlementOverviewResponse, SettlementStatementListParams, SettlementStatementListResponse, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, StatementPdfParams, SubscriptionAnalyticsRequest, SubscriptionAnalyticsResponse, SubscriptionDrillRequest, type TransactionDeleteConfigResponse, type TransactionDeleteOverrideResponse, type UpdateConnectorRestrictionRuleRequest, type UpdateLedgerEntryRequest, type UpdatePaymentAutoCloseConfigRequest, type UpdatePaymentAutoCloseOverrideRequest, type UpdatePromoConfigRequest, type UpdateTransactionDeleteConfigRequest, type UpdateTransactionDeleteOverrideRequest, type UpsertConnectorRestrictionRequest, VaultEnvironment };
2425
+ export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminAttachVaultRequest, type AdminAttachVaultResponse, type AdminAttemptProcessorCost, type AdminAttemptProcessorCostBase, type AdminAttemptProcessorCostKnown, type AdminAttemptProcessorCostUnrecorded, type AdminAttemptProcessorCostWithoutFigure, type AdminAuditLogExportRecord, type AdminCreateLedgerRequest, type AdminCreateLedgerResponse, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminLedgerAnalyticsRequest, type AdminLedgerAnalyticsResponse, AdminPortal, type AdminResetLedgerRequest, type AdminResetLedgerResponse, type AdminSetFreeRequest, type AdminSetHardFloorRequest, type AdminSetTrustedRequest, type AdminShopVaultState, type AdminSignInRequest, type AdminSuspendRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUnsuspendRequest, type AdminUpdateUserRequest, type AdminUserResponse, type AdminVaultEntitlementState, type AdminVaultEnvironmentState, type AdminVaultStateResponse, AnalyticsScopeRequest, AnalyticsScopeResponse, type AuditActorInfo, type AuditActorKind, type AuditImpersonationKind, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, type AuditSessionInfo, AuthResponse, type AuthorizeResponse, BillingProfileResponse, BinaryExportOptions, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, ClientAnalyticsRequest, Configs, type ConnectorRestrictionResponse, type ConnectorRestrictionRuleAction, type ConnectorRestrictionRuleResponse, ConnectorRestrictionRules, type ConnectorRestrictionScope, ConnectorRestrictions, type ConnectorVisibility, type CreateConnectorRestrictionRuleRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, DeviceDrillRequest, DevicesAnalyticsResponse, Diagnostic, type DiagnosticAttentionBoard, type DiagnosticAttentionItem, type DiagnosticAttentionParams, type DiagnosticAttentionSeverity, type DiagnosticCaptureState, type DiagnosticChange, type DiagnosticChangeListParams, type DiagnosticConnectorCall, type DiagnosticConnectorCallListParams, type DiagnosticDependencyCard, type DiagnosticEmptyReason, type DiagnosticEnvironment, type DiagnosticErrorCodeCount, type DiagnosticFiringAlert, type DiagnosticHealthState, type DiagnosticHealthTile, type DiagnosticIncomingWebhook, type DiagnosticIncomingWebhookDetail, type DiagnosticIncomingWebhookListParams, type DiagnosticInfrastructure, type DiagnosticList, type DiagnosticNearMatch, type DiagnosticOutgoingAttempt, type DiagnosticOutgoingWebhook, type DiagnosticOutgoingWebhookListParams, type DiagnosticOutgoingWebhookSummary, type DiagnosticPage, type DiagnosticPanel, type DiagnosticPayment, type DiagnosticPaymentListParams, type DiagnosticQueueItem, type DiagnosticQueueListParams, type DiagnosticQueueSummary, type DiagnosticReplicaHealth, type DiagnosticResolvedId, type DiagnosticRevealRequest, type DiagnosticRevealResponse, type DiagnosticRouterLog, type DiagnosticRouterLogParams, type DiagnosticSourceUnavailable, type DiagnosticTrace, type DiagnosticTraceSpan, type DiagnosticWindow, DrillResponse, ExportEnvelope, ExportOptions, FeeRulePreviewRequest, FeeRulePreviewResponse, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, FeeStatementDetail, type FeeTotalBound, GeoAnalyticsResponse, GeoDrillRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, JsonExportOptions, type LastAdministratorRefusal, type LastAdministratorRoute, type LedgerDayBucket, type LedgerMerchant, type ListConnectorRestrictionRulesQuery, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentAttemptsListResponse, type PaymentAutoCloseConfigResponse, type PaymentAutoCloseOverrideResponse, PaymentClientContextListResponse, type PaymentPeriodStats, PaymentResponse, PaymentStatusHistoryResponse, PaymentsDeleteResponse, type PlatformAnalyticsResponse, PlatformBilling, PlatformFeeRuleInput, PlatformFeeRuleRecord, PlatformFees, ProfileResponse, ProjectResponse, type PromoConfigResponse, RefundListResponse, RequestFn, ScopeDrillRequest, SettlementCurrentParams, SettlementCurrentResponse, SettlementOverviewParams, SettlementOverviewResponse, SettlementStatementListParams, SettlementStatementListResponse, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, StatementPdfParams, SubscriptionAnalyticsRequest, SubscriptionAnalyticsResponse, SubscriptionDrillRequest, type TransactionDeleteConfigResponse, type TransactionDeleteOverrideResponse, type UpdateConnectorRestrictionRuleRequest, type UpdateLedgerEntryRequest, type UpdatePaymentAutoCloseConfigRequest, type UpdatePaymentAutoCloseOverrideRequest, type UpdatePromoConfigRequest, type UpdateTransactionDeleteConfigRequest, type UpdateTransactionDeleteOverrideRequest, type UpsertConnectorRestrictionRequest, VaultEnvironment };