@ledgerhq/revault-api 1.50.0 → 1.51.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/lib/{app-types-CoSpdjR8.d.mts → app-types-C_8ozawx.d.mts} +17 -1
- package/lib/fakes.d.mts +1 -1
- package/lib/fakes.mjs +17 -7
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +224 -2
- package/package.json +4 -4
|
@@ -1489,6 +1489,11 @@ declare const zChallenge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1489
1489
|
challengeType: z.ZodLiteral<"SOFT">;
|
|
1490
1490
|
}, z.core.$strip>], "challengeType">;
|
|
1491
1491
|
type Challenge = z.infer<typeof zChallenge>;
|
|
1492
|
+
declare const zEnsureNameAvailableOutput: z.ZodObject<{
|
|
1493
|
+
available: z.ZodBoolean;
|
|
1494
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1495
|
+
}, z.core.$strip>;
|
|
1496
|
+
type EnsureNameAvailableOutput = z.infer<typeof zEnsureNameAvailableOutput>;
|
|
1492
1497
|
|
|
1493
1498
|
declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
1494
1499
|
request: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
@@ -11940,6 +11945,17 @@ type ApproveVaultRequestInput = z__default.infer<typeof zApproveVaultRequestInpu
|
|
|
11940
11945
|
declare const zRequestTaskResponse: z__default.ZodObject<{
|
|
11941
11946
|
taskId: z__default.ZodString;
|
|
11942
11947
|
}, z__default.core.$strip>;
|
|
11948
|
+
declare const zEnsureNameAvailableInput: z__default.ZodObject<{
|
|
11949
|
+
objectType: z__default.ZodEnum<{
|
|
11950
|
+
Account: "Account";
|
|
11951
|
+
Group: "Group";
|
|
11952
|
+
Policy: "Policy";
|
|
11953
|
+
Whitelist: "Whitelist";
|
|
11954
|
+
}>;
|
|
11955
|
+
name: z__default.ZodString;
|
|
11956
|
+
excludeId: z__default.ZodOptional<z__default.ZodString>;
|
|
11957
|
+
}, z__default.core.$strip>;
|
|
11958
|
+
type EnsureNameAvailableInput = z__default.infer<typeof zEnsureNameAvailableInput>;
|
|
11943
11959
|
|
|
11944
11960
|
declare const zUserResponse: z__default.ZodObject<{
|
|
11945
11961
|
id: z__default.ZodString;
|
|
@@ -12033,4 +12049,4 @@ declare const zWhitelistSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
|
12033
12049
|
}>>;
|
|
12034
12050
|
type WhitelistSortBy = z__default.infer<typeof zWhitelistSortBy>;
|
|
12035
12051
|
|
|
12036
|
-
export { type AssetResponse as A, zChallengeResponse as B, type CurrencyResponse as C, type ChallengeResponse as D, genTransactionSchemas as E, zApproveVaultRequestInput as F, type GroupResponse as G, type ApproveVaultRequestInput as H, zRequestTaskResponse as I,
|
|
12052
|
+
export { zWhitelistSortBy as $, type AssetResponse as A, zChallengeResponse as B, type CurrencyResponse as C, type ChallengeResponse as D, genTransactionSchemas as E, zApproveVaultRequestInput as F, type GroupResponse as G, type ApproveVaultRequestInput as H, zRequestTaskResponse as I, zEnsureNameAvailableInput as J, type EnsureNameAvailableInput as K, type Challenge as L, type EnsureNameAvailableOutput as M, zEnsureNameAvailableOutput as N, zUserResponse as O, zAdminResponse as P, type AdminResponse as Q, type RequestSortBy as R, type SoftChallenge as S, type TransactionResponse as T, type UserResponse as U, type VaultRequestCreateInput as V, zUserSortBy as W, type UserSortBy as X, zWhitelistAddressResponse as Y, zWhitelistResponse as Z, type WhitelistResponse as _, type AccountFreshAddress as a, type WhitelistSortBy as a0, type TransactionData as a1, type AccountLiveDataResponse as b, type AccountResponse as c, type AccountSortBy as d, zAccountLiveDataResponse as e, zAccountResponse as f, zAccountSortBy as g, zBalance as h, zStake as i, zStakeSortBy as j, zStakingValidator as k, zStakingValidatorSortBy as l, zEstimatedFees as m, type TokenResponse as n, zAssetCapabilitiesResponse as o, zAssetResponse as p, zCurrencyResponse as q, zTokenResponse as r, zGroupResponse as s, zGroupSortBy as t, type GroupSortBy as u, zVaultRequestCreateInput as v, zVaultRequestResponse as w, type VaultRequestResponse as x, zRequestSortBy as y, zAccountFreshAddress as z };
|
package/lib/fakes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AssetResponse,
|
|
1
|
+
import { A as AssetResponse, a1 as TransactionData, L as Challenge, c as AccountResponse, G as GroupResponse, U as UserResponse, x as VaultRequestResponse, _ as WhitelistResponse } from './app-types-C_8ozawx.mjs';
|
|
2
2
|
import { Group, User, RequestType, VaultRequestReview, VaultRequest, Account, Whitelist } from '@prisma/client';
|
|
3
3
|
import z__default from 'zod';
|
|
4
4
|
|
package/lib/fakes.mjs
CHANGED
|
@@ -3848,14 +3848,10 @@ var zRequestReviewStep = z.object({
|
|
|
3848
3848
|
quorum: z.int().min(1).meta({ description: "Quorum for the review step" })
|
|
3849
3849
|
});
|
|
3850
3850
|
var zRequestReviewSteps = z.array(zRequestReviewStep);
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
accountIds: z14.array(z14.string()).meta({ description: "List of Account IDs" }),
|
|
3855
|
-
memberIds: z14.array(z14.string()).meta({ description: "List of User IDs" })
|
|
3851
|
+
z.object({
|
|
3852
|
+
available: z.boolean().meta({ description: "Whether the name is available" }),
|
|
3853
|
+
reason: z.string().optional().meta({ description: "Reason the name is unavailable" })
|
|
3856
3854
|
});
|
|
3857
|
-
var zEditEntityRequestData = zCreateEntityRequestData;
|
|
3858
|
-
var zRevokeEntityRequestData = z14.object({});
|
|
3859
3855
|
var zGroupName = z14.string().min(1).max(19).meta({ description: "Group name" });
|
|
3860
3856
|
var zCreateGroupRequestData = z14.object({
|
|
3861
3857
|
name: zGroupName,
|
|
@@ -3867,6 +3863,14 @@ var zEditGroupRequestData = z14.object({
|
|
|
3867
3863
|
description: z14.string().nullable().meta({ description: "Group description" }),
|
|
3868
3864
|
members: z14.array(z14.string()).meta({ description: "List of group members ids" })
|
|
3869
3865
|
});
|
|
3866
|
+
var zEntityName = z14.string().min(1).max(19).meta({ description: "Entity name" });
|
|
3867
|
+
var zCreateEntityRequestData = z14.object({
|
|
3868
|
+
name: zEntityName,
|
|
3869
|
+
accountIds: z14.array(z14.string()).meta({ description: "List of Account IDs" }),
|
|
3870
|
+
memberIds: z14.array(z14.string()).meta({ description: "List of User IDs" })
|
|
3871
|
+
});
|
|
3872
|
+
var zEditEntityRequestData = zCreateEntityRequestData;
|
|
3873
|
+
var zRevokeEntityRequestData = z14.object({});
|
|
3870
3874
|
var zApiKeyName = z14.string().min(1).max(19).meta({ description: "API key name" });
|
|
3871
3875
|
var zCreateApiKeyRequestData = z14.object({
|
|
3872
3876
|
name: zApiKeyName,
|
|
@@ -4140,6 +4144,12 @@ z14.object({
|
|
|
4140
4144
|
z14.object({
|
|
4141
4145
|
taskId: z14.string().meta({ description: "Task ID" })
|
|
4142
4146
|
});
|
|
4147
|
+
var zObjectType = z14.enum(["Account", "Group", "Whitelist", "Policy"]);
|
|
4148
|
+
z14.object({
|
|
4149
|
+
objectType: zObjectType.meta({ description: "Type of object to check name for" }),
|
|
4150
|
+
name: z14.string().min(1).meta({ description: "Name to check availability for" }),
|
|
4151
|
+
excludeId: z14.string().optional().meta({ description: "Optional ID to exclude (for edit scenarios)" })
|
|
4152
|
+
});
|
|
4143
4153
|
|
|
4144
4154
|
// src/requests/app-utils/index.ts
|
|
4145
4155
|
function serializeVaultRequest(request) {
|