@agent-cards/sdk 0.23.22 → 0.23.24
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/CHANGELOG.md +34 -0
- package/PREFLIGHT.md +2 -0
- package/README.md +34 -4
- package/dist/aci.generated.js +3 -3
- package/dist/agent-amount.generated.d.ts +7 -0
- package/dist/agent-amount.generated.js +3 -0
- package/dist/amadeus.d.ts +5 -2
- package/dist/amadeus.js +18 -3
- package/dist/amazon-payment-services.d.ts +25 -0
- package/dist/amazon-payment-services.generated.d.ts +76 -0
- package/dist/amazon-payment-services.generated.js +883 -0
- package/dist/amazon-payment-services.js +53 -0
- package/dist/capabilities.generated.d.ts +2 -0
- package/dist/capabilities.generated.js +3 -0
- package/dist/card-fields.generated.js +1127 -25
- package/dist/cdp.js +116 -15
- package/dist/client.d.ts +107 -8
- package/dist/client.js +277 -128
- package/dist/hosted-entry.js +2 -1
- package/dist/hosted-form.d.ts +5 -0
- package/dist/hosted-form.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/openpay.generated.d.ts +67 -0
- package/dist/openpay.generated.js +446 -0
- package/dist/paddle-checkout-watch.d.ts +70 -0
- package/dist/paddle-checkout-watch.js +239 -0
- package/dist/paddle-tokenex.generated.d.ts +29 -1
- package/dist/paddle-tokenex.generated.js +175 -26
- package/dist/paytrail.d.ts +58 -0
- package/dist/paytrail.js +98 -0
- package/dist/pre-claim.d.ts +4 -0
- package/dist/pre-claim.js +46 -2
- package/dist/prepared-processor.d.ts +12 -4
- package/dist/prepared-processor.js +31 -5
- package/dist/primer.generated.js +1155 -53
- package/dist/registry.d.ts +4 -3
- package/dist/registry.js +12 -4
- package/dist/sbps.d.ts +57 -0
- package/dist/sbps.generated.d.ts +96 -0
- package/dist/sbps.generated.js +427 -0
- package/dist/sbps.js +90 -0
- package/dist/stripe-checkout.generated.js +458 -8
- package/dist/tap-payments.d.ts +43 -0
- package/dist/tap-payments.generated.d.ts +59 -0
- package/dist/tap-payments.generated.js +990 -0
- package/dist/tap-payments.js +72 -0
- package/dist/transbank.d.ts +33 -0
- package/dist/transbank.js +62 -0
- package/dist/url-mask-parts.d.ts +24 -0
- package/dist/url-mask-parts.js +22 -0
- package/dist/url-masks.generated.d.ts +3 -0
- package/dist/url-masks.generated.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** The PSP id the API and the recognizer name this lane, re-exported so the client dispatches by it. */
|
|
2
|
+
export { TAP_PAYMENTS_PSP } from './tap-payments.generated.js';
|
|
3
|
+
/** The dark-launch capability a build declares when it fills a Tap token request with the device's ciphertext. */
|
|
4
|
+
export declare const TAP_PAYMENTS_CAPABILITY = "tap_card_sdk_token";
|
|
5
|
+
/** A cse substitution as the API serves it (substitute.ts Substitutions): here the one ciphertext. */
|
|
6
|
+
interface TapPaymentsServedSubstitution {
|
|
7
|
+
encoding: string;
|
|
8
|
+
at: string;
|
|
9
|
+
fields: Record<string, string>;
|
|
10
|
+
remove?: string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Whether an approved Tap authorization's served substitution is one this SDK can continue: JSON at the body root (`at`
|
|
14
|
+
* is ''), no sibling to remove, and exactly the one ciphertext, a non-empty string. substituteTapPayments checks its
|
|
15
|
+
* size and range against the pin for the request's publishable key; this is the shape gate the client runs first.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isTapPaymentsServedSubstitution(sub: unknown): sub is TapPaymentsServedSubstitution;
|
|
18
|
+
/** The paused request an approval was created from: the URL and body the API reviewed at create, and its headers. */
|
|
19
|
+
export interface TapPaymentsApprovedRequest {
|
|
20
|
+
url: string;
|
|
21
|
+
body: string;
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The continuation of an approved Tap token request: the paused body with the device's ciphertext written over the
|
|
26
|
+
* placeholder's at encryptedData (payment-core substituteTapPayments, which runs the frame's request rule again on the
|
|
27
|
+
* headers of the request that continues, and refuses a ciphertext that does not have the size and range of one under
|
|
28
|
+
* the pin for its publishable key, or one already in the paused body).
|
|
29
|
+
*
|
|
30
|
+
* Only into `approved`, the paused request the approval was created from: `url` and `body` must equal it byte for byte.
|
|
31
|
+
* A ciphertext under the merchant's key would ask Tap for a token in any later request of the same shape; binding it
|
|
32
|
+
* to the one request keeps this lane from ever writing one checkout's card into another. `headers` are those of the
|
|
33
|
+
* request that continues, the paused one or the page's retry of it, and the browser sends them as they are: they
|
|
34
|
+
* must name the publishable key the approved request named, so a retry under another merchant's key never carries the
|
|
35
|
+
* card.
|
|
36
|
+
*
|
|
37
|
+
* Null when neither URL is Tap's token URL, so every other processor keeps its own swap. Throws for any other body,
|
|
38
|
+
* URL or key, and for a substitution the shape gate or the swap refuses, in each case before anything continues. The
|
|
39
|
+
* approval is not retired on a refusal: the runtime already read the ciphertext, so the API keeps the row and its hold.
|
|
40
|
+
*/
|
|
41
|
+
export declare function tapPaymentsContinuation(url: string, body: string, headers: Record<string, string> | undefined, sub: unknown, approved: TapPaymentsApprovedRequest): {
|
|
42
|
+
body: string;
|
|
43
|
+
} | null;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare var TAP_PAYMENTS_PSP: string;
|
|
2
|
+
declare var TAP_PAYMENTS_CAPABILITY: string;
|
|
3
|
+
declare var TAP_PAYMENTS_OPERATION: string;
|
|
4
|
+
declare var TAP_PAYMENTS_SCHEME: string;
|
|
5
|
+
declare var TAP_PAYMENTS_HOST: string;
|
|
6
|
+
declare var TAP_PAYMENTS_TOKEN_URL: string;
|
|
7
|
+
declare var TAP_PAYMENTS_FIELD: string;
|
|
8
|
+
declare var TAP_PAYMENTS_PURPOSES: readonly string[];
|
|
9
|
+
declare var TAP_PAYMENTS_REFUSAL_CODES: readonly string[];
|
|
10
|
+
declare function tapPaymentsRefusalMessage(code: any): any;
|
|
11
|
+
declare var TapPaymentsError: {
|
|
12
|
+
new (code: any): {
|
|
13
|
+
name: string;
|
|
14
|
+
message: string;
|
|
15
|
+
stack?: string;
|
|
16
|
+
cause?: unknown;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare function isTapPaymentsTokenUrl(url: any): boolean;
|
|
20
|
+
declare function tapPaymentsKeyEnvironment(publishableKey: any): "production" | "sandbox" | null;
|
|
21
|
+
declare var TAP_PAYMENTS_MERCHANT_PINS: readonly any[];
|
|
22
|
+
declare function tapPaymentsMerchantPin(publishableKey: any, pins?: readonly any[]): any;
|
|
23
|
+
declare function tapPaymentsMerchantRefusal(environment: any, publishableKey: any, merchantOrigin: any, pins?: readonly any[]): "tap_payments_merchant_unreviewed" | null;
|
|
24
|
+
declare function isTapPaymentsCiphertext(value: any): boolean;
|
|
25
|
+
declare function tapPaymentsBodyVerdict(body: any): Readonly<{
|
|
26
|
+
verdict: "refuse";
|
|
27
|
+
code: any;
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
verdict: "card";
|
|
30
|
+
}>;
|
|
31
|
+
declare function tapPaymentsOrderAmount(body: any): Readonly<{
|
|
32
|
+
amount: any;
|
|
33
|
+
currency: any;
|
|
34
|
+
}> | null;
|
|
35
|
+
declare function tapPaymentsRequestKey(request: any): any;
|
|
36
|
+
declare function tapPaymentsRequestRefusal(request: any): any;
|
|
37
|
+
declare function tapPaymentsPlaintext(card: any): string;
|
|
38
|
+
declare function encryptTapPaymentsCard(card: any, publishableKey: any, facilities?: {}): Readonly<{
|
|
39
|
+
encryptedData: string;
|
|
40
|
+
}>;
|
|
41
|
+
declare function isTapPaymentsCiphertextUnderPin(value: any, merchantPin: any): boolean;
|
|
42
|
+
declare function substituteTapPayments(request: any, substitution: any): string;
|
|
43
|
+
declare function tapPaymentsSubstitutionsRefusal(template: any, substitution: any): {
|
|
44
|
+
code: string;
|
|
45
|
+
message: any;
|
|
46
|
+
} | null;
|
|
47
|
+
declare function tapPaymentsKeyUsable(authorization: any): boolean;
|
|
48
|
+
declare function tapPaymentsRefusalCode(text: any): string | null;
|
|
49
|
+
declare function tapPaymentsAnswerOutcome(status: any, text: any, card: any): {
|
|
50
|
+
outcome: string;
|
|
51
|
+
reason: any;
|
|
52
|
+
} | {
|
|
53
|
+
outcome: string;
|
|
54
|
+
code: string;
|
|
55
|
+
} | {
|
|
56
|
+
outcome: string;
|
|
57
|
+
code?: undefined;
|
|
58
|
+
};
|
|
59
|
+
export { TAP_PAYMENTS_CAPABILITY, TAP_PAYMENTS_FIELD, TAP_PAYMENTS_HOST, TAP_PAYMENTS_MERCHANT_PINS, TAP_PAYMENTS_OPERATION, TAP_PAYMENTS_PSP, TAP_PAYMENTS_PURPOSES, TAP_PAYMENTS_REFUSAL_CODES, TAP_PAYMENTS_SCHEME, TAP_PAYMENTS_TOKEN_URL, TapPaymentsError, encryptTapPaymentsCard, isTapPaymentsCiphertext, isTapPaymentsCiphertextUnderPin, isTapPaymentsTokenUrl, substituteTapPayments, tapPaymentsAnswerOutcome, tapPaymentsBodyVerdict, tapPaymentsKeyEnvironment, tapPaymentsKeyUsable, tapPaymentsMerchantPin, tapPaymentsMerchantRefusal, tapPaymentsOrderAmount, tapPaymentsPlaintext, tapPaymentsRefusalCode, tapPaymentsRefusalMessage, tapPaymentsRequestKey, tapPaymentsRequestRefusal, tapPaymentsSubstitutionsRefusal };
|