@stacknet/keyutils 0.5.0 → 0.6.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/components/index.cjs +2 -2
- package/dist/components/index.d.cts +10 -1
- package/dist/components/index.d.ts +10 -1
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.d.cts +45 -13
- package/dist/hooks/index.d.ts +45 -13
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types/index.d.cts +27 -5
- package/dist/types/index.d.ts +27 -5
- package/package.json +1 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -94,10 +94,19 @@ type EligibleKey = NodeKeyInfo & {
|
|
|
94
94
|
};
|
|
95
95
|
type PayoutAccountMethod = 'stripe' | 'solana';
|
|
96
96
|
/**
|
|
97
|
-
* The user's saved payout
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
97
|
+
* The user's saved payout config in the context of one stack.
|
|
98
|
+
*
|
|
99
|
+
* Stripe Connect is per-(user, stack) — each stack runs its own platform
|
|
100
|
+
* under its own secret, so a given user has independent connected accounts
|
|
101
|
+
* across stacks. The `stripe` field reflects the connection for the SCOPE
|
|
102
|
+
* stack only; query other stacks via `useUserStripeStacks()` or by passing
|
|
103
|
+
* a different `stackId` to `usePayoutAccount`.
|
|
104
|
+
*
|
|
105
|
+
* The Solana wallet is global (one verified address services every stack).
|
|
106
|
+
*
|
|
107
|
+
* `method` records the user's preferred rail. The active filing flow
|
|
108
|
+
* verifies the chosen rail is configured for the key's originating stack
|
|
109
|
+
* and falls back to a clear error if not.
|
|
101
110
|
*/
|
|
102
111
|
interface PayoutAccount {
|
|
103
112
|
/** Which method is currently configured. `null` when nothing is set up. */
|
|
@@ -123,6 +132,19 @@ interface PayoutAccount {
|
|
|
123
132
|
verifiedAt: string;
|
|
124
133
|
};
|
|
125
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* One stack the user has a Stripe Connect account on. Returned by
|
|
137
|
+
* `useUserStripeStacks()` for the multi-stack settings view.
|
|
138
|
+
*/
|
|
139
|
+
interface StripeStackPayout {
|
|
140
|
+
stackId: string;
|
|
141
|
+
accountIdMasked: string;
|
|
142
|
+
chargesEnabled: boolean;
|
|
143
|
+
payoutsEnabled: boolean;
|
|
144
|
+
detailsSubmitted: boolean;
|
|
145
|
+
pendingOnboardingUrl?: string | null;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
}
|
|
126
148
|
interface CryptoNonceResponse {
|
|
127
149
|
nonce: string;
|
|
128
150
|
/** Canonical message the wallet must sign — includes the nonce. */
|
|
@@ -224,4 +246,4 @@ interface KeyUtilsCallbacks {
|
|
|
224
246
|
onFilingError?: (error: Error) => void;
|
|
225
247
|
}
|
|
226
248
|
|
|
227
|
-
export type { CryptoNonceResponse, DirectTransferResult, EligibleKey, FilingDetail, FilingHistoryEntry, FilingResult, FilingStatus, FilingTrackerState, FilingTrackerStatus, FilingTrackerStep, KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, PayoutAccount, PayoutAccountMethod, PayoutMethod, Platform, PlatformDownload, PricingInfo, StackPayoutCapabilities, StripeConnectStartResponse };
|
|
249
|
+
export type { CryptoNonceResponse, DirectTransferResult, EligibleKey, FilingDetail, FilingHistoryEntry, FilingResult, FilingStatus, FilingTrackerState, FilingTrackerStatus, FilingTrackerStep, KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, PayoutAccount, PayoutAccountMethod, PayoutMethod, Platform, PlatformDownload, PricingInfo, StackPayoutCapabilities, StripeConnectStartResponse, StripeStackPayout };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -94,10 +94,19 @@ type EligibleKey = NodeKeyInfo & {
|
|
|
94
94
|
};
|
|
95
95
|
type PayoutAccountMethod = 'stripe' | 'solana';
|
|
96
96
|
/**
|
|
97
|
-
* The user's saved payout
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
97
|
+
* The user's saved payout config in the context of one stack.
|
|
98
|
+
*
|
|
99
|
+
* Stripe Connect is per-(user, stack) — each stack runs its own platform
|
|
100
|
+
* under its own secret, so a given user has independent connected accounts
|
|
101
|
+
* across stacks. The `stripe` field reflects the connection for the SCOPE
|
|
102
|
+
* stack only; query other stacks via `useUserStripeStacks()` or by passing
|
|
103
|
+
* a different `stackId` to `usePayoutAccount`.
|
|
104
|
+
*
|
|
105
|
+
* The Solana wallet is global (one verified address services every stack).
|
|
106
|
+
*
|
|
107
|
+
* `method` records the user's preferred rail. The active filing flow
|
|
108
|
+
* verifies the chosen rail is configured for the key's originating stack
|
|
109
|
+
* and falls back to a clear error if not.
|
|
101
110
|
*/
|
|
102
111
|
interface PayoutAccount {
|
|
103
112
|
/** Which method is currently configured. `null` when nothing is set up. */
|
|
@@ -123,6 +132,19 @@ interface PayoutAccount {
|
|
|
123
132
|
verifiedAt: string;
|
|
124
133
|
};
|
|
125
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* One stack the user has a Stripe Connect account on. Returned by
|
|
137
|
+
* `useUserStripeStacks()` for the multi-stack settings view.
|
|
138
|
+
*/
|
|
139
|
+
interface StripeStackPayout {
|
|
140
|
+
stackId: string;
|
|
141
|
+
accountIdMasked: string;
|
|
142
|
+
chargesEnabled: boolean;
|
|
143
|
+
payoutsEnabled: boolean;
|
|
144
|
+
detailsSubmitted: boolean;
|
|
145
|
+
pendingOnboardingUrl?: string | null;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
}
|
|
126
148
|
interface CryptoNonceResponse {
|
|
127
149
|
nonce: string;
|
|
128
150
|
/** Canonical message the wallet must sign — includes the nonce. */
|
|
@@ -224,4 +246,4 @@ interface KeyUtilsCallbacks {
|
|
|
224
246
|
onFilingError?: (error: Error) => void;
|
|
225
247
|
}
|
|
226
248
|
|
|
227
|
-
export type { CryptoNonceResponse, DirectTransferResult, EligibleKey, FilingDetail, FilingHistoryEntry, FilingResult, FilingStatus, FilingTrackerState, FilingTrackerStatus, FilingTrackerStep, KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, PayoutAccount, PayoutAccountMethod, PayoutMethod, Platform, PlatformDownload, PricingInfo, StackPayoutCapabilities, StripeConnectStartResponse };
|
|
249
|
+
export type { CryptoNonceResponse, DirectTransferResult, EligibleKey, FilingDetail, FilingHistoryEntry, FilingResult, FilingStatus, FilingTrackerState, FilingTrackerStatus, FilingTrackerStep, KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, PayoutAccount, PayoutAccountMethod, PayoutMethod, Platform, PlatformDownload, PricingInfo, StackPayoutCapabilities, StripeConnectStartResponse, StripeStackPayout };
|