@delopay/sdk 0.21.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-EPZVT7EJ.js → chunk-ZGDBGVGC.js} +39 -1
- package/dist/chunk-ZGDBGVGC.js.map +1 -0
- package/dist/index.cjs +39 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +3 -1
- package/dist/internal.cjs +39 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EPZVT7EJ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -2911,6 +2911,43 @@ declare class RoutingDecisionManager {
|
|
|
2911
2911
|
deleteSurcharge(): Promise<Record<string, unknown>>;
|
|
2912
2912
|
}
|
|
2913
2913
|
|
|
2914
|
+
/** Index discriminator returned for each search result group. */
|
|
2915
|
+
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes';
|
|
2916
|
+
type SearchStatus = 'Success' | 'Failure';
|
|
2917
|
+
/** One result group (per index) in the response array. */
|
|
2918
|
+
interface SearchGroupResponse {
|
|
2919
|
+
count: number;
|
|
2920
|
+
index: SearchIndex;
|
|
2921
|
+
hits: Record<string, unknown>[];
|
|
2922
|
+
status: SearchStatus;
|
|
2923
|
+
}
|
|
2924
|
+
interface GlobalSearchRequest {
|
|
2925
|
+
query: string;
|
|
2926
|
+
filters?: Record<string, unknown>;
|
|
2927
|
+
timeRange?: {
|
|
2928
|
+
startTime: string;
|
|
2929
|
+
endTime: string;
|
|
2930
|
+
};
|
|
2931
|
+
}
|
|
2932
|
+
/** Global cross-index search. */
|
|
2933
|
+
declare class Search {
|
|
2934
|
+
private readonly request;
|
|
2935
|
+
constructor(request: RequestFn);
|
|
2936
|
+
/**
|
|
2937
|
+
* Search every supported index for `query`.
|
|
2938
|
+
* `POST /analytics/v1/search`
|
|
2939
|
+
*
|
|
2940
|
+
* @example
|
|
2941
|
+
* ```typescript
|
|
2942
|
+
* const groups = await delopay.search.global({ query: 'pay_abc' });
|
|
2943
|
+
* for (const g of groups) console.log(g.index, g.count);
|
|
2944
|
+
* ```
|
|
2945
|
+
*/
|
|
2946
|
+
global(params: GlobalSearchRequest, options?: {
|
|
2947
|
+
signal?: AbortSignal;
|
|
2948
|
+
}): Promise<SearchGroupResponse[]>;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2914
2951
|
/** Manage gateway connections for a specific shop. */
|
|
2915
2952
|
declare class ShopGateways {
|
|
2916
2953
|
private readonly request;
|
|
@@ -3118,6 +3155,17 @@ declare class Users {
|
|
|
3118
3155
|
listProfiles(): Promise<Record<string, unknown>[]>;
|
|
3119
3156
|
inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]>;
|
|
3120
3157
|
acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Accept an invitation via the email-link flow.
|
|
3160
|
+
*
|
|
3161
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
3162
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
3163
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
3164
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
3165
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
3166
|
+
* invitee and the entity lineage.
|
|
3167
|
+
*/
|
|
3168
|
+
acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse>;
|
|
3121
3169
|
/**
|
|
3122
3170
|
* Start TOTP setup (or no-op if already set).
|
|
3123
3171
|
*
|
|
@@ -3492,6 +3540,7 @@ declare class Delopay {
|
|
|
3492
3540
|
readonly analyticsDashboard: AnalyticsDashboard;
|
|
3493
3541
|
readonly featureMatrix: FeatureMatrix;
|
|
3494
3542
|
readonly cards: Cards;
|
|
3543
|
+
readonly search: Search;
|
|
3495
3544
|
/**
|
|
3496
3545
|
* Create a new Delopay client.
|
|
3497
3546
|
*
|
|
@@ -3809,4 +3858,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
3809
3858
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
3810
3859
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
3811
3860
|
|
|
3812
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type NonPillRadius, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
3861
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type NonPillRadius, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -2911,6 +2911,43 @@ declare class RoutingDecisionManager {
|
|
|
2911
2911
|
deleteSurcharge(): Promise<Record<string, unknown>>;
|
|
2912
2912
|
}
|
|
2913
2913
|
|
|
2914
|
+
/** Index discriminator returned for each search result group. */
|
|
2915
|
+
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes';
|
|
2916
|
+
type SearchStatus = 'Success' | 'Failure';
|
|
2917
|
+
/** One result group (per index) in the response array. */
|
|
2918
|
+
interface SearchGroupResponse {
|
|
2919
|
+
count: number;
|
|
2920
|
+
index: SearchIndex;
|
|
2921
|
+
hits: Record<string, unknown>[];
|
|
2922
|
+
status: SearchStatus;
|
|
2923
|
+
}
|
|
2924
|
+
interface GlobalSearchRequest {
|
|
2925
|
+
query: string;
|
|
2926
|
+
filters?: Record<string, unknown>;
|
|
2927
|
+
timeRange?: {
|
|
2928
|
+
startTime: string;
|
|
2929
|
+
endTime: string;
|
|
2930
|
+
};
|
|
2931
|
+
}
|
|
2932
|
+
/** Global cross-index search. */
|
|
2933
|
+
declare class Search {
|
|
2934
|
+
private readonly request;
|
|
2935
|
+
constructor(request: RequestFn);
|
|
2936
|
+
/**
|
|
2937
|
+
* Search every supported index for `query`.
|
|
2938
|
+
* `POST /analytics/v1/search`
|
|
2939
|
+
*
|
|
2940
|
+
* @example
|
|
2941
|
+
* ```typescript
|
|
2942
|
+
* const groups = await delopay.search.global({ query: 'pay_abc' });
|
|
2943
|
+
* for (const g of groups) console.log(g.index, g.count);
|
|
2944
|
+
* ```
|
|
2945
|
+
*/
|
|
2946
|
+
global(params: GlobalSearchRequest, options?: {
|
|
2947
|
+
signal?: AbortSignal;
|
|
2948
|
+
}): Promise<SearchGroupResponse[]>;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2914
2951
|
/** Manage gateway connections for a specific shop. */
|
|
2915
2952
|
declare class ShopGateways {
|
|
2916
2953
|
private readonly request;
|
|
@@ -3118,6 +3155,17 @@ declare class Users {
|
|
|
3118
3155
|
listProfiles(): Promise<Record<string, unknown>[]>;
|
|
3119
3156
|
inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]>;
|
|
3120
3157
|
acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Accept an invitation via the email-link flow.
|
|
3160
|
+
*
|
|
3161
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
3162
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
3163
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
3164
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
3165
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
3166
|
+
* invitee and the entity lineage.
|
|
3167
|
+
*/
|
|
3168
|
+
acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse>;
|
|
3121
3169
|
/**
|
|
3122
3170
|
* Start TOTP setup (or no-op if already set).
|
|
3123
3171
|
*
|
|
@@ -3492,6 +3540,7 @@ declare class Delopay {
|
|
|
3492
3540
|
readonly analyticsDashboard: AnalyticsDashboard;
|
|
3493
3541
|
readonly featureMatrix: FeatureMatrix;
|
|
3494
3542
|
readonly cards: Cards;
|
|
3543
|
+
readonly search: Search;
|
|
3495
3544
|
/**
|
|
3496
3545
|
* Create a new Delopay client.
|
|
3497
3546
|
*
|
|
@@ -3809,4 +3858,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
3809
3858
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
3810
3859
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
3811
3860
|
|
|
3812
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type NonPillRadius, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
3861
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type NonPillRadius, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SummaryPosition, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
Files,
|
|
18
18
|
Forex,
|
|
19
19
|
Regions,
|
|
20
|
+
Search,
|
|
20
21
|
Subscriptions,
|
|
21
22
|
Webhooks,
|
|
22
23
|
applyBrandingVariables,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
shadowFor,
|
|
41
42
|
surfacePadValue,
|
|
42
43
|
verticalGapValue
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZGDBGVGC.js";
|
|
44
45
|
export {
|
|
45
46
|
Analytics,
|
|
46
47
|
AnalyticsDashboard,
|
|
@@ -60,6 +61,7 @@ export {
|
|
|
60
61
|
Files,
|
|
61
62
|
Forex,
|
|
62
63
|
Regions,
|
|
64
|
+
Search,
|
|
63
65
|
Subscriptions,
|
|
64
66
|
Webhooks,
|
|
65
67
|
applyBrandingVariables,
|
package/dist/internal.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(internal_exports, {
|
|
|
49
49
|
PlatformBilling: () => PlatformBilling,
|
|
50
50
|
PlatformFees: () => PlatformFees,
|
|
51
51
|
Regions: () => Regions,
|
|
52
|
+
Search: () => Search,
|
|
52
53
|
Subscriptions: () => Subscriptions,
|
|
53
54
|
Webhooks: () => Webhooks,
|
|
54
55
|
applyBrandingVariables: () => applyBrandingVariables,
|
|
@@ -1758,6 +1759,29 @@ var RoutingDecisionManager = class {
|
|
|
1758
1759
|
}
|
|
1759
1760
|
};
|
|
1760
1761
|
|
|
1762
|
+
// src/resources/search.ts
|
|
1763
|
+
var Search = class {
|
|
1764
|
+
constructor(request) {
|
|
1765
|
+
this.request = request;
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Search every supported index for `query`.
|
|
1769
|
+
* `POST /analytics/v1/search`
|
|
1770
|
+
*
|
|
1771
|
+
* @example
|
|
1772
|
+
* ```typescript
|
|
1773
|
+
* const groups = await delopay.search.global({ query: 'pay_abc' });
|
|
1774
|
+
* for (const g of groups) console.log(g.index, g.count);
|
|
1775
|
+
* ```
|
|
1776
|
+
*/
|
|
1777
|
+
async global(params, options) {
|
|
1778
|
+
return this.request("POST", "/analytics/v1/search", {
|
|
1779
|
+
body: params,
|
|
1780
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1761
1785
|
// src/resources/shops.ts
|
|
1762
1786
|
var ShopGateways = class {
|
|
1763
1787
|
constructor(request) {
|
|
@@ -2073,6 +2097,19 @@ var Users = class {
|
|
|
2073
2097
|
async acceptInvitation(params) {
|
|
2074
2098
|
return this.request("POST", "/user/user/invite/accept", { body: params });
|
|
2075
2099
|
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Accept an invitation via the email-link flow.
|
|
2102
|
+
*
|
|
2103
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
2104
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
2105
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
2106
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
2107
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
2108
|
+
* invitee and the entity lineage.
|
|
2109
|
+
*/
|
|
2110
|
+
async acceptInviteFromEmail(params) {
|
|
2111
|
+
return this.request("POST", "/user/accept_invite_from_email", { body: params });
|
|
2112
|
+
}
|
|
2076
2113
|
/**
|
|
2077
2114
|
* Start TOTP setup (or no-op if already set).
|
|
2078
2115
|
*
|
|
@@ -2776,6 +2813,7 @@ var Delopay = class {
|
|
|
2776
2813
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2777
2814
|
this.featureMatrix = new FeatureMatrix(request);
|
|
2778
2815
|
this.cards = new Cards(request);
|
|
2816
|
+
this.search = new Search(request);
|
|
2779
2817
|
}
|
|
2780
2818
|
/**
|
|
2781
2819
|
* Set a JWT token for subsequent requests.
|
|
@@ -4008,6 +4046,7 @@ var DelopayInternal = class extends Delopay {
|
|
|
4008
4046
|
PlatformBilling,
|
|
4009
4047
|
PlatformFees,
|
|
4010
4048
|
Regions,
|
|
4049
|
+
Search,
|
|
4011
4050
|
Subscriptions,
|
|
4012
4051
|
Webhooks,
|
|
4013
4052
|
applyBrandingVariables,
|