@delopay/sdk 0.5.0 → 0.6.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-LCF7ILAH.js +2959 -0
- package/dist/chunk-LCF7ILAH.js.map +1 -0
- package/dist/index.cjs +8 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -70
- package/dist/index.d.ts +5 -70
- package/dist/index.js +17 -3063
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +3130 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +86 -0
- package/dist/internal.d.ts +86 -0
- package/dist/internal.js +162 -0
- package/dist/internal.js.map +1 -0
- package/package.json +11 -1
package/dist/index.d.cts
CHANGED
|
@@ -1110,7 +1110,7 @@ interface FromEmailRequest {
|
|
|
1110
1110
|
* next based on the user's current state (e.g. TOTP not set → `totp`, TOTP
|
|
1111
1111
|
* verified → `reset_password`).
|
|
1112
1112
|
*/
|
|
1113
|
-
type TokenPurpose = 'totp' | 'reset_password' | 'sso' | '
|
|
1113
|
+
type TokenPurpose = 'totp' | 'reset_password' | 'sso' | 'verify_email' | string;
|
|
1114
1114
|
/** Response shape from endpoints that issue a new single-purpose token. */
|
|
1115
1115
|
interface TokenResponse {
|
|
1116
1116
|
/** Signed JWT — pass as `Authorization: Bearer <token>` on the next call. */
|
|
@@ -1143,7 +1143,6 @@ interface PhoneOtpVerifyRequest {
|
|
|
1143
1143
|
interface PhoneOtpVerifyResponse {
|
|
1144
1144
|
verified: boolean;
|
|
1145
1145
|
}
|
|
1146
|
-
type DashboardMetadataResponse = Record<string, unknown>;
|
|
1147
1146
|
interface UpdateUserDetailsRequest {
|
|
1148
1147
|
name?: string | null;
|
|
1149
1148
|
}
|
|
@@ -1738,57 +1737,6 @@ interface RegionResponse {
|
|
|
1738
1737
|
[key: string]: unknown;
|
|
1739
1738
|
}
|
|
1740
1739
|
|
|
1741
|
-
declare class Admin {
|
|
1742
|
-
private readonly request;
|
|
1743
|
-
constructor(request: RequestFn);
|
|
1744
|
-
signIn(params: AdminSignInRequest): Promise<AuthResponse>;
|
|
1745
|
-
createInternalUser(params: CreateInternalUserRequest): Promise<AuthorizeResponse>;
|
|
1746
|
-
createTenant(params: CreateTenantUserRequest): Promise<AuthorizeResponse>;
|
|
1747
|
-
/**
|
|
1748
|
-
* Create a new merchant admin user and merchant account atomically.
|
|
1749
|
-
*
|
|
1750
|
-
* This is the correct endpoint for bootstrapping the first admin user in a
|
|
1751
|
-
* fresh deployment — `internal_signup`/`tenant_signup` both require
|
|
1752
|
-
* pre-existing merchant records that don't exist on a clean database.
|
|
1753
|
-
*
|
|
1754
|
-
* `POST /admin/signup_with_merchant_id`
|
|
1755
|
-
*/
|
|
1756
|
-
signupWithMerchantId(params: SignUpWithMerchantIdRequest): Promise<AuthorizeResponse>;
|
|
1757
|
-
/** Toggle public signup on/off. `POST /admin/settings/signup` */
|
|
1758
|
-
setSignupSettings(params: SignupToggleRequest): Promise<SignupToggleResponse>;
|
|
1759
|
-
/** Read current public-signup status. `GET /admin/settings/signup` */
|
|
1760
|
-
getSignupSettings(): Promise<SignupToggleResponse>;
|
|
1761
|
-
/** Full merchant bootstrap — user + merchant + project + profile + keys. `POST /admin/onboard_merchant` */
|
|
1762
|
-
onboardMerchant(params: OnboardMerchantRequest): Promise<OnboardMerchantResponse>;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
declare class AdminPortal {
|
|
1766
|
-
private readonly request;
|
|
1767
|
-
constructor(request: RequestFn);
|
|
1768
|
-
listCustomers(params?: AdminCustomerListParams): Promise<AdminCustomerListResponse>;
|
|
1769
|
-
getCustomer(customerId: string): Promise<AdminCustomerDetail>;
|
|
1770
|
-
listTransactions(params?: AdminTransactionListParams): Promise<AdminTransactionListResponse>;
|
|
1771
|
-
analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse>;
|
|
1772
|
-
overviewStats(): Promise<OverviewStatsResponse>;
|
|
1773
|
-
paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse>;
|
|
1774
|
-
/**
|
|
1775
|
-
* Retrieve a merchant account via the admin portal. Unlike
|
|
1776
|
-
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
1777
|
-
* key) and does not require the JWT to be scoped to the target merchant.
|
|
1778
|
-
*/
|
|
1779
|
-
retrieveAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1780
|
-
/**
|
|
1781
|
-
* Update a merchant account via the admin portal. Authenticated via admin JWT
|
|
1782
|
-
* or admin API key.
|
|
1783
|
-
*/
|
|
1784
|
-
updateAccount(merchantId: string, params: MerchantAccountUpdateRequest): Promise<MerchantAccountResponse>;
|
|
1785
|
-
/**
|
|
1786
|
-
* Delete a merchant account via the admin portal. Authenticated via admin JWT
|
|
1787
|
-
* or admin API key.
|
|
1788
|
-
*/
|
|
1789
|
-
deleteAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
1740
|
/** Create and manage API keys for a merchant account. */
|
|
1793
1741
|
declare class ApiKeys {
|
|
1794
1742
|
private readonly request;
|
|
@@ -1840,13 +1788,6 @@ declare class ApiKeys {
|
|
|
1840
1788
|
list(merchantId: string): Promise<ApiKeyResponse[]>;
|
|
1841
1789
|
}
|
|
1842
1790
|
|
|
1843
|
-
declare class AuditLogs {
|
|
1844
|
-
private readonly request;
|
|
1845
|
-
constructor(request: RequestFn);
|
|
1846
|
-
list(params?: AuditLogListParams): Promise<AuditLogListResponse>;
|
|
1847
|
-
retrieve(logId: string): Promise<AuditLogResponse>;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
1791
|
declare class Authentication {
|
|
1851
1792
|
private readonly request;
|
|
1852
1793
|
constructor(request: RequestFn);
|
|
@@ -3039,8 +2980,7 @@ declare class Users {
|
|
|
3039
2980
|
* `generateRecoveryCodes`, `terminate2fa`) and setting it on the client
|
|
3040
2981
|
* via `setJwtToken` before calling this method. `body.token` must still
|
|
3041
2982
|
* be the original `EmailToken` from the reset-link URL — the handler
|
|
3042
|
-
* decodes it a second time to find the user
|
|
3043
|
-
* (`delopay-backend/crates/router/src/core/user.rs:687`).
|
|
2983
|
+
* decodes it a second time to find the user.
|
|
3044
2984
|
*/
|
|
3045
2985
|
resetPassword(params: ResetPasswordRequest): Promise<Record<string, unknown>>;
|
|
3046
2986
|
/**
|
|
@@ -3087,8 +3027,6 @@ declare class Users {
|
|
|
3087
3027
|
listUserRoles(params?: Record<string, unknown>): Promise<Record<string, unknown>[]>;
|
|
3088
3028
|
updateUserRole(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3089
3029
|
deleteUserRole(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3090
|
-
getDashboardMetadata(params?: Record<string, unknown>): Promise<DashboardMetadataResponse>;
|
|
3091
|
-
setDashboardMetadata(params: Record<string, unknown>): Promise<DashboardMetadataResponse>;
|
|
3092
3030
|
/** Sign in (v2). `POST /user/v2/signin` */
|
|
3093
3031
|
signInV2(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3094
3032
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
@@ -3136,8 +3074,6 @@ declare class Users {
|
|
|
3136
3074
|
acceptInvitationV2(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3137
3075
|
/** Resend invite. `POST /user/user/resend_invite` */
|
|
3138
3076
|
resendInvite(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3139
|
-
/** Clone connector. `POST /user/clone_connector` */
|
|
3140
|
-
cloneConnector(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3141
3077
|
/** Get role (v2). `GET /user/role/v2` */
|
|
3142
3078
|
getRoleV2(): Promise<Record<string, unknown>>;
|
|
3143
3079
|
/** Get role (v3). `GET /user/role/v3` */
|
|
@@ -3427,10 +3363,7 @@ declare class Delopay {
|
|
|
3427
3363
|
readonly authentication: Authentication;
|
|
3428
3364
|
readonly verification: Verification;
|
|
3429
3365
|
readonly users: Users;
|
|
3430
|
-
readonly admin: Admin;
|
|
3431
|
-
readonly adminPortal: AdminPortal;
|
|
3432
3366
|
readonly apiKeys: ApiKeys;
|
|
3433
|
-
readonly auditLogs: AuditLogs;
|
|
3434
3367
|
readonly billing: Billing;
|
|
3435
3368
|
readonly blocklist: Blocklist;
|
|
3436
3369
|
readonly cardIssuers: CardIssuers;
|
|
@@ -3559,6 +3492,8 @@ declare class DelopayError extends Error {
|
|
|
3559
3492
|
*/
|
|
3560
3493
|
declare class DelopayAuthenticationError extends DelopayError {
|
|
3561
3494
|
constructor(message?: string, options?: {
|
|
3495
|
+
code?: string;
|
|
3496
|
+
type?: string;
|
|
3562
3497
|
requestId?: string;
|
|
3563
3498
|
rawBody?: string;
|
|
3564
3499
|
});
|
|
@@ -3621,4 +3556,4 @@ declare const Webhooks: {
|
|
|
3621
3556
|
verify(rawBody: string, signatureHeader: string, secret: string, options?: VerifyOptions): Promise<WebhookEvent>;
|
|
3622
3557
|
};
|
|
3623
3558
|
|
|
3624
|
-
export { type Address, type AddressDetails, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, 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 AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AuthorizeResponse, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, Cache, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, Cards, type ChangePasswordRequest, Configs, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerSummary, type CustomerUpdateRequest, type CustomerUser,
|
|
3559
|
+
export { type Address, type AddressDetails, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, 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 AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AuthorizeResponse, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, Cache, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, Cards, type ChangePasswordRequest, Configs, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerSummary, type CustomerUpdateRequest, type CustomerUser, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, 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, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentStat, 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 PlatformAnalyticsResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, 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 RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SignupToggleRequest, type SignupToggleResponse, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyOptions, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -1110,7 +1110,7 @@ interface FromEmailRequest {
|
|
|
1110
1110
|
* next based on the user's current state (e.g. TOTP not set → `totp`, TOTP
|
|
1111
1111
|
* verified → `reset_password`).
|
|
1112
1112
|
*/
|
|
1113
|
-
type TokenPurpose = 'totp' | 'reset_password' | 'sso' | '
|
|
1113
|
+
type TokenPurpose = 'totp' | 'reset_password' | 'sso' | 'verify_email' | string;
|
|
1114
1114
|
/** Response shape from endpoints that issue a new single-purpose token. */
|
|
1115
1115
|
interface TokenResponse {
|
|
1116
1116
|
/** Signed JWT — pass as `Authorization: Bearer <token>` on the next call. */
|
|
@@ -1143,7 +1143,6 @@ interface PhoneOtpVerifyRequest {
|
|
|
1143
1143
|
interface PhoneOtpVerifyResponse {
|
|
1144
1144
|
verified: boolean;
|
|
1145
1145
|
}
|
|
1146
|
-
type DashboardMetadataResponse = Record<string, unknown>;
|
|
1147
1146
|
interface UpdateUserDetailsRequest {
|
|
1148
1147
|
name?: string | null;
|
|
1149
1148
|
}
|
|
@@ -1738,57 +1737,6 @@ interface RegionResponse {
|
|
|
1738
1737
|
[key: string]: unknown;
|
|
1739
1738
|
}
|
|
1740
1739
|
|
|
1741
|
-
declare class Admin {
|
|
1742
|
-
private readonly request;
|
|
1743
|
-
constructor(request: RequestFn);
|
|
1744
|
-
signIn(params: AdminSignInRequest): Promise<AuthResponse>;
|
|
1745
|
-
createInternalUser(params: CreateInternalUserRequest): Promise<AuthorizeResponse>;
|
|
1746
|
-
createTenant(params: CreateTenantUserRequest): Promise<AuthorizeResponse>;
|
|
1747
|
-
/**
|
|
1748
|
-
* Create a new merchant admin user and merchant account atomically.
|
|
1749
|
-
*
|
|
1750
|
-
* This is the correct endpoint for bootstrapping the first admin user in a
|
|
1751
|
-
* fresh deployment — `internal_signup`/`tenant_signup` both require
|
|
1752
|
-
* pre-existing merchant records that don't exist on a clean database.
|
|
1753
|
-
*
|
|
1754
|
-
* `POST /admin/signup_with_merchant_id`
|
|
1755
|
-
*/
|
|
1756
|
-
signupWithMerchantId(params: SignUpWithMerchantIdRequest): Promise<AuthorizeResponse>;
|
|
1757
|
-
/** Toggle public signup on/off. `POST /admin/settings/signup` */
|
|
1758
|
-
setSignupSettings(params: SignupToggleRequest): Promise<SignupToggleResponse>;
|
|
1759
|
-
/** Read current public-signup status. `GET /admin/settings/signup` */
|
|
1760
|
-
getSignupSettings(): Promise<SignupToggleResponse>;
|
|
1761
|
-
/** Full merchant bootstrap — user + merchant + project + profile + keys. `POST /admin/onboard_merchant` */
|
|
1762
|
-
onboardMerchant(params: OnboardMerchantRequest): Promise<OnboardMerchantResponse>;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
declare class AdminPortal {
|
|
1766
|
-
private readonly request;
|
|
1767
|
-
constructor(request: RequestFn);
|
|
1768
|
-
listCustomers(params?: AdminCustomerListParams): Promise<AdminCustomerListResponse>;
|
|
1769
|
-
getCustomer(customerId: string): Promise<AdminCustomerDetail>;
|
|
1770
|
-
listTransactions(params?: AdminTransactionListParams): Promise<AdminTransactionListResponse>;
|
|
1771
|
-
analytics(params: AdminAnalyticsRequest): Promise<PlatformAnalyticsResponse>;
|
|
1772
|
-
overviewStats(): Promise<OverviewStatsResponse>;
|
|
1773
|
-
paymentAnalytics(params: PaymentAnalyticsRequest): Promise<PaymentAnalyticsResponse>;
|
|
1774
|
-
/**
|
|
1775
|
-
* Retrieve a merchant account via the admin portal. Unlike
|
|
1776
|
-
* `merchantAccounts.retrieve`, this route accepts an admin JWT (or admin API
|
|
1777
|
-
* key) and does not require the JWT to be scoped to the target merchant.
|
|
1778
|
-
*/
|
|
1779
|
-
retrieveAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1780
|
-
/**
|
|
1781
|
-
* Update a merchant account via the admin portal. Authenticated via admin JWT
|
|
1782
|
-
* or admin API key.
|
|
1783
|
-
*/
|
|
1784
|
-
updateAccount(merchantId: string, params: MerchantAccountUpdateRequest): Promise<MerchantAccountResponse>;
|
|
1785
|
-
/**
|
|
1786
|
-
* Delete a merchant account via the admin portal. Authenticated via admin JWT
|
|
1787
|
-
* or admin API key.
|
|
1788
|
-
*/
|
|
1789
|
-
deleteAccount(merchantId: string): Promise<MerchantAccountResponse>;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
1740
|
/** Create and manage API keys for a merchant account. */
|
|
1793
1741
|
declare class ApiKeys {
|
|
1794
1742
|
private readonly request;
|
|
@@ -1840,13 +1788,6 @@ declare class ApiKeys {
|
|
|
1840
1788
|
list(merchantId: string): Promise<ApiKeyResponse[]>;
|
|
1841
1789
|
}
|
|
1842
1790
|
|
|
1843
|
-
declare class AuditLogs {
|
|
1844
|
-
private readonly request;
|
|
1845
|
-
constructor(request: RequestFn);
|
|
1846
|
-
list(params?: AuditLogListParams): Promise<AuditLogListResponse>;
|
|
1847
|
-
retrieve(logId: string): Promise<AuditLogResponse>;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
1791
|
declare class Authentication {
|
|
1851
1792
|
private readonly request;
|
|
1852
1793
|
constructor(request: RequestFn);
|
|
@@ -3039,8 +2980,7 @@ declare class Users {
|
|
|
3039
2980
|
* `generateRecoveryCodes`, `terminate2fa`) and setting it on the client
|
|
3040
2981
|
* via `setJwtToken` before calling this method. `body.token` must still
|
|
3041
2982
|
* be the original `EmailToken` from the reset-link URL — the handler
|
|
3042
|
-
* decodes it a second time to find the user
|
|
3043
|
-
* (`delopay-backend/crates/router/src/core/user.rs:687`).
|
|
2983
|
+
* decodes it a second time to find the user.
|
|
3044
2984
|
*/
|
|
3045
2985
|
resetPassword(params: ResetPasswordRequest): Promise<Record<string, unknown>>;
|
|
3046
2986
|
/**
|
|
@@ -3087,8 +3027,6 @@ declare class Users {
|
|
|
3087
3027
|
listUserRoles(params?: Record<string, unknown>): Promise<Record<string, unknown>[]>;
|
|
3088
3028
|
updateUserRole(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3089
3029
|
deleteUserRole(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3090
|
-
getDashboardMetadata(params?: Record<string, unknown>): Promise<DashboardMetadataResponse>;
|
|
3091
|
-
setDashboardMetadata(params: Record<string, unknown>): Promise<DashboardMetadataResponse>;
|
|
3092
3030
|
/** Sign in (v2). `POST /user/v2/signin` */
|
|
3093
3031
|
signInV2(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3094
3032
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
@@ -3136,8 +3074,6 @@ declare class Users {
|
|
|
3136
3074
|
acceptInvitationV2(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3137
3075
|
/** Resend invite. `POST /user/user/resend_invite` */
|
|
3138
3076
|
resendInvite(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3139
|
-
/** Clone connector. `POST /user/clone_connector` */
|
|
3140
|
-
cloneConnector(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3141
3077
|
/** Get role (v2). `GET /user/role/v2` */
|
|
3142
3078
|
getRoleV2(): Promise<Record<string, unknown>>;
|
|
3143
3079
|
/** Get role (v3). `GET /user/role/v3` */
|
|
@@ -3427,10 +3363,7 @@ declare class Delopay {
|
|
|
3427
3363
|
readonly authentication: Authentication;
|
|
3428
3364
|
readonly verification: Verification;
|
|
3429
3365
|
readonly users: Users;
|
|
3430
|
-
readonly admin: Admin;
|
|
3431
|
-
readonly adminPortal: AdminPortal;
|
|
3432
3366
|
readonly apiKeys: ApiKeys;
|
|
3433
|
-
readonly auditLogs: AuditLogs;
|
|
3434
3367
|
readonly billing: Billing;
|
|
3435
3368
|
readonly blocklist: Blocklist;
|
|
3436
3369
|
readonly cardIssuers: CardIssuers;
|
|
@@ -3559,6 +3492,8 @@ declare class DelopayError extends Error {
|
|
|
3559
3492
|
*/
|
|
3560
3493
|
declare class DelopayAuthenticationError extends DelopayError {
|
|
3561
3494
|
constructor(message?: string, options?: {
|
|
3495
|
+
code?: string;
|
|
3496
|
+
type?: string;
|
|
3562
3497
|
requestId?: string;
|
|
3563
3498
|
rawBody?: string;
|
|
3564
3499
|
});
|
|
@@ -3621,4 +3556,4 @@ declare const Webhooks: {
|
|
|
3621
3556
|
verify(rawBody: string, signatureHeader: string, secret: string, options?: VerifyOptions): Promise<WebhookEvent>;
|
|
3622
3557
|
};
|
|
3623
3558
|
|
|
3624
|
-
export { type Address, type AddressDetails, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, 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 AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AuthorizeResponse, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, Cache, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, Cards, type ChangePasswordRequest, Configs, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerSummary, type CustomerUpdateRequest, type CustomerUser,
|
|
3559
|
+
export { type Address, type AddressDetails, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, 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 AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AuthorizeResponse, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, Cache, type CaptureMethod, type CardDetail, type CardDetailFromLocker, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, Cards, type ChangePasswordRequest, Configs, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type CreateInternalUserRequest, type CreateTenantUserRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerSummary, type CustomerUpdateRequest, type CustomerUser, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, 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, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentStat, 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 PlatformAnalyticsResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, 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 RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SignupToggleRequest, type SignupToggleResponse, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyOptions, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|