@getpara/shared 1.33.0 → 1.35.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/cjs/schemas/permissionsV2.js +72 -12
- package/dist/cjs/schemas/permissionsV2Lifecycle.js +2 -3
- package/dist/cjs/types/auth.js +7 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/partner.js +8 -1
- package/dist/cjs/types/restTransfer.js +2 -0
- package/dist/cjs/types/twoFactor.js +2 -0
- package/dist/cjs/types/webhook.js +4 -0
- package/dist/esm/schemas/permissionsV2.js +70 -10
- package/dist/esm/schemas/permissionsV2Lifecycle.js +2 -3
- package/dist/esm/types/auth.js +6 -0
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/types/partner.js +7 -0
- package/dist/esm/types/restTransfer.js +1 -0
- package/dist/esm/types/twoFactor.js +1 -0
- package/dist/esm/types/webhook.js +4 -0
- package/dist/types/schemas/permissionsV2.d.ts +178 -147
- package/dist/types/schemas/permissionsV2.d.ts.map +1 -1
- package/dist/types/schemas/permissionsV2Lifecycle.d.ts +170 -196
- package/dist/types/schemas/permissionsV2Lifecycle.d.ts.map +1 -1
- package/dist/types/types/auth.d.ts +55 -1
- package/dist/types/types/auth.d.ts.map +1 -1
- package/dist/types/types/authState.d.ts +6 -0
- package/dist/types/types/authState.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/partner.d.ts +4 -0
- package/dist/types/types/partner.d.ts.map +1 -1
- package/dist/types/types/partnerAppConfig.d.ts +14 -0
- package/dist/types/types/partnerAppConfig.d.ts.map +1 -1
- package/dist/types/types/pending-transaction.d.ts +4 -8
- package/dist/types/types/pending-transaction.d.ts.map +1 -1
- package/dist/types/types/permissions.d.ts +3 -1
- package/dist/types/types/permissions.d.ts.map +1 -1
- package/dist/types/types/restTransfer.d.ts +11 -0
- package/dist/types/types/restTransfer.d.ts.map +1 -0
- package/dist/types/types/signing.d.ts +39 -0
- package/dist/types/types/signing.d.ts.map +1 -1
- package/dist/types/types/twoFactor.d.ts +100 -0
- package/dist/types/types/twoFactor.d.ts.map +1 -0
- package/dist/types/types/webhook.d.ts +51 -3
- package/dist/types/types/webhook.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { MfaMethod } from './auth.js';
|
|
2
|
+
/**
|
|
3
|
+
* Request/response contract for the login-time second-factor surface (`/internal/v1/auth/2fa/*`), shared by
|
|
4
|
+
* the backend handlers (which runtime-validate `req.body`) and every SDK. The surface is session-authed: a
|
|
5
|
+
* first factor has already minted the session; these calls satisfy (or set up) the second. (ENG-6906)
|
|
6
|
+
*/
|
|
7
|
+
/** `POST /2fa/enroll` — which second factor to set up. Absent `method` ⇒ `totp` (the launch contract). */
|
|
8
|
+
export type TwoFactorEnrollBody = {
|
|
9
|
+
method?: 'totp';
|
|
10
|
+
}
|
|
11
|
+
/** Passkey, step 1: ask for a registration challenge. */
|
|
12
|
+
| {
|
|
13
|
+
method: 'passkey';
|
|
14
|
+
}
|
|
15
|
+
/** Passkey, step 2: the completed WebAuthn registration over that challenge. */
|
|
16
|
+
| {
|
|
17
|
+
method: 'passkey';
|
|
18
|
+
credentialId: string;
|
|
19
|
+
cosePublicKey: string;
|
|
20
|
+
clientDataJSON: string;
|
|
21
|
+
aaguid?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Password/PIN: the credential's server-verifiable material — the same shape the legacy credential
|
|
25
|
+
* creation stores (salt + the public half of the password-derived RSA signing key). The secret itself
|
|
26
|
+
* never leaves the client. `encryptedPrivateKey` is the RSA private key encrypted under the password-
|
|
27
|
+
* derived key, stored so the client can sign later challenges after re-deriving. (ENG-6906)
|
|
28
|
+
*/
|
|
29
|
+
| {
|
|
30
|
+
method: 'password' | 'pin';
|
|
31
|
+
salt: string;
|
|
32
|
+
sigDerivedPublicKey: string;
|
|
33
|
+
encryptedPrivateKey: string;
|
|
34
|
+
/** SHA-256 of the password-derived key handle — the lookup key the client re-derives to fetch the blob. */
|
|
35
|
+
encryptionKeyHash: string;
|
|
36
|
+
};
|
|
37
|
+
export type TwoFactorEnrollResponse =
|
|
38
|
+
/** TOTP: the otpauth:// provisioning URI + the one-time backup codes (surfaced exactly once). */
|
|
39
|
+
{
|
|
40
|
+
method: 'totp';
|
|
41
|
+
uri: string;
|
|
42
|
+
backupCodes: string[];
|
|
43
|
+
}
|
|
44
|
+
/** Passkey step 1: the server-issued WebAuthn registration challenge (base64url). */
|
|
45
|
+
| {
|
|
46
|
+
method: 'passkey';
|
|
47
|
+
challenge: string;
|
|
48
|
+
}
|
|
49
|
+
/** Passkey step 2 / password / PIN: the factor is enrolled and VERIFIED (a credential proves itself at setup). */
|
|
50
|
+
| {
|
|
51
|
+
method: 'passkey' | 'password' | 'pin';
|
|
52
|
+
ok: true;
|
|
53
|
+
factorId: string;
|
|
54
|
+
};
|
|
55
|
+
/** `POST /2fa/verify` — the proof for ONE of the account's enrolled second factors. */
|
|
56
|
+
export type TwoFactorVerifyBody =
|
|
57
|
+
/** TOTP or backup code. Absent `method` ⇒ code (the launch contract). */
|
|
58
|
+
{
|
|
59
|
+
method?: 'totp' | 'backup_code';
|
|
60
|
+
code: string;
|
|
61
|
+
}
|
|
62
|
+
/** WebAuthn assertion over `MfaChallenge.passkey.challenge`. */
|
|
63
|
+
| {
|
|
64
|
+
method: 'passkey';
|
|
65
|
+
credentialId: string;
|
|
66
|
+
clientDataJSON: string;
|
|
67
|
+
authenticatorData: string;
|
|
68
|
+
signature: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The key-handle proof bound to this session's challenge: SHA256(challenge + SHA256(SHA256(salt + secret))), hex, with
|
|
72
|
+
* `challenge` = `MfaChallenge.challenge` and the salt from `MfaChallenge.passwordCredentials`. Checked server-side
|
|
73
|
+
* against the account's OWN second-factor rows; nothing crackable is returned to the client, and a captured proof
|
|
74
|
+
* is single-use. (ENG-6906)
|
|
75
|
+
*/
|
|
76
|
+
| {
|
|
77
|
+
method: 'password' | 'pin';
|
|
78
|
+
proof: string;
|
|
79
|
+
};
|
|
80
|
+
export type TwoFactorVerifyResponse = {
|
|
81
|
+
ok: true;
|
|
82
|
+
};
|
|
83
|
+
/** A display-ready enrolled second factor, for the account's 2FA management UI. */
|
|
84
|
+
export type TwoFactorFactorView<D extends Date | string = Date> = {
|
|
85
|
+
factorId: string;
|
|
86
|
+
method: Exclude<MfaMethod, 'backup_code'>;
|
|
87
|
+
/** PENDING = enrollment begun, not yet confirmed (TOTP only); VERIFIED = enforced. */
|
|
88
|
+
status: 'PENDING' | 'VERIFIED';
|
|
89
|
+
/** True when this factor was a share-gate credential reclassified at the account's enclave migration. */
|
|
90
|
+
reclassified: boolean;
|
|
91
|
+
createdAt: D;
|
|
92
|
+
verifiedAt?: D | null;
|
|
93
|
+
lastUsedAt?: D | null;
|
|
94
|
+
};
|
|
95
|
+
export type ListTwoFactorFactorsResponse<D extends Date | string = Date> = {
|
|
96
|
+
factors: TwoFactorFactorView<D>[];
|
|
97
|
+
/** Unused backup codes remaining (0 when none were ever issued). */
|
|
98
|
+
backupCodesRemaining: number;
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=twoFactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twoFactor.d.ts","sourceRoot":"","sources":["../../../src/types/twoFactor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;GAIG;AAEH,0GAA0G;AAC1G,MAAM,MAAM,mBAAmB,GAC3B;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;AACrB,yDAAyD;GACvD;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE;AACvB,gFAAgF;GAC9E;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,aAAa,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M,MAAM,mBAAmB,CAAC,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,IAAI;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC1C,sFAAsF;IACtF,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B,yGAAyG;IACzG,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,CAAC,CAAC;IACb,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,IAAI;IACzE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC,oEAAoE;IACpE,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
|
@@ -26,6 +26,10 @@ export declare enum WebhookEventType {
|
|
|
26
26
|
USER_EXTERNAL_WALLET_VERIFIED = "user.external_wallet_verified",
|
|
27
27
|
/** Fired when a fiat on-ramp purchase settles on-chain — carries the settlement tx hash (Coinbase/CDP today) */
|
|
28
28
|
ONRAMP_COMPLETED = "onramp.completed",
|
|
29
|
+
/** Fired when a partner resets (revokes) a user's login-time second factors via the REST API */
|
|
30
|
+
USER_TWO_FACTOR_RESET = "user.two_factor_reset",
|
|
31
|
+
/** Fired when Alchemy first reports an incoming fungible transfer to a watched wallet address */
|
|
32
|
+
FUNDS_RECEIVED = "funds.received",
|
|
29
33
|
/** Test ping event - used for webhook connectivity testing */
|
|
30
34
|
TEST_PING = "test.ping"
|
|
31
35
|
}
|
|
@@ -113,11 +117,14 @@ export interface SendFailedPayload {
|
|
|
113
117
|
* Payload for rest.transaction.confirmed event (REST API v1 /transfer)
|
|
114
118
|
*/
|
|
115
119
|
export interface RestTransactionConfirmedPayload {
|
|
120
|
+
winningHash?: string;
|
|
121
|
+
chainOutcome?: 'success' | 'revert' | 'replacement' | 'cancellation';
|
|
122
|
+
winningStatus?: 'confirmed' | 'reverted';
|
|
116
123
|
transactionId: string;
|
|
117
124
|
walletId: string;
|
|
118
125
|
partnerId: string;
|
|
119
126
|
type: 'EVM' | 'SOLANA';
|
|
120
|
-
intentKind: 'transfer' | 'sign_transaction';
|
|
127
|
+
intentKind: 'transfer' | 'sign_transaction' | 'yield';
|
|
121
128
|
hash: string;
|
|
122
129
|
blockNumber?: string;
|
|
123
130
|
blockHash?: string;
|
|
@@ -127,11 +134,14 @@ export interface RestTransactionConfirmedPayload {
|
|
|
127
134
|
* Payload for rest.transaction.failed event (REST API v1 /transfer)
|
|
128
135
|
*/
|
|
129
136
|
export interface RestTransactionFailedPayload {
|
|
137
|
+
winningHash?: string;
|
|
138
|
+
chainOutcome?: 'success' | 'revert' | 'replacement' | 'cancellation';
|
|
139
|
+
winningStatus?: 'confirmed' | 'reverted';
|
|
130
140
|
transactionId: string;
|
|
131
141
|
walletId: string;
|
|
132
142
|
partnerId: string;
|
|
133
143
|
type: 'EVM' | 'SOLANA';
|
|
134
|
-
intentKind: 'transfer' | 'sign_transaction';
|
|
144
|
+
intentKind: 'transfer' | 'sign_transaction' | 'yield';
|
|
135
145
|
status: 'reverted' | 'failed';
|
|
136
146
|
hash?: string;
|
|
137
147
|
failureStage?: string;
|
|
@@ -207,6 +217,42 @@ export interface OnrampCompletedPayload {
|
|
|
207
217
|
export type OnrampPurchaseEventData = Omit<OnrampCompletedPayload, 'completedAt'> & {
|
|
208
218
|
completedAt: string | null;
|
|
209
219
|
};
|
|
220
|
+
/**
|
|
221
|
+
* Payload for user.two_factor_reset event
|
|
222
|
+
*/
|
|
223
|
+
export interface UserTwoFactorResetPayload {
|
|
224
|
+
userId: string;
|
|
225
|
+
/** The second-factor methods that were revoked (totp | passkey | password | pin). */
|
|
226
|
+
revokedMethods: string[];
|
|
227
|
+
resetAt: string;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Payload for funds.received event. Sent on the first report of the transfer, with no confirmation count, so a
|
|
231
|
+
* chain reorganization can still remove it.
|
|
232
|
+
*/
|
|
233
|
+
export interface FundsReceivedPayload {
|
|
234
|
+
watchId: string;
|
|
235
|
+
walletId: string;
|
|
236
|
+
/** The watched receiving address (lowercase EVM address or Stellar G-address). */
|
|
237
|
+
walletAddress: string;
|
|
238
|
+
/** Network identifier, e.g. `eip155:8453` or `stellar:testnet`. */
|
|
239
|
+
network: string;
|
|
240
|
+
asset: {
|
|
241
|
+
/** `native`, a lowercase EVM token contract address, or a Stellar `CODE:ISSUER`. */
|
|
242
|
+
identifier: string;
|
|
243
|
+
/** Symbol as reported by the provider; informational only. */
|
|
244
|
+
symbol: string | null;
|
|
245
|
+
/** Null when the provider does not report decimals for the token. */
|
|
246
|
+
decimals: number | null;
|
|
247
|
+
};
|
|
248
|
+
/** Integer string in the asset's base units (EVM raw value, Stellar stroops). */
|
|
249
|
+
amount: string;
|
|
250
|
+
from: string;
|
|
251
|
+
txHash: string;
|
|
252
|
+
/** EVM block number or Stellar ledger sequence. */
|
|
253
|
+
blockNumber: number;
|
|
254
|
+
receivedAt: string;
|
|
255
|
+
}
|
|
210
256
|
/**
|
|
211
257
|
* Payload for test.ping event
|
|
212
258
|
*/
|
|
@@ -217,7 +263,7 @@ export interface TestPingPayload {
|
|
|
217
263
|
/**
|
|
218
264
|
* Union type for all webhook event payloads
|
|
219
265
|
*/
|
|
220
|
-
export type WebhookEventPayload = UserCreatedPayload | WalletCreatedPayload | TransactionSignedPayload | SendBroadcastedPayload | SendConfirmedPayload | SendFailedPayload | RestTransactionConfirmedPayload | RestTransactionFailedPayload | WalletPregenClaimedPayload | UserExternalWalletVerifiedPayload | OnrampCompletedPayload | TestPingPayload;
|
|
266
|
+
export type WebhookEventPayload = UserCreatedPayload | WalletCreatedPayload | TransactionSignedPayload | SendBroadcastedPayload | SendConfirmedPayload | SendFailedPayload | RestTransactionConfirmedPayload | RestTransactionFailedPayload | WalletPregenClaimedPayload | UserExternalWalletVerifiedPayload | OnrampCompletedPayload | UserTwoFactorResetPayload | FundsReceivedPayload | TestPingPayload;
|
|
221
267
|
/**
|
|
222
268
|
* Maps each webhook event type to its exact payload interface.
|
|
223
269
|
* Used by dispatchWebhook/buildWebhookPayload for compile-time payload enforcement.
|
|
@@ -239,6 +285,8 @@ export type WebhookEventPayloadMap = {
|
|
|
239
285
|
[WebhookEventType.WALLET_PREGEN_CLAIMED]: WalletPregenClaimedPayload;
|
|
240
286
|
[WebhookEventType.USER_EXTERNAL_WALLET_VERIFIED]: UserExternalWalletVerifiedPayload;
|
|
241
287
|
[WebhookEventType.ONRAMP_COMPLETED]: OnrampCompletedPayload;
|
|
288
|
+
[WebhookEventType.USER_TWO_FACTOR_RESET]: UserTwoFactorResetPayload;
|
|
289
|
+
[WebhookEventType.FUNDS_RECEIVED]: FundsReceivedPayload;
|
|
242
290
|
[WebhookEventType.TEST_PING]: TestPingPayload;
|
|
243
291
|
};
|
|
244
292
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../src/types/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,iEAAiE;IACjE,YAAY,iBAAiB;IAC7B,oDAAoD;IACpD,cAAc,mBAAmB;IACjC,yCAAyC;IACzC,kBAAkB,uBAAuB;IACzC,sEAAsE;IACtE,gBAAgB,qBAAqB;IACrC,+DAA+D;IAC/D,cAAc,mBAAmB;IACjC,wDAAwD;IACxD,WAAW,gBAAgB;IAC3B,yEAAyE;IACzE,0BAA0B,+BAA+B;IACzD,iHAAiH;IACjH,uBAAuB,4BAA4B;IACnD,6DAA6D;IAC7D,qBAAqB,0BAA0B;IAC/C,8DAA8D;IAC9D,6BAA6B,kCAAkC;IAC/D,gHAAgH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