@agent-cards/sdk 0.20.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/PREFLIGHT.md +314 -0
  3. package/README.md +864 -0
  4. package/dist/adyen-merchant-hosted.generated.d.ts +277 -0
  5. package/dist/adyen-merchant-hosted.generated.js +1902 -0
  6. package/dist/adyen.generated.d.ts +24 -0
  7. package/dist/adyen.generated.js +64 -0
  8. package/dist/agentcard.d.ts +72 -0
  9. package/dist/agentcard.js +71 -0
  10. package/dist/api-module.d.ts +54 -0
  11. package/dist/api-module.js +85 -0
  12. package/dist/attachment.d.ts +11 -0
  13. package/dist/attachment.js +50 -0
  14. package/dist/braintree.d.ts +2 -0
  15. package/dist/braintree.generated.d.ts +10 -0
  16. package/dist/braintree.generated.js +302 -0
  17. package/dist/braintree.js +2 -0
  18. package/dist/builtin-registry.generated.d.ts +2 -0
  19. package/dist/builtin-registry.generated.js +1 -0
  20. package/dist/buy.d.ts +374 -0
  21. package/dist/buy.js +314 -0
  22. package/dist/card-fields.generated.d.ts +3 -0
  23. package/dist/card-fields.generated.js +88 -0
  24. package/dist/cdp.d.ts +202 -0
  25. package/dist/cdp.js +2540 -0
  26. package/dist/checkout-com.generated.d.ts +4 -0
  27. package/dist/checkout-com.generated.js +183 -0
  28. package/dist/client.d.ts +929 -0
  29. package/dist/client.js +1896 -0
  30. package/dist/cse-body.d.ts +25 -0
  31. package/dist/cse-body.js +41 -0
  32. package/dist/fiserv.d.ts +65 -0
  33. package/dist/fiserv.generated.d.ts +73 -0
  34. package/dist/fiserv.generated.js +830 -0
  35. package/dist/fiserv.js +104 -0
  36. package/dist/hosted-form.d.ts +44 -0
  37. package/dist/hosted-form.js +78 -0
  38. package/dist/index.d.ts +37 -0
  39. package/dist/index.js +26 -0
  40. package/dist/languages.d.ts +23 -0
  41. package/dist/languages.js +76 -0
  42. package/dist/lifecycle.d.ts +235 -0
  43. package/dist/lifecycle.js +405 -0
  44. package/dist/mercado-checkout.d.ts +20 -0
  45. package/dist/mercado-checkout.generated.d.ts +52 -0
  46. package/dist/mercado-checkout.generated.js +198 -0
  47. package/dist/mercado-checkout.js +108 -0
  48. package/dist/merchant-handoff.d.ts +54 -0
  49. package/dist/merchant-handoff.js +100 -0
  50. package/dist/merchant-hosted.d.ts +140 -0
  51. package/dist/merchant-hosted.js +170 -0
  52. package/dist/merchant-total-watch.d.ts +115 -0
  53. package/dist/merchant-total-watch.js +268 -0
  54. package/dist/merchant-total.d.ts +257 -0
  55. package/dist/merchant-total.js +383 -0
  56. package/dist/owned-shop.generated.d.ts +24 -0
  57. package/dist/owned-shop.generated.js +108 -0
  58. package/dist/paysafe.generated.d.ts +12 -0
  59. package/dist/paysafe.generated.js +87 -0
  60. package/dist/playwright.d.ts +3 -0
  61. package/dist/playwright.js +3 -0
  62. package/dist/pre-claim.d.ts +123 -0
  63. package/dist/pre-claim.js +386 -0
  64. package/dist/preflight-capabilities.generated.d.ts +1311 -0
  65. package/dist/preflight-capabilities.generated.js +2007 -0
  66. package/dist/preflight-catalog.json +5031 -0
  67. package/dist/preflight-playwright.d.ts +34 -0
  68. package/dist/preflight-playwright.js +355 -0
  69. package/dist/preflight-schemas.json +1144 -0
  70. package/dist/preflight.d.ts +1 -0
  71. package/dist/preflight.generated.d.ts +2023 -0
  72. package/dist/preflight.generated.js +604 -0
  73. package/dist/preflight.js +2 -0
  74. package/dist/preparation.d.ts +38 -0
  75. package/dist/preparation.js +191 -0
  76. package/dist/prepared-processor.d.ts +43 -0
  77. package/dist/prepared-processor.js +172 -0
  78. package/dist/recurly.generated.d.ts +1 -0
  79. package/dist/recurly.generated.js +87 -0
  80. package/dist/registry.d.ts +145 -0
  81. package/dist/registry.js +338 -0
  82. package/dist/requests.d.ts +66 -0
  83. package/dist/requests.js +76 -0
  84. package/dist/spreedly.generated.d.ts +10 -0
  85. package/dist/spreedly.generated.js +332 -0
  86. package/dist/stripe-checkout.d.ts +81 -0
  87. package/dist/stripe-checkout.generated.d.ts +82 -0
  88. package/dist/stripe-checkout.generated.js +1153 -0
  89. package/dist/stripe-checkout.js +140 -0
  90. package/dist/substitute.d.ts +38 -0
  91. package/dist/substitute.js +23 -0
  92. package/dist/substitutions.generated.d.ts +11 -0
  93. package/dist/substitutions.generated.js +818 -0
  94. package/dist/voice-pkce.d.ts +49 -0
  95. package/dist/voice-pkce.js +147 -0
  96. package/dist/voice-retry.d.ts +6 -0
  97. package/dist/voice-retry.js +27 -0
  98. package/dist/voice-stream.generated.d.ts +118 -0
  99. package/dist/voice-stream.generated.js +170 -0
  100. package/dist/voice-types.d.ts +708 -0
  101. package/dist/voice-types.js +16 -0
  102. package/dist/voice.d.ts +365 -0
  103. package/dist/voice.js +807 -0
  104. package/dist/webhooks.d.ts +87 -0
  105. package/dist/webhooks.js +136 -0
  106. package/examples/existing-browser.mjs +62 -0
  107. package/examples/preflight/classify-direct.mjs +21 -0
  108. package/examples/preflight/classify-kernel.mjs +30 -0
  109. package/examples/preflight/inspect-browser.mjs +44 -0
  110. package/examples/preflight/kernel-native/README.md +112 -0
  111. package/examples/preflight/kernel-native/documented-adapters.json +113 -0
  112. package/examples/preflight/kernel-native/inventory.json +242 -0
  113. package/examples/preflight/kernel-native/qualification.mjs +182 -0
  114. package/examples/preflight/kernel-profile.empty.json +11 -0
  115. package/examples/preflight/mollie-hosted.observations.json +23 -0
  116. package/examples/preflight/mollie-hosted.result.json +103 -0
  117. package/examples/preflight/stripe-script.direct.result.json +92 -0
  118. package/examples/preflight/stripe-script.observations.json +16 -0
  119. package/examples/preflight/stripe-script.result.json +87 -0
  120. package/package.json +53 -0
  121. package/readme.test.mjs +53 -0
@@ -0,0 +1,277 @@
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 };