@zkp2p/zkp2p-attestation 2.0.0 → 3.0.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/dist/index.d.cts CHANGED
@@ -4,10 +4,11 @@ interface NitroAttestationWarning {
4
4
  details?: Record<string, unknown>;
5
5
  }
6
6
 
7
- type SellerCredentialUploadPlatform = "venmo" | "cashapp" | "wise" | "paypal";
8
- type PayeeIdSellerCredentialUploadPlatform = Exclude<SellerCredentialUploadPlatform, "wise">;
9
- type IdentityPlatform = "venmo" | "paypal" | "wise" | "cashapp";
10
- type BuyerTeeSessionMaterialPlatform = "venmo" | "cashapp" | "monzo" | "wise" | "revolut" | "chime" | "zelle" | "paypal";
7
+ type SellerCredentialUploadPlatform = "venmo" | "cashapp" | "wise" | "paypal" | "monobank";
8
+ type PayeeIdSellerCredentialUploadPlatform = Exclude<SellerCredentialUploadPlatform, "wise" | "monobank">;
9
+ type IdentityRequestPlatform = "venmo" | "paypal" | "wise" | "cashapp" | "alipay";
10
+ type IdentityPlatform = IdentityRequestPlatform | "monobank";
11
+ type BuyerTeeSessionMaterialPlatform = "venmo" | "cashapp" | "monzo" | "wise" | "revolut" | "chime" | "zelle" | "paypal" | "monobank" | "alipay";
11
12
  type BuyerTeeHeaderMap = Record<string, string>;
12
13
  type RequiredBuyerTeeHeaders<K extends string> = BuyerTeeHeaderMap & {
13
14
  [H in K]: string;
@@ -41,6 +42,10 @@ type BankOfAmericaBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
41
42
  type ZelleBuyerTeeSessionMaterial = CitiBuyerTeeSessionMaterial | ChaseBuyerTeeSessionMaterial | BankOfAmericaBuyerTeeSessionMaterial;
42
43
  /** Captured PayPal request headers; type requires `Cookie`. */
43
44
  type PayPalBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
45
+ /** Monobank Open API request headers; type requires `X-Token`. */
46
+ type MonobankBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"X-Token">;
47
+ /** Captured Alipay request headers; type requires `Cookie`. */
48
+ type AlipayBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
44
49
  /** Captured Venmo identity request headers; type requires `Cookie`. */
45
50
  type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
46
51
  /** Captured PayPal identity request headers; type requires `Cookie`. */
@@ -53,6 +58,8 @@ interface CashAppIdentitySessionMaterial {
53
58
  requestPayload: string;
54
59
  requestHeaders?: BuyerTeeHeaderMap;
55
60
  }
61
+ /** Captured Alipay identity request headers; type requires `Cookie`. */
62
+ type AlipayIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
56
63
  interface VenmoBuyerTeeParams {
57
64
  SENDER_ID: string;
58
65
  index: number;
@@ -94,6 +101,13 @@ type ChimeBuyerTeeParams = Record<string, never>;
94
101
  interface PayPalBuyerTeeParams {
95
102
  PAYMENT_ID: string;
96
103
  }
104
+ interface MonobankBuyerTeeParams {
105
+ ACCOUNT_ID: string;
106
+ TRANSACTION_ID: string;
107
+ }
108
+ interface AlipayBuyerTeeParams {
109
+ TRADE_NO: string;
110
+ }
97
111
  interface VenmoIdentityParams {
98
112
  SENDER_ID: string;
99
113
  }
@@ -102,6 +116,7 @@ interface WiseIdentityParams {
102
116
  PROFILE_ID: string;
103
117
  }
104
118
  type CashAppIdentityParams = Record<string, never>;
119
+ type AlipayIdentityParams = Record<string, never>;
105
120
  interface BuyerTeeActionTypeByPlatform {
106
121
  venmo: "transfer_venmo";
107
122
  cashapp: "transfer_cashapp";
@@ -111,12 +126,16 @@ interface BuyerTeeActionTypeByPlatform {
111
126
  chime: "transfer_chime";
112
127
  zelle: ZelleBuyerTeeActionType;
113
128
  paypal: "transfer_paypal";
129
+ monobank: "transfer_monobank";
130
+ alipay: "transfer_alipay";
114
131
  }
115
132
  interface IdentityActionTypeByPlatform {
116
133
  venmo: "register_venmo";
117
134
  paypal: "register_paypal";
118
135
  wise: "register_wise";
119
136
  cashapp: "register_cashapp";
137
+ monobank: "register_monobank";
138
+ alipay: "register_alipay";
120
139
  }
121
140
  interface BuyerTeeSessionMaterialByPlatform {
122
141
  venmo: VenmoBuyerTeeSessionMaterial;
@@ -127,12 +146,15 @@ interface BuyerTeeSessionMaterialByPlatform {
127
146
  chime: ChimeBuyerTeeSessionMaterial;
128
147
  zelle: ZelleBuyerTeeSessionMaterial;
129
148
  paypal: PayPalBuyerTeeSessionMaterial;
149
+ monobank: MonobankBuyerTeeSessionMaterial;
150
+ alipay: AlipayBuyerTeeSessionMaterial;
130
151
  }
131
152
  interface IdentitySessionMaterialByPlatform {
132
153
  venmo: VenmoIdentitySessionMaterial;
133
154
  paypal: PayPalIdentitySessionMaterial;
134
155
  wise: WiseIdentitySessionMaterial;
135
156
  cashapp: CashAppIdentitySessionMaterial;
157
+ alipay: AlipayIdentitySessionMaterial;
136
158
  }
137
159
  interface BuyerTeeParamsByPlatform {
138
160
  venmo: VenmoBuyerTeeParams;
@@ -143,12 +165,15 @@ interface BuyerTeeParamsByPlatform {
143
165
  chime: ChimeBuyerTeeParams;
144
166
  zelle: ZelleBuyerTeeParams;
145
167
  paypal: PayPalBuyerTeeParams;
168
+ monobank: MonobankBuyerTeeParams;
169
+ alipay: AlipayBuyerTeeParams;
146
170
  }
147
171
  interface IdentityParamsByPlatform {
148
172
  venmo: VenmoIdentityParams;
149
173
  paypal: PayPalIdentityParams;
150
174
  wise: WiseIdentityParams;
151
175
  cashapp: CashAppIdentityParams;
176
+ alipay: AlipayIdentityParams;
152
177
  }
153
178
  /**
154
179
  * Flat buyer TEE action union. Prefer `BuyerTeeActionTypeByPlatform[P]`
@@ -160,6 +185,10 @@ interface WiseSellerCredentialSessionMaterial {
160
185
  apiToken: string;
161
186
  profileId?: string;
162
187
  }
188
+ interface MonobankSellerCredentialSessionMaterial {
189
+ apiToken: string;
190
+ accountId?: string;
191
+ }
163
192
  interface PayeeIdSellerCredentialUploadPayload {
164
193
  platform?: PayeeIdSellerCredentialUploadPlatform;
165
194
  payeeId: string;
@@ -170,11 +199,16 @@ interface WiseSellerCredentialUploadPayload {
170
199
  sessionMaterial: WiseSellerCredentialSessionMaterial;
171
200
  payeeId?: never;
172
201
  }
173
- type SellerCredentialUploadPayload = PayeeIdSellerCredentialUploadPayload | WiseSellerCredentialUploadPayload;
202
+ interface MonobankSellerCredentialUploadPayload {
203
+ platform: "monobank";
204
+ sessionMaterial: MonobankSellerCredentialSessionMaterial;
205
+ payeeId?: never;
206
+ }
207
+ type SellerCredentialUploadPayload = PayeeIdSellerCredentialUploadPayload | WiseSellerCredentialUploadPayload | MonobankSellerCredentialUploadPayload;
174
208
  type PayeeIdSellerCredentialUploadWithPlatformPayload = PayeeIdSellerCredentialUploadPayload & {
175
209
  platform: PayeeIdSellerCredentialUploadPlatform;
176
210
  };
177
- type UploadSellerCredentialPayload = PayeeIdSellerCredentialUploadWithPlatformPayload | WiseSellerCredentialUploadPayload;
211
+ type UploadSellerCredentialPayload = PayeeIdSellerCredentialUploadWithPlatformPayload | WiseSellerCredentialUploadPayload | MonobankSellerCredentialUploadPayload;
178
212
  type BuyerTeeSessionMaterialPayloadBaseFor<P extends BuyerTeeSessionMaterialPlatform> = {
179
213
  platform: P;
180
214
  actionType: BuyerTeeActionTypeByPlatform[P];
@@ -184,13 +218,13 @@ type BuyerTeeSessionMaterialPayloadFor<P extends BuyerTeeSessionMaterialPlatform
184
218
  type BuyerTeeVerifyPaymentPayloadFor<P extends BuyerTeeSessionMaterialPlatform> = BuyerTeeSessionMaterialPayloadFor<P> & {
185
219
  params: BuyerTeeParamsByPlatform[P];
186
220
  };
187
- type IdentitySessionMaterialPayloadFor<P extends IdentityPlatform> = {
221
+ type IdentitySessionMaterialPayloadFor<P extends IdentityRequestPlatform> = {
188
222
  platform: P;
189
223
  actionType: IdentityActionTypeByPlatform[P];
224
+ callerAddress: string;
190
225
  sessionMaterial: IdentitySessionMaterialByPlatform[P];
191
226
  };
192
- type IdentityAttestationRequestPayloadFor<P extends IdentityPlatform> = IdentitySessionMaterialPayloadFor<P> & {
193
- callerAddress: string;
227
+ type IdentityAttestationRequestPayloadFor<P extends IdentityRequestPlatform> = IdentitySessionMaterialPayloadFor<P> & {
194
228
  params: IdentityParamsByPlatform[P];
195
229
  };
196
230
  type BuyerTeeSessionMaterialPayload = {
@@ -200,11 +234,11 @@ type BuyerTeeVerifyPaymentPayload = {
200
234
  [P in BuyerTeeSessionMaterialPlatform]: BuyerTeeVerifyPaymentPayloadFor<P>;
201
235
  }[BuyerTeeSessionMaterialPlatform];
202
236
  type IdentitySessionMaterialPayload = {
203
- [P in IdentityPlatform]: IdentitySessionMaterialPayloadFor<P>;
204
- }[IdentityPlatform];
237
+ [P in IdentityRequestPlatform]: IdentitySessionMaterialPayloadFor<P>;
238
+ }[IdentityRequestPlatform];
205
239
  type IdentityAttestationRequestPayload = {
206
- [P in IdentityPlatform]: IdentityAttestationRequestPayloadFor<P>;
207
- }[IdentityPlatform];
240
+ [P in IdentityRequestPlatform]: IdentityAttestationRequestPayloadFor<P>;
241
+ }[IdentityRequestPlatform];
208
242
  type VenmoBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"venmo">;
209
243
  type CashAppBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"cashapp">;
210
244
  type MonzoBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"monzo">;
@@ -213,10 +247,13 @@ type RevolutBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"
213
247
  type ChimeBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"chime">;
214
248
  type ZelleBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"zelle">;
215
249
  type PayPalBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"paypal">;
250
+ type MonobankBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"monobank">;
251
+ type AlipayBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"alipay">;
216
252
  type VenmoIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"venmo">;
217
253
  type PayPalIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"paypal">;
218
254
  type WiseIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"wise">;
219
255
  type CashAppIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"cashapp">;
256
+ type AlipayIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"alipay">;
220
257
  interface IntentDetails {
221
258
  intentHash: string;
222
259
  amount: string;
@@ -301,8 +338,7 @@ type BuyerTeeVerifier = {
301
338
  interface BuyerTeeSupportedVerifiersResponse {
302
339
  verifiers: BuyerTeeVerifier[];
303
340
  }
304
- interface SellerCredentialBundle {
305
- platform: SellerCredentialUploadPlatform;
341
+ interface SellerCredentialBundleBase {
306
342
  credentialType: string;
307
343
  encryptedBlob: string;
308
344
  encryptedDataKey: string;
@@ -312,9 +348,13 @@ interface SellerCredentialBundle {
312
348
  credentialExpiresAt: string | null;
313
349
  bundleSignature: string;
314
350
  }
315
- type SellerCredentialBundleFor<P extends SellerCredentialUploadPlatform> = SellerCredentialBundle & {
351
+ type SellerCredentialBundleFor<P extends SellerCredentialUploadPlatform> = SellerCredentialBundleBase & {
316
352
  platform: P;
353
+ identityAttestation?: IdentityAttestationOutputFor<P>;
317
354
  };
355
+ type SellerCredentialBundle = {
356
+ [P in SellerCredentialUploadPlatform]: SellerCredentialBundleFor<P>;
357
+ }[SellerCredentialUploadPlatform];
318
358
  interface TrustPins {
319
359
  expectedPcr8Hex?: string;
320
360
  expectedPcr8ByHost?: Record<string, string>;
@@ -357,10 +397,10 @@ type VerifySellerCredentialBundleOptions = {
357
397
  [P in SellerCredentialUploadPlatform]: VerifySellerCredentialBundleOptionsFor<P>;
358
398
  }[SellerCredentialUploadPlatform];
359
399
  type CreateEncryptedSellerCredentialUploadParams = CreateEncryptedSellerCredentialUploadBaseParams & SellerCredentialUploadPayload;
360
- type CreateEncryptedIdentitySessionMaterialParamsFor<P extends IdentityPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
400
+ type CreateEncryptedIdentitySessionMaterialParamsFor<P extends IdentityRequestPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
361
401
  type CreateEncryptedIdentitySessionMaterialParams = {
362
- [P in IdentityPlatform]: CreateEncryptedIdentitySessionMaterialParamsFor<P>;
363
- }[IdentityPlatform];
402
+ [P in IdentityRequestPlatform]: CreateEncryptedIdentitySessionMaterialParamsFor<P>;
403
+ }[IdentityRequestPlatform];
364
404
  type CreateEncryptedBuyerTeeSessionMaterialParamsFor<P extends BuyerTeeSessionMaterialPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & BuyerTeeSessionMaterialPayloadFor<P>;
365
405
  type CreateEncryptedBuyerTeeSessionMaterialParams = {
366
406
  [P in BuyerTeeSessionMaterialPlatform]: CreateEncryptedBuyerTeeSessionMaterialParamsFor<P>;
@@ -372,13 +412,14 @@ type VerifyBuyerTeePaymentParamsFor<P extends BuyerTeeSessionMaterialPlatform> =
372
412
  type VerifyBuyerTeePaymentParams = {
373
413
  [P in BuyerTeeSessionMaterialPlatform]: VerifyBuyerTeePaymentParamsFor<P>;
374
414
  }[BuyerTeeSessionMaterialPlatform];
375
- type RequestIdentityAttestationParamsFor<P extends IdentityPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentityAttestationRequestPayloadFor<P>;
415
+ type RequestIdentityAttestationParamsFor<P extends IdentityRequestPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentityAttestationRequestPayloadFor<P>;
376
416
  type RequestIdentityAttestationParams = {
377
- [P in IdentityPlatform]: RequestIdentityAttestationParamsFor<P>;
378
- }[IdentityPlatform];
417
+ [P in IdentityRequestPlatform]: RequestIdentityAttestationParamsFor<P>;
418
+ }[IdentityRequestPlatform];
379
419
  type UploadSellerCredentialParams = CreateEncryptedSellerCredentialUploadBaseParams & UploadSellerCredentialPayload;
380
420
  interface CreateEncryptedSellerCredentialUploadBaseParams {
381
421
  attestationServiceUrl: string;
422
+ callerAddress?: string;
382
423
  trust?: TrustPins;
383
424
  fetch?: typeof fetch;
384
425
  subtle?: SubtleCrypto;
@@ -434,12 +475,13 @@ type EncryptBuyerTeeSessionMaterialParamsFor<P extends BuyerTeeSessionMaterialPl
434
475
  type EncryptBuyerTeeSessionMaterialParams = {
435
476
  [P in BuyerTeeSessionMaterialPlatform]: EncryptBuyerTeeSessionMaterialParamsFor<P>;
436
477
  }[BuyerTeeSessionMaterialPlatform];
437
- type EncryptIdentitySessionMaterialParamsFor<P extends IdentityPlatform> = EncryptBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
478
+ type EncryptIdentitySessionMaterialParamsFor<P extends IdentityRequestPlatform> = EncryptBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
438
479
  type EncryptIdentitySessionMaterialParams = {
439
- [P in IdentityPlatform]: EncryptIdentitySessionMaterialParamsFor<P>;
440
- }[IdentityPlatform];
480
+ [P in IdentityRequestPlatform]: EncryptIdentitySessionMaterialParamsFor<P>;
481
+ }[IdentityRequestPlatform];
441
482
  interface EncryptSellerCredentialUploadBaseParams {
442
483
  key: AttestedSellerUploadKey;
484
+ callerAddress?: string;
443
485
  issuedAtMs?: number;
444
486
  jweId?: string;
445
487
  subtle?: SubtleCrypto;
@@ -477,7 +519,7 @@ interface NitroAttestationClient {
477
519
  createEncryptedBuyerTeeSessionMaterial(params: NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams): Promise<string>;
478
520
  createEncryptedIdentitySessionMaterial(params: NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams): Promise<string>;
479
521
  createEncryptedSellerCredentialUpload(params: NitroAttestationClientCreateEncryptedSellerCredentialUploadParams): Promise<string>;
480
- requestIdentityAttestation<P extends IdentityPlatform>(params: WithOptionalAttestationServiceUrl<RequestIdentityAttestationParamsFor<P>>): Promise<IdentityAttestationOutputFor<P>>;
522
+ requestIdentityAttestation<P extends IdentityRequestPlatform>(params: WithOptionalAttestationServiceUrl<RequestIdentityAttestationParamsFor<P>>): Promise<IdentityAttestationOutputFor<P>>;
481
523
  uploadSellerCredential(params: NitroAttestationClientUploadSellerCredentialParams): Promise<SellerCredentialBundle>;
482
524
  verifyBuyerTeePayment<P extends BuyerTeeSessionMaterialPlatform>(params: NitroAttestationClientVerifyBuyerTeePaymentParamsFor<P>): Promise<BuyerTeeAttestationOutputFor<P>>;
483
525
  fetchAndVerifyAttestation(params?: Omit<FetchAndVerifyAttestationParams, "attestationServiceUrl"> & {
@@ -492,7 +534,7 @@ declare function createNitroAttestationClient(options: NitroAttestationClientOpt
492
534
 
493
535
  declare function createEncryptedBuyerTeeSessionMaterial<P extends BuyerTeeSessionMaterialPlatform>(params: CreateEncryptedBuyerTeeSessionMaterialParamsFor<P>): Promise<string>;
494
536
 
495
- declare function createEncryptedIdentitySessionMaterial<P extends IdentityPlatform>(params: CreateEncryptedIdentitySessionMaterialParamsFor<P>): Promise<string>;
537
+ declare function createEncryptedIdentitySessionMaterial<P extends IdentityRequestPlatform>(params: CreateEncryptedIdentitySessionMaterialParamsFor<P>): Promise<string>;
496
538
 
497
539
  declare function createEncryptedSellerCredentialUpload(params: CreateEncryptedSellerCredentialUploadParams): Promise<string>;
498
540
 
@@ -501,7 +543,7 @@ declare function hashUtf8(value: string): string;
501
543
 
502
544
  declare function encryptBuyerTeeSessionMaterial<P extends BuyerTeeSessionMaterialPlatform>(params: EncryptBuyerTeeSessionMaterialParamsFor<P>): Promise<string>;
503
545
 
504
- declare function encryptIdentitySessionMaterial<P extends IdentityPlatform>(params: EncryptIdentitySessionMaterialParamsFor<P>): Promise<string>;
546
+ declare function encryptIdentitySessionMaterial<P extends IdentityRequestPlatform>(params: EncryptIdentitySessionMaterialParamsFor<P>): Promise<string>;
505
547
 
506
548
  declare function encryptSellerCredentialUpload(params: EncryptSellerCredentialUploadParams): Promise<string>;
507
549
 
@@ -524,7 +566,7 @@ declare class NitroAttestationError extends Error {
524
566
 
525
567
  declare function fetchAndVerifyAttestation(params: FetchAndVerifyAttestationParams): Promise<VerifiedAttestation>;
526
568
 
527
- declare function requestIdentityAttestation<P extends IdentityPlatform>(params: RequestIdentityAttestationParamsFor<P>): Promise<IdentityAttestationOutputFor<P>>;
569
+ declare function requestIdentityAttestation<P extends IdentityRequestPlatform>(params: RequestIdentityAttestationParamsFor<P>): Promise<IdentityAttestationOutputFor<P>>;
528
570
 
529
571
  declare const AWS_NITRO_ROOT_PEM = "-----BEGIN CERTIFICATE-----\nMIICETCCAZagAwIBAgIRAPkxdWgbkK/hHUbMtOTn+FYwCgYIKoZIzj0EAwMwSTEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoMBkFtYXpvbjEMMAoGA1UECwwDQVdTMRswGQYD\nVQQDDBJhd3Mubml0cm8tZW5jbGF2ZXMwHhcNMTkxMDI4MTMyODA1WhcNNDkxMDI4\nMTQyODA1WjBJMQswCQYDVQQGEwJVUzEPMA0GA1UECgwGQW1hem9uMQwwCgYDVQQL\nDANBV1MxGzAZBgNVBAMMEmF3cy5uaXRyby1lbmNsYXZlczB2MBAGByqGSM49AgEG\nBSuBBAAiA2IABPwCVOumCMHzaHDimtqQvkY4MpJzbolL//Zy2YlES1BR5TSksfbb\n48C8WBoyt7F2Bw7eEtaaP+ohG2bnUs990d0JX28TcPQXCEPZ3BABIeTPYwEoCWZE\nh8l5YoQwTcU/9KNCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUkCW1DdkF\nR+eWw5b6cp3PmanfS5YwDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2kAMGYC\nMQCjfy+Rocm9Xue4YnwWmNJVA44fA0P5W2OpYow9OYCVRaEevL8uO1XYru5xtMPW\nrfMCMQCi85sWBbJwKKXdS6BptQFuZbT73o/gBh1qUxl/nNr12UO8Yfwr6wPLb+6N\nIwLz3/Y=\n-----END CERTIFICATE-----\n";
530
572
  declare const AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f79bb5b";
@@ -539,4 +581,4 @@ declare function verifyIdentityAttestation<P extends IdentityPlatform>(payload:
539
581
 
540
582
  declare function verifySellerCredentialBundle<P extends SellerCredentialUploadPlatform>(bundle: SellerCredentialBundleFor<P>, options: VerifySellerCredentialBundleOptionsFor<P>): SellerCredentialBundleFor<P>;
541
583
 
542
- export { AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX, AWS_NITRO_ROOT_PEM, type AttestationOutput, type AttestedSellerUploadKey, type BankOfAmericaBuyerTeeSessionMaterial, type BuyerTeeActionType, type BuyerTeeActionTypeByPlatform, type BuyerTeeAttestationOutput, type BuyerTeeAttestationOutputFor, type BuyerTeeHeaderMap, type BuyerTeeParamsByPlatform, type BuyerTeeSessionMaterialByPlatform, type BuyerTeeSessionMaterialPayload, type BuyerTeeSessionMaterialPayloadFor, type BuyerTeeSessionMaterialPlatform, type BuyerTeeSupportedVerifiersResponse, type BuyerTeeVerifier, type BuyerTeeVerifyPaymentPayload, type BuyerTeeVerifyPaymentPayloadFor, type CashAppBuyerTeeParams, type CashAppBuyerTeeSessionMaterial, type CashAppBuyerTeeSessionMaterialPayload, type CashAppIdentityParams, type CashAppIdentitySessionMaterial, type CashAppIdentitySessionMaterialPayload, type ChaseBuyerTeeSessionMaterial, type ChimeBuyerTeeParams, type ChimeBuyerTeeSessionMaterial, type ChimeBuyerTeeSessionMaterialPayload, type CitiBuyerTeeSessionMaterial, type CreateEncryptedBuyerTeeSessionMaterialParams, type CreateEncryptedBuyerTeeSessionMaterialParamsFor, type CreateEncryptedIdentitySessionMaterialParams, type CreateEncryptedIdentitySessionMaterialParamsFor, type CreateEncryptedSellerCredentialUploadParams, type Eip712Field, type EncryptBuyerTeeSessionMaterialParams, type EncryptBuyerTeeSessionMaterialParamsFor, type EncryptIdentitySessionMaterialParams, type EncryptIdentitySessionMaterialParamsFor, type EncryptSellerCredentialUploadParams, type FetchAndVerifyAttestationParams, type IdentityActionType, type IdentityActionTypeByPlatform, type IdentityAttestationOutput, type IdentityAttestationOutputFor, type IdentityAttestationRequestPayload, type IdentityAttestationRequestPayloadFor, type IdentityParamsByPlatform, type IdentityPlatform, type IdentitySessionMaterialByPlatform, type IdentitySessionMaterialPayload, type IdentitySessionMaterialPayloadFor, type IdentityTypedDataValue, type IntentDetails, type MonzoBuyerTeeParams, type MonzoBuyerTeeSessionMaterial, type MonzoBuyerTeeSessionMaterialPayload, type NitroAttestationClient, type NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams, type NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams, type NitroAttestationClientCreateEncryptedSellerCredentialUploadParams, type NitroAttestationClientOptions, type NitroAttestationClientRequestIdentityAttestationParams, type NitroAttestationClientUploadSellerCredentialParams, type NitroAttestationClientVerifyBuyerTeePaymentParams, type NitroAttestationClientVerifyBuyerTeePaymentParamsFor, type NitroAttestationEnvironment, NitroAttestationError, type NitroAttestationErrorCode, type NitroAttestationWarning, type NitroServiceResponseErrorDetails, type NormalizedIdentityDetails, type PayPalBuyerTeeParams, type PayPalBuyerTeeSessionMaterial, type PayPalBuyerTeeSessionMaterialPayload, type PayPalIdentityParams, type PayPalIdentitySessionMaterial, type PayPalIdentitySessionMaterialPayload, type PayeeIdSellerCredentialUploadPayload, type PayeeIdSellerCredentialUploadPlatform, type PayeeIdSellerCredentialUploadWithPlatformPayload, type PaymentTypedDataValue, type RequestIdentityAttestationParams, type RequestIdentityAttestationParamsFor, type RevolutBuyerTeeParams, type RevolutBuyerTeeSessionMaterial, type RevolutBuyerTeeSessionMaterialPayload, type SellerCredentialBundle, type SellerCredentialBundleFor, type SellerCredentialUploadPayload, type SellerCredentialUploadPlatform, type TrustPins, type TypedDataSpec, type UnifiedPaymentVerifierDomain, type UploadSellerCredentialParams, type UploadSellerCredentialPayload, type VenmoBuyerTeeParams, type VenmoBuyerTeeSessionMaterial, type VenmoBuyerTeeSessionMaterialPayload, type VenmoIdentityParams, type VenmoIdentitySessionMaterial, type VenmoIdentitySessionMaterialPayload, type VerifiedAttestation, type VerifiedAttestationPayload, type VerifyBuyerTeePaymentAttestationOptions, type VerifyBuyerTeePaymentAttestationOptionsFor, type VerifyBuyerTeePaymentParams, type VerifyBuyerTeePaymentParamsFor, type VerifyIdentityAttestationOptions, type VerifyIdentityAttestationOptionsFor, type VerifySellerCredentialBundleOptions, type VerifySellerCredentialBundleOptionsFor, type WiseBuyerTeeParams, type WiseBuyerTeeSessionMaterial, type WiseBuyerTeeSessionMaterialPayload, type WiseIdentityParams, type WiseIdentitySessionMaterial, type WiseIdentitySessionMaterialPayload, type WiseSellerCredentialSessionMaterial, type WiseSellerCredentialUploadPayload, type ZelleBuyerTeeActionType, type ZelleBuyerTeeParams, type ZelleBuyerTeeSessionMaterial, type ZelleBuyerTeeSessionMaterialByActionType, type ZelleBuyerTeeSessionMaterialPayload, type ZelleBuyerTeeVerifyPaymentPayload, createEncryptedBuyerTeeSessionMaterial, createEncryptedIdentitySessionMaterial, createEncryptedSellerCredentialUpload, createNitroAttestationClient, encryptBuyerTeeSessionMaterial, encryptIdentitySessionMaterial, encryptSellerCredentialUpload, fetchAndVerifyAttestation, getUnifiedPaymentVerifierDomainSeparator, hashUtf8, requestIdentityAttestation, uploadSellerCredential, verifyBuyerTeePayment, verifyBuyerTeePaymentAttestation, verifyIdentityAttestation, verifySellerCredentialBundle };
584
+ export { AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX, AWS_NITRO_ROOT_PEM, type AlipayBuyerTeeParams, type AlipayBuyerTeeSessionMaterial, type AlipayBuyerTeeSessionMaterialPayload, type AlipayIdentityParams, type AlipayIdentitySessionMaterial, type AlipayIdentitySessionMaterialPayload, type AttestationOutput, type AttestedSellerUploadKey, type BankOfAmericaBuyerTeeSessionMaterial, type BuyerTeeActionType, type BuyerTeeActionTypeByPlatform, type BuyerTeeAttestationOutput, type BuyerTeeAttestationOutputFor, type BuyerTeeHeaderMap, type BuyerTeeParamsByPlatform, type BuyerTeeSessionMaterialByPlatform, type BuyerTeeSessionMaterialPayload, type BuyerTeeSessionMaterialPayloadFor, type BuyerTeeSessionMaterialPlatform, type BuyerTeeSupportedVerifiersResponse, type BuyerTeeVerifier, type BuyerTeeVerifyPaymentPayload, type BuyerTeeVerifyPaymentPayloadFor, type CashAppBuyerTeeParams, type CashAppBuyerTeeSessionMaterial, type CashAppBuyerTeeSessionMaterialPayload, type CashAppIdentityParams, type CashAppIdentitySessionMaterial, type CashAppIdentitySessionMaterialPayload, type ChaseBuyerTeeSessionMaterial, type ChimeBuyerTeeParams, type ChimeBuyerTeeSessionMaterial, type ChimeBuyerTeeSessionMaterialPayload, type CitiBuyerTeeSessionMaterial, type CreateEncryptedBuyerTeeSessionMaterialParams, type CreateEncryptedBuyerTeeSessionMaterialParamsFor, type CreateEncryptedIdentitySessionMaterialParams, type CreateEncryptedIdentitySessionMaterialParamsFor, type CreateEncryptedSellerCredentialUploadParams, type Eip712Field, type EncryptBuyerTeeSessionMaterialParams, type EncryptBuyerTeeSessionMaterialParamsFor, type EncryptIdentitySessionMaterialParams, type EncryptIdentitySessionMaterialParamsFor, type EncryptSellerCredentialUploadParams, type FetchAndVerifyAttestationParams, type IdentityActionType, type IdentityActionTypeByPlatform, type IdentityAttestationOutput, type IdentityAttestationOutputFor, type IdentityAttestationRequestPayload, type IdentityAttestationRequestPayloadFor, type IdentityParamsByPlatform, type IdentityPlatform, type IdentityRequestPlatform, type IdentitySessionMaterialByPlatform, type IdentitySessionMaterialPayload, type IdentitySessionMaterialPayloadFor, type IdentityTypedDataValue, type IntentDetails, type MonobankBuyerTeeParams, type MonobankBuyerTeeSessionMaterial, type MonobankBuyerTeeSessionMaterialPayload, type MonobankSellerCredentialSessionMaterial, type MonobankSellerCredentialUploadPayload, type MonzoBuyerTeeParams, type MonzoBuyerTeeSessionMaterial, type MonzoBuyerTeeSessionMaterialPayload, type NitroAttestationClient, type NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams, type NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams, type NitroAttestationClientCreateEncryptedSellerCredentialUploadParams, type NitroAttestationClientOptions, type NitroAttestationClientRequestIdentityAttestationParams, type NitroAttestationClientUploadSellerCredentialParams, type NitroAttestationClientVerifyBuyerTeePaymentParams, type NitroAttestationClientVerifyBuyerTeePaymentParamsFor, type NitroAttestationEnvironment, NitroAttestationError, type NitroAttestationErrorCode, type NitroAttestationWarning, type NitroServiceResponseErrorDetails, type NormalizedIdentityDetails, type PayPalBuyerTeeParams, type PayPalBuyerTeeSessionMaterial, type PayPalBuyerTeeSessionMaterialPayload, type PayPalIdentityParams, type PayPalIdentitySessionMaterial, type PayPalIdentitySessionMaterialPayload, type PayeeIdSellerCredentialUploadPayload, type PayeeIdSellerCredentialUploadPlatform, type PayeeIdSellerCredentialUploadWithPlatformPayload, type PaymentTypedDataValue, type RequestIdentityAttestationParams, type RequestIdentityAttestationParamsFor, type RevolutBuyerTeeParams, type RevolutBuyerTeeSessionMaterial, type RevolutBuyerTeeSessionMaterialPayload, type SellerCredentialBundle, type SellerCredentialBundleFor, type SellerCredentialUploadPayload, type SellerCredentialUploadPlatform, type TrustPins, type TypedDataSpec, type UnifiedPaymentVerifierDomain, type UploadSellerCredentialParams, type UploadSellerCredentialPayload, type VenmoBuyerTeeParams, type VenmoBuyerTeeSessionMaterial, type VenmoBuyerTeeSessionMaterialPayload, type VenmoIdentityParams, type VenmoIdentitySessionMaterial, type VenmoIdentitySessionMaterialPayload, type VerifiedAttestation, type VerifiedAttestationPayload, type VerifyBuyerTeePaymentAttestationOptions, type VerifyBuyerTeePaymentAttestationOptionsFor, type VerifyBuyerTeePaymentParams, type VerifyBuyerTeePaymentParamsFor, type VerifyIdentityAttestationOptions, type VerifyIdentityAttestationOptionsFor, type VerifySellerCredentialBundleOptions, type VerifySellerCredentialBundleOptionsFor, type WiseBuyerTeeParams, type WiseBuyerTeeSessionMaterial, type WiseBuyerTeeSessionMaterialPayload, type WiseIdentityParams, type WiseIdentitySessionMaterial, type WiseIdentitySessionMaterialPayload, type WiseSellerCredentialSessionMaterial, type WiseSellerCredentialUploadPayload, type ZelleBuyerTeeActionType, type ZelleBuyerTeeParams, type ZelleBuyerTeeSessionMaterial, type ZelleBuyerTeeSessionMaterialByActionType, type ZelleBuyerTeeSessionMaterialPayload, type ZelleBuyerTeeVerifyPaymentPayload, createEncryptedBuyerTeeSessionMaterial, createEncryptedIdentitySessionMaterial, createEncryptedSellerCredentialUpload, createNitroAttestationClient, encryptBuyerTeeSessionMaterial, encryptIdentitySessionMaterial, encryptSellerCredentialUpload, fetchAndVerifyAttestation, getUnifiedPaymentVerifierDomainSeparator, hashUtf8, requestIdentityAttestation, uploadSellerCredential, verifyBuyerTeePayment, verifyBuyerTeePaymentAttestation, verifyIdentityAttestation, verifySellerCredentialBundle };
package/dist/index.d.ts CHANGED
@@ -4,10 +4,11 @@ interface NitroAttestationWarning {
4
4
  details?: Record<string, unknown>;
5
5
  }
6
6
 
7
- type SellerCredentialUploadPlatform = "venmo" | "cashapp" | "wise" | "paypal";
8
- type PayeeIdSellerCredentialUploadPlatform = Exclude<SellerCredentialUploadPlatform, "wise">;
9
- type IdentityPlatform = "venmo" | "paypal" | "wise" | "cashapp";
10
- type BuyerTeeSessionMaterialPlatform = "venmo" | "cashapp" | "monzo" | "wise" | "revolut" | "chime" | "zelle" | "paypal";
7
+ type SellerCredentialUploadPlatform = "venmo" | "cashapp" | "wise" | "paypal" | "monobank";
8
+ type PayeeIdSellerCredentialUploadPlatform = Exclude<SellerCredentialUploadPlatform, "wise" | "monobank">;
9
+ type IdentityRequestPlatform = "venmo" | "paypal" | "wise" | "cashapp" | "alipay";
10
+ type IdentityPlatform = IdentityRequestPlatform | "monobank";
11
+ type BuyerTeeSessionMaterialPlatform = "venmo" | "cashapp" | "monzo" | "wise" | "revolut" | "chime" | "zelle" | "paypal" | "monobank" | "alipay";
11
12
  type BuyerTeeHeaderMap = Record<string, string>;
12
13
  type RequiredBuyerTeeHeaders<K extends string> = BuyerTeeHeaderMap & {
13
14
  [H in K]: string;
@@ -41,6 +42,10 @@ type BankOfAmericaBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
41
42
  type ZelleBuyerTeeSessionMaterial = CitiBuyerTeeSessionMaterial | ChaseBuyerTeeSessionMaterial | BankOfAmericaBuyerTeeSessionMaterial;
42
43
  /** Captured PayPal request headers; type requires `Cookie`. */
43
44
  type PayPalBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
45
+ /** Monobank Open API request headers; type requires `X-Token`. */
46
+ type MonobankBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"X-Token">;
47
+ /** Captured Alipay request headers; type requires `Cookie`. */
48
+ type AlipayBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
44
49
  /** Captured Venmo identity request headers; type requires `Cookie`. */
45
50
  type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
46
51
  /** Captured PayPal identity request headers; type requires `Cookie`. */
@@ -53,6 +58,8 @@ interface CashAppIdentitySessionMaterial {
53
58
  requestPayload: string;
54
59
  requestHeaders?: BuyerTeeHeaderMap;
55
60
  }
61
+ /** Captured Alipay identity request headers; type requires `Cookie`. */
62
+ type AlipayIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
56
63
  interface VenmoBuyerTeeParams {
57
64
  SENDER_ID: string;
58
65
  index: number;
@@ -94,6 +101,13 @@ type ChimeBuyerTeeParams = Record<string, never>;
94
101
  interface PayPalBuyerTeeParams {
95
102
  PAYMENT_ID: string;
96
103
  }
104
+ interface MonobankBuyerTeeParams {
105
+ ACCOUNT_ID: string;
106
+ TRANSACTION_ID: string;
107
+ }
108
+ interface AlipayBuyerTeeParams {
109
+ TRADE_NO: string;
110
+ }
97
111
  interface VenmoIdentityParams {
98
112
  SENDER_ID: string;
99
113
  }
@@ -102,6 +116,7 @@ interface WiseIdentityParams {
102
116
  PROFILE_ID: string;
103
117
  }
104
118
  type CashAppIdentityParams = Record<string, never>;
119
+ type AlipayIdentityParams = Record<string, never>;
105
120
  interface BuyerTeeActionTypeByPlatform {
106
121
  venmo: "transfer_venmo";
107
122
  cashapp: "transfer_cashapp";
@@ -111,12 +126,16 @@ interface BuyerTeeActionTypeByPlatform {
111
126
  chime: "transfer_chime";
112
127
  zelle: ZelleBuyerTeeActionType;
113
128
  paypal: "transfer_paypal";
129
+ monobank: "transfer_monobank";
130
+ alipay: "transfer_alipay";
114
131
  }
115
132
  interface IdentityActionTypeByPlatform {
116
133
  venmo: "register_venmo";
117
134
  paypal: "register_paypal";
118
135
  wise: "register_wise";
119
136
  cashapp: "register_cashapp";
137
+ monobank: "register_monobank";
138
+ alipay: "register_alipay";
120
139
  }
121
140
  interface BuyerTeeSessionMaterialByPlatform {
122
141
  venmo: VenmoBuyerTeeSessionMaterial;
@@ -127,12 +146,15 @@ interface BuyerTeeSessionMaterialByPlatform {
127
146
  chime: ChimeBuyerTeeSessionMaterial;
128
147
  zelle: ZelleBuyerTeeSessionMaterial;
129
148
  paypal: PayPalBuyerTeeSessionMaterial;
149
+ monobank: MonobankBuyerTeeSessionMaterial;
150
+ alipay: AlipayBuyerTeeSessionMaterial;
130
151
  }
131
152
  interface IdentitySessionMaterialByPlatform {
132
153
  venmo: VenmoIdentitySessionMaterial;
133
154
  paypal: PayPalIdentitySessionMaterial;
134
155
  wise: WiseIdentitySessionMaterial;
135
156
  cashapp: CashAppIdentitySessionMaterial;
157
+ alipay: AlipayIdentitySessionMaterial;
136
158
  }
137
159
  interface BuyerTeeParamsByPlatform {
138
160
  venmo: VenmoBuyerTeeParams;
@@ -143,12 +165,15 @@ interface BuyerTeeParamsByPlatform {
143
165
  chime: ChimeBuyerTeeParams;
144
166
  zelle: ZelleBuyerTeeParams;
145
167
  paypal: PayPalBuyerTeeParams;
168
+ monobank: MonobankBuyerTeeParams;
169
+ alipay: AlipayBuyerTeeParams;
146
170
  }
147
171
  interface IdentityParamsByPlatform {
148
172
  venmo: VenmoIdentityParams;
149
173
  paypal: PayPalIdentityParams;
150
174
  wise: WiseIdentityParams;
151
175
  cashapp: CashAppIdentityParams;
176
+ alipay: AlipayIdentityParams;
152
177
  }
153
178
  /**
154
179
  * Flat buyer TEE action union. Prefer `BuyerTeeActionTypeByPlatform[P]`
@@ -160,6 +185,10 @@ interface WiseSellerCredentialSessionMaterial {
160
185
  apiToken: string;
161
186
  profileId?: string;
162
187
  }
188
+ interface MonobankSellerCredentialSessionMaterial {
189
+ apiToken: string;
190
+ accountId?: string;
191
+ }
163
192
  interface PayeeIdSellerCredentialUploadPayload {
164
193
  platform?: PayeeIdSellerCredentialUploadPlatform;
165
194
  payeeId: string;
@@ -170,11 +199,16 @@ interface WiseSellerCredentialUploadPayload {
170
199
  sessionMaterial: WiseSellerCredentialSessionMaterial;
171
200
  payeeId?: never;
172
201
  }
173
- type SellerCredentialUploadPayload = PayeeIdSellerCredentialUploadPayload | WiseSellerCredentialUploadPayload;
202
+ interface MonobankSellerCredentialUploadPayload {
203
+ platform: "monobank";
204
+ sessionMaterial: MonobankSellerCredentialSessionMaterial;
205
+ payeeId?: never;
206
+ }
207
+ type SellerCredentialUploadPayload = PayeeIdSellerCredentialUploadPayload | WiseSellerCredentialUploadPayload | MonobankSellerCredentialUploadPayload;
174
208
  type PayeeIdSellerCredentialUploadWithPlatformPayload = PayeeIdSellerCredentialUploadPayload & {
175
209
  platform: PayeeIdSellerCredentialUploadPlatform;
176
210
  };
177
- type UploadSellerCredentialPayload = PayeeIdSellerCredentialUploadWithPlatformPayload | WiseSellerCredentialUploadPayload;
211
+ type UploadSellerCredentialPayload = PayeeIdSellerCredentialUploadWithPlatformPayload | WiseSellerCredentialUploadPayload | MonobankSellerCredentialUploadPayload;
178
212
  type BuyerTeeSessionMaterialPayloadBaseFor<P extends BuyerTeeSessionMaterialPlatform> = {
179
213
  platform: P;
180
214
  actionType: BuyerTeeActionTypeByPlatform[P];
@@ -184,13 +218,13 @@ type BuyerTeeSessionMaterialPayloadFor<P extends BuyerTeeSessionMaterialPlatform
184
218
  type BuyerTeeVerifyPaymentPayloadFor<P extends BuyerTeeSessionMaterialPlatform> = BuyerTeeSessionMaterialPayloadFor<P> & {
185
219
  params: BuyerTeeParamsByPlatform[P];
186
220
  };
187
- type IdentitySessionMaterialPayloadFor<P extends IdentityPlatform> = {
221
+ type IdentitySessionMaterialPayloadFor<P extends IdentityRequestPlatform> = {
188
222
  platform: P;
189
223
  actionType: IdentityActionTypeByPlatform[P];
224
+ callerAddress: string;
190
225
  sessionMaterial: IdentitySessionMaterialByPlatform[P];
191
226
  };
192
- type IdentityAttestationRequestPayloadFor<P extends IdentityPlatform> = IdentitySessionMaterialPayloadFor<P> & {
193
- callerAddress: string;
227
+ type IdentityAttestationRequestPayloadFor<P extends IdentityRequestPlatform> = IdentitySessionMaterialPayloadFor<P> & {
194
228
  params: IdentityParamsByPlatform[P];
195
229
  };
196
230
  type BuyerTeeSessionMaterialPayload = {
@@ -200,11 +234,11 @@ type BuyerTeeVerifyPaymentPayload = {
200
234
  [P in BuyerTeeSessionMaterialPlatform]: BuyerTeeVerifyPaymentPayloadFor<P>;
201
235
  }[BuyerTeeSessionMaterialPlatform];
202
236
  type IdentitySessionMaterialPayload = {
203
- [P in IdentityPlatform]: IdentitySessionMaterialPayloadFor<P>;
204
- }[IdentityPlatform];
237
+ [P in IdentityRequestPlatform]: IdentitySessionMaterialPayloadFor<P>;
238
+ }[IdentityRequestPlatform];
205
239
  type IdentityAttestationRequestPayload = {
206
- [P in IdentityPlatform]: IdentityAttestationRequestPayloadFor<P>;
207
- }[IdentityPlatform];
240
+ [P in IdentityRequestPlatform]: IdentityAttestationRequestPayloadFor<P>;
241
+ }[IdentityRequestPlatform];
208
242
  type VenmoBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"venmo">;
209
243
  type CashAppBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"cashapp">;
210
244
  type MonzoBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"monzo">;
@@ -213,10 +247,13 @@ type RevolutBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"
213
247
  type ChimeBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"chime">;
214
248
  type ZelleBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"zelle">;
215
249
  type PayPalBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"paypal">;
250
+ type MonobankBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"monobank">;
251
+ type AlipayBuyerTeeSessionMaterialPayload = BuyerTeeSessionMaterialPayloadFor<"alipay">;
216
252
  type VenmoIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"venmo">;
217
253
  type PayPalIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"paypal">;
218
254
  type WiseIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"wise">;
219
255
  type CashAppIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"cashapp">;
256
+ type AlipayIdentitySessionMaterialPayload = IdentitySessionMaterialPayloadFor<"alipay">;
220
257
  interface IntentDetails {
221
258
  intentHash: string;
222
259
  amount: string;
@@ -301,8 +338,7 @@ type BuyerTeeVerifier = {
301
338
  interface BuyerTeeSupportedVerifiersResponse {
302
339
  verifiers: BuyerTeeVerifier[];
303
340
  }
304
- interface SellerCredentialBundle {
305
- platform: SellerCredentialUploadPlatform;
341
+ interface SellerCredentialBundleBase {
306
342
  credentialType: string;
307
343
  encryptedBlob: string;
308
344
  encryptedDataKey: string;
@@ -312,9 +348,13 @@ interface SellerCredentialBundle {
312
348
  credentialExpiresAt: string | null;
313
349
  bundleSignature: string;
314
350
  }
315
- type SellerCredentialBundleFor<P extends SellerCredentialUploadPlatform> = SellerCredentialBundle & {
351
+ type SellerCredentialBundleFor<P extends SellerCredentialUploadPlatform> = SellerCredentialBundleBase & {
316
352
  platform: P;
353
+ identityAttestation?: IdentityAttestationOutputFor<P>;
317
354
  };
355
+ type SellerCredentialBundle = {
356
+ [P in SellerCredentialUploadPlatform]: SellerCredentialBundleFor<P>;
357
+ }[SellerCredentialUploadPlatform];
318
358
  interface TrustPins {
319
359
  expectedPcr8Hex?: string;
320
360
  expectedPcr8ByHost?: Record<string, string>;
@@ -357,10 +397,10 @@ type VerifySellerCredentialBundleOptions = {
357
397
  [P in SellerCredentialUploadPlatform]: VerifySellerCredentialBundleOptionsFor<P>;
358
398
  }[SellerCredentialUploadPlatform];
359
399
  type CreateEncryptedSellerCredentialUploadParams = CreateEncryptedSellerCredentialUploadBaseParams & SellerCredentialUploadPayload;
360
- type CreateEncryptedIdentitySessionMaterialParamsFor<P extends IdentityPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
400
+ type CreateEncryptedIdentitySessionMaterialParamsFor<P extends IdentityRequestPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
361
401
  type CreateEncryptedIdentitySessionMaterialParams = {
362
- [P in IdentityPlatform]: CreateEncryptedIdentitySessionMaterialParamsFor<P>;
363
- }[IdentityPlatform];
402
+ [P in IdentityRequestPlatform]: CreateEncryptedIdentitySessionMaterialParamsFor<P>;
403
+ }[IdentityRequestPlatform];
364
404
  type CreateEncryptedBuyerTeeSessionMaterialParamsFor<P extends BuyerTeeSessionMaterialPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & BuyerTeeSessionMaterialPayloadFor<P>;
365
405
  type CreateEncryptedBuyerTeeSessionMaterialParams = {
366
406
  [P in BuyerTeeSessionMaterialPlatform]: CreateEncryptedBuyerTeeSessionMaterialParamsFor<P>;
@@ -372,13 +412,14 @@ type VerifyBuyerTeePaymentParamsFor<P extends BuyerTeeSessionMaterialPlatform> =
372
412
  type VerifyBuyerTeePaymentParams = {
373
413
  [P in BuyerTeeSessionMaterialPlatform]: VerifyBuyerTeePaymentParamsFor<P>;
374
414
  }[BuyerTeeSessionMaterialPlatform];
375
- type RequestIdentityAttestationParamsFor<P extends IdentityPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentityAttestationRequestPayloadFor<P>;
415
+ type RequestIdentityAttestationParamsFor<P extends IdentityRequestPlatform> = CreateEncryptedBuyerTeeSessionMaterialBaseParams & IdentityAttestationRequestPayloadFor<P>;
376
416
  type RequestIdentityAttestationParams = {
377
- [P in IdentityPlatform]: RequestIdentityAttestationParamsFor<P>;
378
- }[IdentityPlatform];
417
+ [P in IdentityRequestPlatform]: RequestIdentityAttestationParamsFor<P>;
418
+ }[IdentityRequestPlatform];
379
419
  type UploadSellerCredentialParams = CreateEncryptedSellerCredentialUploadBaseParams & UploadSellerCredentialPayload;
380
420
  interface CreateEncryptedSellerCredentialUploadBaseParams {
381
421
  attestationServiceUrl: string;
422
+ callerAddress?: string;
382
423
  trust?: TrustPins;
383
424
  fetch?: typeof fetch;
384
425
  subtle?: SubtleCrypto;
@@ -434,12 +475,13 @@ type EncryptBuyerTeeSessionMaterialParamsFor<P extends BuyerTeeSessionMaterialPl
434
475
  type EncryptBuyerTeeSessionMaterialParams = {
435
476
  [P in BuyerTeeSessionMaterialPlatform]: EncryptBuyerTeeSessionMaterialParamsFor<P>;
436
477
  }[BuyerTeeSessionMaterialPlatform];
437
- type EncryptIdentitySessionMaterialParamsFor<P extends IdentityPlatform> = EncryptBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
478
+ type EncryptIdentitySessionMaterialParamsFor<P extends IdentityRequestPlatform> = EncryptBuyerTeeSessionMaterialBaseParams & IdentitySessionMaterialPayloadFor<P>;
438
479
  type EncryptIdentitySessionMaterialParams = {
439
- [P in IdentityPlatform]: EncryptIdentitySessionMaterialParamsFor<P>;
440
- }[IdentityPlatform];
480
+ [P in IdentityRequestPlatform]: EncryptIdentitySessionMaterialParamsFor<P>;
481
+ }[IdentityRequestPlatform];
441
482
  interface EncryptSellerCredentialUploadBaseParams {
442
483
  key: AttestedSellerUploadKey;
484
+ callerAddress?: string;
443
485
  issuedAtMs?: number;
444
486
  jweId?: string;
445
487
  subtle?: SubtleCrypto;
@@ -477,7 +519,7 @@ interface NitroAttestationClient {
477
519
  createEncryptedBuyerTeeSessionMaterial(params: NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams): Promise<string>;
478
520
  createEncryptedIdentitySessionMaterial(params: NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams): Promise<string>;
479
521
  createEncryptedSellerCredentialUpload(params: NitroAttestationClientCreateEncryptedSellerCredentialUploadParams): Promise<string>;
480
- requestIdentityAttestation<P extends IdentityPlatform>(params: WithOptionalAttestationServiceUrl<RequestIdentityAttestationParamsFor<P>>): Promise<IdentityAttestationOutputFor<P>>;
522
+ requestIdentityAttestation<P extends IdentityRequestPlatform>(params: WithOptionalAttestationServiceUrl<RequestIdentityAttestationParamsFor<P>>): Promise<IdentityAttestationOutputFor<P>>;
481
523
  uploadSellerCredential(params: NitroAttestationClientUploadSellerCredentialParams): Promise<SellerCredentialBundle>;
482
524
  verifyBuyerTeePayment<P extends BuyerTeeSessionMaterialPlatform>(params: NitroAttestationClientVerifyBuyerTeePaymentParamsFor<P>): Promise<BuyerTeeAttestationOutputFor<P>>;
483
525
  fetchAndVerifyAttestation(params?: Omit<FetchAndVerifyAttestationParams, "attestationServiceUrl"> & {
@@ -492,7 +534,7 @@ declare function createNitroAttestationClient(options: NitroAttestationClientOpt
492
534
 
493
535
  declare function createEncryptedBuyerTeeSessionMaterial<P extends BuyerTeeSessionMaterialPlatform>(params: CreateEncryptedBuyerTeeSessionMaterialParamsFor<P>): Promise<string>;
494
536
 
495
- declare function createEncryptedIdentitySessionMaterial<P extends IdentityPlatform>(params: CreateEncryptedIdentitySessionMaterialParamsFor<P>): Promise<string>;
537
+ declare function createEncryptedIdentitySessionMaterial<P extends IdentityRequestPlatform>(params: CreateEncryptedIdentitySessionMaterialParamsFor<P>): Promise<string>;
496
538
 
497
539
  declare function createEncryptedSellerCredentialUpload(params: CreateEncryptedSellerCredentialUploadParams): Promise<string>;
498
540
 
@@ -501,7 +543,7 @@ declare function hashUtf8(value: string): string;
501
543
 
502
544
  declare function encryptBuyerTeeSessionMaterial<P extends BuyerTeeSessionMaterialPlatform>(params: EncryptBuyerTeeSessionMaterialParamsFor<P>): Promise<string>;
503
545
 
504
- declare function encryptIdentitySessionMaterial<P extends IdentityPlatform>(params: EncryptIdentitySessionMaterialParamsFor<P>): Promise<string>;
546
+ declare function encryptIdentitySessionMaterial<P extends IdentityRequestPlatform>(params: EncryptIdentitySessionMaterialParamsFor<P>): Promise<string>;
505
547
 
506
548
  declare function encryptSellerCredentialUpload(params: EncryptSellerCredentialUploadParams): Promise<string>;
507
549
 
@@ -524,7 +566,7 @@ declare class NitroAttestationError extends Error {
524
566
 
525
567
  declare function fetchAndVerifyAttestation(params: FetchAndVerifyAttestationParams): Promise<VerifiedAttestation>;
526
568
 
527
- declare function requestIdentityAttestation<P extends IdentityPlatform>(params: RequestIdentityAttestationParamsFor<P>): Promise<IdentityAttestationOutputFor<P>>;
569
+ declare function requestIdentityAttestation<P extends IdentityRequestPlatform>(params: RequestIdentityAttestationParamsFor<P>): Promise<IdentityAttestationOutputFor<P>>;
528
570
 
529
571
  declare const AWS_NITRO_ROOT_PEM = "-----BEGIN CERTIFICATE-----\nMIICETCCAZagAwIBAgIRAPkxdWgbkK/hHUbMtOTn+FYwCgYIKoZIzj0EAwMwSTEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoMBkFtYXpvbjEMMAoGA1UECwwDQVdTMRswGQYD\nVQQDDBJhd3Mubml0cm8tZW5jbGF2ZXMwHhcNMTkxMDI4MTMyODA1WhcNNDkxMDI4\nMTQyODA1WjBJMQswCQYDVQQGEwJVUzEPMA0GA1UECgwGQW1hem9uMQwwCgYDVQQL\nDANBV1MxGzAZBgNVBAMMEmF3cy5uaXRyby1lbmNsYXZlczB2MBAGByqGSM49AgEG\nBSuBBAAiA2IABPwCVOumCMHzaHDimtqQvkY4MpJzbolL//Zy2YlES1BR5TSksfbb\n48C8WBoyt7F2Bw7eEtaaP+ohG2bnUs990d0JX28TcPQXCEPZ3BABIeTPYwEoCWZE\nh8l5YoQwTcU/9KNCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUkCW1DdkF\nR+eWw5b6cp3PmanfS5YwDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2kAMGYC\nMQCjfy+Rocm9Xue4YnwWmNJVA44fA0P5W2OpYow9OYCVRaEevL8uO1XYru5xtMPW\nrfMCMQCi85sWBbJwKKXdS6BptQFuZbT73o/gBh1qUxl/nNr12UO8Yfwr6wPLb+6N\nIwLz3/Y=\n-----END CERTIFICATE-----\n";
530
572
  declare const AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX = "641a0321a3e244efe456463195d606317ed7cdcc3c1756e09893f3c68f79bb5b";
@@ -539,4 +581,4 @@ declare function verifyIdentityAttestation<P extends IdentityPlatform>(payload:
539
581
 
540
582
  declare function verifySellerCredentialBundle<P extends SellerCredentialUploadPlatform>(bundle: SellerCredentialBundleFor<P>, options: VerifySellerCredentialBundleOptionsFor<P>): SellerCredentialBundleFor<P>;
541
583
 
542
- export { AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX, AWS_NITRO_ROOT_PEM, type AttestationOutput, type AttestedSellerUploadKey, type BankOfAmericaBuyerTeeSessionMaterial, type BuyerTeeActionType, type BuyerTeeActionTypeByPlatform, type BuyerTeeAttestationOutput, type BuyerTeeAttestationOutputFor, type BuyerTeeHeaderMap, type BuyerTeeParamsByPlatform, type BuyerTeeSessionMaterialByPlatform, type BuyerTeeSessionMaterialPayload, type BuyerTeeSessionMaterialPayloadFor, type BuyerTeeSessionMaterialPlatform, type BuyerTeeSupportedVerifiersResponse, type BuyerTeeVerifier, type BuyerTeeVerifyPaymentPayload, type BuyerTeeVerifyPaymentPayloadFor, type CashAppBuyerTeeParams, type CashAppBuyerTeeSessionMaterial, type CashAppBuyerTeeSessionMaterialPayload, type CashAppIdentityParams, type CashAppIdentitySessionMaterial, type CashAppIdentitySessionMaterialPayload, type ChaseBuyerTeeSessionMaterial, type ChimeBuyerTeeParams, type ChimeBuyerTeeSessionMaterial, type ChimeBuyerTeeSessionMaterialPayload, type CitiBuyerTeeSessionMaterial, type CreateEncryptedBuyerTeeSessionMaterialParams, type CreateEncryptedBuyerTeeSessionMaterialParamsFor, type CreateEncryptedIdentitySessionMaterialParams, type CreateEncryptedIdentitySessionMaterialParamsFor, type CreateEncryptedSellerCredentialUploadParams, type Eip712Field, type EncryptBuyerTeeSessionMaterialParams, type EncryptBuyerTeeSessionMaterialParamsFor, type EncryptIdentitySessionMaterialParams, type EncryptIdentitySessionMaterialParamsFor, type EncryptSellerCredentialUploadParams, type FetchAndVerifyAttestationParams, type IdentityActionType, type IdentityActionTypeByPlatform, type IdentityAttestationOutput, type IdentityAttestationOutputFor, type IdentityAttestationRequestPayload, type IdentityAttestationRequestPayloadFor, type IdentityParamsByPlatform, type IdentityPlatform, type IdentitySessionMaterialByPlatform, type IdentitySessionMaterialPayload, type IdentitySessionMaterialPayloadFor, type IdentityTypedDataValue, type IntentDetails, type MonzoBuyerTeeParams, type MonzoBuyerTeeSessionMaterial, type MonzoBuyerTeeSessionMaterialPayload, type NitroAttestationClient, type NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams, type NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams, type NitroAttestationClientCreateEncryptedSellerCredentialUploadParams, type NitroAttestationClientOptions, type NitroAttestationClientRequestIdentityAttestationParams, type NitroAttestationClientUploadSellerCredentialParams, type NitroAttestationClientVerifyBuyerTeePaymentParams, type NitroAttestationClientVerifyBuyerTeePaymentParamsFor, type NitroAttestationEnvironment, NitroAttestationError, type NitroAttestationErrorCode, type NitroAttestationWarning, type NitroServiceResponseErrorDetails, type NormalizedIdentityDetails, type PayPalBuyerTeeParams, type PayPalBuyerTeeSessionMaterial, type PayPalBuyerTeeSessionMaterialPayload, type PayPalIdentityParams, type PayPalIdentitySessionMaterial, type PayPalIdentitySessionMaterialPayload, type PayeeIdSellerCredentialUploadPayload, type PayeeIdSellerCredentialUploadPlatform, type PayeeIdSellerCredentialUploadWithPlatformPayload, type PaymentTypedDataValue, type RequestIdentityAttestationParams, type RequestIdentityAttestationParamsFor, type RevolutBuyerTeeParams, type RevolutBuyerTeeSessionMaterial, type RevolutBuyerTeeSessionMaterialPayload, type SellerCredentialBundle, type SellerCredentialBundleFor, type SellerCredentialUploadPayload, type SellerCredentialUploadPlatform, type TrustPins, type TypedDataSpec, type UnifiedPaymentVerifierDomain, type UploadSellerCredentialParams, type UploadSellerCredentialPayload, type VenmoBuyerTeeParams, type VenmoBuyerTeeSessionMaterial, type VenmoBuyerTeeSessionMaterialPayload, type VenmoIdentityParams, type VenmoIdentitySessionMaterial, type VenmoIdentitySessionMaterialPayload, type VerifiedAttestation, type VerifiedAttestationPayload, type VerifyBuyerTeePaymentAttestationOptions, type VerifyBuyerTeePaymentAttestationOptionsFor, type VerifyBuyerTeePaymentParams, type VerifyBuyerTeePaymentParamsFor, type VerifyIdentityAttestationOptions, type VerifyIdentityAttestationOptionsFor, type VerifySellerCredentialBundleOptions, type VerifySellerCredentialBundleOptionsFor, type WiseBuyerTeeParams, type WiseBuyerTeeSessionMaterial, type WiseBuyerTeeSessionMaterialPayload, type WiseIdentityParams, type WiseIdentitySessionMaterial, type WiseIdentitySessionMaterialPayload, type WiseSellerCredentialSessionMaterial, type WiseSellerCredentialUploadPayload, type ZelleBuyerTeeActionType, type ZelleBuyerTeeParams, type ZelleBuyerTeeSessionMaterial, type ZelleBuyerTeeSessionMaterialByActionType, type ZelleBuyerTeeSessionMaterialPayload, type ZelleBuyerTeeVerifyPaymentPayload, createEncryptedBuyerTeeSessionMaterial, createEncryptedIdentitySessionMaterial, createEncryptedSellerCredentialUpload, createNitroAttestationClient, encryptBuyerTeeSessionMaterial, encryptIdentitySessionMaterial, encryptSellerCredentialUpload, fetchAndVerifyAttestation, getUnifiedPaymentVerifierDomainSeparator, hashUtf8, requestIdentityAttestation, uploadSellerCredential, verifyBuyerTeePayment, verifyBuyerTeePaymentAttestation, verifyIdentityAttestation, verifySellerCredentialBundle };
584
+ export { AWS_NITRO_ROOT_FINGERPRINT_SHA256_HEX, AWS_NITRO_ROOT_PEM, type AlipayBuyerTeeParams, type AlipayBuyerTeeSessionMaterial, type AlipayBuyerTeeSessionMaterialPayload, type AlipayIdentityParams, type AlipayIdentitySessionMaterial, type AlipayIdentitySessionMaterialPayload, type AttestationOutput, type AttestedSellerUploadKey, type BankOfAmericaBuyerTeeSessionMaterial, type BuyerTeeActionType, type BuyerTeeActionTypeByPlatform, type BuyerTeeAttestationOutput, type BuyerTeeAttestationOutputFor, type BuyerTeeHeaderMap, type BuyerTeeParamsByPlatform, type BuyerTeeSessionMaterialByPlatform, type BuyerTeeSessionMaterialPayload, type BuyerTeeSessionMaterialPayloadFor, type BuyerTeeSessionMaterialPlatform, type BuyerTeeSupportedVerifiersResponse, type BuyerTeeVerifier, type BuyerTeeVerifyPaymentPayload, type BuyerTeeVerifyPaymentPayloadFor, type CashAppBuyerTeeParams, type CashAppBuyerTeeSessionMaterial, type CashAppBuyerTeeSessionMaterialPayload, type CashAppIdentityParams, type CashAppIdentitySessionMaterial, type CashAppIdentitySessionMaterialPayload, type ChaseBuyerTeeSessionMaterial, type ChimeBuyerTeeParams, type ChimeBuyerTeeSessionMaterial, type ChimeBuyerTeeSessionMaterialPayload, type CitiBuyerTeeSessionMaterial, type CreateEncryptedBuyerTeeSessionMaterialParams, type CreateEncryptedBuyerTeeSessionMaterialParamsFor, type CreateEncryptedIdentitySessionMaterialParams, type CreateEncryptedIdentitySessionMaterialParamsFor, type CreateEncryptedSellerCredentialUploadParams, type Eip712Field, type EncryptBuyerTeeSessionMaterialParams, type EncryptBuyerTeeSessionMaterialParamsFor, type EncryptIdentitySessionMaterialParams, type EncryptIdentitySessionMaterialParamsFor, type EncryptSellerCredentialUploadParams, type FetchAndVerifyAttestationParams, type IdentityActionType, type IdentityActionTypeByPlatform, type IdentityAttestationOutput, type IdentityAttestationOutputFor, type IdentityAttestationRequestPayload, type IdentityAttestationRequestPayloadFor, type IdentityParamsByPlatform, type IdentityPlatform, type IdentityRequestPlatform, type IdentitySessionMaterialByPlatform, type IdentitySessionMaterialPayload, type IdentitySessionMaterialPayloadFor, type IdentityTypedDataValue, type IntentDetails, type MonobankBuyerTeeParams, type MonobankBuyerTeeSessionMaterial, type MonobankBuyerTeeSessionMaterialPayload, type MonobankSellerCredentialSessionMaterial, type MonobankSellerCredentialUploadPayload, type MonzoBuyerTeeParams, type MonzoBuyerTeeSessionMaterial, type MonzoBuyerTeeSessionMaterialPayload, type NitroAttestationClient, type NitroAttestationClientCreateEncryptedBuyerTeeSessionMaterialParams, type NitroAttestationClientCreateEncryptedIdentitySessionMaterialParams, type NitroAttestationClientCreateEncryptedSellerCredentialUploadParams, type NitroAttestationClientOptions, type NitroAttestationClientRequestIdentityAttestationParams, type NitroAttestationClientUploadSellerCredentialParams, type NitroAttestationClientVerifyBuyerTeePaymentParams, type NitroAttestationClientVerifyBuyerTeePaymentParamsFor, type NitroAttestationEnvironment, NitroAttestationError, type NitroAttestationErrorCode, type NitroAttestationWarning, type NitroServiceResponseErrorDetails, type NormalizedIdentityDetails, type PayPalBuyerTeeParams, type PayPalBuyerTeeSessionMaterial, type PayPalBuyerTeeSessionMaterialPayload, type PayPalIdentityParams, type PayPalIdentitySessionMaterial, type PayPalIdentitySessionMaterialPayload, type PayeeIdSellerCredentialUploadPayload, type PayeeIdSellerCredentialUploadPlatform, type PayeeIdSellerCredentialUploadWithPlatformPayload, type PaymentTypedDataValue, type RequestIdentityAttestationParams, type RequestIdentityAttestationParamsFor, type RevolutBuyerTeeParams, type RevolutBuyerTeeSessionMaterial, type RevolutBuyerTeeSessionMaterialPayload, type SellerCredentialBundle, type SellerCredentialBundleFor, type SellerCredentialUploadPayload, type SellerCredentialUploadPlatform, type TrustPins, type TypedDataSpec, type UnifiedPaymentVerifierDomain, type UploadSellerCredentialParams, type UploadSellerCredentialPayload, type VenmoBuyerTeeParams, type VenmoBuyerTeeSessionMaterial, type VenmoBuyerTeeSessionMaterialPayload, type VenmoIdentityParams, type VenmoIdentitySessionMaterial, type VenmoIdentitySessionMaterialPayload, type VerifiedAttestation, type VerifiedAttestationPayload, type VerifyBuyerTeePaymentAttestationOptions, type VerifyBuyerTeePaymentAttestationOptionsFor, type VerifyBuyerTeePaymentParams, type VerifyBuyerTeePaymentParamsFor, type VerifyIdentityAttestationOptions, type VerifyIdentityAttestationOptionsFor, type VerifySellerCredentialBundleOptions, type VerifySellerCredentialBundleOptionsFor, type WiseBuyerTeeParams, type WiseBuyerTeeSessionMaterial, type WiseBuyerTeeSessionMaterialPayload, type WiseIdentityParams, type WiseIdentitySessionMaterial, type WiseIdentitySessionMaterialPayload, type WiseSellerCredentialSessionMaterial, type WiseSellerCredentialUploadPayload, type ZelleBuyerTeeActionType, type ZelleBuyerTeeParams, type ZelleBuyerTeeSessionMaterial, type ZelleBuyerTeeSessionMaterialByActionType, type ZelleBuyerTeeSessionMaterialPayload, type ZelleBuyerTeeVerifyPaymentPayload, createEncryptedBuyerTeeSessionMaterial, createEncryptedIdentitySessionMaterial, createEncryptedSellerCredentialUpload, createNitroAttestationClient, encryptBuyerTeeSessionMaterial, encryptIdentitySessionMaterial, encryptSellerCredentialUpload, fetchAndVerifyAttestation, getUnifiedPaymentVerifierDomainSeparator, hashUtf8, requestIdentityAttestation, uploadSellerCredential, verifyBuyerTeePayment, verifyBuyerTeePaymentAttestation, verifyIdentityAttestation, verifySellerCredentialBundle };