@privy-io/api-types 0.15.0 → 0.16.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 +82 -0
- package/client.d.mts +29 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -29
- package/client.d.ts.map +1 -1
- package/client.js +11 -3
- package/client.js.map +1 -1
- package/client.mjs +11 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +21 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +21 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +14 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +14 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +102 -205
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +102 -205
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +47 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +47 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +134 -21
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +134 -21
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +603 -87
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +603 -87
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +241 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +241 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +163 -17
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +22 -4
- package/src/resources/index.ts +72 -3
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +386 -482
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +66 -16
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/wallet-actions.ts +182 -20
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +34 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +782 -94
- package/src/resources/webhooks.ts +293 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kraken-embed.mjs","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"kraken-embed.mjs","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,MAAM,OAAO,WAAY,SAAQ,WAAW;CAAG"}
|
package/resources/onramps.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as OnrampsAPI from "./onramps.mjs";
|
|
3
2
|
import * as ClientAuthAPI from "./client-auth.mjs";
|
|
4
3
|
import * as FiatAPI from "./fiat.mjs";
|
|
4
|
+
import * as SharedAPI from "./shared.mjs";
|
|
5
5
|
export declare class Onramps extends APIResource {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -46,6 +46,10 @@ export type Caip2ChainID = string;
|
|
|
46
46
|
*/
|
|
47
47
|
export interface CreateLinkAuthIntentInput {
|
|
48
48
|
email?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
51
|
+
*/
|
|
52
|
+
environment?: FiatOnrampEnvironment;
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
55
|
* The created Link auth intent.
|
|
@@ -90,25 +94,18 @@ export interface CreateStripeOnrampSessionResponse {
|
|
|
90
94
|
/**
|
|
91
95
|
* Transaction details returned from a Stripe onramp session.
|
|
92
96
|
*/
|
|
93
|
-
transaction_details?:
|
|
97
|
+
transaction_details?: OnrampSessionTransactionDetails | null;
|
|
94
98
|
}
|
|
95
|
-
export declare namespace CreateStripeOnrampSessionResponse {
|
|
96
|
-
/**
|
|
97
|
-
* Transaction details returned from a Stripe onramp session.
|
|
98
|
-
*/
|
|
99
|
-
interface TransactionDetails extends OnrampsAPI.OnrampSessionTransactionDetails {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
104
|
-
*/
|
|
105
|
-
export type CryptoCurrencyCode = string;
|
|
106
99
|
/**
|
|
107
100
|
* Input for exchanging a Link auth intent for OAuth tokens.
|
|
108
101
|
*/
|
|
109
102
|
export interface ExchangeStripeTokensInput {
|
|
110
103
|
auth_intent_id: string;
|
|
111
104
|
crypto_customer_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
107
|
+
*/
|
|
108
|
+
environment?: FiatOnrampEnvironment;
|
|
112
109
|
}
|
|
113
110
|
/**
|
|
114
111
|
* Confirmation that tokens were exchanged and stored.
|
|
@@ -134,9 +131,11 @@ export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFia
|
|
|
134
131
|
export interface FiatOnrampDestination {
|
|
135
132
|
address: string;
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
135
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
136
|
+
* identifiers pass through unchanged.
|
|
138
137
|
*/
|
|
139
|
-
asset:
|
|
138
|
+
asset: SharedAPI.TokenIdentifier;
|
|
140
139
|
/**
|
|
141
140
|
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
|
|
142
141
|
* Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
|
|
@@ -171,9 +170,11 @@ export interface FiatOnrampQuote {
|
|
|
171
170
|
*/
|
|
172
171
|
provider: FiatOnrampProvider;
|
|
173
172
|
destination_currency_code?: string | null;
|
|
173
|
+
payment_method_category?: string;
|
|
174
174
|
source_amount?: number | null;
|
|
175
175
|
source_currency_code?: string | null;
|
|
176
176
|
sub_provider?: string | null;
|
|
177
|
+
warning?: string | null;
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
180
|
* Source currency details for a fiat onramp quote request.
|
|
@@ -240,6 +241,9 @@ export interface GetFiatOnrampQuotesInput {
|
|
|
240
241
|
* The response containing fiat onramp quotes.
|
|
241
242
|
*/
|
|
242
243
|
export interface GetFiatOnrampQuotesResponse {
|
|
244
|
+
destination_currency_icon_url: string | null;
|
|
245
|
+
destination_currency_symbol: string;
|
|
246
|
+
destination_network_icon_url: string | null;
|
|
243
247
|
quotes: Array<FiatOnrampQuote>;
|
|
244
248
|
provider_errors?: Array<FiatOnrampProviderError>;
|
|
245
249
|
}
|
|
@@ -326,22 +330,17 @@ export interface ListStripeConsumerWalletsResponse {
|
|
|
326
330
|
export interface ListStripePaymentTokensResponse {
|
|
327
331
|
data: Array<StripePaymentToken>;
|
|
328
332
|
}
|
|
329
|
-
/**
|
|
330
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
331
|
-
*/
|
|
332
|
-
export interface OnrampSessionFees {
|
|
333
|
-
network_fee_monetary: string | null;
|
|
334
|
-
transaction_fee_monetary: string | null;
|
|
335
|
-
}
|
|
336
333
|
/**
|
|
337
334
|
* Parameters for creating a Stripe onramp session.
|
|
338
335
|
*/
|
|
339
336
|
export interface OnrampSessionParams {
|
|
340
337
|
crypto_customer_id: string;
|
|
341
338
|
/**
|
|
342
|
-
*
|
|
339
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
340
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
341
|
+
* identifiers pass through unchanged.
|
|
343
342
|
*/
|
|
344
|
-
destination_currency:
|
|
343
|
+
destination_currency: SharedAPI.TokenIdentifier;
|
|
345
344
|
destination_network: string;
|
|
346
345
|
payment_token: string;
|
|
347
346
|
source_amount: string;
|
|
@@ -358,28 +357,19 @@ export interface OnrampSessionTransactionDetails {
|
|
|
358
357
|
destination_amount: string | null;
|
|
359
358
|
destination_currency: string | null;
|
|
360
359
|
destination_network: string | null;
|
|
361
|
-
|
|
362
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
363
|
-
*/
|
|
364
|
-
fees: OnrampSessionTransactionDetails.Fees;
|
|
365
|
-
source_amount: string | null;
|
|
360
|
+
fee: string | null;
|
|
366
361
|
source_currency: string | null;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
371
|
-
*/
|
|
372
|
-
interface Fees extends OnrampsAPI.OnrampSessionFees {
|
|
373
|
-
}
|
|
362
|
+
source_total_amount: string | null;
|
|
363
|
+
quote_expiration?: number | null;
|
|
374
364
|
}
|
|
375
365
|
/**
|
|
376
|
-
* Refreshed quote with
|
|
366
|
+
* Refreshed quote with amounts, fee, and expiry.
|
|
377
367
|
*/
|
|
378
368
|
export interface RefreshStripeQuoteResponse {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
369
|
+
destination_amount: string | null;
|
|
370
|
+
fee: string | null;
|
|
371
|
+
quote_expiration: number | null;
|
|
372
|
+
source_total_amount: string | null;
|
|
383
373
|
}
|
|
384
374
|
/**
|
|
385
375
|
* A registered consumer wallet.
|
|
@@ -394,6 +384,12 @@ export interface StripeConsumerWallet {
|
|
|
394
384
|
*/
|
|
395
385
|
export interface StripeCryptoCustomerActive {
|
|
396
386
|
crypto_customer_id: string;
|
|
387
|
+
/**
|
|
388
|
+
* Region derived from a Stripe user's country of residence.
|
|
389
|
+
*/
|
|
390
|
+
kyc_region: StripeKYCRegion | null;
|
|
391
|
+
kyc_tiers: Array<StripeKYCTier>;
|
|
392
|
+
provided_fields: Array<string>;
|
|
397
393
|
status: 'active';
|
|
398
394
|
verifications: Array<StripeVerification>;
|
|
399
395
|
}
|
|
@@ -410,6 +406,18 @@ export interface StripeCryptoCustomerExpired {
|
|
|
410
406
|
export interface StripeCryptoCustomerNone {
|
|
411
407
|
status: 'none';
|
|
412
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
* Region derived from a Stripe user's country of residence.
|
|
411
|
+
*/
|
|
412
|
+
export type StripeKYCRegion = 'us' | 'eu';
|
|
413
|
+
/**
|
|
414
|
+
* A KYC tier with its verification status.
|
|
415
|
+
*/
|
|
416
|
+
export interface StripeKYCTier {
|
|
417
|
+
tier: string;
|
|
418
|
+
verification_status: string;
|
|
419
|
+
verification_errors?: Array<string>;
|
|
420
|
+
}
|
|
413
421
|
/**
|
|
414
422
|
* Checkout confirmation with client secret.
|
|
415
423
|
*/
|
|
@@ -431,12 +439,6 @@ export interface StripePaymentToken {
|
|
|
431
439
|
id: string;
|
|
432
440
|
type: string;
|
|
433
441
|
}
|
|
434
|
-
/**
|
|
435
|
-
* A refreshed quote.
|
|
436
|
-
*/
|
|
437
|
-
export interface StripeQuote {
|
|
438
|
-
expires_at: number;
|
|
439
|
-
}
|
|
440
442
|
/**
|
|
441
443
|
* Transaction details from checkout.
|
|
442
444
|
*/
|
|
@@ -451,6 +453,6 @@ export interface StripeVerification {
|
|
|
451
453
|
status: string;
|
|
452
454
|
}
|
|
453
455
|
export declare namespace Onramps {
|
|
454
|
-
export { type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type Caip2ChainID as Caip2ChainID, type CreateLinkAuthIntentInput as CreateLinkAuthIntentInput, type CreateLinkAuthIntentResponse as CreateLinkAuthIntentResponse, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CreateStripeOnrampSessionInput as CreateStripeOnrampSessionInput, type CreateStripeOnrampSessionResponse as CreateStripeOnrampSessionResponse, type
|
|
456
|
+
export { type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type Caip2ChainID as Caip2ChainID, type CreateLinkAuthIntentInput as CreateLinkAuthIntentInput, type CreateLinkAuthIntentResponse as CreateLinkAuthIntentResponse, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CreateStripeOnrampSessionInput as CreateStripeOnrampSessionInput, type CreateStripeOnrampSessionResponse as CreateStripeOnrampSessionResponse, type ExchangeStripeTokensInput as ExchangeStripeTokensInput, type ExchangeStripeTokensResponse as ExchangeStripeTokensResponse, type FiatAmount as FiatAmount, type FiatCurrencyCode as FiatCurrencyCode, type FiatCustomerResponse as FiatCustomerResponse, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type FiatOnrampProviderError as FiatOnrampProviderError, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampStripeSDKSessionResponse as FiatOnrampStripeSDKSessionResponse, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type FiatOnrampURLSessionResponse as FiatOnrampURLSessionResponse, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type GetStripeCryptoCustomerResponse as GetStripeCryptoCustomerResponse, type LinkAuthIntentCreated as LinkAuthIntentCreated, type LinkAuthIntentNoAccount as LinkAuthIntentNoAccount, type ListStripeConsumerWalletsResponse as ListStripeConsumerWalletsResponse, type ListStripePaymentTokensResponse as ListStripePaymentTokensResponse, type OnrampSessionParams as OnrampSessionParams, type OnrampSessionTransactionDetails as OnrampSessionTransactionDetails, type RefreshStripeQuoteResponse as RefreshStripeQuoteResponse, type StripeConsumerWallet as StripeConsumerWallet, type StripeCryptoCustomerActive as StripeCryptoCustomerActive, type StripeCryptoCustomerExpired as StripeCryptoCustomerExpired, type StripeCryptoCustomerNone as StripeCryptoCustomerNone, type StripeKYCRegion as StripeKYCRegion, type StripeKYCTier as StripeKYCTier, type StripeOnrampCheckoutResponse as StripeOnrampCheckoutResponse, type StripeOnrampSessionStatus as StripeOnrampSessionStatus, type StripePaymentToken as StripePaymentToken, type StripeTransactionDetails as StripeTransactionDetails, type StripeVerification as StripeVerification, };
|
|
455
457
|
}
|
|
456
458
|
//# sourceMappingURL=onramps.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onramps.d.mts","sourceRoot":"","sources":["../src/resources/onramps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"onramps.d.mts","sourceRoot":"","sources":["../src/resources/onramps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,aAAa,0BAAsB;AAC/C,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,KAAK,SAAS,qBAAiB;AAEtC,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE,OAAO,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iBAAiB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,kBAAkB,EAAE,OAAO,CAAC;IAE5B,QAAQ,EAAE,gBAAgB,CAAC;IAE3B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iBAAiB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACtD;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,qBAAqB,GAAG,uB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2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/onramps.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as OnrampsAPI from "./onramps.js";
|
|
3
2
|
import * as ClientAuthAPI from "./client-auth.js";
|
|
4
3
|
import * as FiatAPI from "./fiat.js";
|
|
4
|
+
import * as SharedAPI from "./shared.js";
|
|
5
5
|
export declare class Onramps extends APIResource {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -46,6 +46,10 @@ export type Caip2ChainID = string;
|
|
|
46
46
|
*/
|
|
47
47
|
export interface CreateLinkAuthIntentInput {
|
|
48
48
|
email?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
51
|
+
*/
|
|
52
|
+
environment?: FiatOnrampEnvironment;
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
55
|
* The created Link auth intent.
|
|
@@ -90,25 +94,18 @@ export interface CreateStripeOnrampSessionResponse {
|
|
|
90
94
|
/**
|
|
91
95
|
* Transaction details returned from a Stripe onramp session.
|
|
92
96
|
*/
|
|
93
|
-
transaction_details?:
|
|
97
|
+
transaction_details?: OnrampSessionTransactionDetails | null;
|
|
94
98
|
}
|
|
95
|
-
export declare namespace CreateStripeOnrampSessionResponse {
|
|
96
|
-
/**
|
|
97
|
-
* Transaction details returned from a Stripe onramp session.
|
|
98
|
-
*/
|
|
99
|
-
interface TransactionDetails extends OnrampsAPI.OnrampSessionTransactionDetails {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
104
|
-
*/
|
|
105
|
-
export type CryptoCurrencyCode = string;
|
|
106
99
|
/**
|
|
107
100
|
* Input for exchanging a Link auth intent for OAuth tokens.
|
|
108
101
|
*/
|
|
109
102
|
export interface ExchangeStripeTokensInput {
|
|
110
103
|
auth_intent_id: string;
|
|
111
104
|
crypto_customer_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
107
|
+
*/
|
|
108
|
+
environment?: FiatOnrampEnvironment;
|
|
112
109
|
}
|
|
113
110
|
/**
|
|
114
111
|
* Confirmation that tokens were exchanged and stored.
|
|
@@ -134,9 +131,11 @@ export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFia
|
|
|
134
131
|
export interface FiatOnrampDestination {
|
|
135
132
|
address: string;
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
135
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
136
|
+
* identifiers pass through unchanged.
|
|
138
137
|
*/
|
|
139
|
-
asset:
|
|
138
|
+
asset: SharedAPI.TokenIdentifier;
|
|
140
139
|
/**
|
|
141
140
|
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
|
|
142
141
|
* Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
|
|
@@ -171,9 +170,11 @@ export interface FiatOnrampQuote {
|
|
|
171
170
|
*/
|
|
172
171
|
provider: FiatOnrampProvider;
|
|
173
172
|
destination_currency_code?: string | null;
|
|
173
|
+
payment_method_category?: string;
|
|
174
174
|
source_amount?: number | null;
|
|
175
175
|
source_currency_code?: string | null;
|
|
176
176
|
sub_provider?: string | null;
|
|
177
|
+
warning?: string | null;
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
180
|
* Source currency details for a fiat onramp quote request.
|
|
@@ -240,6 +241,9 @@ export interface GetFiatOnrampQuotesInput {
|
|
|
240
241
|
* The response containing fiat onramp quotes.
|
|
241
242
|
*/
|
|
242
243
|
export interface GetFiatOnrampQuotesResponse {
|
|
244
|
+
destination_currency_icon_url: string | null;
|
|
245
|
+
destination_currency_symbol: string;
|
|
246
|
+
destination_network_icon_url: string | null;
|
|
243
247
|
quotes: Array<FiatOnrampQuote>;
|
|
244
248
|
provider_errors?: Array<FiatOnrampProviderError>;
|
|
245
249
|
}
|
|
@@ -326,22 +330,17 @@ export interface ListStripeConsumerWalletsResponse {
|
|
|
326
330
|
export interface ListStripePaymentTokensResponse {
|
|
327
331
|
data: Array<StripePaymentToken>;
|
|
328
332
|
}
|
|
329
|
-
/**
|
|
330
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
331
|
-
*/
|
|
332
|
-
export interface OnrampSessionFees {
|
|
333
|
-
network_fee_monetary: string | null;
|
|
334
|
-
transaction_fee_monetary: string | null;
|
|
335
|
-
}
|
|
336
333
|
/**
|
|
337
334
|
* Parameters for creating a Stripe onramp session.
|
|
338
335
|
*/
|
|
339
336
|
export interface OnrampSessionParams {
|
|
340
337
|
crypto_customer_id: string;
|
|
341
338
|
/**
|
|
342
|
-
*
|
|
339
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
340
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
341
|
+
* identifiers pass through unchanged.
|
|
343
342
|
*/
|
|
344
|
-
destination_currency:
|
|
343
|
+
destination_currency: SharedAPI.TokenIdentifier;
|
|
345
344
|
destination_network: string;
|
|
346
345
|
payment_token: string;
|
|
347
346
|
source_amount: string;
|
|
@@ -358,28 +357,19 @@ export interface OnrampSessionTransactionDetails {
|
|
|
358
357
|
destination_amount: string | null;
|
|
359
358
|
destination_currency: string | null;
|
|
360
359
|
destination_network: string | null;
|
|
361
|
-
|
|
362
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
363
|
-
*/
|
|
364
|
-
fees: OnrampSessionTransactionDetails.Fees;
|
|
365
|
-
source_amount: string | null;
|
|
360
|
+
fee: string | null;
|
|
366
361
|
source_currency: string | null;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Fee breakdown for a Stripe onramp transaction.
|
|
371
|
-
*/
|
|
372
|
-
interface Fees extends OnrampsAPI.OnrampSessionFees {
|
|
373
|
-
}
|
|
362
|
+
source_total_amount: string | null;
|
|
363
|
+
quote_expiration?: number | null;
|
|
374
364
|
}
|
|
375
365
|
/**
|
|
376
|
-
* Refreshed quote with
|
|
366
|
+
* Refreshed quote with amounts, fee, and expiry.
|
|
377
367
|
*/
|
|
378
368
|
export interface RefreshStripeQuoteResponse {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
369
|
+
destination_amount: string | null;
|
|
370
|
+
fee: string | null;
|
|
371
|
+
quote_expiration: number | null;
|
|
372
|
+
source_total_amount: string | null;
|
|
383
373
|
}
|
|
384
374
|
/**
|
|
385
375
|
* A registered consumer wallet.
|
|
@@ -394,6 +384,12 @@ export interface StripeConsumerWallet {
|
|
|
394
384
|
*/
|
|
395
385
|
export interface StripeCryptoCustomerActive {
|
|
396
386
|
crypto_customer_id: string;
|
|
387
|
+
/**
|
|
388
|
+
* Region derived from a Stripe user's country of residence.
|
|
389
|
+
*/
|
|
390
|
+
kyc_region: StripeKYCRegion | null;
|
|
391
|
+
kyc_tiers: Array<StripeKYCTier>;
|
|
392
|
+
provided_fields: Array<string>;
|
|
397
393
|
status: 'active';
|
|
398
394
|
verifications: Array<StripeVerification>;
|
|
399
395
|
}
|
|
@@ -410,6 +406,18 @@ export interface StripeCryptoCustomerExpired {
|
|
|
410
406
|
export interface StripeCryptoCustomerNone {
|
|
411
407
|
status: 'none';
|
|
412
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
* Region derived from a Stripe user's country of residence.
|
|
411
|
+
*/
|
|
412
|
+
export type StripeKYCRegion = 'us' | 'eu';
|
|
413
|
+
/**
|
|
414
|
+
* A KYC tier with its verification status.
|
|
415
|
+
*/
|
|
416
|
+
export interface StripeKYCTier {
|
|
417
|
+
tier: string;
|
|
418
|
+
verification_status: string;
|
|
419
|
+
verification_errors?: Array<string>;
|
|
420
|
+
}
|
|
413
421
|
/**
|
|
414
422
|
* Checkout confirmation with client secret.
|
|
415
423
|
*/
|
|
@@ -431,12 +439,6 @@ export interface StripePaymentToken {
|
|
|
431
439
|
id: string;
|
|
432
440
|
type: string;
|
|
433
441
|
}
|
|
434
|
-
/**
|
|
435
|
-
* A refreshed quote.
|
|
436
|
-
*/
|
|
437
|
-
export interface StripeQuote {
|
|
438
|
-
expires_at: number;
|
|
439
|
-
}
|
|
440
442
|
/**
|
|
441
443
|
* Transaction details from checkout.
|
|
442
444
|
*/
|
|
@@ -451,6 +453,6 @@ export interface StripeVerification {
|
|
|
451
453
|
status: string;
|
|
452
454
|
}
|
|
453
455
|
export declare namespace Onramps {
|
|
454
|
-
export { type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type Caip2ChainID as Caip2ChainID, type CreateLinkAuthIntentInput as CreateLinkAuthIntentInput, type CreateLinkAuthIntentResponse as CreateLinkAuthIntentResponse, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CreateStripeOnrampSessionInput as CreateStripeOnrampSessionInput, type CreateStripeOnrampSessionResponse as CreateStripeOnrampSessionResponse, type
|
|
456
|
+
export { type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type Caip2ChainID as Caip2ChainID, type CreateLinkAuthIntentInput as CreateLinkAuthIntentInput, type CreateLinkAuthIntentResponse as CreateLinkAuthIntentResponse, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CreateStripeOnrampSessionInput as CreateStripeOnrampSessionInput, type CreateStripeOnrampSessionResponse as CreateStripeOnrampSessionResponse, type ExchangeStripeTokensInput as ExchangeStripeTokensInput, type ExchangeStripeTokensResponse as ExchangeStripeTokensResponse, type FiatAmount as FiatAmount, type FiatCurrencyCode as FiatCurrencyCode, type FiatCustomerResponse as FiatCustomerResponse, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type FiatOnrampProviderError as FiatOnrampProviderError, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampStripeSDKSessionResponse as FiatOnrampStripeSDKSessionResponse, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type FiatOnrampURLSessionResponse as FiatOnrampURLSessionResponse, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type GetStripeCryptoCustomerResponse as GetStripeCryptoCustomerResponse, type LinkAuthIntentCreated as LinkAuthIntentCreated, type LinkAuthIntentNoAccount as LinkAuthIntentNoAccount, type ListStripeConsumerWalletsResponse as ListStripeConsumerWalletsResponse, type ListStripePaymentTokensResponse as ListStripePaymentTokensResponse, type OnrampSessionParams as OnrampSessionParams, type OnrampSessionTransactionDetails as OnrampSessionTransactionDetails, type RefreshStripeQuoteResponse as RefreshStripeQuoteResponse, type StripeConsumerWallet as StripeConsumerWallet, type StripeCryptoCustomerActive as StripeCryptoCustomerActive, type StripeCryptoCustomerExpired as StripeCryptoCustomerExpired, type StripeCryptoCustomerNone as StripeCryptoCustomerNone, type StripeKYCRegion as StripeKYCRegion, type StripeKYCTier as StripeKYCTier, type StripeOnrampCheckoutResponse as StripeOnrampCheckoutResponse, type StripeOnrampSessionStatus as StripeOnrampSessionStatus, type StripePaymentToken as StripePaymentToken, type StripeTransactionDetails as StripeTransactionDetails, type StripeVerification as StripeVerification, };
|
|
455
457
|
}
|
|
456
458
|
//# sourceMappingURL=onramps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onramps.d.ts","sourceRoot":"","sources":["../src/resources/onramps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"onramps.d.ts","sourceRoot":"","sources":["../src/resources/onramps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,aAAa,yBAAsB;AAC/C,OAAO,KAAK,OAAO,kBAA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AAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/policies.d.mts
CHANGED
|
@@ -66,7 +66,7 @@ export interface AggregationCondition {
|
|
|
66
66
|
/**
|
|
67
67
|
* Operator to use for policy conditions.
|
|
68
68
|
*/
|
|
69
|
-
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
69
|
+
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set' | 'contains' | 'starts_with' | 'ends_with';
|
|
70
70
|
/**
|
|
71
71
|
* A condition set for grouping related condition values.
|
|
72
72
|
*/
|
|
@@ -87,7 +87,7 @@ export interface ConditionSet {
|
|
|
87
87
|
/**
|
|
88
88
|
* A unique identifier for a key quorum.
|
|
89
89
|
*/
|
|
90
|
-
owner_id: SharedAPI.KeyQuorumID;
|
|
90
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Headers required to authorize modifications to condition sets.
|
|
@@ -165,8 +165,8 @@ export interface ConditionSetItemsResponse {
|
|
|
165
165
|
next_cursor: string | null;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Request body for creating a condition set.
|
|
169
|
-
*
|
|
168
|
+
* Request body for creating a condition set. Optionally provide `owner` or
|
|
169
|
+
* `owner_id` (but not both) to specify ownership.
|
|
170
170
|
*/
|
|
171
171
|
export interface ConditionSetRequestBody {
|
|
172
172
|
/**
|
|
@@ -277,22 +277,40 @@ export interface EthereumTypedDataMessageCondition {
|
|
|
277
277
|
* Operator to use for policy conditions.
|
|
278
278
|
*/
|
|
279
279
|
operator: ConditionOperator;
|
|
280
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
282
|
+
* data message policy conditions.
|
|
283
|
+
*/
|
|
284
|
+
typed_data: TypedDataInput;
|
|
281
285
|
/**
|
|
282
286
|
* Value to compare against in a policy condition. Can be a single string or an
|
|
283
287
|
* array of strings.
|
|
284
288
|
*/
|
|
285
289
|
value: ConditionValue;
|
|
286
290
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Condition on the message being signed (e.g. in personal_sign).
|
|
293
|
+
*/
|
|
294
|
+
export interface MessageSigningCondition {
|
|
295
|
+
/**
|
|
296
|
+
* Supported fields for message signing conditions.
|
|
297
|
+
*/
|
|
298
|
+
field: MessageSigningField;
|
|
299
|
+
field_source: 'message';
|
|
300
|
+
/**
|
|
301
|
+
* Operator to use for policy conditions.
|
|
302
|
+
*/
|
|
303
|
+
operator: ConditionOperator;
|
|
304
|
+
/**
|
|
305
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
306
|
+
* array of strings.
|
|
307
|
+
*/
|
|
308
|
+
value: ConditionValue;
|
|
295
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Supported fields for message signing conditions.
|
|
312
|
+
*/
|
|
313
|
+
export type MessageSigningField = 'content' | 'byte_length';
|
|
296
314
|
/**
|
|
297
315
|
* A policy for controlling wallet operations.
|
|
298
316
|
*/
|
|
@@ -315,9 +333,9 @@ export interface Policy {
|
|
|
315
333
|
*/
|
|
316
334
|
name: string;
|
|
317
335
|
/**
|
|
318
|
-
*
|
|
336
|
+
* A unique identifier for a key quorum.
|
|
319
337
|
*/
|
|
320
|
-
owner_id:
|
|
338
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
321
339
|
rules: Array<PolicyRuleResponse>;
|
|
322
340
|
/**
|
|
323
341
|
* Version of the policy. Currently, 1.0 is the only version.
|
|
@@ -350,11 +368,11 @@ export interface PolicyAuthorizationHeaders {
|
|
|
350
368
|
/**
|
|
351
369
|
* A condition that must be true for the rule action to be applied.
|
|
352
370
|
*/
|
|
353
|
-
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | TempoTransactionCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition;
|
|
371
|
+
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | TempoTransactionCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition | MessageSigningCondition;
|
|
354
372
|
/**
|
|
355
373
|
* Method the rule applies to.
|
|
356
374
|
*/
|
|
357
|
-
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'personal_sign' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
375
|
+
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'personal_sign' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'signMessage' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'signRawMessageBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
358
376
|
/**
|
|
359
377
|
* Unique ID of the policy to take actions on.
|
|
360
378
|
*/
|
|
@@ -581,6 +599,17 @@ export interface TronTransactionCondition {
|
|
|
581
599
|
*/
|
|
582
600
|
value: ConditionValue;
|
|
583
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
604
|
+
* data message policy conditions.
|
|
605
|
+
*/
|
|
606
|
+
export interface TypedDataInput {
|
|
607
|
+
primary_type: string;
|
|
608
|
+
/**
|
|
609
|
+
* The type definitions for EIP-712 typed data signing.
|
|
610
|
+
*/
|
|
611
|
+
types: WalletsAPI.TypedDataTypesInputParams;
|
|
612
|
+
}
|
|
584
613
|
/**
|
|
585
614
|
* Request body for updating a condition set. At least one field must be provided.
|
|
586
615
|
* `owner` and `owner_id` are mutually exclusive.
|
|
@@ -602,6 +631,6 @@ export interface UpdateConditionSetRequestBody {
|
|
|
602
631
|
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
603
632
|
}
|
|
604
633
|
export declare namespace Policies {
|
|
605
|
-
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TempoTransactionCondition as TempoTransactionCondition, type TempoTransactionConditionField as TempoTransactionConditionField, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
634
|
+
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type MessageSigningCondition as MessageSigningCondition, type MessageSigningField as MessageSigningField, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TempoTransactionCondition as TempoTransactionCondition, type TempoTransactionConditionField as TempoTransactionConditionField, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type TypedDataInput as TypedDataInput, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
606
635
|
}
|
|
607
636
|
//# sourceMappingURL=policies.d.mts.map
|