///
import type { Client } from "openid-client";
import type { ApiClientConfig } from "./schema/config";
import type { PkceAuthoriseOptions } from "./pkce";
import type { PayerType, PaymentActorType } from "./schema/payment";
import { StandingOrderFrequency } from "./schema/standing-order";
import { RequestPayee, RequestPayer } from "./schema/payee";
import { PermissionsAction } from "./requests/types/auth-requests";
export interface GetAuthorizeUrlOptions {
state?: string;
scope: string;
nonce?: string;
claims?: any;
permissions?: string[];
permissionsAction?: PermissionsAction;
enableAsync?: boolean;
accVerification?: boolean;
expirationDateTime?: string;
transactionFromDateTime?: string;
codeChallenge?: string;
}
export interface GetAuthorizeUrlUsingPKCEOptions extends GetAuthorizeUrlOptions {
pkce?: PkceAuthoriseOptions;
}
declare type PkceParams = {
code_challenge: string;
code_challenge_method: string;
};
declare const _default: ({ client, config, }: {
client: Client;
config: ApiClientConfig;
}) => {
getAuthorizeUrl: ({ state, scope, nonce, claims, permissions, permissionsAction, enableAsync, accVerification, expirationDateTime, transactionFromDateTime, codeChallenge, }: GetAuthorizeUrlOptions) => Promise;
getAuthorizeUrlUsingPKCE: ({ pkce, ...options }: GetAuthorizeUrlUsingPKCEOptions) => Promise;
getAuthorizeUrlLegacy: ({ state, scope, nonce, claims, permissions, permissionsAction, enableAsync, expirationDateTime, transactionFromDateTime, codeChallenge, }: {
state?: string | undefined;
scope: string;
nonce?: string | undefined;
claims?: any;
permissions?: string[] | undefined;
permissionsAction?: PermissionsAction | undefined;
enableAsync?: boolean | undefined;
expirationDateTime?: string | undefined;
transactionFromDateTime?: string | undefined;
codeChallenge?: string | undefined;
}) => Promise;
getAuthorizeUrlFromRequestUri: ({ requestUri }: {
requestUri: string;
}) => string;
requestObject: ({ scope, state, claims, nonce, pkceParams, }: {
scope: string;
state?: string | undefined;
claims: object;
nonce?: string | undefined;
pkceParams?: PkceParams | undefined;
}) => Promise;
getRequestUri: (requestObject: any) => Promise;
getAuthorizeUrlForCreatedUser: ({ bankId, state, nonce, userId, claims, permissions, permissionsAction, expirationDateTime, transactionFromDateTime, enableAsync, codeChallenge, }: {
bankId: string;
state?: string | undefined;
nonce?: string | undefined;
userId: string;
claims?: any;
permissions?: string[] | undefined;
permissionsAction?: PermissionsAction | undefined;
expirationDateTime?: string | undefined;
transactionFromDateTime?: string | undefined;
enableAsync?: boolean | undefined;
codeChallenge?: string | undefined;
}) => Promise;
getReauthAuthorizeUrlForCreatedUser: ({ userId, connectionId, state, nonce, claims, expirationDateTime, transactionFromDateTime, enableAsync, codeChallenge, }: {
userId: string;
connectionId: string;
state?: string | undefined;
nonce?: string | undefined;
claims?: any;
expirationDateTime?: string | undefined;
transactionFromDateTime?: string | undefined;
enableAsync?: boolean | undefined;
codeChallenge: string;
}) => Promise;
getReconsentAuthorizeUrlForCreatedUser: ({ userId, connectionId, expiresAt, state, nonce, claims, codeChallenge, }: {
userId: string;
connectionId: string;
state?: string | undefined;
nonce?: string | undefined;
claims?: any;
expiresAt?: string | undefined;
codeChallenge?: string | undefined;
}) => Promise;
getRefreshAuthorizeUrlForCreatedUser: ({ userId, connectionId, state, nonce, claims, expirationDateTime, transactionFromDateTime, enableAsync, codeChallenge, }: {
userId?: string | undefined;
connectionId: string;
state?: string | undefined;
nonce?: string | undefined;
claims?: any;
expirationDateTime?: string | undefined;
transactionFromDateTime?: string | undefined;
enableAsync?: boolean | undefined;
codeChallenge?: string | undefined;
}) => Promise;
getPaymentAuthorizeUrl: ({ bankId, payeeRef, payeeId, payee, payer, payeeType, amount, payerRef, payerId, payerType, state, nonce, context, readRefundAccount, userId, claims, codeChallenge, }: {
bankId: string;
payeeRef: string;
payeeId?: string | undefined;
payeeType?: PaymentActorType | undefined;
amount: number;
payerRef: string;
payerId?: string | undefined;
payee?: RequestPayee | undefined;
payer?: RequestPayer | undefined;
payerType?: PayerType | undefined;
state?: string | undefined;
nonce?: string | undefined;
context?: string | undefined;
readRefundAccount?: boolean | undefined;
userId?: string | undefined;
claims?: any;
codeChallenge?: string | undefined;
}) => Promise;
getReversePaymentAuthorizeUrl: ({ bankId, paymentId, state, nonce, amount, claims, payerId, payerType, payer, codeChallenge, }: {
bankId: string;
paymentId: string;
state?: string | undefined;
nonce?: string | undefined;
amount: number;
claims?: any;
payerId?: string | undefined;
payerType?: PayerType | undefined;
payer?: RequestPayer | undefined;
codeChallenge?: string | undefined;
}) => Promise;
getRecurringPaymentAuthorizeUrl: ({ bankId, payeeId, payee, payeeType, payerId, payerType, reference, validFromDate, validToDate, maximumIndividualAmount, currency, periodicLimits, type, context, state, nonce, userId, claims, codeChallenge, }: {
bankId: string;
payeeId?: string | undefined;
payee?: RequestPayee | undefined;
payeeType?: PaymentActorType | undefined;
payerId?: string | undefined;
payerType?: PayerType | undefined;
reference?: string | undefined;
validFromDate?: string | undefined;
validToDate?: string | undefined;
maximumIndividualAmount?: number | undefined;
currency?: string | undefined;
periodicLimits?: any;
type?: string | undefined;
context?: string | undefined;
state?: string | undefined;
nonce?: string | undefined;
userId: string;
claims?: any;
codeChallenge?: string | undefined;
}) => Promise;
getStandingOrderAuthorizeUrl: ({ bankId, payeeId, payee, payeeType, payerId, payerType, reference, frequency, numberOfPayments, firstPaymentAmount, recurringPaymentAmount, finalPaymentAmount, currency, firstPaymentDate, recurringPaymentDate, finalPaymentDate, state, nonce, context, claims, codeChallenge, }: {
bankId: string;
payeeId?: string | undefined;
payee?: RequestPayee | undefined;
payeeType?: PaymentActorType | undefined;
payerId?: string | undefined;
payerType?: PayerType | undefined;
reference: string;
frequency: StandingOrderFrequency;
numberOfPayments?: number | undefined;
firstPaymentAmount: number;
recurringPaymentAmount: number;
finalPaymentAmount: number;
currency?: string | undefined;
firstPaymentDate: string;
recurringPaymentDate: string;
finalPaymentDate: string;
state?: string | undefined;
nonce?: string | undefined;
context: string;
claims?: any;
codeChallenge?: string | undefined;
}) => Promise;
getPushedAuthorisationRequestUrl: ({ bankId, state, nonce, userId, claims, permissions, permissionsAction, expirationDateTime, transactionFromDateTime, enableAsync, codeChallenge, }: {
bankId: string;
state?: string | undefined;
nonce?: string | undefined;
userId?: string | undefined;
context?: string | undefined;
claims?: any;
permissions?: string[] | undefined;
permissionsAction?: PermissionsAction | undefined;
expirationDateTime?: string | undefined;
transactionFromDateTime?: string | undefined;
enableAsync?: boolean | undefined;
codeChallenge?: string | undefined;
}) => Promise;
};
export default _default;
//# sourceMappingURL=get-auth-urls.d.ts.map