@ledgerhq/revault-api 1.48.0 → 1.49.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.
Files changed (2) hide show
  1. package/lib/index.d.mts +121 -3
  2. package/package.json +1 -1
package/lib/index.d.mts CHANGED
@@ -2331,7 +2331,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2331
2331
  id: string;
2332
2332
  workspaceName: string;
2333
2333
  compartmentId: number;
2334
- hsmScriptsVersion: string;
2335
2334
  step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_WRAPPING_KEY_PROVISIONING" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_WORKSPACE_INITIALIZATION";
2336
2335
  createdAt: Date;
2337
2336
  }[];
@@ -15148,6 +15147,127 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
15148
15147
  };
15149
15148
  } & RateLimitMetricsMeta;
15150
15149
  }>;
15150
+ createCantonTransaction: _trpc_server.TRPCMutationProcedure<{
15151
+ input: {
15152
+ accountId: string;
15153
+ transaction: unknown;
15154
+ note?: {
15155
+ title: string;
15156
+ content: string;
15157
+ } | undefined;
15158
+ };
15159
+ output: {
15160
+ type: "CREATE_TRANSACTION";
15161
+ data: {
15162
+ accountId: string;
15163
+ transaction: {
15164
+ currency: string;
15165
+ recipient: string;
15166
+ amount: string;
15167
+ reason: string | null;
15168
+ type: "CANTON_LIKE_SEND";
15169
+ executeBeforeSeconds?: number | undefined;
15170
+ } | {
15171
+ currency: string;
15172
+ recipient: string;
15173
+ amount: string;
15174
+ reason: string | null;
15175
+ type: "CANTON_LIKE_SEND_TOKEN";
15176
+ executeBeforeSeconds?: number | undefined;
15177
+ } | {
15178
+ currency: string;
15179
+ transferProposal: {
15180
+ amount: string;
15181
+ contractId: string;
15182
+ instrumentAdmin: string;
15183
+ instrumentId: string;
15184
+ expiresAtMicros: number;
15185
+ reason: string | null;
15186
+ sender: string;
15187
+ recipient: string;
15188
+ };
15189
+ reason: string | null;
15190
+ type: "CANTON_LIKE_WITHDRAW";
15191
+ } | {
15192
+ currency: string;
15193
+ transferProposal: {
15194
+ amount: string;
15195
+ contractId: string;
15196
+ instrumentAdmin: string;
15197
+ instrumentId: string;
15198
+ expiresAtMicros: number;
15199
+ reason: string | null;
15200
+ sender: string;
15201
+ recipient: string;
15202
+ };
15203
+ verdict: "ACCEPT" | "REJECT";
15204
+ reason: string | null;
15205
+ type: "CANTON_LIKE_RECEIVE";
15206
+ } | {
15207
+ currency: string;
15208
+ recipient: string;
15209
+ type: "CANTON_LIKE_PRE_APPROVAL";
15210
+ } | {
15211
+ amount: string;
15212
+ currency: string;
15213
+ maxFee: string | null;
15214
+ recipient: string;
15215
+ type: "CANTON_LIKE_TAP";
15216
+ };
15217
+ };
15218
+ id: string;
15219
+ legacyId: number;
15220
+ state: "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "EXECUTING" | "EXECUTED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK";
15221
+ reviewSteps: {
15222
+ stageName: string;
15223
+ quorum: number;
15224
+ }[];
15225
+ currentStepIndex: number;
15226
+ expiresAt: Date;
15227
+ targetId: string | null;
15228
+ note: {
15229
+ title: string;
15230
+ content: string;
15231
+ } | null;
15232
+ reviews: {
15233
+ stepIndex: number;
15234
+ userId: string;
15235
+ groupName: string | null;
15236
+ status: "PENDING" | "APPROVED" | "REJECTED" | "QUEUED" | "OBSOLETE";
15237
+ createdAt: Date;
15238
+ updatedAt: Date;
15239
+ }[];
15240
+ createdAt: Date;
15241
+ updatedAt: Date;
15242
+ createdById: string;
15243
+ expiredAt?: Date | undefined;
15244
+ inflight?: {
15245
+ lastError: string | null;
15246
+ numFailed: number;
15247
+ retryAfter: Date;
15248
+ } | undefined;
15249
+ };
15250
+ meta: {
15251
+ [x: string]: unknown;
15252
+ } & {
15253
+ openapi?: {
15254
+ enabled?: boolean;
15255
+ method: trpc_to_openapi.OpenApiMethod;
15256
+ path: `/${string}`;
15257
+ operationId?: string;
15258
+ summary?: string;
15259
+ description?: string;
15260
+ protect?: boolean;
15261
+ tags?: string[];
15262
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
15263
+ deprecated?: boolean;
15264
+ requestHeaders?: z.ZodObject;
15265
+ responseHeaders?: z.ZodObject;
15266
+ successDescription?: string;
15267
+ errorResponses?: number[] | Record<number, string>;
15268
+ };
15269
+ } & RateLimitMetricsMeta;
15270
+ }>;
15151
15271
  createAccount: _trpc_server.TRPCMutationProcedure<{
15152
15272
  input: {
15153
15273
  contractAddress: string | null;
@@ -28024,7 +28144,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
28024
28144
  input: {
28025
28145
  workspaceName: string;
28026
28146
  compartmentId: number;
28027
- hsmScriptsVersion: string;
28028
28147
  mode?: "GATE_COMPAT" | "STANDALONE" | undefined;
28029
28148
  };
28030
28149
  output: {
@@ -34485,7 +34604,6 @@ type WorkspaceRulesResponse = z__default.infer<typeof zWorkspaceRulesResponse>;
34485
34604
  declare const zOnboardingOpts: z$1.ZodObject<{
34486
34605
  workspaceName: z$1.ZodString;
34487
34606
  compartmentId: z$1.ZodNumber;
34488
- hsmScriptsVersion: z$1.ZodString;
34489
34607
  mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
34490
34608
  GATE_COMPAT: "GATE_COMPAT";
34491
34609
  STANDALONE: "STANDALONE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [