@ledgerhq/revault-api 1.32.1 → 1.33.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/fakes.mjs.map +1 -1
- package/lib/index.d.mts +57 -3
- package/package.json +2 -2
package/lib/index.d.mts
CHANGED
|
@@ -3373,10 +3373,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3373
3373
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
3374
3374
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3375
3375
|
input: {
|
|
3376
|
-
type?: "UPDATE_QUORUM" | "CREATE_TRANSACTION" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "CREATE_ACCOUNT" | "EDIT_ACCOUNT" | "ACTIVATE_TRADELINK_ACCOUNT" | "CREATE_GROUP" | "EDIT_GROUP" | "REVOKE_GROUP" | "CREATE_WHITELIST" | "EDIT_WHITELIST" | "CREATE_ENTITY" | "EDIT_ENTITY" | "REVOKE_ENTITY" | "CREATE_PSD_USER" | "CREATE_API_USER" | "CREATE_API_USER_ACCESS" | "REVOKE_USER" | "CREATE_WORKSPACE_RULE" | "EDIT_WORKSPACE_RULE" | "CREATE_SCICONFIG" | "EDIT_SCICONFIG" | "CREATE_API_KEY" | "EDIT_API_KEY" | "REVOKE_API_KEY" | "CREATE_POLICY" | "EDIT_POLICY" | "CREATE_TRADELINK_CUSTODIAN" | "EDIT_TRADELINK_CUSTODIAN" | "CREATE_TRADELINK_EXCHANGE" | "EDIT_TRADELINK_EXCHANGE" | "CREATE_TRADELINK_ASSET_MANAGER" | "EDIT_TRADELINK_ASSET_MANAGER" | "ADJUST_PLEDGE" | "CREATE_SETTLEMENT" | "FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "EDIT_TOKEN_RULE" | undefined;
|
|
3376
|
+
type?: "UPDATE_QUORUM" | "CREATE_TRANSACTION" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "CREATE_ACCOUNT" | "EDIT_ACCOUNT" | "ACTIVATE_TRADELINK_ACCOUNT" | "CREATE_GROUP" | "EDIT_GROUP" | "REVOKE_GROUP" | "CREATE_WHITELIST" | "EDIT_WHITELIST" | "CREATE_ENTITY" | "EDIT_ENTITY" | "REVOKE_ENTITY" | "CREATE_PSD_USER" | "CREATE_API_USER" | "CREATE_API_USER_ACCESS" | "REVOKE_USER" | "CREATE_WORKSPACE_RULE" | "EDIT_WORKSPACE_RULE" | "CREATE_SCICONFIG" | "EDIT_SCICONFIG" | "CREATE_API_KEY" | "EDIT_API_KEY" | "REVOKE_API_KEY" | "CREATE_POLICY" | "EDIT_POLICY" | "CREATE_TRADELINK_CUSTODIAN" | "EDIT_TRADELINK_CUSTODIAN" | "CREATE_TRADELINK_EXCHANGE" | "EDIT_TRADELINK_EXCHANGE" | "CREATE_TRADELINK_ASSET_MANAGER" | "EDIT_TRADELINK_ASSET_MANAGER" | "ADJUST_PLEDGE" | "CREATE_SETTLEMENT" | "FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "EDIT_TOKEN_RULE" | ("UPDATE_QUORUM" | "CREATE_TRANSACTION" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "CREATE_ACCOUNT" | "EDIT_ACCOUNT" | "ACTIVATE_TRADELINK_ACCOUNT" | "CREATE_GROUP" | "EDIT_GROUP" | "REVOKE_GROUP" | "CREATE_WHITELIST" | "EDIT_WHITELIST" | "CREATE_ENTITY" | "EDIT_ENTITY" | "REVOKE_ENTITY" | "CREATE_PSD_USER" | "CREATE_API_USER" | "CREATE_API_USER_ACCESS" | "REVOKE_USER" | "CREATE_WORKSPACE_RULE" | "EDIT_WORKSPACE_RULE" | "CREATE_SCICONFIG" | "EDIT_SCICONFIG" | "CREATE_API_KEY" | "EDIT_API_KEY" | "REVOKE_API_KEY" | "CREATE_POLICY" | "EDIT_POLICY" | "CREATE_TRADELINK_CUSTODIAN" | "EDIT_TRADELINK_CUSTODIAN" | "CREATE_TRADELINK_EXCHANGE" | "EDIT_TRADELINK_EXCHANGE" | "CREATE_TRADELINK_ASSET_MANAGER" | "EDIT_TRADELINK_ASSET_MANAGER" | "ADJUST_PLEDGE" | "CREATE_SETTLEMENT" | "FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "EDIT_TOKEN_RULE")[] | undefined;
|
|
3377
3377
|
page?: number | undefined;
|
|
3378
3378
|
pageSize?: number | undefined;
|
|
3379
|
-
state?: "INITIAL" | "PENDING_APPROVAL" | "APPROVED" | "EXECUTING" | "EXECUTED" | "FAILED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK" | undefined;
|
|
3379
|
+
state?: "INITIAL" | "PENDING_APPROVAL" | "APPROVED" | "EXECUTING" | "EXECUTED" | "FAILED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK" | ("INITIAL" | "PENDING_APPROVAL" | "APPROVED" | "EXECUTING" | "EXECUTED" | "FAILED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK")[] | undefined;
|
|
3380
3380
|
targetId?: string | undefined;
|
|
3381
3381
|
createdBy?: string | undefined;
|
|
3382
3382
|
sortBy?: "createdAt" | "updatedAt" | "state" | "expiresAt" | undefined;
|
|
@@ -20456,6 +20456,38 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
20456
20456
|
};
|
|
20457
20457
|
} & RateLimitMetricsMeta;
|
|
20458
20458
|
}>;
|
|
20459
|
+
currencyCapabilities: _trpc_server.TRPCQueryProcedure<{
|
|
20460
|
+
input: {
|
|
20461
|
+
id: string;
|
|
20462
|
+
};
|
|
20463
|
+
output: {
|
|
20464
|
+
SIGN_MESSAGE: boolean;
|
|
20465
|
+
SEND: boolean;
|
|
20466
|
+
STAKE: boolean;
|
|
20467
|
+
DEPLOY_CONTRACT: boolean;
|
|
20468
|
+
EXECUTE_CONTRACT: boolean;
|
|
20469
|
+
ACTIVATE_TOKEN: boolean;
|
|
20470
|
+
};
|
|
20471
|
+
meta: {
|
|
20472
|
+
[x: string]: unknown;
|
|
20473
|
+
} & {
|
|
20474
|
+
openapi?: {
|
|
20475
|
+
enabled?: boolean;
|
|
20476
|
+
method: trpc_to_openapi.OpenApiMethod;
|
|
20477
|
+
path: `/${string}`;
|
|
20478
|
+
summary?: string;
|
|
20479
|
+
description?: string;
|
|
20480
|
+
protect?: boolean;
|
|
20481
|
+
tags?: string[];
|
|
20482
|
+
contentTypes?: trpc_to_openapi.OpenApiContentType[];
|
|
20483
|
+
deprecated?: boolean;
|
|
20484
|
+
requestHeaders?: z.AnyZodObject;
|
|
20485
|
+
responseHeaders?: z.AnyZodObject;
|
|
20486
|
+
successDescription?: string;
|
|
20487
|
+
errorResponses?: number[] | Record<number, string>;
|
|
20488
|
+
};
|
|
20489
|
+
} & RateLimitMetricsMeta;
|
|
20490
|
+
}>;
|
|
20459
20491
|
}>>;
|
|
20460
20492
|
tradelink: _trpc_server.TRPCBuiltRouter<{
|
|
20461
20493
|
ctx: {
|
|
@@ -23499,6 +23531,28 @@ declare const zTokenResponse: z__default.ZodObject<{
|
|
|
23499
23531
|
}[];
|
|
23500
23532
|
}>;
|
|
23501
23533
|
type TokenResponse = z__default.infer<typeof zTokenResponse>;
|
|
23534
|
+
declare const zCurrencyCapabilitiesResponse: z__default.ZodObject<{
|
|
23535
|
+
SEND: z__default.ZodBoolean;
|
|
23536
|
+
STAKE: z__default.ZodBoolean;
|
|
23537
|
+
EXECUTE_CONTRACT: z__default.ZodBoolean;
|
|
23538
|
+
SIGN_MESSAGE: z__default.ZodBoolean;
|
|
23539
|
+
DEPLOY_CONTRACT: z__default.ZodBoolean;
|
|
23540
|
+
ACTIVATE_TOKEN: z__default.ZodBoolean;
|
|
23541
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
23542
|
+
SIGN_MESSAGE: boolean;
|
|
23543
|
+
SEND: boolean;
|
|
23544
|
+
STAKE: boolean;
|
|
23545
|
+
DEPLOY_CONTRACT: boolean;
|
|
23546
|
+
EXECUTE_CONTRACT: boolean;
|
|
23547
|
+
ACTIVATE_TOKEN: boolean;
|
|
23548
|
+
}, {
|
|
23549
|
+
SIGN_MESSAGE: boolean;
|
|
23550
|
+
SEND: boolean;
|
|
23551
|
+
STAKE: boolean;
|
|
23552
|
+
DEPLOY_CONTRACT: boolean;
|
|
23553
|
+
EXECUTE_CONTRACT: boolean;
|
|
23554
|
+
ACTIVATE_TOKEN: boolean;
|
|
23555
|
+
}>;
|
|
23502
23556
|
|
|
23503
23557
|
declare const zAuthResponse: z$1.ZodObject<{
|
|
23504
23558
|
accessToken: z$1.ZodString;
|
|
@@ -26827,4 +26881,4 @@ declare const zWorkspaceResponse: z__default.ZodObject<{
|
|
|
26827
26881
|
}>;
|
|
26828
26882
|
type WorkspaceResponse = z__default.infer<typeof zWorkspaceResponse>;
|
|
26829
26883
|
|
|
26830
|
-
export { type AdminResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CurrencyResponse, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type MasterRuleResponse, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type SortOrder, type TokenResponse, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedAction, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCurrencyResponse, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zEstimatedFees as zEstimateFeesResponse, zGroupResponse, zGroupSortBy, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zSortOrder, zTokenResponse, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWrappingKeyFragmentInput };
|
|
26884
|
+
export { type AdminResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CurrencyResponse, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type MasterRuleResponse, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type SortOrder, type TokenResponse, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedAction, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCurrencyCapabilitiesResponse, zCurrencyResponse, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zEstimatedFees as zEstimateFeesResponse, zGroupResponse, zGroupSortBy, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zSortOrder, zTokenResponse, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWrappingKeyFragmentInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/revault-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"invariant": "^2.2.4",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"socket.io": "^4.8.1",
|
|
28
|
-
"@trpc/server": "11.4.
|
|
28
|
+
"@trpc/server": "11.4.2",
|
|
29
29
|
"trpc-to-openapi": "^2.4.0",
|
|
30
30
|
"zod": "^3.25.76"
|
|
31
31
|
}
|