@agent-cards/checkout 0.19.0 → 0.22.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/README.md +6 -753
- package/cdp.d.ts +1 -0
- package/cdp.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +33 -33
- package/playwright.d.ts +1 -0
- package/playwright.js +2 -0
- package/preflight.d.ts +1 -0
- package/preflight.js +2 -0
- package/CHANGELOG.md +0 -132
- package/PREFLIGHT.md +0 -312
- package/dist/adyen-merchant-hosted.generated.d.ts +0 -277
- package/dist/adyen-merchant-hosted.generated.js +0 -1902
- package/dist/adyen.generated.d.ts +0 -24
- package/dist/adyen.generated.js +0 -64
- package/dist/attachment.d.ts +0 -11
- package/dist/attachment.js +0 -50
- package/dist/braintree.d.ts +0 -2
- package/dist/braintree.generated.d.ts +0 -10
- package/dist/braintree.generated.js +0 -302
- package/dist/braintree.js +0 -2
- package/dist/builtin-registry.generated.d.ts +0 -2
- package/dist/builtin-registry.generated.js +0 -1
- package/dist/card-fields.generated.d.ts +0 -3
- package/dist/card-fields.generated.js +0 -46
- package/dist/cdp.d.ts +0 -192
- package/dist/cdp.js +0 -2393
- package/dist/checkout-com.generated.d.ts +0 -4
- package/dist/checkout-com.generated.js +0 -183
- package/dist/client.d.ts +0 -849
- package/dist/client.js +0 -1754
- package/dist/cse-body.d.ts +0 -25
- package/dist/cse-body.js +0 -41
- package/dist/fiserv.d.ts +0 -65
- package/dist/fiserv.generated.d.ts +0 -73
- package/dist/fiserv.generated.js +0 -830
- package/dist/fiserv.js +0 -104
- package/dist/hosted-form.d.ts +0 -44
- package/dist/hosted-form.js +0 -78
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -10
- package/dist/lifecycle.d.ts +0 -179
- package/dist/lifecycle.js +0 -395
- package/dist/mercado-checkout.d.ts +0 -20
- package/dist/mercado-checkout.generated.d.ts +0 -52
- package/dist/mercado-checkout.generated.js +0 -198
- package/dist/mercado-checkout.js +0 -108
- package/dist/merchant-handoff.d.ts +0 -54
- package/dist/merchant-handoff.js +0 -100
- package/dist/merchant-hosted.d.ts +0 -140
- package/dist/merchant-hosted.js +0 -170
- package/dist/merchant-total-watch.d.ts +0 -115
- package/dist/merchant-total-watch.js +0 -268
- package/dist/merchant-total.d.ts +0 -257
- package/dist/merchant-total.js +0 -383
- package/dist/owned-shop.generated.d.ts +0 -24
- package/dist/owned-shop.generated.js +0 -108
- package/dist/paysafe.generated.d.ts +0 -12
- package/dist/paysafe.generated.js +0 -87
- package/dist/playwright.d.ts +0 -3
- package/dist/playwright.js +0 -3
- package/dist/pre-claim.d.ts +0 -123
- package/dist/pre-claim.js +0 -386
- package/dist/preflight-capabilities.generated.d.ts +0 -1253
- package/dist/preflight-capabilities.generated.js +0 -1929
- package/dist/preflight-catalog.json +0 -4727
- package/dist/preflight-playwright.d.ts +0 -34
- package/dist/preflight-playwright.js +0 -355
- package/dist/preflight-schemas.json +0 -1122
- package/dist/preflight.d.ts +0 -1
- package/dist/preflight.generated.d.ts +0 -1965
- package/dist/preflight.generated.js +0 -570
- package/dist/preflight.js +0 -2
- package/dist/preparation.d.ts +0 -38
- package/dist/preparation.js +0 -191
- package/dist/prepared-processor.d.ts +0 -43
- package/dist/prepared-processor.js +0 -172
- package/dist/recurly.generated.d.ts +0 -1
- package/dist/recurly.generated.js +0 -87
- package/dist/registry.d.ts +0 -121
- package/dist/registry.js +0 -310
- package/dist/spreedly.generated.d.ts +0 -10
- package/dist/spreedly.generated.js +0 -332
- package/dist/stripe-checkout.d.ts +0 -81
- package/dist/stripe-checkout.generated.d.ts +0 -82
- package/dist/stripe-checkout.generated.js +0 -1093
- package/dist/stripe-checkout.js +0 -140
- package/dist/substitute.d.ts +0 -38
- package/dist/substitute.js +0 -23
- package/dist/substitutions.generated.d.ts +0 -11
- package/dist/substitutions.generated.js +0 -818
- package/examples/existing-browser.mjs +0 -63
- package/examples/preflight/classify-direct.mjs +0 -21
- package/examples/preflight/classify-kernel.mjs +0 -30
- package/examples/preflight/inspect-browser.mjs +0 -44
- package/examples/preflight/kernel-native/README.md +0 -112
- package/examples/preflight/kernel-native/documented-adapters.json +0 -113
- package/examples/preflight/kernel-native/inventory.json +0 -233
- package/examples/preflight/kernel-native/qualification.mjs +0 -182
- package/examples/preflight/kernel-profile.empty.json +0 -11
- package/examples/preflight/mollie-hosted.observations.json +0 -23
- package/examples/preflight/mollie-hosted.result.json +0 -103
- package/examples/preflight/stripe-script.direct.result.json +0 -92
- package/examples/preflight/stripe-script.observations.json +0 -16
- package/examples/preflight/stripe-script.result.json +0 -87
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
declare var MERCHANT_EXCHANGES_MAX: number;
|
|
2
|
-
declare var MERCHANT_PROFILE_RECOGNIZERS: any;
|
|
3
|
-
declare function declaredEndpointRefusal(endpoint: any): string | null;
|
|
4
|
-
declare function sha256Hex(input: any): string;
|
|
5
|
-
declare function merchantAmountFromResponses(profile: any, input: any): {
|
|
6
|
-
ok: boolean;
|
|
7
|
-
code: any;
|
|
8
|
-
reason: any;
|
|
9
|
-
} | {
|
|
10
|
-
ok: boolean;
|
|
11
|
-
merchant: any;
|
|
12
|
-
origin: string;
|
|
13
|
-
placeholders: {};
|
|
14
|
-
body: any;
|
|
15
|
-
pausedAt: number;
|
|
16
|
-
page: any;
|
|
17
|
-
checkoutOrigins: unknown[];
|
|
18
|
-
} | {
|
|
19
|
-
ok: boolean;
|
|
20
|
-
ctx: {
|
|
21
|
-
ok: boolean;
|
|
22
|
-
code: any;
|
|
23
|
-
reason: any;
|
|
24
|
-
} | {
|
|
25
|
-
ok: boolean;
|
|
26
|
-
merchant: any;
|
|
27
|
-
origin: string;
|
|
28
|
-
placeholders: {};
|
|
29
|
-
body: any;
|
|
30
|
-
pausedAt: number;
|
|
31
|
-
page: any;
|
|
32
|
-
checkoutOrigins: unknown[];
|
|
33
|
-
};
|
|
34
|
-
responses: any[];
|
|
35
|
-
origin: any;
|
|
36
|
-
} | {
|
|
37
|
-
ok: boolean;
|
|
38
|
-
amountCents: number;
|
|
39
|
-
currency: any;
|
|
40
|
-
} | {
|
|
41
|
-
ok: boolean;
|
|
42
|
-
amount: {
|
|
43
|
-
amountCents: any;
|
|
44
|
-
currency: any;
|
|
45
|
-
};
|
|
46
|
-
source: {
|
|
47
|
-
kind: string;
|
|
48
|
-
id: any;
|
|
49
|
-
method: any;
|
|
50
|
-
path: any;
|
|
51
|
-
completedAt: number;
|
|
52
|
-
ageMs: number;
|
|
53
|
-
bodyAmount: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
declare function merchantChargedFromResponses(profile: any, input: any): {
|
|
57
|
-
ok: boolean;
|
|
58
|
-
code: any;
|
|
59
|
-
reason: any;
|
|
60
|
-
} | {
|
|
61
|
-
ok: boolean;
|
|
62
|
-
merchant: any;
|
|
63
|
-
origin: string;
|
|
64
|
-
placeholders: {};
|
|
65
|
-
body: any;
|
|
66
|
-
pausedAt: number;
|
|
67
|
-
page: any;
|
|
68
|
-
checkoutOrigins: unknown[];
|
|
69
|
-
} | {
|
|
70
|
-
ok: boolean;
|
|
71
|
-
ctx: {
|
|
72
|
-
ok: boolean;
|
|
73
|
-
code: any;
|
|
74
|
-
reason: any;
|
|
75
|
-
} | {
|
|
76
|
-
ok: boolean;
|
|
77
|
-
merchant: any;
|
|
78
|
-
origin: string;
|
|
79
|
-
placeholders: {};
|
|
80
|
-
body: any;
|
|
81
|
-
pausedAt: number;
|
|
82
|
-
page: any;
|
|
83
|
-
checkoutOrigins: unknown[];
|
|
84
|
-
};
|
|
85
|
-
responses: any[];
|
|
86
|
-
origin: any;
|
|
87
|
-
} | {
|
|
88
|
-
ok: boolean;
|
|
89
|
-
charged: {
|
|
90
|
-
amountCents: number;
|
|
91
|
-
currency: any;
|
|
92
|
-
};
|
|
93
|
-
source: {
|
|
94
|
-
kind: string;
|
|
95
|
-
id: string;
|
|
96
|
-
method: any;
|
|
97
|
-
path: any;
|
|
98
|
-
completedAt: any;
|
|
99
|
-
};
|
|
100
|
-
readings: number;
|
|
101
|
-
};
|
|
102
|
-
declare function merchantAmountStagesOf(profile: any, request: any, scope: any): string[];
|
|
103
|
-
declare function merchantAmountPending(profile: any, stage: any, card: any, request: any): boolean;
|
|
104
|
-
declare function merchantAmountExchanges(profile: any, stage: any, input: any): {
|
|
105
|
-
ok: boolean;
|
|
106
|
-
code: any;
|
|
107
|
-
reason: any;
|
|
108
|
-
} | {
|
|
109
|
-
ok: boolean;
|
|
110
|
-
merchant: any;
|
|
111
|
-
origin: string;
|
|
112
|
-
placeholders: {};
|
|
113
|
-
body: any;
|
|
114
|
-
pausedAt: number;
|
|
115
|
-
page: any;
|
|
116
|
-
checkoutOrigins: unknown[];
|
|
117
|
-
} | {
|
|
118
|
-
ok: boolean;
|
|
119
|
-
stage: any;
|
|
120
|
-
origin: any;
|
|
121
|
-
} | {
|
|
122
|
-
ok: boolean;
|
|
123
|
-
responses: any[];
|
|
124
|
-
};
|
|
125
|
-
declare function merchantTotalFromResponses(profileId: any, input: any): {
|
|
126
|
-
ok: boolean;
|
|
127
|
-
code: any;
|
|
128
|
-
reason: any;
|
|
129
|
-
} | {
|
|
130
|
-
ok: boolean;
|
|
131
|
-
merchant: any;
|
|
132
|
-
origin: string;
|
|
133
|
-
placeholders: {};
|
|
134
|
-
body: any;
|
|
135
|
-
pausedAt: number;
|
|
136
|
-
page: any;
|
|
137
|
-
checkoutOrigins: unknown[];
|
|
138
|
-
} | {
|
|
139
|
-
ok: boolean;
|
|
140
|
-
ctx: {
|
|
141
|
-
ok: boolean;
|
|
142
|
-
code: any;
|
|
143
|
-
reason: any;
|
|
144
|
-
} | {
|
|
145
|
-
ok: boolean;
|
|
146
|
-
merchant: any;
|
|
147
|
-
origin: string;
|
|
148
|
-
placeholders: {};
|
|
149
|
-
body: any;
|
|
150
|
-
pausedAt: number;
|
|
151
|
-
page: any;
|
|
152
|
-
checkoutOrigins: unknown[];
|
|
153
|
-
};
|
|
154
|
-
responses: any[];
|
|
155
|
-
origin: any;
|
|
156
|
-
} | {
|
|
157
|
-
ok: boolean;
|
|
158
|
-
amountCents: number;
|
|
159
|
-
currency: any;
|
|
160
|
-
} | {
|
|
161
|
-
ok: boolean;
|
|
162
|
-
amount: {
|
|
163
|
-
amountCents: any;
|
|
164
|
-
currency: any;
|
|
165
|
-
};
|
|
166
|
-
source: {
|
|
167
|
-
kind: string;
|
|
168
|
-
id: any;
|
|
169
|
-
method: any;
|
|
170
|
-
path: any;
|
|
171
|
-
completedAt: number;
|
|
172
|
-
ageMs: number;
|
|
173
|
-
bodyAmount: string;
|
|
174
|
-
};
|
|
175
|
-
} | {
|
|
176
|
-
amount: {
|
|
177
|
-
amount: any;
|
|
178
|
-
currency: any;
|
|
179
|
-
};
|
|
180
|
-
ok: boolean;
|
|
181
|
-
code: any;
|
|
182
|
-
reason: any;
|
|
183
|
-
} | {
|
|
184
|
-
amount: {
|
|
185
|
-
amount: any;
|
|
186
|
-
currency: any;
|
|
187
|
-
};
|
|
188
|
-
ok: boolean;
|
|
189
|
-
merchant: any;
|
|
190
|
-
origin: string;
|
|
191
|
-
placeholders: {};
|
|
192
|
-
body: any;
|
|
193
|
-
pausedAt: number;
|
|
194
|
-
page: any;
|
|
195
|
-
checkoutOrigins: unknown[];
|
|
196
|
-
} | {
|
|
197
|
-
amount: {
|
|
198
|
-
amount: any;
|
|
199
|
-
currency: any;
|
|
200
|
-
};
|
|
201
|
-
ok: boolean;
|
|
202
|
-
ctx: {
|
|
203
|
-
ok: boolean;
|
|
204
|
-
code: any;
|
|
205
|
-
reason: any;
|
|
206
|
-
} | {
|
|
207
|
-
ok: boolean;
|
|
208
|
-
merchant: any;
|
|
209
|
-
origin: string;
|
|
210
|
-
placeholders: {};
|
|
211
|
-
body: any;
|
|
212
|
-
pausedAt: number;
|
|
213
|
-
page: any;
|
|
214
|
-
checkoutOrigins: unknown[];
|
|
215
|
-
};
|
|
216
|
-
responses: any[];
|
|
217
|
-
origin: any;
|
|
218
|
-
} | {
|
|
219
|
-
amount: {
|
|
220
|
-
amount: any;
|
|
221
|
-
currency: any;
|
|
222
|
-
};
|
|
223
|
-
ok: boolean;
|
|
224
|
-
amountCents: number;
|
|
225
|
-
currency: any;
|
|
226
|
-
} | {
|
|
227
|
-
amount: {
|
|
228
|
-
amount: any;
|
|
229
|
-
currency: any;
|
|
230
|
-
};
|
|
231
|
-
ok: boolean;
|
|
232
|
-
source: {
|
|
233
|
-
kind: string;
|
|
234
|
-
id: any;
|
|
235
|
-
method: any;
|
|
236
|
-
path: any;
|
|
237
|
-
completedAt: number;
|
|
238
|
-
ageMs: number;
|
|
239
|
-
bodyAmount: string;
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
declare function merchantProfileUrlRelation(profileId: any, rawUrl: any): "endpoint" | "sibling" | null;
|
|
243
|
-
declare function carriesAdyenCardCiphertext(body: any): any;
|
|
244
|
-
declare function classifyMerchantBody(profileId: any, body: any): Readonly<{
|
|
245
|
-
verdict: "pass";
|
|
246
|
-
}> | Readonly<{
|
|
247
|
-
verdict: "abort";
|
|
248
|
-
reason: any;
|
|
249
|
-
}> | Readonly<{
|
|
250
|
-
verdict: "pause";
|
|
251
|
-
}>;
|
|
252
|
-
declare function classifyMerchantRequest(profileId: any, rawUrl: any, method: any, body: any): Readonly<{
|
|
253
|
-
verdict: "pass";
|
|
254
|
-
}> | Readonly<{
|
|
255
|
-
verdict: "abort";
|
|
256
|
-
reason: any;
|
|
257
|
-
}> | Readonly<{
|
|
258
|
-
verdict: "pause";
|
|
259
|
-
}>;
|
|
260
|
-
declare function declaredUrlRelation(endpoint: any, rawUrl: any): "endpoint" | "sibling" | null;
|
|
261
|
-
declare function classifyDeclaredMerchantRequest(profileId: any, endpoint: any, rawUrl: any, method: any, body: any): Readonly<{
|
|
262
|
-
verdict: "pass";
|
|
263
|
-
}> | Readonly<{
|
|
264
|
-
verdict: "abort";
|
|
265
|
-
reason: any;
|
|
266
|
-
}> | Readonly<{
|
|
267
|
-
verdict: "pause";
|
|
268
|
-
}>;
|
|
269
|
-
declare function declaredTemplatedUrl(endpoint: any): string;
|
|
270
|
-
declare function merchantProfileTemplatedUrl(profileId: any, rawUrl: any): string;
|
|
271
|
-
declare function merchantBodyKeyPathSha256(body: any): string | null;
|
|
272
|
-
declare function merchantProfileUrlGlobs(profileId: any): unknown[];
|
|
273
|
-
declare function declaredUrlGlobs(endpoint: any): string[];
|
|
274
|
-
declare function merchantProfileRulesMatch(profileId: any, served: any): boolean;
|
|
275
|
-
declare function merchantProfileEnvironment(profileId: any): "production" | "sandbox";
|
|
276
|
-
declare function merchantProfileEndpointFor(profileId: any, checkoutOrigin: any): string | null;
|
|
277
|
-
export { MERCHANT_EXCHANGES_MAX, MERCHANT_PROFILE_RECOGNIZERS, carriesAdyenCardCiphertext, classifyDeclaredMerchantRequest, classifyMerchantBody, classifyMerchantRequest, declaredEndpointRefusal, declaredTemplatedUrl, declaredUrlGlobs, declaredUrlRelation, merchantAmountExchanges, merchantAmountFromResponses, merchantAmountPending, merchantAmountStagesOf, merchantBodyKeyPathSha256, merchantChargedFromResponses, merchantProfileEndpointFor, merchantProfileEnvironment, merchantProfileRulesMatch, merchantProfileTemplatedUrl, merchantProfileUrlGlobs, merchantProfileUrlRelation, merchantTotalFromResponses, sha256Hex };
|