@agent-cards/sdk 0.21.0 → 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/CHANGELOG.md +87 -2
- package/PREFLIGHT.md +32 -0
- package/README.md +1177 -23
- package/dist/aci.d.ts +173 -0
- package/dist/aci.generated.d.ts +87 -0
- package/dist/aci.generated.js +306 -0
- package/dist/aci.js +371 -0
- package/dist/adyen-merchant-hosted.generated.d.ts +3 -3
- package/dist/adyen-merchant-hosted.generated.js +302 -56
- package/dist/agentcard.d.ts +9 -2
- package/dist/agentcard.js +4 -2
- package/dist/amadeus-checkout.generated.d.ts +57 -0
- package/dist/amadeus-checkout.generated.js +549 -0
- package/dist/amadeus.d.ts +41 -0
- package/dist/amadeus.js +81 -0
- package/dist/builtin-registry.generated.js +1 -1
- package/dist/card-endpoint-facts.d.ts +96 -0
- package/dist/card-endpoint-facts.js +275 -0
- package/dist/card-endpoint-page.d.ts +54 -0
- package/dist/card-endpoint-page.js +69 -0
- package/dist/card-endpoint.d.ts +298 -0
- package/dist/card-endpoint.js +438 -0
- package/dist/card-fields.generated.d.ts +5 -3
- package/dist/card-fields.generated.js +284 -7
- package/dist/cdp.d.ts +5 -1
- package/dist/cdp.js +1155 -141
- package/dist/client.d.ts +456 -20
- package/dist/client.js +1072 -104
- package/dist/creditguard.generated.d.ts +79 -0
- package/dist/creditguard.generated.js +662 -0
- package/dist/cse-body.js +11 -1
- package/dist/cybersource-flex.d.ts +30 -0
- package/dist/cybersource-flex.generated.d.ts +27 -1
- package/dist/cybersource-flex.generated.js +42 -2
- package/dist/cybersource-flex.js +46 -0
- package/dist/datatrans.d.ts +96 -0
- package/dist/datatrans.generated.d.ts +64 -0
- package/dist/datatrans.generated.js +426 -0
- package/dist/datatrans.js +178 -0
- package/dist/ekashu.d.ts +35 -0
- package/dist/ekashu.js +55 -0
- package/dist/elavon-converge.d.ts +37 -0
- package/dist/elavon-converge.generated.d.ts +49 -0
- package/dist/elavon-converge.generated.js +439 -0
- package/dist/elavon-converge.js +84 -0
- package/dist/eprotect.d.ts +152 -0
- package/dist/eprotect.generated.d.ts +77 -0
- package/dist/eprotect.generated.js +498 -0
- package/dist/eprotect.js +222 -0
- package/dist/hosted-form.d.ts +3 -2
- package/dist/hosted-form.js +3 -2
- package/dist/index.d.ts +17 -3
- package/dist/index.js +6 -1
- package/dist/juspay-gate.d.ts +82 -0
- package/dist/juspay-gate.js +126 -0
- package/dist/juspay.generated.d.ts +89 -0
- package/dist/juspay.generated.js +705 -0
- package/dist/lifecycle.d.ts +60 -6
- package/dist/lifecycle.js +122 -8
- package/dist/merchant-card-endpoints.generated.d.ts +122 -0
- package/dist/merchant-card-endpoints.generated.js +4261 -0
- package/dist/merchant-hosted.d.ts +4 -1
- package/dist/merchant-hosted.js +5 -2
- package/dist/merchant-session-probe.d.ts +48 -0
- package/dist/merchant-session-probe.js +53 -0
- package/dist/merchant-session.generated.d.ts +69 -0
- package/dist/merchant-session.generated.js +919 -0
- package/dist/payrails.d.ts +133 -0
- package/dist/payrails.generated.d.ts +73 -0
- package/dist/payrails.generated.js +596 -0
- package/dist/payrails.js +305 -0
- package/dist/pelecard.d.ts +32 -0
- package/dist/pelecard.generated.d.ts +32 -0
- package/dist/pelecard.generated.js +283 -0
- package/dist/pelecard.js +42 -0
- package/dist/pre-claim.d.ts +81 -2
- package/dist/pre-claim.js +1023 -5
- package/dist/preflight-catalog.json +2267 -288
- package/dist/preflight-schemas.json +183 -6
- package/dist/preflight.generated.d.ts +1 -1
- package/dist/preflight.generated.js +243 -4
- package/dist/preparation.d.ts +12 -3
- package/dist/preparation.js +63 -12
- package/dist/prepared-processor.d.ts +84 -5
- package/dist/prepared-processor.js +147 -6
- package/dist/primer.d.ts +53 -0
- package/dist/primer.generated.d.ts +38 -0
- package/dist/primer.generated.js +624 -0
- package/dist/primer.js +82 -0
- package/dist/registry.d.ts +100 -8
- package/dist/registry.js +85 -11
- package/dist/shiji-sts.d.ts +144 -0
- package/dist/shiji-sts.generated.d.ts +72 -0
- package/dist/shiji-sts.generated.js +913 -0
- package/dist/shiji-sts.js +222 -0
- package/dist/stripe-checkout.generated.d.ts +1 -1
- package/dist/stripe-checkout.generated.js +764 -9
- package/dist/stripe-setup.d.ts +16 -0
- package/dist/stripe-setup.js +61 -0
- package/dist/substitutions.generated.js +187 -29
- package/dist/verifone.d.ts +68 -0
- package/dist/verifone.generated.d.ts +51 -0
- package/dist/verifone.generated.js +1413 -0
- package/dist/verifone.js +119 -0
- package/dist/voice-types.d.ts +27 -0
- package/dist/voice.d.ts +6 -1
- package/dist/voice.js +6 -1
- package/dist/wspay.d.ts +41 -0
- package/dist/wspay.generated.d.ts +41 -0
- package/dist/wspay.generated.js +370 -0
- package/dist/wspay.js +65 -0
- package/examples/preflight/kernel-native/inventory.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare var CREDITGUARD_PPS_HOSTS: readonly string[];
|
|
2
|
+
declare var CREDITGUARD_SANDBOX_HOST: string;
|
|
3
|
+
declare var CREDITGUARD_OPERATION: string;
|
|
4
|
+
declare var CREDITGUARD_JWE_HEADER: string;
|
|
5
|
+
declare var CREDITGUARD_RECAPTCHA_WINDOW_MS: number;
|
|
6
|
+
declare var CREDITGUARD_PAGE_WINDOW_MS: number;
|
|
7
|
+
declare function readCreditguardJson(body: any, limit?: number, maxNodes?: number): any;
|
|
8
|
+
declare function creditguardProcessTxId(url: any): string | null;
|
|
9
|
+
declare function isCreditguardProcessUrl(url: any, method?: string): boolean;
|
|
10
|
+
declare function creditguardPreparationEnvironment(hostname: any): "production" | "sandbox" | null;
|
|
11
|
+
declare function creditguardTransactionReadUrl(processUrl: any): string | null;
|
|
12
|
+
declare function creditguardPageProcessUrl(pageUrl: any): string | null;
|
|
13
|
+
declare function isCreditguardPpsDocument(url: any): boolean;
|
|
14
|
+
declare function creditguardNuveiRefusal(requestUrl: any, initiatorUrl: any): "creditguard_three_d_secure" | null;
|
|
15
|
+
declare function isCreditguardJweCompact(value: any): boolean;
|
|
16
|
+
declare function creditguardPpDomainHost(ppDomain: any): string | null;
|
|
17
|
+
declare function creditguardBodyRefusal(body: any, txId: any, options: any): "pp_domain_unbound" | "malformed_body" | "saved_card" | "otp" | "wallet" | "unexpected_field" | "keep_on_file" | "gift_card" | "dcc" | "installments" | "personal_id" | "txid_mismatch" | "pp_domain" | "jwe_fallback" | "jwe_unsupported" | "card_fields" | null;
|
|
18
|
+
declare function classifyCreditguardRequest(url: any, method: any, body: any, options: any): "card" | "unsupported" | null;
|
|
19
|
+
declare function creditguardProcessRefusal(request: any, options: any): "not_process_request" | "headers" | "pp_domain_unbound" | "malformed_body" | "saved_card" | "otp" | "wallet" | "unexpected_field" | "keep_on_file" | "gift_card" | "dcc" | "installments" | "personal_id" | "txid_mismatch" | "pp_domain" | "jwe_fallback" | "jwe_unsupported" | "card_fields" | null;
|
|
20
|
+
declare function isCreditguardProcessRequest(request: any, options: any): boolean;
|
|
21
|
+
declare function creditguardReplayRefusal(request: any, options: any): "not_process_request" | "headers" | "pp_domain_unbound" | "malformed_body" | "saved_card" | "otp" | "wallet" | "unexpected_field" | "keep_on_file" | "gift_card" | "dcc" | "installments" | "personal_id" | "txid_mismatch" | "pp_domain" | "jwe_fallback" | "jwe_unsupported" | "card_fields" | null;
|
|
22
|
+
declare function creditguardRefusalMessage(reason: any): string;
|
|
23
|
+
declare function injectCreditguardCard(body: any, card: any, options: any): {
|
|
24
|
+
body: string;
|
|
25
|
+
where: string[];
|
|
26
|
+
};
|
|
27
|
+
declare function parseCreditguardJwePublicKey(key: any): {
|
|
28
|
+
kty: string;
|
|
29
|
+
n: string;
|
|
30
|
+
e: string;
|
|
31
|
+
bits: number;
|
|
32
|
+
} | null;
|
|
33
|
+
declare function encryptCreditguardJwe(plaintext: any, publicKey: any, facilities?: {}): Promise<string>;
|
|
34
|
+
declare function injectCreditguardJweCard(body: any, card: any, publicKey: any, facilities: any): Promise<{
|
|
35
|
+
body: string;
|
|
36
|
+
where: string[];
|
|
37
|
+
}>;
|
|
38
|
+
declare function parseCreditguardTransaction(body: any, txId: any): {
|
|
39
|
+
txId: string;
|
|
40
|
+
amount: any;
|
|
41
|
+
currency: any;
|
|
42
|
+
envType: any;
|
|
43
|
+
mid: any;
|
|
44
|
+
transactionType: any;
|
|
45
|
+
creditType: any;
|
|
46
|
+
numberOfPayments: any;
|
|
47
|
+
remainingSubmitRetries: any;
|
|
48
|
+
threeDS: boolean;
|
|
49
|
+
threeDSProvider: any;
|
|
50
|
+
otpActive: boolean;
|
|
51
|
+
dccActive: boolean;
|
|
52
|
+
recaptcha: boolean;
|
|
53
|
+
jwePublicKey: string;
|
|
54
|
+
personalIdAlwaysEnabled: boolean;
|
|
55
|
+
inputs: any;
|
|
56
|
+
} | null;
|
|
57
|
+
declare function creditguardTransactionRefusal(txn: any, expectation: any): "otp" | "keep_on_file" | "dcc" | "installments" | "personal_id" | "jwe_unsupported" | "amount_mismatch" | "environment_mismatch" | "currency_mismatch" | "transaction_unreadable" | "three_d_secure" | "transaction_type" | "form_inputs" | "card_field_hidden" | "no_retries_left" | "jwe_public_key_malformed" | null;
|
|
58
|
+
declare function creditguardSendWindowRefusal(timing: any): "timing_unknown" | "page_expired" | "recaptcha_expired" | null;
|
|
59
|
+
declare var CREDITGUARD_REFUSAL_CODES: readonly string[];
|
|
60
|
+
declare function creditguardResponseOutcome(status: any, body: any, options: any): {
|
|
61
|
+
outcome: string;
|
|
62
|
+
reason: string;
|
|
63
|
+
code?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
outcome: string;
|
|
66
|
+
code: any;
|
|
67
|
+
reason?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
outcome: string;
|
|
70
|
+
reason?: undefined;
|
|
71
|
+
code?: undefined;
|
|
72
|
+
};
|
|
73
|
+
declare function sanitizeCreditguardResponse(body: any, options: any): string;
|
|
74
|
+
declare function creditguardFacts(status: any, body: any): {
|
|
75
|
+
outcome: string;
|
|
76
|
+
errorCode: any;
|
|
77
|
+
refusalCode: any;
|
|
78
|
+
};
|
|
79
|
+
export { CREDITGUARD_JWE_HEADER, CREDITGUARD_OPERATION, CREDITGUARD_PAGE_WINDOW_MS, CREDITGUARD_PPS_HOSTS, CREDITGUARD_RECAPTCHA_WINDOW_MS, CREDITGUARD_REFUSAL_CODES, CREDITGUARD_SANDBOX_HOST, classifyCreditguardRequest, creditguardBodyRefusal, creditguardFacts, creditguardNuveiRefusal, creditguardPageProcessUrl, creditguardPpDomainHost, creditguardPreparationEnvironment, creditguardProcessRefusal, creditguardProcessTxId, creditguardRefusalMessage, creditguardReplayRefusal, creditguardResponseOutcome, creditguardSendWindowRefusal, creditguardTransactionReadUrl, creditguardTransactionRefusal, encryptCreditguardJwe, injectCreditguardCard, injectCreditguardJweCard, isCreditguardJweCompact, isCreditguardPpsDocument, isCreditguardProcessRequest, isCreditguardProcessUrl, parseCreditguardJwePublicKey, parseCreditguardTransaction, readCreditguardJson, sanitizeCreditguardResponse };
|