@ledgerhq/revault-api 1.69.0 → 1.70.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.
@@ -1,4 +1,4 @@
1
- import { Fn as zOidcConfig, Ni as ActivationStatus, Qi as RevaultMode, Vi as MaintenanceMode, cr as ActivityTracer, ea as UserDeviceType, lr as ExtendedPrismaClient, sr as RateLimitMetricsMeta, ta as UserRole, zi as GateUserType } from "../app-lib-Cg9iMEUe.mjs";
1
+ import { Bi as GateUserType, Fn as zOidcConfig, Hi as MaintenanceMode, Pi as ActivationStatus, cr as ActivityTracer, ea as RevaultMode, lr as ExtendedPrismaClient, na as UserDeviceType, ra as UserRole, sr as RateLimitMetricsMeta } from "../app-lib-C7JJqrRs.mjs";
2
2
  import z$1, { z } from "zod";
3
3
  //#region src/workspaces/schemas.d.ts
4
4
  declare const zWorkspaceName: z$1.ZodString;
@@ -362,6 +362,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
362
362
  };
363
363
  validatorPubKey: string;
364
364
  executionFee: string;
365
+ } | {
366
+ type: "GENERIC_TRANSACTION";
367
+ currency: string;
368
+ rawTx: string;
365
369
  } | {
366
370
  amount: string;
367
371
  currency: string;
@@ -626,10 +630,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
626
630
  feeStrategy: {
627
631
  type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
628
632
  };
629
- } | {
630
- type: "GENERIC_TRANSACTION";
631
- currency: string;
632
- rawTx: string;
633
633
  } | {
634
634
  amount: string;
635
635
  currency: string;
@@ -2848,6 +2848,47 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2848
2848
  };
2849
2849
  } & RateLimitMetricsMeta;
2850
2850
  }>;
2851
+ findById: import("@trpc/server").TRPCQueryProcedure<{
2852
+ input: {
2853
+ id: string;
2854
+ };
2855
+ output: {
2856
+ id: string;
2857
+ name: string;
2858
+ mode: "GATE_COMPAT" | "STANDALONE";
2859
+ pkiRootCaFetched: boolean;
2860
+ createdAt: Date;
2861
+ updatedAt: Date;
2862
+ } & {
2863
+ status: "ACTIVE" | "INACTIVE";
2864
+ maintenanceMode: "FULL" | "OFF";
2865
+ oidcConfig: {
2866
+ url: string;
2867
+ clientId: string;
2868
+ realm: string;
2869
+ } | null;
2870
+ };
2871
+ meta: {
2872
+ [x: string]: unknown;
2873
+ } & {
2874
+ openapi?: {
2875
+ enabled?: boolean;
2876
+ method: import("trpc-to-openapi").OpenApiMethod;
2877
+ path: `/${string}`;
2878
+ operationId?: string;
2879
+ summary?: string;
2880
+ description?: string;
2881
+ protect?: boolean;
2882
+ tags?: string[];
2883
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2884
+ deprecated?: boolean;
2885
+ requestHeaders?: import("zod").ZodObject;
2886
+ responseHeaders?: import("zod").ZodObject;
2887
+ successDescription?: string;
2888
+ errorResponses?: number[] | Record<number, string>;
2889
+ };
2890
+ } & RateLimitMetricsMeta;
2891
+ }>;
2851
2892
  edit: import("@trpc/server").TRPCMutationProcedure<{
2852
2893
  input: {
2853
2894
  name: string;
@@ -3179,6 +3220,217 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3179
3220
  };
3180
3221
  } & RateLimitMetricsMeta;
3181
3222
  }>;
3223
+ findById: import("@trpc/server").TRPCQueryProcedure<{
3224
+ input: {
3225
+ id: string;
3226
+ };
3227
+ output: {
3228
+ id: string;
3229
+ workspaceName: string;
3230
+ hsmHostingMode: "HOSTED" | "ON_PREM";
3231
+ step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
3232
+ claimedDevices: {
3233
+ pubKey: string;
3234
+ deviceUserId: string;
3235
+ deviceName: string;
3236
+ role: "MASTER_ADMIN" | "SHARED_OWNER" | "WRAPPING_KEY_OWNER";
3237
+ }[];
3238
+ wrappingKey: {
3239
+ ephemeralPubKey: string;
3240
+ ephemeralCertificate: {
3241
+ codeHash: string;
3242
+ attestationPub: string;
3243
+ certificate: string;
3244
+ signature: string;
3245
+ };
3246
+ fragments: {
3247
+ pubKey: string;
3248
+ ephemeralPubKey: string;
3249
+ ephemeralCertificate: {
3250
+ codeHash: string;
3251
+ attestationPub: string;
3252
+ certificate: string;
3253
+ signature: string;
3254
+ };
3255
+ blob: string;
3256
+ }[];
3257
+ } | null;
3258
+ masterAdmins: {
3259
+ name: string;
3260
+ psdModel: "STAX";
3261
+ pubKey: string;
3262
+ registrationChallenge: {
3263
+ challenge: string;
3264
+ ephemeralPublicKey: string;
3265
+ ephemeralPublicKeyAttestation: {
3266
+ codeHash: string;
3267
+ attestationPub: string;
3268
+ certificate: string;
3269
+ signature: string;
3270
+ };
3271
+ handshake: string;
3272
+ handshakeAttestation: {
3273
+ codeHash: string;
3274
+ attestationPub: string;
3275
+ certificate: string;
3276
+ signature: string;
3277
+ };
3278
+ u2fRegisterData: string;
3279
+ ciphertext: string;
3280
+ requestId: string;
3281
+ };
3282
+ registrationResponse: {
3283
+ certificate: {
3284
+ codeHash: string;
3285
+ attestationPub: string;
3286
+ certificate: string;
3287
+ signature: string;
3288
+ };
3289
+ u2fRegister: string;
3290
+ u2fKeyHandle: string;
3291
+ registerData: string;
3292
+ validationKey: string;
3293
+ pairingPayload: string;
3294
+ } | null;
3295
+ role: "MASTER_ADMIN";
3296
+ review: {
3297
+ challenge: {
3298
+ challengeType: "PSD";
3299
+ wActions: string[];
3300
+ handshake: string;
3301
+ handshakeAttestation: {
3302
+ codeHash: string;
3303
+ attestationPub: string;
3304
+ certificate: string;
3305
+ signature: string;
3306
+ };
3307
+ partitionId: string;
3308
+ };
3309
+ signature: string | null;
3310
+ } | null;
3311
+ reviewOfExternalSigners: {
3312
+ challenge: {
3313
+ challengeType: "PSD";
3314
+ wActions: string[];
3315
+ handshake: string;
3316
+ handshakeAttestation: {
3317
+ codeHash: string;
3318
+ attestationPub: string;
3319
+ certificate: string;
3320
+ signature: string;
3321
+ };
3322
+ partitionId: string;
3323
+ };
3324
+ signature: string | null;
3325
+ } | null;
3326
+ }[];
3327
+ sharedOwners: {
3328
+ name: string;
3329
+ psdModel: "STAX";
3330
+ pubKey: string;
3331
+ registrationChallenge: {
3332
+ challenge: string;
3333
+ ephemeralPublicKey: string;
3334
+ ephemeralPublicKeyAttestation: {
3335
+ codeHash: string;
3336
+ attestationPub: string;
3337
+ certificate: string;
3338
+ signature: string;
3339
+ };
3340
+ handshake: string;
3341
+ handshakeAttestation: {
3342
+ codeHash: string;
3343
+ attestationPub: string;
3344
+ certificate: string;
3345
+ signature: string;
3346
+ };
3347
+ u2fRegisterData: string;
3348
+ ciphertext: string;
3349
+ requestId: string;
3350
+ };
3351
+ registrationResponse: {
3352
+ certificate: {
3353
+ codeHash: string;
3354
+ attestationPub: string;
3355
+ certificate: string;
3356
+ signature: string;
3357
+ };
3358
+ u2fRegister: string;
3359
+ u2fKeyHandle: string;
3360
+ registerData: string;
3361
+ validationKey: string;
3362
+ pairingPayload: string;
3363
+ } | null;
3364
+ role: "SHARED_OWNER";
3365
+ review: {
3366
+ seedChallenge: {
3367
+ challengeType: "PSD";
3368
+ wActions: string[];
3369
+ handshake: string;
3370
+ handshakeAttestation: {
3371
+ codeHash: string;
3372
+ attestationPub: string;
3373
+ certificate: string;
3374
+ signature: string;
3375
+ };
3376
+ partitionId: string;
3377
+ kkHandshake: string;
3378
+ kkHandshakeAttestation: {
3379
+ codeHash: string;
3380
+ attestationPub: string;
3381
+ certificate: string;
3382
+ signature: string;
3383
+ };
3384
+ ephemeralPublicKey: string;
3385
+ certificate: {
3386
+ codeHash: string;
3387
+ attestationPub: string;
3388
+ certificate: string;
3389
+ signature: string;
3390
+ };
3391
+ blob: string;
3392
+ };
3393
+ seedFragment: {
3394
+ approverBlob: string;
3395
+ challengeResponse: string;
3396
+ handshake: string;
3397
+ handshakeAttestation: {
3398
+ codeHash: string;
3399
+ attestationPub: string;
3400
+ certificate: string;
3401
+ signature: string;
3402
+ };
3403
+ } | null;
3404
+ } | null;
3405
+ }[];
3406
+ createdAt: Date;
3407
+ completedAt: Date | null;
3408
+ } & {
3409
+ mode: "GATE_COMPAT" | "STANDALONE";
3410
+ compartmentId: number;
3411
+ targetHsmName: string | null;
3412
+ };
3413
+ meta: {
3414
+ [x: string]: unknown;
3415
+ } & {
3416
+ openapi?: {
3417
+ enabled?: boolean;
3418
+ method: import("trpc-to-openapi").OpenApiMethod;
3419
+ path: `/${string}`;
3420
+ operationId?: string;
3421
+ summary?: string;
3422
+ description?: string;
3423
+ protect?: boolean;
3424
+ tags?: string[];
3425
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3426
+ deprecated?: boolean;
3427
+ requestHeaders?: import("zod").ZodObject;
3428
+ responseHeaders?: import("zod").ZodObject;
3429
+ successDescription?: string;
3430
+ errorResponses?: number[] | Record<number, string>;
3431
+ };
3432
+ } & RateLimitMetricsMeta;
3433
+ }>;
3182
3434
  create: import("@trpc/server").TRPCMutationProcedure<{
3183
3435
  input: {
3184
3436
  workspaceName: string;
@@ -3652,6 +3904,46 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3652
3904
  };
3653
3905
  } & RateLimitMetricsMeta;
3654
3906
  }>;
3907
+ findById: import("@trpc/server").TRPCQueryProcedure<{
3908
+ input: {
3909
+ id: string;
3910
+ };
3911
+ output: {
3912
+ id: string;
3913
+ legacyId: number;
3914
+ legacyViewAll: boolean;
3915
+ workspaceName: string;
3916
+ name: string;
3917
+ deviceUserId: string | null;
3918
+ deviceType: "API" | "PSD" | "SOFT_PSD";
3919
+ role: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY";
3920
+ pubKey: string;
3921
+ status: "ACTIVE" | "INACTIVE";
3922
+ isSuspended: boolean;
3923
+ createdAt: Date;
3924
+ updatedAt: Date;
3925
+ };
3926
+ meta: {
3927
+ [x: string]: unknown;
3928
+ } & {
3929
+ openapi?: {
3930
+ enabled?: boolean;
3931
+ method: import("trpc-to-openapi").OpenApiMethod;
3932
+ path: `/${string}`;
3933
+ operationId?: string;
3934
+ summary?: string;
3935
+ description?: string;
3936
+ protect?: boolean;
3937
+ tags?: string[];
3938
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3939
+ deprecated?: boolean;
3940
+ requestHeaders?: import("zod").ZodObject;
3941
+ responseHeaders?: import("zod").ZodObject;
3942
+ successDescription?: string;
3943
+ errorResponses?: number[] | Record<number, string>;
3944
+ };
3945
+ } & RateLimitMetricsMeta;
3946
+ }>;
3655
3947
  }>>;
3656
3948
  userRegistrations: import("@trpc/server").TRPCBuiltRouter<{
3657
3949
  ctx: {
@@ -3757,6 +4049,40 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3757
4049
  };
3758
4050
  } & RateLimitMetricsMeta;
3759
4051
  }>;
4052
+ findById: import("@trpc/server").TRPCQueryProcedure<{
4053
+ input: {
4054
+ id: string;
4055
+ };
4056
+ output: {
4057
+ name: string;
4058
+ role: "ADMIN" | "OPERATOR";
4059
+ psdModel: "STAX";
4060
+ deviceUserId: string;
4061
+ id: string;
4062
+ workspaceName: string;
4063
+ state: "COMPLETED" | "CONSUMED" | "INITIAL" | "PENDING";
4064
+ };
4065
+ meta: {
4066
+ [x: string]: unknown;
4067
+ } & {
4068
+ openapi?: {
4069
+ enabled?: boolean;
4070
+ method: import("trpc-to-openapi").OpenApiMethod;
4071
+ path: `/${string}`;
4072
+ operationId?: string;
4073
+ summary?: string;
4074
+ description?: string;
4075
+ protect?: boolean;
4076
+ tags?: string[];
4077
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4078
+ deprecated?: boolean;
4079
+ requestHeaders?: import("zod").ZodObject;
4080
+ responseHeaders?: import("zod").ZodObject;
4081
+ successDescription?: string;
4082
+ errorResponses?: number[] | Record<number, string>;
4083
+ };
4084
+ } & RateLimitMetricsMeta;
4085
+ }>;
3760
4086
  }>>;
3761
4087
  accounts: import("@trpc/server").TRPCBuiltRouter<{
3762
4088
  ctx: {
@@ -3915,6 +4241,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3915
4241
  };
3916
4242
  } & {
3917
4243
  workspaceName: import("zod").output<typeof zWorkspaceName>;
4244
+ lesWalletId: string | null;
3918
4245
  })[];
3919
4246
  };
3920
4247
  meta: {
@@ -3938,6 +4265,106 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3938
4265
  };
3939
4266
  } & RateLimitMetricsMeta;
3940
4267
  }>;
4268
+ findById: import("@trpc/server").TRPCQueryProcedure<{
4269
+ input: {
4270
+ id: string;
4271
+ };
4272
+ output: {
4273
+ id: string;
4274
+ legacyId: number;
4275
+ name: string;
4276
+ currency: string;
4277
+ network: string;
4278
+ contractAddress: string | null;
4279
+ tokenIdentifier: string | null;
4280
+ index: number;
4281
+ derivationPath: string;
4282
+ status: "ACTIVE" | "INACTIVE";
4283
+ createdAt: Date;
4284
+ updatedAt: Date;
4285
+ asset: {
4286
+ type: "BITCOIN_LIKE";
4287
+ xpub: string;
4288
+ addressDerivationMode: "NEW" | "STATIC";
4289
+ } | {
4290
+ type: "CANTON_LIKE";
4291
+ address: string | null;
4292
+ } | {
4293
+ type: "CARDANO_LIKE";
4294
+ address: string | null;
4295
+ } | {
4296
+ type: "ETHEREUM_LIKE";
4297
+ address: string | null;
4298
+ } | {
4299
+ type: "GENERIC_LIKE";
4300
+ } | {
4301
+ type: "HEDERA_LIKE";
4302
+ address: string | null;
4303
+ isActivated: boolean;
4304
+ } | {
4305
+ type: "POLKADOT_LIKE";
4306
+ address: string | null;
4307
+ } | {
4308
+ type: "RIPPLE_LIKE";
4309
+ address: string | null;
4310
+ } | {
4311
+ type: "SOLANA_LIKE";
4312
+ address: string | null;
4313
+ } | {
4314
+ type: "STELLAR_LIKE";
4315
+ address: string | null;
4316
+ } | {
4317
+ type: "SUI_LIKE";
4318
+ address: string | null;
4319
+ } | {
4320
+ type: "TEZOS_LIKE";
4321
+ address: string | null;
4322
+ } | {
4323
+ type: "TRON_LIKE";
4324
+ address: string | null;
4325
+ } | {
4326
+ type: "RAW_SIGNING";
4327
+ };
4328
+ governance: {
4329
+ type: "CLASSIC";
4330
+ policyId: string;
4331
+ } | {
4332
+ type: "RAW_SIGNING";
4333
+ policyId: string;
4334
+ } | {
4335
+ type: "TRADELINK";
4336
+ assetManagerId: string;
4337
+ exchangeConfigs: {
4338
+ exchangeId: string;
4339
+ repledgeAuthorized: boolean;
4340
+ needsAssetManagerApprovalForSettlements: boolean;
4341
+ }[];
4342
+ };
4343
+ } & {
4344
+ workspaceName: string;
4345
+ lesWalletId: string | null;
4346
+ };
4347
+ meta: {
4348
+ [x: string]: unknown;
4349
+ } & {
4350
+ openapi?: {
4351
+ enabled?: boolean;
4352
+ method: import("trpc-to-openapi").OpenApiMethod;
4353
+ path: `/${string}`;
4354
+ operationId?: string;
4355
+ summary?: string;
4356
+ description?: string;
4357
+ protect?: boolean;
4358
+ tags?: string[];
4359
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4360
+ deprecated?: boolean;
4361
+ requestHeaders?: import("zod").ZodObject;
4362
+ responseHeaders?: import("zod").ZodObject;
4363
+ successDescription?: string;
4364
+ errorResponses?: number[] | Record<number, string>;
4365
+ };
4366
+ } & RateLimitMetricsMeta;
4367
+ }>;
3941
4368
  }>>;
3942
4369
  groups: import("@trpc/server").TRPCBuiltRouter<{
3943
4370
  ctx: {
@@ -4059,6 +4486,57 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4059
4486
  };
4060
4487
  } & RateLimitMetricsMeta;
4061
4488
  }>;
4489
+ findById: import("@trpc/server").TRPCQueryProcedure<{
4490
+ input: {
4491
+ id: string;
4492
+ };
4493
+ output: {
4494
+ id: string;
4495
+ legacyId: number;
4496
+ name: string;
4497
+ description: string | null;
4498
+ status: "ACTIVE" | "INACTIVE";
4499
+ members: {
4500
+ id: string;
4501
+ legacyId: number;
4502
+ legacyViewAll: boolean;
4503
+ workspaceName: string;
4504
+ name: string;
4505
+ deviceUserId: string | null;
4506
+ deviceType: "API" | "PSD" | "SOFT_PSD";
4507
+ role: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY";
4508
+ pubKey: string;
4509
+ status: "ACTIVE" | "INACTIVE";
4510
+ isSuspended: boolean;
4511
+ createdAt: Date;
4512
+ updatedAt: Date;
4513
+ }[];
4514
+ createdAt: Date;
4515
+ updatedAt: Date;
4516
+ } & {
4517
+ workspaceName: string;
4518
+ };
4519
+ meta: {
4520
+ [x: string]: unknown;
4521
+ } & {
4522
+ openapi?: {
4523
+ enabled?: boolean;
4524
+ method: import("trpc-to-openapi").OpenApiMethod;
4525
+ path: `/${string}`;
4526
+ operationId?: string;
4527
+ summary?: string;
4528
+ description?: string;
4529
+ protect?: boolean;
4530
+ tags?: string[];
4531
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4532
+ deprecated?: boolean;
4533
+ requestHeaders?: import("zod").ZodObject;
4534
+ responseHeaders?: import("zod").ZodObject;
4535
+ successDescription?: string;
4536
+ errorResponses?: number[] | Record<number, string>;
4537
+ };
4538
+ } & RateLimitMetricsMeta;
4539
+ }>;
4062
4540
  }>>;
4063
4541
  whitelists: import("@trpc/server").TRPCBuiltRouter<{
4064
4542
  ctx: {
@@ -4123,6 +4601,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4123
4601
  pageSize?: number | undefined;
4124
4602
  workspaceName?: string | string[] | undefined;
4125
4603
  status?: "ACTIVE" | "INACTIVE" | undefined;
4604
+ address?: string | undefined;
4126
4605
  sortBy?: "createdAt" | "name" | "status" | "updatedAt" | undefined;
4127
4606
  sortOrder?: "asc" | "desc" | undefined;
4128
4607
  };
@@ -4172,6 +4651,49 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4172
4651
  };
4173
4652
  } & RateLimitMetricsMeta;
4174
4653
  }>;
4654
+ findById: import("@trpc/server").TRPCQueryProcedure<{
4655
+ input: {
4656
+ id: string;
4657
+ };
4658
+ output: {
4659
+ id: string;
4660
+ legacyId: number;
4661
+ name: string;
4662
+ type: "SMART_CONTRACT" | "TRANSACTION";
4663
+ status: "ACTIVE" | "INACTIVE";
4664
+ addresses: {
4665
+ name: string;
4666
+ currency: string;
4667
+ address: string;
4668
+ destinationTag?: string | undefined;
4669
+ }[];
4670
+ createdAt: Date;
4671
+ updatedAt: Date;
4672
+ description: string | null;
4673
+ } & {
4674
+ workspaceName: string;
4675
+ };
4676
+ meta: {
4677
+ [x: string]: unknown;
4678
+ } & {
4679
+ openapi?: {
4680
+ enabled?: boolean;
4681
+ method: import("trpc-to-openapi").OpenApiMethod;
4682
+ path: `/${string}`;
4683
+ operationId?: string;
4684
+ summary?: string;
4685
+ description?: string;
4686
+ protect?: boolean;
4687
+ tags?: string[];
4688
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4689
+ deprecated?: boolean;
4690
+ requestHeaders?: import("zod").ZodObject;
4691
+ responseHeaders?: import("zod").ZodObject;
4692
+ successDescription?: string;
4693
+ errorResponses?: number[] | Record<number, string>;
4694
+ };
4695
+ } & RateLimitMetricsMeta;
4696
+ }>;
4175
4697
  }>>;
4176
4698
  policies: import("@trpc/server").TRPCBuiltRouter<{
4177
4699
  ctx: {
@@ -4230,39 +4752,136 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4230
4752
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4231
4753
  transformer: true;
4232
4754
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4233
- list: import("@trpc/server").TRPCQueryProcedure<{
4755
+ get: import("@trpc/server").TRPCQueryProcedure<{
4234
4756
  input: {
4235
- page?: number | undefined;
4236
- pageSize?: number | undefined;
4237
- workspaceName?: string | string[] | undefined;
4238
- name?: string | undefined;
4239
- isPrivate?: boolean | undefined;
4240
- currency?: string | undefined;
4241
- currencyLess?: boolean | undefined;
4242
- sortBy?: "createdAt" | "name" | "updatedAt" | undefined;
4243
- sortOrder?: "asc" | "desc" | undefined;
4757
+ id: string;
4244
4758
  };
4245
- output: {
4246
- page: number;
4247
- next: number | null;
4248
- prev: number | null;
4249
- pageSize: number;
4250
- total: number;
4251
- results: ({
4759
+ output: ({
4760
+ id: string;
4761
+ legacyId: number;
4762
+ name: string;
4763
+ description: string | null;
4764
+ asset: {
4765
+ network: string;
4766
+ contractAddress: string | null;
4767
+ tokenIdentifier: string | null;
4768
+ } | null;
4769
+ isPrivate: boolean;
4770
+ rules: {
4771
+ reviewSteps: ({
4772
+ quorum: number;
4773
+ userIds: string[];
4774
+ } | {
4775
+ quorum: number;
4776
+ groupId: string;
4777
+ })[];
4778
+ threshold?: {
4779
+ min: string | null;
4780
+ max: string | null;
4781
+ } | undefined;
4782
+ whitelistIds?: string[] | undefined;
4783
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_DIGESTS" | "SIGN_MESSAGE" | "STAKE";
4784
+ }[];
4785
+ whitelists: {
4252
4786
  id: string;
4253
4787
  legacyId: number;
4254
4788
  name: string;
4789
+ type: "SMART_CONTRACT" | "TRANSACTION";
4790
+ status: "ACTIVE" | "INACTIVE";
4791
+ addresses: {
4792
+ name: string;
4793
+ currency: string;
4794
+ address: string;
4795
+ destinationTag?: string | undefined;
4796
+ }[];
4797
+ createdAt: Date;
4798
+ updatedAt: Date;
4255
4799
  description: string | null;
4256
- asset: {
4257
- network: string;
4258
- contractAddress: string | null;
4259
- tokenIdentifier: string | null;
4260
- } | null;
4261
- isPrivate: boolean;
4262
- rules: {
4263
- reviewSteps: ({
4264
- quorum: number;
4265
- userIds: string[];
4800
+ }[];
4801
+ users: {
4802
+ id: string;
4803
+ legacyId: number;
4804
+ legacyViewAll: boolean;
4805
+ workspaceName: string;
4806
+ name: string;
4807
+ deviceUserId: string | null;
4808
+ deviceType: "API" | "PSD" | "SOFT_PSD";
4809
+ role: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY";
4810
+ pubKey: string;
4811
+ status: "ACTIVE" | "INACTIVE";
4812
+ isSuspended: boolean;
4813
+ createdAt: Date;
4814
+ updatedAt: Date;
4815
+ }[];
4816
+ groups: {
4817
+ id: string;
4818
+ legacyId: number;
4819
+ name: string;
4820
+ description: string | null;
4821
+ status: "ACTIVE" | "INACTIVE";
4822
+ createdAt: Date;
4823
+ updatedAt: Date;
4824
+ memberIds: string[];
4825
+ }[];
4826
+ createdAt: Date;
4827
+ updatedAt: Date;
4828
+ } & {
4829
+ workspaceName: string;
4830
+ }) | null;
4831
+ meta: {
4832
+ [x: string]: unknown;
4833
+ } & {
4834
+ openapi?: {
4835
+ enabled?: boolean;
4836
+ method: import("trpc-to-openapi").OpenApiMethod;
4837
+ path: `/${string}`;
4838
+ operationId?: string;
4839
+ summary?: string;
4840
+ description?: string;
4841
+ protect?: boolean;
4842
+ tags?: string[];
4843
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4844
+ deprecated?: boolean;
4845
+ requestHeaders?: import("zod").ZodObject;
4846
+ responseHeaders?: import("zod").ZodObject;
4847
+ successDescription?: string;
4848
+ errorResponses?: number[] | Record<number, string>;
4849
+ };
4850
+ } & RateLimitMetricsMeta;
4851
+ }>;
4852
+ list: import("@trpc/server").TRPCQueryProcedure<{
4853
+ input: {
4854
+ page?: number | undefined;
4855
+ pageSize?: number | undefined;
4856
+ workspaceName?: string | string[] | undefined;
4857
+ name?: string | undefined;
4858
+ isPrivate?: boolean | undefined;
4859
+ currency?: string | undefined;
4860
+ currencyLess?: boolean | undefined;
4861
+ sortBy?: "createdAt" | "name" | "updatedAt" | undefined;
4862
+ sortOrder?: "asc" | "desc" | undefined;
4863
+ };
4864
+ output: {
4865
+ page: number;
4866
+ next: number | null;
4867
+ prev: number | null;
4868
+ pageSize: number;
4869
+ total: number;
4870
+ results: ({
4871
+ id: string;
4872
+ legacyId: number;
4873
+ name: string;
4874
+ description: string | null;
4875
+ asset: {
4876
+ network: string;
4877
+ contractAddress: string | null;
4878
+ tokenIdentifier: string | null;
4879
+ } | null;
4880
+ isPrivate: boolean;
4881
+ rules: {
4882
+ reviewSteps: ({
4883
+ quorum: number;
4884
+ userIds: string[];
4266
4885
  } | {
4267
4886
  quorum: number;
4268
4887
  groupId: string;
@@ -4342,6 +4961,103 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4342
4961
  };
4343
4962
  } & RateLimitMetricsMeta;
4344
4963
  }>;
4964
+ findById: import("@trpc/server").TRPCQueryProcedure<{
4965
+ input: {
4966
+ id: string;
4967
+ };
4968
+ output: {
4969
+ id: string;
4970
+ legacyId: number;
4971
+ name: string;
4972
+ description: string | null;
4973
+ asset: {
4974
+ network: string;
4975
+ contractAddress: string | null;
4976
+ tokenIdentifier: string | null;
4977
+ } | null;
4978
+ isPrivate: boolean;
4979
+ rules: {
4980
+ reviewSteps: ({
4981
+ quorum: number;
4982
+ userIds: string[];
4983
+ } | {
4984
+ quorum: number;
4985
+ groupId: string;
4986
+ })[];
4987
+ threshold?: {
4988
+ min: string | null;
4989
+ max: string | null;
4990
+ } | undefined;
4991
+ whitelistIds?: string[] | undefined;
4992
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_DIGESTS" | "SIGN_MESSAGE" | "STAKE";
4993
+ }[];
4994
+ whitelists: {
4995
+ id: string;
4996
+ legacyId: number;
4997
+ name: string;
4998
+ type: "SMART_CONTRACT" | "TRANSACTION";
4999
+ status: "ACTIVE" | "INACTIVE";
5000
+ addresses: {
5001
+ name: string;
5002
+ currency: string;
5003
+ address: string;
5004
+ destinationTag?: string | undefined;
5005
+ }[];
5006
+ createdAt: Date;
5007
+ updatedAt: Date;
5008
+ description: string | null;
5009
+ }[];
5010
+ users: {
5011
+ id: string;
5012
+ legacyId: number;
5013
+ legacyViewAll: boolean;
5014
+ workspaceName: string;
5015
+ name: string;
5016
+ deviceUserId: string | null;
5017
+ deviceType: "API" | "PSD" | "SOFT_PSD";
5018
+ role: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY";
5019
+ pubKey: string;
5020
+ status: "ACTIVE" | "INACTIVE";
5021
+ isSuspended: boolean;
5022
+ createdAt: Date;
5023
+ updatedAt: Date;
5024
+ }[];
5025
+ groups: {
5026
+ id: string;
5027
+ legacyId: number;
5028
+ name: string;
5029
+ description: string | null;
5030
+ status: "ACTIVE" | "INACTIVE";
5031
+ createdAt: Date;
5032
+ updatedAt: Date;
5033
+ memberIds: string[];
5034
+ }[];
5035
+ createdAt: Date;
5036
+ updatedAt: Date;
5037
+ } & {
5038
+ workspaceName: string;
5039
+ };
5040
+ meta: {
5041
+ [x: string]: unknown;
5042
+ } & {
5043
+ openapi?: {
5044
+ enabled?: boolean;
5045
+ method: import("trpc-to-openapi").OpenApiMethod;
5046
+ path: `/${string}`;
5047
+ operationId?: string;
5048
+ summary?: string;
5049
+ description?: string;
5050
+ protect?: boolean;
5051
+ tags?: string[];
5052
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5053
+ deprecated?: boolean;
5054
+ requestHeaders?: import("zod").ZodObject;
5055
+ responseHeaders?: import("zod").ZodObject;
5056
+ successDescription?: string;
5057
+ errorResponses?: number[] | Record<number, string>;
5058
+ };
5059
+ } & RateLimitMetricsMeta;
5060
+ }>;
4345
5061
  }>>;
4346
5062
  workspaceRules: import("@trpc/server").TRPCBuiltRouter<{
4347
5063
  ctx: {
@@ -4553,7 +5269,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4553
5269
  endDate: Date;
4554
5270
  accountIds?: string[] | undefined;
4555
5271
  transactionTypes?: ("BITCOIN_LIKE_RECEIVE" | "BITCOIN_LIKE_SEND" | "CANTON_LIKE_PRE_APPROVAL" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_SEND" | "CANTON_LIKE_SEND_TOKEN" | "CANTON_LIKE_WITHDRAW" | "CARDANO_LIKE_RECEIVE" | "CARDANO_LIKE_SEND" | "CARDANO_LIKE_STAKING_DELEGATE" | "CARDANO_LIKE_STAKING_DEREGISTER" | "CARDANO_LIKE_STAKING_REGISTER" | "CARDANO_LIKE_STAKING_WITHDRAW" | "ETHEREUM_LIKE_DEPLOY_CONTRACT" | "ETHEREUM_LIKE_EXECUTE_CONTRACT" | "ETHEREUM_LIKE_RECEIVE" | "ETHEREUM_LIKE_SEND" | "ETHEREUM_LIKE_STAKE_CONSOLIDATE" | "ETHEREUM_LIKE_STAKE_DEPOSIT" | "ETHEREUM_LIKE_STAKE_UPGRADE" | "ETHEREUM_LIKE_STAKE_WITHDRAW" | "GENERIC_TRANSACTION" | "HEDERA_LIKE_RECEIVE" | "HEDERA_LIKE_RECEIVE_TOKEN" | "HEDERA_LIKE_SEND" | "HEDERA_LIKE_SEND_TOKEN" | "HEDERA_LIKE_STAKE" | "HEDERA_LIKE_UNSTAKE" | "POLKADOT_LIKE_ADDPROXY" | "POLKADOT_LIKE_ANONYMOUSPROXY" | "POLKADOT_LIKE_BOND" | "POLKADOT_LIKE_BONDEXTRA" | "POLKADOT_LIKE_CHILL" | "POLKADOT_LIKE_KILLANONYMOUS" | "POLKADOT_LIKE_KILLPURE" | "POLKADOT_LIKE_NOMINATE" | "POLKADOT_LIKE_PROXY" | "POLKADOT_LIKE_PUREPROXY" | "POLKADOT_LIKE_REBOND" | "POLKADOT_LIKE_RECEIVE" | "POLKADOT_LIKE_REMOVEPROXY" | "POLKADOT_LIKE_REWARD" | "POLKADOT_LIKE_SEND" | "POLKADOT_LIKE_SETCONTROLLER" | "POLKADOT_LIKE_SETPAYEE" | "POLKADOT_LIKE_TRANSFERALL" | "POLKADOT_LIKE_UNBOND" | "POLKADOT_LIKE_WITHDRAWUNBONDED" | "RIPPLE_LIKE_RECEIVE" | "RIPPLE_LIKE_SEND" | "SOLANA_LIKE_CREATE_DELEGATE_STAKE" | "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT" | "SOLANA_LIKE_DEACTIVATE_STAKE" | "SOLANA_LIKE_DELEGATE_STAKE" | "SOLANA_LIKE_FUND_AND_SEND_TOKEN" | "SOLANA_LIKE_MERGE_STAKE" | "SOLANA_LIKE_RECEIVE" | "SOLANA_LIKE_SEND" | "SOLANA_LIKE_SEND_TOKEN" | "SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE" | "SOLANA_LIKE_SPLIT_STAKE" | "SOLANA_LIKE_WITHDRAW_STAKE" | "STELLAR_LIKE_RECEIVE" | "STELLAR_LIKE_SEND" | "SUI_LIKE_RECEIVE" | "SUI_LIKE_RECEIVE_TOKEN" | "SUI_LIKE_SEND" | "SUI_LIKE_SEND_TOKEN" | "SUI_LIKE_STAKE" | "SUI_LIKE_UNSTAKE" | "TEZOS_LIKE_DELEGATE" | "TEZOS_LIKE_RECEIVE" | "TEZOS_LIKE_REVEAL" | "TEZOS_LIKE_SEND" | "TEZOS_LIKE_UNDELEGATE" | "TRON_LIKE_RECEIVE" | "TRON_LIKE_RECEIVE_TOKEN" | "TRON_LIKE_SEND" | "TRON_LIKE_SEND_TOKEN")[] | undefined;
4556
- transactionStatuses?: ("FAILED" | "SUCCESSFUL")[] | undefined;
5272
+ transactionStatuses?: ("FAILED" | "PENDING" | "SUCCESSFUL" | "UNKNOWN")[] | undefined;
4557
5273
  };
4558
5274
  })) & {
4559
5275
  workspaceName: import("zod").output<typeof zWorkspaceName>;
@@ -4580,6 +5296,68 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4580
5296
  };
4581
5297
  } & RateLimitMetricsMeta;
4582
5298
  }>;
5299
+ findById: import("@trpc/server").TRPCQueryProcedure<{
5300
+ input: {
5301
+ id: string;
5302
+ };
5303
+ output: ({
5304
+ id: string;
5305
+ status: "COMPLETED" | "FAILED" | "INITIAL" | "PURGED" | "SCHEDULED";
5306
+ expiresAt: Date;
5307
+ createdById: string;
5308
+ createdAt: Date;
5309
+ updatedAt: Date;
5310
+ } & ({
5311
+ type: "REQUESTS";
5312
+ params: {
5313
+ startDate: Date;
5314
+ endDate: Date;
5315
+ requestTypes?: ("CREATE_ACCOUNT" | "CREATE_API_KEY" | "CREATE_API_USER" | "CREATE_API_USER_ACCESS" | "CREATE_ENTITY" | "CREATE_GROUP" | "CREATE_POLICY" | "CREATE_PSD_USER" | "CREATE_SCICONFIG" | "CREATE_TRANSACTION" | "CREATE_WHITELIST" | "EDIT_ACCOUNT" | "EDIT_API_KEY" | "EDIT_ENTITY" | "EDIT_GROUP" | "EDIT_POLICY" | "EDIT_SCICONFIG" | "EDIT_TOKEN_RULE" | "EDIT_WHITELIST" | "EDIT_WORKSPACE_RULE" | "REVOKE_API_KEY" | "REVOKE_ENTITY" | "REVOKE_GROUP" | "REVOKE_USER" | "SIGN_DIGESTS" | "SIGN_MESSAGE" | "TRADELINK_ACTIVATE_ACCOUNT" | "TRADELINK_ADJUST_PLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_CREATE_ASSET_MANAGER" | "TRADELINK_CREATE_CUSTODIAN" | "TRADELINK_CREATE_EXCHANGE" | "TRADELINK_CREATE_SETTLEMENT" | "TRADELINK_EDIT_ASSET_MANAGER" | "TRADELINK_EDIT_CUSTODIAN" | "TRADELINK_EDIT_EXCHANGE" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_REPLEDGE" | "TRADELINK_WITHDRAW" | "UPDATE_QUORUM")[] | undefined;
5316
+ };
5317
+ } | {
5318
+ type: "BALANCES";
5319
+ params: {
5320
+ startDate: Date;
5321
+ endDate: Date;
5322
+ assets: {
5323
+ network: string;
5324
+ contractAddress: string | null;
5325
+ tokenIdentifier: string | null;
5326
+ }[];
5327
+ };
5328
+ } | {
5329
+ type: "TRANSACTIONS";
5330
+ params: {
5331
+ startDate: Date;
5332
+ endDate: Date;
5333
+ accountIds?: string[] | undefined;
5334
+ transactionTypes?: ("BITCOIN_LIKE_RECEIVE" | "BITCOIN_LIKE_SEND" | "CANTON_LIKE_PRE_APPROVAL" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_SEND" | "CANTON_LIKE_SEND_TOKEN" | "CANTON_LIKE_WITHDRAW" | "CARDANO_LIKE_RECEIVE" | "CARDANO_LIKE_SEND" | "CARDANO_LIKE_STAKING_DELEGATE" | "CARDANO_LIKE_STAKING_DEREGISTER" | "CARDANO_LIKE_STAKING_REGISTER" | "CARDANO_LIKE_STAKING_WITHDRAW" | "ETHEREUM_LIKE_DEPLOY_CONTRACT" | "ETHEREUM_LIKE_EXECUTE_CONTRACT" | "ETHEREUM_LIKE_RECEIVE" | "ETHEREUM_LIKE_SEND" | "ETHEREUM_LIKE_STAKE_CONSOLIDATE" | "ETHEREUM_LIKE_STAKE_DEPOSIT" | "ETHEREUM_LIKE_STAKE_UPGRADE" | "ETHEREUM_LIKE_STAKE_WITHDRAW" | "GENERIC_TRANSACTION" | "HEDERA_LIKE_RECEIVE" | "HEDERA_LIKE_RECEIVE_TOKEN" | "HEDERA_LIKE_SEND" | "HEDERA_LIKE_SEND_TOKEN" | "HEDERA_LIKE_STAKE" | "HEDERA_LIKE_UNSTAKE" | "POLKADOT_LIKE_ADDPROXY" | "POLKADOT_LIKE_ANONYMOUSPROXY" | "POLKADOT_LIKE_BOND" | "POLKADOT_LIKE_BONDEXTRA" | "POLKADOT_LIKE_CHILL" | "POLKADOT_LIKE_KILLANONYMOUS" | "POLKADOT_LIKE_KILLPURE" | "POLKADOT_LIKE_NOMINATE" | "POLKADOT_LIKE_PROXY" | "POLKADOT_LIKE_PUREPROXY" | "POLKADOT_LIKE_REBOND" | "POLKADOT_LIKE_RECEIVE" | "POLKADOT_LIKE_REMOVEPROXY" | "POLKADOT_LIKE_REWARD" | "POLKADOT_LIKE_SEND" | "POLKADOT_LIKE_SETCONTROLLER" | "POLKADOT_LIKE_SETPAYEE" | "POLKADOT_LIKE_TRANSFERALL" | "POLKADOT_LIKE_UNBOND" | "POLKADOT_LIKE_WITHDRAWUNBONDED" | "RIPPLE_LIKE_RECEIVE" | "RIPPLE_LIKE_SEND" | "SOLANA_LIKE_CREATE_DELEGATE_STAKE" | "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT" | "SOLANA_LIKE_DEACTIVATE_STAKE" | "SOLANA_LIKE_DELEGATE_STAKE" | "SOLANA_LIKE_FUND_AND_SEND_TOKEN" | "SOLANA_LIKE_MERGE_STAKE" | "SOLANA_LIKE_RECEIVE" | "SOLANA_LIKE_SEND" | "SOLANA_LIKE_SEND_TOKEN" | "SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE" | "SOLANA_LIKE_SPLIT_STAKE" | "SOLANA_LIKE_WITHDRAW_STAKE" | "STELLAR_LIKE_RECEIVE" | "STELLAR_LIKE_SEND" | "SUI_LIKE_RECEIVE" | "SUI_LIKE_RECEIVE_TOKEN" | "SUI_LIKE_SEND" | "SUI_LIKE_SEND_TOKEN" | "SUI_LIKE_STAKE" | "SUI_LIKE_UNSTAKE" | "TEZOS_LIKE_DELEGATE" | "TEZOS_LIKE_RECEIVE" | "TEZOS_LIKE_REVEAL" | "TEZOS_LIKE_SEND" | "TEZOS_LIKE_UNDELEGATE" | "TRON_LIKE_RECEIVE" | "TRON_LIKE_RECEIVE_TOKEN" | "TRON_LIKE_SEND" | "TRON_LIKE_SEND_TOKEN")[] | undefined;
5335
+ transactionStatuses?: ("FAILED" | "PENDING" | "SUCCESSFUL" | "UNKNOWN")[] | undefined;
5336
+ };
5337
+ })) & {
5338
+ workspaceName: string;
5339
+ };
5340
+ meta: {
5341
+ [x: string]: unknown;
5342
+ } & {
5343
+ openapi?: {
5344
+ enabled?: boolean;
5345
+ method: import("trpc-to-openapi").OpenApiMethod;
5346
+ path: `/${string}`;
5347
+ operationId?: string;
5348
+ summary?: string;
5349
+ description?: string;
5350
+ protect?: boolean;
5351
+ tags?: string[];
5352
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5353
+ deprecated?: boolean;
5354
+ requestHeaders?: import("zod").ZodObject;
5355
+ responseHeaders?: import("zod").ZodObject;
5356
+ successDescription?: string;
5357
+ errorResponses?: number[] | Record<number, string>;
5358
+ };
5359
+ } & RateLimitMetricsMeta;
5360
+ }>;
4583
5361
  }>>;
4584
5362
  requests: import("@trpc/server").TRPCBuiltRouter<{
4585
5363
  ctx: {
@@ -4890,6 +5668,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4890
5668
  };
4891
5669
  validatorPubKey: string;
4892
5670
  executionFee: string;
5671
+ } | {
5672
+ type: "GENERIC_TRANSACTION";
5673
+ currency: string;
5674
+ rawTx: string;
4893
5675
  } | {
4894
5676
  amount: string;
4895
5677
  currency: string;
@@ -5154,10 +5936,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5154
5936
  feeStrategy: {
5155
5937
  type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
5156
5938
  };
5157
- } | {
5158
- type: "GENERIC_TRANSACTION";
5159
- currency: string;
5160
- rawTx: string;
5161
5939
  } | {
5162
5940
  amount: string;
5163
5941
  currency: string;
@@ -7175,58 +7953,2569 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7175
7953
  };
7176
7954
  } & RateLimitMetricsMeta;
7177
7955
  }>;
7178
- restart: import("@trpc/server").TRPCMutationProcedure<{
7956
+ findById: import("@trpc/server").TRPCQueryProcedure<{
7179
7957
  input: {
7180
7958
  id: string;
7181
7959
  };
7182
- output: {
7183
- status: "ok";
7184
- } | {
7185
- status: "error";
7186
- code: "failed" | "not_found" | "not_restartable";
7187
- message: string;
7188
- };
7189
- meta: {
7190
- [x: string]: unknown;
7191
- } & {
7192
- openapi?: {
7193
- enabled?: boolean;
7194
- method: import("trpc-to-openapi").OpenApiMethod;
7195
- path: `/${string}`;
7196
- operationId?: string;
7197
- summary?: string;
7198
- description?: string;
7199
- protect?: boolean;
7200
- tags?: string[];
7201
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7202
- deprecated?: boolean;
7203
- requestHeaders?: import("zod").ZodObject;
7204
- responseHeaders?: import("zod").ZodObject;
7205
- successDescription?: string;
7206
- errorResponses?: number[] | Record<number, string>;
7207
- };
7208
- } & RateLimitMetricsMeta;
7209
- }>;
7210
- }>>;
7211
- auditLogs: import("@trpc/server").TRPCBuiltRouter<{
7212
- ctx: {
7213
- req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
7214
- res?: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> | undefined;
7215
- info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
7216
- debugAuthToken?: string;
7217
- rootAuthToken?: string;
7218
- prisma: ExtendedPrismaClient;
7219
- io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
7220
- user: {
7221
- id: string;
7222
- workspaceName: string;
7223
- name: string;
7224
- authUserId: string | null;
7225
- pubKey: string;
7226
- deviceType: UserDeviceType;
7227
- deviceUserId: string | null;
7228
- hsmId: string | null;
7229
- u2fKeyHandle: string | null;
7960
+ output: ({
7961
+ type: "CREATE_TRANSACTION";
7962
+ data: {
7963
+ accountId: string;
7964
+ transaction: {
7965
+ amount: string;
7966
+ currency: string;
7967
+ maxFee: string | null;
7968
+ recipient: string;
7969
+ type: "BITCOIN_LIKE_SEND";
7970
+ feeStrategy: {
7971
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7972
+ feePerByte?: string | null | undefined;
7973
+ };
7974
+ } | {
7975
+ amount: string;
7976
+ currency: string;
7977
+ recipient: string;
7978
+ executeBeforeSeconds?: number | undefined;
7979
+ reason: string | null;
7980
+ type: "CANTON_LIKE_SEND";
7981
+ } | {
7982
+ amount: string;
7983
+ currency: string;
7984
+ recipient: string;
7985
+ executeBeforeSeconds?: number | undefined;
7986
+ reason: string | null;
7987
+ type: "CANTON_LIKE_SEND_TOKEN";
7988
+ } | {
7989
+ currency: string;
7990
+ transferProposal: {
7991
+ amount: string;
7992
+ contractId: string;
7993
+ instrumentAdmin: string;
7994
+ instrumentId: string;
7995
+ expiresAtMicros: number;
7996
+ reason: string | null;
7997
+ sender: string;
7998
+ recipient: string;
7999
+ };
8000
+ reason: string | null;
8001
+ type: "CANTON_LIKE_WITHDRAW";
8002
+ } | {
8003
+ currency: string;
8004
+ transferProposal: {
8005
+ amount: string;
8006
+ contractId: string;
8007
+ instrumentAdmin: string;
8008
+ instrumentId: string;
8009
+ expiresAtMicros: number;
8010
+ reason: string | null;
8011
+ sender: string;
8012
+ recipient: string;
8013
+ };
8014
+ verdict: "ACCEPT" | "REJECT";
8015
+ reason: string | null;
8016
+ type: "CANTON_LIKE_RECEIVE";
8017
+ } | {
8018
+ currency: string;
8019
+ recipient: string;
8020
+ type: "CANTON_LIKE_PRE_APPROVAL";
8021
+ } | {
8022
+ amount: string;
8023
+ currency: string;
8024
+ maxFee: string | null;
8025
+ recipient: string;
8026
+ type: "CARDANO_LIKE_SEND";
8027
+ feeStrategy: {
8028
+ type: "FAST" | "NORMAL" | "SLOW";
8029
+ };
8030
+ } | {
8031
+ type: "CARDANO_LIKE_STAKING_DELEGATE";
8032
+ currency: string;
8033
+ maxFee: string | null;
8034
+ feeStrategy: {
8035
+ type: "FAST" | "NORMAL" | "SLOW";
8036
+ };
8037
+ stakePoolId: string;
8038
+ } | {
8039
+ type: "CARDANO_LIKE_STAKING_DEREGISTER";
8040
+ currency: string;
8041
+ maxFee: string | null;
8042
+ feeStrategy: {
8043
+ type: "FAST" | "NORMAL" | "SLOW";
8044
+ };
8045
+ amount: string;
8046
+ } | {
8047
+ type: "CARDANO_LIKE_STAKING_REGISTER";
8048
+ currency: string;
8049
+ maxFee: string | null;
8050
+ feeStrategy: {
8051
+ type: "FAST" | "NORMAL" | "SLOW";
8052
+ };
8053
+ amount: string;
8054
+ } | {
8055
+ type: "CARDANO_LIKE_STAKING_WITHDRAW";
8056
+ currency: string;
8057
+ maxFee: string | null;
8058
+ feeStrategy: {
8059
+ type: "FAST" | "NORMAL" | "SLOW";
8060
+ };
8061
+ amount: string;
8062
+ } | {
8063
+ amount: string;
8064
+ currency: string;
8065
+ maxFee: string | null;
8066
+ replacingTxHash?: string | undefined;
8067
+ type: "ETHEREUM_LIKE_DEPLOY_CONTRACT";
8068
+ recipient: "";
8069
+ contractData: string;
8070
+ feeStrategy: {
8071
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8072
+ gasPrice: string;
8073
+ gasLimit: string;
8074
+ } | {
8075
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8076
+ maxPriorityFeePerGas: string;
8077
+ maxFeePerGas: string;
8078
+ gasLimit: string;
8079
+ };
8080
+ } | {
8081
+ amount: string;
8082
+ currency: string;
8083
+ maxFee: string | null;
8084
+ recipient: string;
8085
+ replacingTxHash?: string | undefined;
8086
+ type: "ETHEREUM_LIKE_EXECUTE_CONTRACT";
8087
+ contractData: string;
8088
+ feeStrategy: {
8089
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8090
+ gasPrice: string;
8091
+ gasLimit: string;
8092
+ } | {
8093
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8094
+ maxPriorityFeePerGas: string;
8095
+ maxFeePerGas: string;
8096
+ gasLimit: string;
8097
+ };
8098
+ } | {
8099
+ amount: string;
8100
+ currency: string;
8101
+ maxFee: string | null;
8102
+ recipient: string;
8103
+ replacingTxHash?: string | undefined;
8104
+ type: "ETHEREUM_LIKE_SEND";
8105
+ feeStrategy: {
8106
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8107
+ gasPrice: string;
8108
+ gasLimit: string;
8109
+ } | {
8110
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8111
+ maxPriorityFeePerGas: string;
8112
+ maxFeePerGas: string;
8113
+ gasLimit: string;
8114
+ };
8115
+ } | {
8116
+ currency: string;
8117
+ maxFee: string | null;
8118
+ replacingTxHash?: string | undefined;
8119
+ type: "ETHEREUM_LIKE_STAKE_DEPOSIT";
8120
+ feeStrategy: {
8121
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8122
+ gasPrice: string;
8123
+ gasLimit: string;
8124
+ } | {
8125
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8126
+ maxPriorityFeePerGas: string;
8127
+ maxFeePerGas: string;
8128
+ gasLimit: string;
8129
+ };
8130
+ amountPerValidator: string;
8131
+ numberOfValidators: string;
8132
+ stakingProvider: "KILN";
8133
+ withdrawalAddress: string;
8134
+ } | {
8135
+ amount: string;
8136
+ currency: string;
8137
+ maxFee: string | null;
8138
+ replacingTxHash?: string | undefined;
8139
+ type: "ETHEREUM_LIKE_STAKE_WITHDRAW";
8140
+ feeStrategy: {
8141
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8142
+ gasPrice: string;
8143
+ gasLimit: string;
8144
+ } | {
8145
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8146
+ maxPriorityFeePerGas: string;
8147
+ maxFeePerGas: string;
8148
+ gasLimit: string;
8149
+ };
8150
+ validatorPubKey: string;
8151
+ executionFee: string;
8152
+ } | {
8153
+ amount: string;
8154
+ currency: string;
8155
+ maxFee: string | null;
8156
+ replacingTxHash?: string | undefined;
8157
+ type: "ETHEREUM_LIKE_STAKE_CONSOLIDATE";
8158
+ feeStrategy: {
8159
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8160
+ gasPrice: string;
8161
+ gasLimit: string;
8162
+ } | {
8163
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8164
+ maxPriorityFeePerGas: string;
8165
+ maxFeePerGas: string;
8166
+ gasLimit: string;
8167
+ };
8168
+ sourcePubKey: string;
8169
+ targetPubKey: string;
8170
+ executionFee: string;
8171
+ } | {
8172
+ amount: string;
8173
+ currency: string;
8174
+ maxFee: string | null;
8175
+ replacingTxHash?: string | undefined;
8176
+ type: "ETHEREUM_LIKE_STAKE_UPGRADE";
8177
+ feeStrategy: {
8178
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8179
+ gasPrice: string;
8180
+ gasLimit: string;
8181
+ } | {
8182
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8183
+ maxPriorityFeePerGas: string;
8184
+ maxFeePerGas: string;
8185
+ gasLimit: string;
8186
+ };
8187
+ validatorPubKey: string;
8188
+ executionFee: string;
8189
+ } | {
8190
+ type: "GENERIC_TRANSACTION";
8191
+ currency: string;
8192
+ rawTx: string;
8193
+ } | {
8194
+ amount: string;
8195
+ currency: string;
8196
+ maxFee: string | null;
8197
+ recipient: string;
8198
+ type: "HEDERA_LIKE_SEND";
8199
+ feeStrategy: {
8200
+ type: "FAST" | "NORMAL" | "SLOW";
8201
+ };
8202
+ } | {
8203
+ amount: string;
8204
+ currency: string;
8205
+ maxFee: string | null;
8206
+ recipient: string;
8207
+ type: "HEDERA_LIKE_SEND_TOKEN";
8208
+ feeStrategy: {
8209
+ type: "FAST" | "NORMAL" | "SLOW";
8210
+ };
8211
+ } | {
8212
+ type: "HEDERA_LIKE_STAKE";
8213
+ currency: string;
8214
+ nodeId: string;
8215
+ maxFee: string | null;
8216
+ feeStrategy: {
8217
+ type: "FAST" | "NORMAL" | "SLOW";
8218
+ };
8219
+ } | {
8220
+ type: "POLKADOT_LIKE_ADDPROXY";
8221
+ currency: string;
8222
+ kind: "Staking";
8223
+ proxy: string;
8224
+ } | {
8225
+ type: "POLKADOT_LIKE_ANONYMOUSPROXY";
8226
+ currency: string;
8227
+ } | {
8228
+ type: "POLKADOT_LIKE_BOND";
8229
+ currency: string;
8230
+ payee: "Staked" | "Stash";
8231
+ amount: string;
8232
+ } | {
8233
+ type: "POLKADOT_LIKE_BONDEXTRA";
8234
+ currency: string;
8235
+ amount: string;
8236
+ } | {
8237
+ type: "POLKADOT_LIKE_CHILL";
8238
+ currency: string;
8239
+ } | {
8240
+ type: "POLKADOT_LIKE_KILLANONYMOUS";
8241
+ currency: string;
8242
+ } | {
8243
+ type: "POLKADOT_LIKE_REBOND";
8244
+ currency: string;
8245
+ amount: string;
8246
+ } | {
8247
+ type: "POLKADOT_LIKE_REMOVEPROXY";
8248
+ currency: string;
8249
+ kind: "Staking";
8250
+ proxy: string;
8251
+ } | {
8252
+ amount: string;
8253
+ currency: string;
8254
+ maxFee: string | null;
8255
+ recipient: string;
8256
+ type: "POLKADOT_LIKE_SEND";
8257
+ } | {
8258
+ type: "POLKADOT_LIKE_SETPAYEE";
8259
+ currency: string;
8260
+ payee: "Staked" | "Stash";
8261
+ } | {
8262
+ type: "POLKADOT_LIKE_UNBOND";
8263
+ currency: string;
8264
+ amount: string;
8265
+ } | {
8266
+ type: "POLKADOT_LIKE_WITHDRAWUNBONDED";
8267
+ currency: string;
8268
+ } | {
8269
+ amount: string;
8270
+ currency: string;
8271
+ maxFee: string | null;
8272
+ recipient: string;
8273
+ type: "RIPPLE_LIKE_SEND";
8274
+ destinationTag: string | null;
8275
+ feeStrategy: {
8276
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8277
+ };
8278
+ } | {
8279
+ amount: string;
8280
+ currency: string;
8281
+ maxFee: string | null;
8282
+ type: "SOLANA_LIKE_CREATE_DELEGATE_STAKE";
8283
+ recipient: string;
8284
+ feeStrategy: {
8285
+ type: "FAST" | "NORMAL" | "SLOW";
8286
+ };
8287
+ } | {
8288
+ type: "SOLANA_LIKE_DEACTIVATE_STAKE";
8289
+ currency: string;
8290
+ maxFee: string | null;
8291
+ stakeAccount: string;
8292
+ feeStrategy: {
8293
+ type: "FAST" | "NORMAL" | "SLOW";
8294
+ };
8295
+ } | {
8296
+ type: "SOLANA_LIKE_DELEGATE_STAKE";
8297
+ currency: string;
8298
+ maxFee: string | null;
8299
+ recipient: string;
8300
+ stakeAccount: string;
8301
+ feeStrategy: {
8302
+ type: "FAST" | "NORMAL" | "SLOW";
8303
+ };
8304
+ } | {
8305
+ type: "SOLANA_LIKE_MERGE_STAKE";
8306
+ currency: string;
8307
+ maxFee: string | null;
8308
+ mergeSrcAccount: string;
8309
+ mergeDstAccount: string;
8310
+ feeStrategy: {
8311
+ type: "FAST" | "NORMAL" | "SLOW";
8312
+ };
8313
+ } | {
8314
+ amount: string;
8315
+ currency: string;
8316
+ maxFee: string | null;
8317
+ recipient: string;
8318
+ type: "SOLANA_LIKE_SEND";
8319
+ feeStrategy: {
8320
+ type: "FAST" | "NORMAL" | "SLOW";
8321
+ };
8322
+ } | {
8323
+ type: "SOLANA_LIKE_SPLIT_DEACTIVATE_STAKE";
8324
+ amount: string;
8325
+ currency: string;
8326
+ maxFee: string | null;
8327
+ stakeAccount: string;
8328
+ feeStrategy: {
8329
+ type: "FAST" | "NORMAL" | "SLOW";
8330
+ };
8331
+ } | {
8332
+ type: "SOLANA_LIKE_SPLIT_STAKE";
8333
+ amount: string;
8334
+ currency: string;
8335
+ maxFee: string | null;
8336
+ stakeAccount: string;
8337
+ feeStrategy: {
8338
+ type: "FAST" | "NORMAL" | "SLOW";
8339
+ };
8340
+ } | {
8341
+ type: "SOLANA_LIKE_WITHDRAW_STAKE";
8342
+ amount: string;
8343
+ currency: string;
8344
+ maxFee: string | null;
8345
+ stakeAccount: string;
8346
+ feeStrategy: {
8347
+ type: "FAST" | "NORMAL" | "SLOW";
8348
+ };
8349
+ } | {
8350
+ amount: string;
8351
+ currency: string;
8352
+ maxFee: string | null;
8353
+ recipient: string;
8354
+ type: "SOLANA_LIKE_SEND_TOKEN";
8355
+ feeStrategy: {
8356
+ type: "FAST" | "NORMAL" | "SLOW";
8357
+ };
8358
+ } | {
8359
+ amount: string;
8360
+ currency: string;
8361
+ maxFee: string | null;
8362
+ recipient: string;
8363
+ type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
8364
+ feeStrategy: {
8365
+ type: "FAST" | "NORMAL" | "SLOW";
8366
+ };
8367
+ } | {
8368
+ type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
8369
+ currency: string;
8370
+ maxFee: string | null;
8371
+ feeStrategy: {
8372
+ type: "FAST" | "NORMAL" | "SLOW";
8373
+ };
8374
+ } | {
8375
+ amount: string;
8376
+ currency: string;
8377
+ maxFee: string | null;
8378
+ recipient: string;
8379
+ type: "STELLAR_LIKE_SEND";
8380
+ memo: {
8381
+ type: "MEMO_TEXT";
8382
+ value: string;
8383
+ } | {
8384
+ type: "MEMO_ID";
8385
+ value: string;
8386
+ } | {
8387
+ type: "MEMO_HASH";
8388
+ value: string;
8389
+ } | {
8390
+ type: "MEMO_RETURN";
8391
+ value: string;
8392
+ } | null;
8393
+ feeStrategy: {
8394
+ type: "FAST" | "NORMAL" | "SLOW";
8395
+ };
8396
+ } | {
8397
+ amount: string;
8398
+ currency: string;
8399
+ maxFee: string | null;
8400
+ recipient: string;
8401
+ type: "SUI_LIKE_SEND";
8402
+ feeStrategy: {
8403
+ type: "FAST" | "NORMAL" | "SLOW";
8404
+ };
8405
+ } | {
8406
+ amount: string;
8407
+ currency: string;
8408
+ maxFee: string | null;
8409
+ recipient: string;
8410
+ type: "SUI_LIKE_SEND_TOKEN";
8411
+ feeStrategy: {
8412
+ type: "FAST" | "NORMAL" | "SLOW";
8413
+ };
8414
+ } | {
8415
+ type: "SUI_LIKE_STAKE";
8416
+ feeStrategy: {
8417
+ type: "FAST" | "NORMAL" | "SLOW";
8418
+ };
8419
+ amount: string;
8420
+ currency: string;
8421
+ maxFee: string | null;
8422
+ validator: string;
8423
+ } | {
8424
+ type: "SUI_LIKE_UNSTAKE";
8425
+ feeStrategy: {
8426
+ type: "FAST" | "NORMAL" | "SLOW";
8427
+ };
8428
+ currency: string;
8429
+ maxFee: string | null;
8430
+ stakedSuiId: string;
8431
+ amount: string;
8432
+ useAllAmount: boolean;
8433
+ } | {
8434
+ amount: string;
8435
+ currency: string;
8436
+ maxFee: string | null;
8437
+ recipient: string;
8438
+ type: "TEZOS_LIKE_SEND";
8439
+ feeStrategy: {
8440
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8441
+ };
8442
+ } | {
8443
+ type: "TEZOS_LIKE_DELEGATE";
8444
+ currency: string;
8445
+ maxFee: string | null;
8446
+ recipient: string;
8447
+ feeStrategy: {
8448
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8449
+ };
8450
+ } | {
8451
+ type: "TEZOS_LIKE_UNDELEGATE";
8452
+ currency: string;
8453
+ maxFee: string | null;
8454
+ feeStrategy: {
8455
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
8456
+ };
8457
+ } | {
8458
+ amount: string;
8459
+ currency: string;
8460
+ maxFee: string | null;
8461
+ recipient: string;
8462
+ type: "TRON_LIKE_SEND";
8463
+ feeStrategy: {
8464
+ type: "FAST" | "NORMAL" | "SLOW";
8465
+ };
8466
+ } | {
8467
+ amount: string;
8468
+ currency: string;
8469
+ maxFee: string | null;
8470
+ recipient: string;
8471
+ type: "TRON_LIKE_SEND_TOKEN";
8472
+ feeStrategy: {
8473
+ type: "FAST" | "NORMAL" | "SLOW";
8474
+ };
8475
+ };
8476
+ };
8477
+ id: string;
8478
+ legacyId: number;
8479
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8480
+ reviewSteps: {
8481
+ stageName: string;
8482
+ quorum: number;
8483
+ }[];
8484
+ currentStepIndex: number;
8485
+ expiresAt: Date;
8486
+ targetId: string | null;
8487
+ note: {
8488
+ title: string;
8489
+ content: string;
8490
+ } | null;
8491
+ reviews: {
8492
+ stepIndex: number;
8493
+ userId: string;
8494
+ groupName: string | null;
8495
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8496
+ createdAt: Date;
8497
+ updatedAt: Date;
8498
+ }[];
8499
+ createdAt: Date;
8500
+ updatedAt: Date;
8501
+ createdById: string;
8502
+ inflight?: {
8503
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8504
+ retryAfter: Date;
8505
+ } | undefined;
8506
+ } | {
8507
+ type: "UPDATE_QUORUM";
8508
+ data: {
8509
+ quorum: number;
8510
+ };
8511
+ id: string;
8512
+ legacyId: number;
8513
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8514
+ reviewSteps: {
8515
+ stageName: string;
8516
+ quorum: number;
8517
+ }[];
8518
+ currentStepIndex: number;
8519
+ expiresAt: Date;
8520
+ targetId: string | null;
8521
+ note: {
8522
+ title: string;
8523
+ content: string;
8524
+ } | null;
8525
+ reviews: {
8526
+ stepIndex: number;
8527
+ userId: string;
8528
+ groupName: string | null;
8529
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8530
+ createdAt: Date;
8531
+ updatedAt: Date;
8532
+ }[];
8533
+ createdAt: Date;
8534
+ updatedAt: Date;
8535
+ createdById: string;
8536
+ inflight?: {
8537
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8538
+ retryAfter: Date;
8539
+ } | undefined;
8540
+ } | {
8541
+ type: "SIGN_MESSAGE";
8542
+ data: {
8543
+ message: {
8544
+ type: "EIP191";
8545
+ data: string;
8546
+ } | {
8547
+ type: "EIP712";
8548
+ data: {
8549
+ types: Record<string, {
8550
+ name: string;
8551
+ type: string;
8552
+ }[]>;
8553
+ primaryType: string;
8554
+ domain: Record<string, any>;
8555
+ message: Record<string, any>;
8556
+ };
8557
+ } | {
8558
+ type: "CIP8";
8559
+ data: string;
8560
+ signingKey: "PAYMENT" | "STAKE";
8561
+ } | {
8562
+ type: "BIP137";
8563
+ data: string;
8564
+ };
8565
+ accountId: string;
8566
+ address: string;
8567
+ derivationPath: string;
8568
+ };
8569
+ id: string;
8570
+ legacyId: number;
8571
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8572
+ reviewSteps: {
8573
+ stageName: string;
8574
+ quorum: number;
8575
+ }[];
8576
+ currentStepIndex: number;
8577
+ expiresAt: Date;
8578
+ targetId: string | null;
8579
+ note: {
8580
+ title: string;
8581
+ content: string;
8582
+ } | null;
8583
+ reviews: {
8584
+ stepIndex: number;
8585
+ userId: string;
8586
+ groupName: string | null;
8587
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8588
+ createdAt: Date;
8589
+ updatedAt: Date;
8590
+ }[];
8591
+ createdAt: Date;
8592
+ updatedAt: Date;
8593
+ createdById: string;
8594
+ inflight?: {
8595
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8596
+ retryAfter: Date;
8597
+ } | undefined;
8598
+ } | {
8599
+ type: "SIGN_DIGESTS";
8600
+ data: {
8601
+ accountId: string;
8602
+ digests: {
8603
+ digest: string;
8604
+ derivationPath: string;
8605
+ }[];
8606
+ };
8607
+ id: string;
8608
+ legacyId: number;
8609
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8610
+ reviewSteps: {
8611
+ stageName: string;
8612
+ quorum: number;
8613
+ }[];
8614
+ currentStepIndex: number;
8615
+ expiresAt: Date;
8616
+ targetId: string | null;
8617
+ note: {
8618
+ title: string;
8619
+ content: string;
8620
+ } | null;
8621
+ reviews: {
8622
+ stepIndex: number;
8623
+ userId: string;
8624
+ groupName: string | null;
8625
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8626
+ createdAt: Date;
8627
+ updatedAt: Date;
8628
+ }[];
8629
+ createdAt: Date;
8630
+ updatedAt: Date;
8631
+ createdById: string;
8632
+ inflight?: {
8633
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8634
+ retryAfter: Date;
8635
+ } | undefined;
8636
+ } | {
8637
+ type: "CREATE_ACCOUNT";
8638
+ data: {
8639
+ name: string;
8640
+ currency: string;
8641
+ contractAddress: string | null;
8642
+ tokenIdentifier: string | null;
8643
+ bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
8644
+ governance: {
8645
+ type: "CLASSIC";
8646
+ policy: {
8647
+ policyId: string;
8648
+ } | {
8649
+ rules: {
8650
+ reviewSteps: ({
8651
+ quorum: number;
8652
+ userIds: string[];
8653
+ } | {
8654
+ quorum: number;
8655
+ groupId: string;
8656
+ })[];
8657
+ threshold?: {
8658
+ min: string | null;
8659
+ max: string | null;
8660
+ } | undefined;
8661
+ whitelistIds?: string[] | undefined;
8662
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
8663
+ }[];
8664
+ };
8665
+ } | {
8666
+ type: "TRADELINK";
8667
+ assetManagerId: string;
8668
+ exchangeConfigs: {
8669
+ exchangeId: string;
8670
+ repledgeAuthorized: boolean;
8671
+ needsAssetManagerApprovalForSettlements: boolean;
8672
+ }[];
8673
+ } | {
8674
+ type: "RAW_SIGNING";
8675
+ policy: {
8676
+ rules: {
8677
+ operationType: "SIGN_DIGESTS";
8678
+ reviewSteps: {
8679
+ quorum: number;
8680
+ userIds: string[];
8681
+ }[];
8682
+ }[];
8683
+ };
8684
+ };
8685
+ index: number;
8686
+ derivationPath: string;
8687
+ type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
8688
+ };
8689
+ id: string;
8690
+ legacyId: number;
8691
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8692
+ reviewSteps: {
8693
+ stageName: string;
8694
+ quorum: number;
8695
+ }[];
8696
+ currentStepIndex: number;
8697
+ expiresAt: Date;
8698
+ targetId: string | null;
8699
+ note: {
8700
+ title: string;
8701
+ content: string;
8702
+ } | null;
8703
+ reviews: {
8704
+ stepIndex: number;
8705
+ userId: string;
8706
+ groupName: string | null;
8707
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8708
+ createdAt: Date;
8709
+ updatedAt: Date;
8710
+ }[];
8711
+ createdAt: Date;
8712
+ updatedAt: Date;
8713
+ createdById: string;
8714
+ inflight?: {
8715
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8716
+ retryAfter: Date;
8717
+ } | undefined;
8718
+ } | {
8719
+ type: "EDIT_ACCOUNT";
8720
+ data: {
8721
+ name: string;
8722
+ governance: {
8723
+ type: "CLASSIC";
8724
+ policy: {
8725
+ policyId: string;
8726
+ } | {
8727
+ rules: {
8728
+ reviewSteps: ({
8729
+ quorum: number;
8730
+ userIds: string[];
8731
+ } | {
8732
+ quorum: number;
8733
+ groupId: string;
8734
+ })[];
8735
+ threshold?: {
8736
+ min: string | null;
8737
+ max: string | null;
8738
+ } | undefined;
8739
+ whitelistIds?: string[] | undefined;
8740
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
8741
+ }[];
8742
+ };
8743
+ } | {
8744
+ type: "TRADELINK";
8745
+ exchangeConfigs: {
8746
+ exchangeId: string;
8747
+ repledgeAuthorized: boolean;
8748
+ needsAssetManagerApprovalForSettlements: boolean;
8749
+ }[];
8750
+ } | {
8751
+ type: "RAW_SIGNING";
8752
+ policy: {
8753
+ rules: {
8754
+ operationType: "SIGN_DIGESTS";
8755
+ reviewSteps: {
8756
+ quorum: number;
8757
+ userIds: string[];
8758
+ }[];
8759
+ }[];
8760
+ };
8761
+ };
8762
+ };
8763
+ id: string;
8764
+ legacyId: number;
8765
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8766
+ reviewSteps: {
8767
+ stageName: string;
8768
+ quorum: number;
8769
+ }[];
8770
+ currentStepIndex: number;
8771
+ expiresAt: Date;
8772
+ targetId: string | null;
8773
+ note: {
8774
+ title: string;
8775
+ content: string;
8776
+ } | null;
8777
+ reviews: {
8778
+ stepIndex: number;
8779
+ userId: string;
8780
+ groupName: string | null;
8781
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8782
+ createdAt: Date;
8783
+ updatedAt: Date;
8784
+ }[];
8785
+ createdAt: Date;
8786
+ updatedAt: Date;
8787
+ createdById: string;
8788
+ inflight?: {
8789
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8790
+ retryAfter: Date;
8791
+ } | undefined;
8792
+ } | {
8793
+ type: "EDIT_TOKEN_RULE";
8794
+ data: {
8795
+ parentAccountId: string;
8796
+ contractAddress: string;
8797
+ rules: {
8798
+ reviewSteps: ({
8799
+ quorum: number;
8800
+ userIds: string[];
8801
+ } | {
8802
+ quorum: number;
8803
+ groupId: string;
8804
+ })[];
8805
+ threshold?: {
8806
+ min: string | null;
8807
+ max: string | null;
8808
+ } | undefined;
8809
+ whitelistIds?: string[] | undefined;
8810
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
8811
+ }[];
8812
+ };
8813
+ id: string;
8814
+ legacyId: number;
8815
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8816
+ reviewSteps: {
8817
+ stageName: string;
8818
+ quorum: number;
8819
+ }[];
8820
+ currentStepIndex: number;
8821
+ expiresAt: Date;
8822
+ targetId: string | null;
8823
+ note: {
8824
+ title: string;
8825
+ content: string;
8826
+ } | null;
8827
+ reviews: {
8828
+ stepIndex: number;
8829
+ userId: string;
8830
+ groupName: string | null;
8831
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8832
+ createdAt: Date;
8833
+ updatedAt: Date;
8834
+ }[];
8835
+ createdAt: Date;
8836
+ updatedAt: Date;
8837
+ createdById: string;
8838
+ inflight?: {
8839
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8840
+ retryAfter: Date;
8841
+ } | undefined;
8842
+ } | {
8843
+ type: "CREATE_GROUP";
8844
+ data: {
8845
+ name: string;
8846
+ description: string | null;
8847
+ members: string[];
8848
+ };
8849
+ id: string;
8850
+ legacyId: number;
8851
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8852
+ reviewSteps: {
8853
+ stageName: string;
8854
+ quorum: number;
8855
+ }[];
8856
+ currentStepIndex: number;
8857
+ expiresAt: Date;
8858
+ targetId: string | null;
8859
+ note: {
8860
+ title: string;
8861
+ content: string;
8862
+ } | null;
8863
+ reviews: {
8864
+ stepIndex: number;
8865
+ userId: string;
8866
+ groupName: string | null;
8867
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8868
+ createdAt: Date;
8869
+ updatedAt: Date;
8870
+ }[];
8871
+ createdAt: Date;
8872
+ updatedAt: Date;
8873
+ createdById: string;
8874
+ inflight?: {
8875
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8876
+ retryAfter: Date;
8877
+ } | undefined;
8878
+ } | {
8879
+ type: "EDIT_GROUP";
8880
+ data: {
8881
+ name: string;
8882
+ description: string | null;
8883
+ members: string[];
8884
+ };
8885
+ id: string;
8886
+ legacyId: number;
8887
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8888
+ reviewSteps: {
8889
+ stageName: string;
8890
+ quorum: number;
8891
+ }[];
8892
+ currentStepIndex: number;
8893
+ expiresAt: Date;
8894
+ targetId: string | null;
8895
+ note: {
8896
+ title: string;
8897
+ content: string;
8898
+ } | null;
8899
+ reviews: {
8900
+ stepIndex: number;
8901
+ userId: string;
8902
+ groupName: string | null;
8903
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8904
+ createdAt: Date;
8905
+ updatedAt: Date;
8906
+ }[];
8907
+ createdAt: Date;
8908
+ updatedAt: Date;
8909
+ createdById: string;
8910
+ inflight?: {
8911
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8912
+ retryAfter: Date;
8913
+ } | undefined;
8914
+ } | {
8915
+ type: "REVOKE_GROUP";
8916
+ data: Record<string, never>;
8917
+ id: string;
8918
+ legacyId: number;
8919
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8920
+ reviewSteps: {
8921
+ stageName: string;
8922
+ quorum: number;
8923
+ }[];
8924
+ currentStepIndex: number;
8925
+ expiresAt: Date;
8926
+ targetId: string | null;
8927
+ note: {
8928
+ title: string;
8929
+ content: string;
8930
+ } | null;
8931
+ reviews: {
8932
+ stepIndex: number;
8933
+ userId: string;
8934
+ groupName: string | null;
8935
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8936
+ createdAt: Date;
8937
+ updatedAt: Date;
8938
+ }[];
8939
+ createdAt: Date;
8940
+ updatedAt: Date;
8941
+ createdById: string;
8942
+ inflight?: {
8943
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8944
+ retryAfter: Date;
8945
+ } | undefined;
8946
+ } | {
8947
+ type: "CREATE_WHITELIST";
8948
+ data: {
8949
+ name: string;
8950
+ description: string | null;
8951
+ addresses: {
8952
+ name: string;
8953
+ currency: string;
8954
+ address: string;
8955
+ destinationTag?: string | undefined;
8956
+ }[];
8957
+ type: "SMART_CONTRACT" | "TRANSACTION";
8958
+ };
8959
+ id: string;
8960
+ legacyId: number;
8961
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
8962
+ reviewSteps: {
8963
+ stageName: string;
8964
+ quorum: number;
8965
+ }[];
8966
+ currentStepIndex: number;
8967
+ expiresAt: Date;
8968
+ targetId: string | null;
8969
+ note: {
8970
+ title: string;
8971
+ content: string;
8972
+ } | null;
8973
+ reviews: {
8974
+ stepIndex: number;
8975
+ userId: string;
8976
+ groupName: string | null;
8977
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
8978
+ createdAt: Date;
8979
+ updatedAt: Date;
8980
+ }[];
8981
+ createdAt: Date;
8982
+ updatedAt: Date;
8983
+ createdById: string;
8984
+ inflight?: {
8985
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
8986
+ retryAfter: Date;
8987
+ } | undefined;
8988
+ } | {
8989
+ type: "EDIT_WHITELIST";
8990
+ data: {
8991
+ name: string;
8992
+ addresses: {
8993
+ name: string;
8994
+ currency: string;
8995
+ address: string;
8996
+ destinationTag?: string | undefined;
8997
+ }[];
8998
+ };
8999
+ id: string;
9000
+ legacyId: number;
9001
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9002
+ reviewSteps: {
9003
+ stageName: string;
9004
+ quorum: number;
9005
+ }[];
9006
+ currentStepIndex: number;
9007
+ expiresAt: Date;
9008
+ targetId: string | null;
9009
+ note: {
9010
+ title: string;
9011
+ content: string;
9012
+ } | null;
9013
+ reviews: {
9014
+ stepIndex: number;
9015
+ userId: string;
9016
+ groupName: string | null;
9017
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9018
+ createdAt: Date;
9019
+ updatedAt: Date;
9020
+ }[];
9021
+ createdAt: Date;
9022
+ updatedAt: Date;
9023
+ createdById: string;
9024
+ inflight?: {
9025
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9026
+ retryAfter: Date;
9027
+ } | undefined;
9028
+ } | {
9029
+ type: "CREATE_ENTITY";
9030
+ data: {
9031
+ name: string;
9032
+ accountIds: string[];
9033
+ memberIds: string[];
9034
+ };
9035
+ id: string;
9036
+ legacyId: number;
9037
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9038
+ reviewSteps: {
9039
+ stageName: string;
9040
+ quorum: number;
9041
+ }[];
9042
+ currentStepIndex: number;
9043
+ expiresAt: Date;
9044
+ targetId: string | null;
9045
+ note: {
9046
+ title: string;
9047
+ content: string;
9048
+ } | null;
9049
+ reviews: {
9050
+ stepIndex: number;
9051
+ userId: string;
9052
+ groupName: string | null;
9053
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9054
+ createdAt: Date;
9055
+ updatedAt: Date;
9056
+ }[];
9057
+ createdAt: Date;
9058
+ updatedAt: Date;
9059
+ createdById: string;
9060
+ inflight?: {
9061
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9062
+ retryAfter: Date;
9063
+ } | undefined;
9064
+ } | {
9065
+ type: "EDIT_ENTITY";
9066
+ data: {
9067
+ name: string;
9068
+ accountIds: string[];
9069
+ memberIds: string[];
9070
+ };
9071
+ id: string;
9072
+ legacyId: number;
9073
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9074
+ reviewSteps: {
9075
+ stageName: string;
9076
+ quorum: number;
9077
+ }[];
9078
+ currentStepIndex: number;
9079
+ expiresAt: Date;
9080
+ targetId: string | null;
9081
+ note: {
9082
+ title: string;
9083
+ content: string;
9084
+ } | null;
9085
+ reviews: {
9086
+ stepIndex: number;
9087
+ userId: string;
9088
+ groupName: string | null;
9089
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9090
+ createdAt: Date;
9091
+ updatedAt: Date;
9092
+ }[];
9093
+ createdAt: Date;
9094
+ updatedAt: Date;
9095
+ createdById: string;
9096
+ inflight?: {
9097
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9098
+ retryAfter: Date;
9099
+ } | undefined;
9100
+ } | {
9101
+ type: "REVOKE_ENTITY";
9102
+ data: Record<string, never>;
9103
+ id: string;
9104
+ legacyId: number;
9105
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9106
+ reviewSteps: {
9107
+ stageName: string;
9108
+ quorum: number;
9109
+ }[];
9110
+ currentStepIndex: number;
9111
+ expiresAt: Date;
9112
+ targetId: string | null;
9113
+ note: {
9114
+ title: string;
9115
+ content: string;
9116
+ } | null;
9117
+ reviews: {
9118
+ stepIndex: number;
9119
+ userId: string;
9120
+ groupName: string | null;
9121
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9122
+ createdAt: Date;
9123
+ updatedAt: Date;
9124
+ }[];
9125
+ createdAt: Date;
9126
+ updatedAt: Date;
9127
+ createdById: string;
9128
+ inflight?: {
9129
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9130
+ retryAfter: Date;
9131
+ } | undefined;
9132
+ } | {
9133
+ type: "CREATE_PSD_USER";
9134
+ data: {
9135
+ registrationId: string;
9136
+ };
9137
+ id: string;
9138
+ legacyId: number;
9139
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9140
+ reviewSteps: {
9141
+ stageName: string;
9142
+ quorum: number;
9143
+ }[];
9144
+ currentStepIndex: number;
9145
+ expiresAt: Date;
9146
+ targetId: string | null;
9147
+ note: {
9148
+ title: string;
9149
+ content: string;
9150
+ } | null;
9151
+ reviews: {
9152
+ stepIndex: number;
9153
+ userId: string;
9154
+ groupName: string | null;
9155
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9156
+ createdAt: Date;
9157
+ updatedAt: Date;
9158
+ }[];
9159
+ createdAt: Date;
9160
+ updatedAt: Date;
9161
+ createdById: string;
9162
+ inflight?: {
9163
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9164
+ retryAfter: Date;
9165
+ } | undefined;
9166
+ } | {
9167
+ type: "CREATE_API_USER";
9168
+ data: {
9169
+ name: string;
9170
+ pubKey: string;
9171
+ role: "ADMIN" | "OPERATOR";
9172
+ viewAll?: boolean | undefined;
9173
+ };
9174
+ id: string;
9175
+ legacyId: number;
9176
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9177
+ reviewSteps: {
9178
+ stageName: string;
9179
+ quorum: number;
9180
+ }[];
9181
+ currentStepIndex: number;
9182
+ expiresAt: Date;
9183
+ targetId: string | null;
9184
+ note: {
9185
+ title: string;
9186
+ content: string;
9187
+ } | null;
9188
+ reviews: {
9189
+ stepIndex: number;
9190
+ userId: string;
9191
+ groupName: string | null;
9192
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9193
+ createdAt: Date;
9194
+ updatedAt: Date;
9195
+ }[];
9196
+ createdAt: Date;
9197
+ updatedAt: Date;
9198
+ createdById: string;
9199
+ inflight?: {
9200
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9201
+ retryAfter: Date;
9202
+ } | undefined;
9203
+ } | {
9204
+ type: "CREATE_API_USER_ACCESS";
9205
+ data: {
9206
+ name: string;
9207
+ };
9208
+ id: string;
9209
+ legacyId: number;
9210
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9211
+ reviewSteps: {
9212
+ stageName: string;
9213
+ quorum: number;
9214
+ }[];
9215
+ currentStepIndex: number;
9216
+ expiresAt: Date;
9217
+ targetId: string | null;
9218
+ note: {
9219
+ title: string;
9220
+ content: string;
9221
+ } | null;
9222
+ reviews: {
9223
+ stepIndex: number;
9224
+ userId: string;
9225
+ groupName: string | null;
9226
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9227
+ createdAt: Date;
9228
+ updatedAt: Date;
9229
+ }[];
9230
+ createdAt: Date;
9231
+ updatedAt: Date;
9232
+ createdById: string;
9233
+ inflight?: {
9234
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9235
+ retryAfter: Date;
9236
+ } | undefined;
9237
+ } | {
9238
+ type: "REVOKE_USER";
9239
+ data: Record<string, never>;
9240
+ id: string;
9241
+ legacyId: number;
9242
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9243
+ reviewSteps: {
9244
+ stageName: string;
9245
+ quorum: number;
9246
+ }[];
9247
+ currentStepIndex: number;
9248
+ expiresAt: Date;
9249
+ targetId: string | null;
9250
+ note: {
9251
+ title: string;
9252
+ content: string;
9253
+ } | null;
9254
+ reviews: {
9255
+ stepIndex: number;
9256
+ userId: string;
9257
+ groupName: string | null;
9258
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9259
+ createdAt: Date;
9260
+ updatedAt: Date;
9261
+ }[];
9262
+ createdAt: Date;
9263
+ updatedAt: Date;
9264
+ createdById: string;
9265
+ inflight?: {
9266
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9267
+ retryAfter: Date;
9268
+ } | undefined;
9269
+ } | {
9270
+ type: "EDIT_WORKSPACE_RULE";
9271
+ data: {
9272
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
9273
+ reviewConfig: {
9274
+ quorum: number;
9275
+ userIds: string[];
9276
+ }[];
9277
+ };
9278
+ id: string;
9279
+ legacyId: number;
9280
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9281
+ reviewSteps: {
9282
+ stageName: string;
9283
+ quorum: number;
9284
+ }[];
9285
+ currentStepIndex: number;
9286
+ expiresAt: Date;
9287
+ targetId: string | null;
9288
+ note: {
9289
+ title: string;
9290
+ content: string;
9291
+ } | null;
9292
+ reviews: {
9293
+ stepIndex: number;
9294
+ userId: string;
9295
+ groupName: string | null;
9296
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9297
+ createdAt: Date;
9298
+ updatedAt: Date;
9299
+ }[];
9300
+ createdAt: Date;
9301
+ updatedAt: Date;
9302
+ createdById: string;
9303
+ inflight?: {
9304
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9305
+ retryAfter: Date;
9306
+ } | undefined;
9307
+ } | {
9308
+ type: "CREATE_SCICONFIG";
9309
+ data: {
9310
+ account: string;
9311
+ config: {
9312
+ dapps: string[] | null;
9313
+ customContractCallEnabled: boolean;
9314
+ };
9315
+ };
9316
+ id: string;
9317
+ legacyId: number;
9318
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9319
+ reviewSteps: {
9320
+ stageName: string;
9321
+ quorum: number;
9322
+ }[];
9323
+ currentStepIndex: number;
9324
+ expiresAt: Date;
9325
+ targetId: string | null;
9326
+ note: {
9327
+ title: string;
9328
+ content: string;
9329
+ } | null;
9330
+ reviews: {
9331
+ stepIndex: number;
9332
+ userId: string;
9333
+ groupName: string | null;
9334
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9335
+ createdAt: Date;
9336
+ updatedAt: Date;
9337
+ }[];
9338
+ createdAt: Date;
9339
+ updatedAt: Date;
9340
+ createdById: string;
9341
+ inflight?: {
9342
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9343
+ retryAfter: Date;
9344
+ } | undefined;
9345
+ } | {
9346
+ type: "EDIT_SCICONFIG";
9347
+ data: {
9348
+ config: {
9349
+ dapps: string[] | null;
9350
+ customContractCallEnabled: boolean;
9351
+ };
9352
+ };
9353
+ id: string;
9354
+ legacyId: number;
9355
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9356
+ reviewSteps: {
9357
+ stageName: string;
9358
+ quorum: number;
9359
+ }[];
9360
+ currentStepIndex: number;
9361
+ expiresAt: Date;
9362
+ targetId: string | null;
9363
+ note: {
9364
+ title: string;
9365
+ content: string;
9366
+ } | null;
9367
+ reviews: {
9368
+ stepIndex: number;
9369
+ userId: string;
9370
+ groupName: string | null;
9371
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9372
+ createdAt: Date;
9373
+ updatedAt: Date;
9374
+ }[];
9375
+ createdAt: Date;
9376
+ updatedAt: Date;
9377
+ createdById: string;
9378
+ inflight?: {
9379
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9380
+ retryAfter: Date;
9381
+ } | undefined;
9382
+ } | {
9383
+ type: "CREATE_API_KEY";
9384
+ data: {
9385
+ name: string;
9386
+ entities: string[];
9387
+ scopes: Record<string, never>;
9388
+ };
9389
+ id: string;
9390
+ legacyId: number;
9391
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9392
+ reviewSteps: {
9393
+ stageName: string;
9394
+ quorum: number;
9395
+ }[];
9396
+ currentStepIndex: number;
9397
+ expiresAt: Date;
9398
+ targetId: string | null;
9399
+ note: {
9400
+ title: string;
9401
+ content: string;
9402
+ } | null;
9403
+ reviews: {
9404
+ stepIndex: number;
9405
+ userId: string;
9406
+ groupName: string | null;
9407
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9408
+ createdAt: Date;
9409
+ updatedAt: Date;
9410
+ }[];
9411
+ createdAt: Date;
9412
+ updatedAt: Date;
9413
+ createdById: string;
9414
+ inflight?: {
9415
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9416
+ retryAfter: Date;
9417
+ } | undefined;
9418
+ } | {
9419
+ type: "EDIT_API_KEY";
9420
+ data: {
9421
+ name: string;
9422
+ entities: string[];
9423
+ scopes: Record<string, never>;
9424
+ };
9425
+ id: string;
9426
+ legacyId: number;
9427
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9428
+ reviewSteps: {
9429
+ stageName: string;
9430
+ quorum: number;
9431
+ }[];
9432
+ currentStepIndex: number;
9433
+ expiresAt: Date;
9434
+ targetId: string | null;
9435
+ note: {
9436
+ title: string;
9437
+ content: string;
9438
+ } | null;
9439
+ reviews: {
9440
+ stepIndex: number;
9441
+ userId: string;
9442
+ groupName: string | null;
9443
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9444
+ createdAt: Date;
9445
+ updatedAt: Date;
9446
+ }[];
9447
+ createdAt: Date;
9448
+ updatedAt: Date;
9449
+ createdById: string;
9450
+ inflight?: {
9451
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9452
+ retryAfter: Date;
9453
+ } | undefined;
9454
+ } | {
9455
+ type: "REVOKE_API_KEY";
9456
+ data: Record<string, never>;
9457
+ id: string;
9458
+ legacyId: number;
9459
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9460
+ reviewSteps: {
9461
+ stageName: string;
9462
+ quorum: number;
9463
+ }[];
9464
+ currentStepIndex: number;
9465
+ expiresAt: Date;
9466
+ targetId: string | null;
9467
+ note: {
9468
+ title: string;
9469
+ content: string;
9470
+ } | null;
9471
+ reviews: {
9472
+ stepIndex: number;
9473
+ userId: string;
9474
+ groupName: string | null;
9475
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9476
+ createdAt: Date;
9477
+ updatedAt: Date;
9478
+ }[];
9479
+ createdAt: Date;
9480
+ updatedAt: Date;
9481
+ createdById: string;
9482
+ inflight?: {
9483
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9484
+ retryAfter: Date;
9485
+ } | undefined;
9486
+ } | {
9487
+ type: "CREATE_POLICY";
9488
+ data: {
9489
+ name: string;
9490
+ description: string | null;
9491
+ asset: {
9492
+ network: string;
9493
+ contractAddress: string | null;
9494
+ tokenIdentifier: string | null;
9495
+ } | null;
9496
+ govRules: {
9497
+ reviewSteps: ({
9498
+ quorum: number;
9499
+ userIds: string[];
9500
+ } | {
9501
+ quorum: number;
9502
+ groupId: string;
9503
+ })[];
9504
+ threshold?: {
9505
+ min: string | null;
9506
+ max: string | null;
9507
+ } | undefined;
9508
+ whitelistIds?: string[] | undefined;
9509
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
9510
+ }[];
9511
+ };
9512
+ id: string;
9513
+ legacyId: number;
9514
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9515
+ reviewSteps: {
9516
+ stageName: string;
9517
+ quorum: number;
9518
+ }[];
9519
+ currentStepIndex: number;
9520
+ expiresAt: Date;
9521
+ targetId: string | null;
9522
+ note: {
9523
+ title: string;
9524
+ content: string;
9525
+ } | null;
9526
+ reviews: {
9527
+ stepIndex: number;
9528
+ userId: string;
9529
+ groupName: string | null;
9530
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9531
+ createdAt: Date;
9532
+ updatedAt: Date;
9533
+ }[];
9534
+ createdAt: Date;
9535
+ updatedAt: Date;
9536
+ createdById: string;
9537
+ inflight?: {
9538
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9539
+ retryAfter: Date;
9540
+ } | undefined;
9541
+ } | {
9542
+ type: "EDIT_POLICY";
9543
+ data: {
9544
+ name: string;
9545
+ description: string | null;
9546
+ govRules: {
9547
+ reviewSteps: ({
9548
+ quorum: number;
9549
+ userIds: string[];
9550
+ } | {
9551
+ quorum: number;
9552
+ groupId: string;
9553
+ })[];
9554
+ threshold?: {
9555
+ min: string | null;
9556
+ max: string | null;
9557
+ } | undefined;
9558
+ whitelistIds?: string[] | undefined;
9559
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
9560
+ }[];
9561
+ };
9562
+ id: string;
9563
+ legacyId: number;
9564
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9565
+ reviewSteps: {
9566
+ stageName: string;
9567
+ quorum: number;
9568
+ }[];
9569
+ currentStepIndex: number;
9570
+ expiresAt: Date;
9571
+ targetId: string | null;
9572
+ note: {
9573
+ title: string;
9574
+ content: string;
9575
+ } | null;
9576
+ reviews: {
9577
+ stepIndex: number;
9578
+ userId: string;
9579
+ groupName: string | null;
9580
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9581
+ createdAt: Date;
9582
+ updatedAt: Date;
9583
+ }[];
9584
+ createdAt: Date;
9585
+ updatedAt: Date;
9586
+ createdById: string;
9587
+ inflight?: {
9588
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9589
+ retryAfter: Date;
9590
+ } | undefined;
9591
+ } | {
9592
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
9593
+ data: null;
9594
+ id: string;
9595
+ legacyId: number;
9596
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9597
+ reviewSteps: {
9598
+ stageName: string;
9599
+ quorum: number;
9600
+ }[];
9601
+ currentStepIndex: number;
9602
+ expiresAt: Date;
9603
+ targetId: string | null;
9604
+ note: {
9605
+ title: string;
9606
+ content: string;
9607
+ } | null;
9608
+ reviews: {
9609
+ stepIndex: number;
9610
+ userId: string;
9611
+ groupName: string | null;
9612
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9613
+ createdAt: Date;
9614
+ updatedAt: Date;
9615
+ }[];
9616
+ createdAt: Date;
9617
+ updatedAt: Date;
9618
+ createdById: string;
9619
+ inflight?: {
9620
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9621
+ retryAfter: Date;
9622
+ } | undefined;
9623
+ } | {
9624
+ type: "TRADELINK_CREATE_CUSTODIAN";
9625
+ data: {
9626
+ settlement: {
9627
+ quorum: number;
9628
+ userIds: string[];
9629
+ }[];
9630
+ withdraw: {
9631
+ quorum: number;
9632
+ userIds: string[];
9633
+ }[];
9634
+ arbitration: {
9635
+ quorum: number;
9636
+ userIds: string[];
9637
+ }[];
9638
+ };
9639
+ id: string;
9640
+ legacyId: number;
9641
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9642
+ reviewSteps: {
9643
+ stageName: string;
9644
+ quorum: number;
9645
+ }[];
9646
+ currentStepIndex: number;
9647
+ expiresAt: Date;
9648
+ targetId: string | null;
9649
+ note: {
9650
+ title: string;
9651
+ content: string;
9652
+ } | null;
9653
+ reviews: {
9654
+ stepIndex: number;
9655
+ userId: string;
9656
+ groupName: string | null;
9657
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9658
+ createdAt: Date;
9659
+ updatedAt: Date;
9660
+ }[];
9661
+ createdAt: Date;
9662
+ updatedAt: Date;
9663
+ createdById: string;
9664
+ inflight?: {
9665
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9666
+ retryAfter: Date;
9667
+ } | undefined;
9668
+ } | {
9669
+ type: "TRADELINK_EDIT_CUSTODIAN";
9670
+ data: {
9671
+ settlement: {
9672
+ quorum: number;
9673
+ userIds: string[];
9674
+ }[];
9675
+ withdraw: {
9676
+ quorum: number;
9677
+ userIds: string[];
9678
+ }[];
9679
+ arbitration: {
9680
+ quorum: number;
9681
+ userIds: string[];
9682
+ }[];
9683
+ };
9684
+ id: string;
9685
+ legacyId: number;
9686
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9687
+ reviewSteps: {
9688
+ stageName: string;
9689
+ quorum: number;
9690
+ }[];
9691
+ currentStepIndex: number;
9692
+ expiresAt: Date;
9693
+ targetId: string | null;
9694
+ note: {
9695
+ title: string;
9696
+ content: string;
9697
+ } | null;
9698
+ reviews: {
9699
+ stepIndex: number;
9700
+ userId: string;
9701
+ groupName: string | null;
9702
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9703
+ createdAt: Date;
9704
+ updatedAt: Date;
9705
+ }[];
9706
+ createdAt: Date;
9707
+ updatedAt: Date;
9708
+ createdById: string;
9709
+ inflight?: {
9710
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9711
+ retryAfter: Date;
9712
+ } | undefined;
9713
+ } | {
9714
+ type: "TRADELINK_CREATE_EXCHANGE";
9715
+ data: {
9716
+ tradelinkId: string;
9717
+ groups: {
9718
+ quorum: number;
9719
+ userIds: string[];
9720
+ }[];
9721
+ whitelist: {
9722
+ name: string;
9723
+ currency: string;
9724
+ address: string;
9725
+ }[];
9726
+ };
9727
+ id: string;
9728
+ legacyId: number;
9729
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9730
+ reviewSteps: {
9731
+ stageName: string;
9732
+ quorum: number;
9733
+ }[];
9734
+ currentStepIndex: number;
9735
+ expiresAt: Date;
9736
+ targetId: string | null;
9737
+ note: {
9738
+ title: string;
9739
+ content: string;
9740
+ } | null;
9741
+ reviews: {
9742
+ stepIndex: number;
9743
+ userId: string;
9744
+ groupName: string | null;
9745
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9746
+ createdAt: Date;
9747
+ updatedAt: Date;
9748
+ }[];
9749
+ createdAt: Date;
9750
+ updatedAt: Date;
9751
+ createdById: string;
9752
+ inflight?: {
9753
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9754
+ retryAfter: Date;
9755
+ } | undefined;
9756
+ } | {
9757
+ type: "TRADELINK_EDIT_EXCHANGE";
9758
+ data: {
9759
+ tradelinkId: string;
9760
+ groups: {
9761
+ quorum: number;
9762
+ userIds: string[];
9763
+ }[];
9764
+ whitelist: {
9765
+ name: string;
9766
+ currency: string;
9767
+ address: string;
9768
+ }[];
9769
+ };
9770
+ id: string;
9771
+ legacyId: number;
9772
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9773
+ reviewSteps: {
9774
+ stageName: string;
9775
+ quorum: number;
9776
+ }[];
9777
+ currentStepIndex: number;
9778
+ expiresAt: Date;
9779
+ targetId: string | null;
9780
+ note: {
9781
+ title: string;
9782
+ content: string;
9783
+ } | null;
9784
+ reviews: {
9785
+ stepIndex: number;
9786
+ userId: string;
9787
+ groupName: string | null;
9788
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9789
+ createdAt: Date;
9790
+ updatedAt: Date;
9791
+ }[];
9792
+ createdAt: Date;
9793
+ updatedAt: Date;
9794
+ createdById: string;
9795
+ inflight?: {
9796
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9797
+ retryAfter: Date;
9798
+ } | undefined;
9799
+ } | {
9800
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
9801
+ data: {
9802
+ tradelinkId: string;
9803
+ groups: {
9804
+ quorum: number;
9805
+ userIds: string[];
9806
+ }[];
9807
+ whitelist: {
9808
+ name: string;
9809
+ currency: string;
9810
+ address: string;
9811
+ }[];
9812
+ };
9813
+ id: string;
9814
+ legacyId: number;
9815
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9816
+ reviewSteps: {
9817
+ stageName: string;
9818
+ quorum: number;
9819
+ }[];
9820
+ currentStepIndex: number;
9821
+ expiresAt: Date;
9822
+ targetId: string | null;
9823
+ note: {
9824
+ title: string;
9825
+ content: string;
9826
+ } | null;
9827
+ reviews: {
9828
+ stepIndex: number;
9829
+ userId: string;
9830
+ groupName: string | null;
9831
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9832
+ createdAt: Date;
9833
+ updatedAt: Date;
9834
+ }[];
9835
+ createdAt: Date;
9836
+ updatedAt: Date;
9837
+ createdById: string;
9838
+ inflight?: {
9839
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9840
+ retryAfter: Date;
9841
+ } | undefined;
9842
+ } | {
9843
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
9844
+ data: {
9845
+ tradelinkId: string;
9846
+ groups: {
9847
+ quorum: number;
9848
+ userIds: string[];
9849
+ }[];
9850
+ whitelist: {
9851
+ name: string;
9852
+ currency: string;
9853
+ address: string;
9854
+ }[];
9855
+ };
9856
+ id: string;
9857
+ legacyId: number;
9858
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9859
+ reviewSteps: {
9860
+ stageName: string;
9861
+ quorum: number;
9862
+ }[];
9863
+ currentStepIndex: number;
9864
+ expiresAt: Date;
9865
+ targetId: string | null;
9866
+ note: {
9867
+ title: string;
9868
+ content: string;
9869
+ } | null;
9870
+ reviews: {
9871
+ stepIndex: number;
9872
+ userId: string;
9873
+ groupName: string | null;
9874
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9875
+ createdAt: Date;
9876
+ updatedAt: Date;
9877
+ }[];
9878
+ createdAt: Date;
9879
+ updatedAt: Date;
9880
+ createdById: string;
9881
+ inflight?: {
9882
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9883
+ retryAfter: Date;
9884
+ } | undefined;
9885
+ } | {
9886
+ type: "TRADELINK_ADJUST_PLEDGE";
9887
+ data: {
9888
+ accountId: string;
9889
+ exchangeId: string;
9890
+ amount: string;
9891
+ };
9892
+ id: string;
9893
+ legacyId: number;
9894
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9895
+ reviewSteps: {
9896
+ stageName: string;
9897
+ quorum: number;
9898
+ }[];
9899
+ currentStepIndex: number;
9900
+ expiresAt: Date;
9901
+ targetId: string | null;
9902
+ note: {
9903
+ title: string;
9904
+ content: string;
9905
+ } | null;
9906
+ reviews: {
9907
+ stepIndex: number;
9908
+ userId: string;
9909
+ groupName: string | null;
9910
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9911
+ createdAt: Date;
9912
+ updatedAt: Date;
9913
+ }[];
9914
+ createdAt: Date;
9915
+ updatedAt: Date;
9916
+ createdById: string;
9917
+ inflight?: {
9918
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9919
+ retryAfter: Date;
9920
+ } | undefined;
9921
+ } | {
9922
+ type: "TRADELINK_REPLEDGE";
9923
+ data: {
9924
+ accountId: string;
9925
+ exchangeId: string;
9926
+ amount: string;
9927
+ };
9928
+ id: string;
9929
+ legacyId: number;
9930
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
9931
+ reviewSteps: {
9932
+ stageName: string;
9933
+ quorum: number;
9934
+ }[];
9935
+ currentStepIndex: number;
9936
+ expiresAt: Date;
9937
+ targetId: string | null;
9938
+ note: {
9939
+ title: string;
9940
+ content: string;
9941
+ } | null;
9942
+ reviews: {
9943
+ stepIndex: number;
9944
+ userId: string;
9945
+ groupName: string | null;
9946
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
9947
+ createdAt: Date;
9948
+ updatedAt: Date;
9949
+ }[];
9950
+ createdAt: Date;
9951
+ updatedAt: Date;
9952
+ createdById: string;
9953
+ inflight?: {
9954
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
9955
+ retryAfter: Date;
9956
+ } | undefined;
9957
+ } | {
9958
+ type: "TRADELINK_CREATE_SETTLEMENT";
9959
+ data: {
9960
+ accountId: string;
9961
+ exchangeId: string;
9962
+ transaction: {
9963
+ amount: string;
9964
+ currency: string;
9965
+ maxFee: string | null;
9966
+ recipient: string;
9967
+ type: "BITCOIN_LIKE_SEND";
9968
+ feeStrategy: {
9969
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
9970
+ feePerByte?: string | null | undefined;
9971
+ };
9972
+ } | {
9973
+ amount: string;
9974
+ currency: string;
9975
+ recipient: string;
9976
+ executeBeforeSeconds?: number | undefined;
9977
+ reason: string | null;
9978
+ type: "CANTON_LIKE_SEND";
9979
+ } | {
9980
+ amount: string;
9981
+ currency: string;
9982
+ maxFee: string | null;
9983
+ recipient: string;
9984
+ type: "CARDANO_LIKE_SEND";
9985
+ feeStrategy: {
9986
+ type: "FAST" | "NORMAL" | "SLOW";
9987
+ };
9988
+ } | {
9989
+ amount: string;
9990
+ currency: string;
9991
+ maxFee: string | null;
9992
+ recipient: string;
9993
+ replacingTxHash?: string | undefined;
9994
+ type: "ETHEREUM_LIKE_SEND";
9995
+ feeStrategy: {
9996
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
9997
+ gasPrice: string;
9998
+ gasLimit: string;
9999
+ } | {
10000
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10001
+ maxPriorityFeePerGas: string;
10002
+ maxFeePerGas: string;
10003
+ gasLimit: string;
10004
+ };
10005
+ } | {
10006
+ amount: string;
10007
+ currency: string;
10008
+ maxFee: string | null;
10009
+ recipient: string;
10010
+ type: "HEDERA_LIKE_SEND";
10011
+ feeStrategy: {
10012
+ type: "FAST" | "NORMAL" | "SLOW";
10013
+ };
10014
+ } | {
10015
+ amount: string;
10016
+ currency: string;
10017
+ maxFee: string | null;
10018
+ recipient: string;
10019
+ type: "POLKADOT_LIKE_SEND";
10020
+ } | {
10021
+ amount: string;
10022
+ currency: string;
10023
+ maxFee: string | null;
10024
+ recipient: string;
10025
+ type: "RIPPLE_LIKE_SEND";
10026
+ destinationTag: string | null;
10027
+ feeStrategy: {
10028
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10029
+ };
10030
+ } | {
10031
+ amount: string;
10032
+ currency: string;
10033
+ maxFee: string | null;
10034
+ recipient: string;
10035
+ type: "SOLANA_LIKE_SEND";
10036
+ feeStrategy: {
10037
+ type: "FAST" | "NORMAL" | "SLOW";
10038
+ };
10039
+ } | {
10040
+ amount: string;
10041
+ currency: string;
10042
+ maxFee: string | null;
10043
+ recipient: string;
10044
+ type: "STELLAR_LIKE_SEND";
10045
+ memo: {
10046
+ type: "MEMO_TEXT";
10047
+ value: string;
10048
+ } | {
10049
+ type: "MEMO_ID";
10050
+ value: string;
10051
+ } | {
10052
+ type: "MEMO_HASH";
10053
+ value: string;
10054
+ } | {
10055
+ type: "MEMO_RETURN";
10056
+ value: string;
10057
+ } | null;
10058
+ feeStrategy: {
10059
+ type: "FAST" | "NORMAL" | "SLOW";
10060
+ };
10061
+ } | {
10062
+ amount: string;
10063
+ currency: string;
10064
+ maxFee: string | null;
10065
+ recipient: string;
10066
+ type: "SUI_LIKE_SEND";
10067
+ feeStrategy: {
10068
+ type: "FAST" | "NORMAL" | "SLOW";
10069
+ };
10070
+ } | {
10071
+ amount: string;
10072
+ currency: string;
10073
+ maxFee: string | null;
10074
+ recipient: string;
10075
+ type: "TEZOS_LIKE_SEND";
10076
+ feeStrategy: {
10077
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10078
+ };
10079
+ };
10080
+ };
10081
+ id: string;
10082
+ legacyId: number;
10083
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
10084
+ reviewSteps: {
10085
+ stageName: string;
10086
+ quorum: number;
10087
+ }[];
10088
+ currentStepIndex: number;
10089
+ expiresAt: Date;
10090
+ targetId: string | null;
10091
+ note: {
10092
+ title: string;
10093
+ content: string;
10094
+ } | null;
10095
+ reviews: {
10096
+ stepIndex: number;
10097
+ userId: string;
10098
+ groupName: string | null;
10099
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
10100
+ createdAt: Date;
10101
+ updatedAt: Date;
10102
+ }[];
10103
+ createdAt: Date;
10104
+ updatedAt: Date;
10105
+ createdById: string;
10106
+ inflight?: {
10107
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
10108
+ retryAfter: Date;
10109
+ } | undefined;
10110
+ } | {
10111
+ type: "TRADELINK_FORCE_UNPLEDGE";
10112
+ data: {
10113
+ accountId: string;
10114
+ exchangeId: string;
10115
+ };
10116
+ id: string;
10117
+ legacyId: number;
10118
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
10119
+ reviewSteps: {
10120
+ stageName: string;
10121
+ quorum: number;
10122
+ }[];
10123
+ currentStepIndex: number;
10124
+ expiresAt: Date;
10125
+ targetId: string | null;
10126
+ note: {
10127
+ title: string;
10128
+ content: string;
10129
+ } | null;
10130
+ reviews: {
10131
+ stepIndex: number;
10132
+ userId: string;
10133
+ groupName: string | null;
10134
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
10135
+ createdAt: Date;
10136
+ updatedAt: Date;
10137
+ }[];
10138
+ createdAt: Date;
10139
+ updatedAt: Date;
10140
+ createdById: string;
10141
+ inflight?: {
10142
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
10143
+ retryAfter: Date;
10144
+ } | undefined;
10145
+ } | {
10146
+ type: "TRADELINK_WITHDRAW";
10147
+ data: {
10148
+ accountId: string;
10149
+ transaction: {
10150
+ amount: string;
10151
+ currency: string;
10152
+ maxFee: string | null;
10153
+ recipient: string;
10154
+ type: "BITCOIN_LIKE_SEND";
10155
+ feeStrategy: {
10156
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10157
+ feePerByte?: string | null | undefined;
10158
+ };
10159
+ } | {
10160
+ amount: string;
10161
+ currency: string;
10162
+ recipient: string;
10163
+ executeBeforeSeconds?: number | undefined;
10164
+ reason: string | null;
10165
+ type: "CANTON_LIKE_SEND";
10166
+ } | {
10167
+ amount: string;
10168
+ currency: string;
10169
+ maxFee: string | null;
10170
+ recipient: string;
10171
+ type: "CARDANO_LIKE_SEND";
10172
+ feeStrategy: {
10173
+ type: "FAST" | "NORMAL" | "SLOW";
10174
+ };
10175
+ } | {
10176
+ amount: string;
10177
+ currency: string;
10178
+ maxFee: string | null;
10179
+ recipient: string;
10180
+ replacingTxHash?: string | undefined;
10181
+ type: "ETHEREUM_LIKE_SEND";
10182
+ feeStrategy: {
10183
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10184
+ gasPrice: string;
10185
+ gasLimit: string;
10186
+ } | {
10187
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10188
+ maxPriorityFeePerGas: string;
10189
+ maxFeePerGas: string;
10190
+ gasLimit: string;
10191
+ };
10192
+ } | {
10193
+ amount: string;
10194
+ currency: string;
10195
+ maxFee: string | null;
10196
+ recipient: string;
10197
+ type: "HEDERA_LIKE_SEND";
10198
+ feeStrategy: {
10199
+ type: "FAST" | "NORMAL" | "SLOW";
10200
+ };
10201
+ } | {
10202
+ amount: string;
10203
+ currency: string;
10204
+ maxFee: string | null;
10205
+ recipient: string;
10206
+ type: "POLKADOT_LIKE_SEND";
10207
+ } | {
10208
+ amount: string;
10209
+ currency: string;
10210
+ maxFee: string | null;
10211
+ recipient: string;
10212
+ type: "RIPPLE_LIKE_SEND";
10213
+ destinationTag: string | null;
10214
+ feeStrategy: {
10215
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10216
+ };
10217
+ } | {
10218
+ amount: string;
10219
+ currency: string;
10220
+ maxFee: string | null;
10221
+ recipient: string;
10222
+ type: "SOLANA_LIKE_SEND";
10223
+ feeStrategy: {
10224
+ type: "FAST" | "NORMAL" | "SLOW";
10225
+ };
10226
+ } | {
10227
+ amount: string;
10228
+ currency: string;
10229
+ maxFee: string | null;
10230
+ recipient: string;
10231
+ type: "STELLAR_LIKE_SEND";
10232
+ memo: {
10233
+ type: "MEMO_TEXT";
10234
+ value: string;
10235
+ } | {
10236
+ type: "MEMO_ID";
10237
+ value: string;
10238
+ } | {
10239
+ type: "MEMO_HASH";
10240
+ value: string;
10241
+ } | {
10242
+ type: "MEMO_RETURN";
10243
+ value: string;
10244
+ } | null;
10245
+ feeStrategy: {
10246
+ type: "FAST" | "NORMAL" | "SLOW";
10247
+ };
10248
+ } | {
10249
+ amount: string;
10250
+ currency: string;
10251
+ maxFee: string | null;
10252
+ recipient: string;
10253
+ type: "SUI_LIKE_SEND";
10254
+ feeStrategy: {
10255
+ type: "FAST" | "NORMAL" | "SLOW";
10256
+ };
10257
+ } | {
10258
+ amount: string;
10259
+ currency: string;
10260
+ maxFee: string | null;
10261
+ recipient: string;
10262
+ type: "TEZOS_LIKE_SEND";
10263
+ feeStrategy: {
10264
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10265
+ };
10266
+ };
10267
+ };
10268
+ id: string;
10269
+ legacyId: number;
10270
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
10271
+ reviewSteps: {
10272
+ stageName: string;
10273
+ quorum: number;
10274
+ }[];
10275
+ currentStepIndex: number;
10276
+ expiresAt: Date;
10277
+ targetId: string | null;
10278
+ note: {
10279
+ title: string;
10280
+ content: string;
10281
+ } | null;
10282
+ reviews: {
10283
+ stepIndex: number;
10284
+ userId: string;
10285
+ groupName: string | null;
10286
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
10287
+ createdAt: Date;
10288
+ updatedAt: Date;
10289
+ }[];
10290
+ createdAt: Date;
10291
+ updatedAt: Date;
10292
+ createdById: string;
10293
+ inflight?: {
10294
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
10295
+ retryAfter: Date;
10296
+ } | undefined;
10297
+ } | {
10298
+ type: "TRADELINK_ARBITRATE";
10299
+ data: {
10300
+ accountId: string;
10301
+ transaction: {
10302
+ amount: string;
10303
+ currency: string;
10304
+ maxFee: string | null;
10305
+ recipient: string;
10306
+ type: "BITCOIN_LIKE_SEND";
10307
+ feeStrategy: {
10308
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10309
+ feePerByte?: string | null | undefined;
10310
+ };
10311
+ } | {
10312
+ amount: string;
10313
+ currency: string;
10314
+ recipient: string;
10315
+ executeBeforeSeconds?: number | undefined;
10316
+ reason: string | null;
10317
+ type: "CANTON_LIKE_SEND";
10318
+ } | {
10319
+ amount: string;
10320
+ currency: string;
10321
+ maxFee: string | null;
10322
+ recipient: string;
10323
+ type: "CARDANO_LIKE_SEND";
10324
+ feeStrategy: {
10325
+ type: "FAST" | "NORMAL" | "SLOW";
10326
+ };
10327
+ } | {
10328
+ amount: string;
10329
+ currency: string;
10330
+ maxFee: string | null;
10331
+ recipient: string;
10332
+ replacingTxHash?: string | undefined;
10333
+ type: "ETHEREUM_LIKE_SEND";
10334
+ feeStrategy: {
10335
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10336
+ gasPrice: string;
10337
+ gasLimit: string;
10338
+ } | {
10339
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10340
+ maxPriorityFeePerGas: string;
10341
+ maxFeePerGas: string;
10342
+ gasLimit: string;
10343
+ };
10344
+ } | {
10345
+ amount: string;
10346
+ currency: string;
10347
+ maxFee: string | null;
10348
+ recipient: string;
10349
+ type: "HEDERA_LIKE_SEND";
10350
+ feeStrategy: {
10351
+ type: "FAST" | "NORMAL" | "SLOW";
10352
+ };
10353
+ } | {
10354
+ amount: string;
10355
+ currency: string;
10356
+ maxFee: string | null;
10357
+ recipient: string;
10358
+ type: "POLKADOT_LIKE_SEND";
10359
+ } | {
10360
+ amount: string;
10361
+ currency: string;
10362
+ maxFee: string | null;
10363
+ recipient: string;
10364
+ type: "RIPPLE_LIKE_SEND";
10365
+ destinationTag: string | null;
10366
+ feeStrategy: {
10367
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10368
+ };
10369
+ } | {
10370
+ amount: string;
10371
+ currency: string;
10372
+ maxFee: string | null;
10373
+ recipient: string;
10374
+ type: "SOLANA_LIKE_SEND";
10375
+ feeStrategy: {
10376
+ type: "FAST" | "NORMAL" | "SLOW";
10377
+ };
10378
+ } | {
10379
+ amount: string;
10380
+ currency: string;
10381
+ maxFee: string | null;
10382
+ recipient: string;
10383
+ type: "STELLAR_LIKE_SEND";
10384
+ memo: {
10385
+ type: "MEMO_TEXT";
10386
+ value: string;
10387
+ } | {
10388
+ type: "MEMO_ID";
10389
+ value: string;
10390
+ } | {
10391
+ type: "MEMO_HASH";
10392
+ value: string;
10393
+ } | {
10394
+ type: "MEMO_RETURN";
10395
+ value: string;
10396
+ } | null;
10397
+ feeStrategy: {
10398
+ type: "FAST" | "NORMAL" | "SLOW";
10399
+ };
10400
+ } | {
10401
+ amount: string;
10402
+ currency: string;
10403
+ maxFee: string | null;
10404
+ recipient: string;
10405
+ type: "SUI_LIKE_SEND";
10406
+ feeStrategy: {
10407
+ type: "FAST" | "NORMAL" | "SLOW";
10408
+ };
10409
+ } | {
10410
+ amount: string;
10411
+ currency: string;
10412
+ maxFee: string | null;
10413
+ recipient: string;
10414
+ type: "TEZOS_LIKE_SEND";
10415
+ feeStrategy: {
10416
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
10417
+ };
10418
+ };
10419
+ };
10420
+ id: string;
10421
+ legacyId: number;
10422
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
10423
+ reviewSteps: {
10424
+ stageName: string;
10425
+ quorum: number;
10426
+ }[];
10427
+ currentStepIndex: number;
10428
+ expiresAt: Date;
10429
+ targetId: string | null;
10430
+ note: {
10431
+ title: string;
10432
+ content: string;
10433
+ } | null;
10434
+ reviews: {
10435
+ stepIndex: number;
10436
+ userId: string;
10437
+ groupName: string | null;
10438
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
10439
+ createdAt: Date;
10440
+ updatedAt: Date;
10441
+ }[];
10442
+ createdAt: Date;
10443
+ updatedAt: Date;
10444
+ createdById: string;
10445
+ inflight?: {
10446
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
10447
+ retryAfter: Date;
10448
+ } | undefined;
10449
+ }) & {
10450
+ workspaceName: string;
10451
+ };
10452
+ meta: {
10453
+ [x: string]: unknown;
10454
+ } & {
10455
+ openapi?: {
10456
+ enabled?: boolean;
10457
+ method: import("trpc-to-openapi").OpenApiMethod;
10458
+ path: `/${string}`;
10459
+ operationId?: string;
10460
+ summary?: string;
10461
+ description?: string;
10462
+ protect?: boolean;
10463
+ tags?: string[];
10464
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10465
+ deprecated?: boolean;
10466
+ requestHeaders?: import("zod").ZodObject;
10467
+ responseHeaders?: import("zod").ZodObject;
10468
+ successDescription?: string;
10469
+ errorResponses?: number[] | Record<number, string>;
10470
+ };
10471
+ } & RateLimitMetricsMeta;
10472
+ }>;
10473
+ restart: import("@trpc/server").TRPCMutationProcedure<{
10474
+ input: {
10475
+ id: string;
10476
+ };
10477
+ output: void;
10478
+ meta: {
10479
+ [x: string]: unknown;
10480
+ } & {
10481
+ openapi?: {
10482
+ enabled?: boolean;
10483
+ method: import("trpc-to-openapi").OpenApiMethod;
10484
+ path: `/${string}`;
10485
+ operationId?: string;
10486
+ summary?: string;
10487
+ description?: string;
10488
+ protect?: boolean;
10489
+ tags?: string[];
10490
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10491
+ deprecated?: boolean;
10492
+ requestHeaders?: import("zod").ZodObject;
10493
+ responseHeaders?: import("zod").ZodObject;
10494
+ successDescription?: string;
10495
+ errorResponses?: number[] | Record<number, string>;
10496
+ };
10497
+ } & RateLimitMetricsMeta;
10498
+ }>;
10499
+ }>>;
10500
+ auditLogs: import("@trpc/server").TRPCBuiltRouter<{
10501
+ ctx: {
10502
+ req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
10503
+ res?: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> | undefined;
10504
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
10505
+ debugAuthToken?: string;
10506
+ rootAuthToken?: string;
10507
+ prisma: ExtendedPrismaClient;
10508
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
10509
+ user: {
10510
+ id: string;
10511
+ workspaceName: string;
10512
+ name: string;
10513
+ authUserId: string | null;
10514
+ pubKey: string;
10515
+ deviceType: UserDeviceType;
10516
+ deviceUserId: string | null;
10517
+ hsmId: string | null;
10518
+ u2fKeyHandle: string | null;
7230
10519
  u2fPubKey: string | null;
7231
10520
  legacyViewAll: boolean;
7232
10521
  role: UserRole;
@@ -7311,6 +10600,38 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7311
10600
  };
7312
10601
  } & RateLimitMetricsMeta;
7313
10602
  }>;
10603
+ findById: import("@trpc/server").TRPCQueryProcedure<{
10604
+ input: {
10605
+ id: string;
10606
+ };
10607
+ output: {
10608
+ id: string;
10609
+ type: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "BACKOFFICE_USER_IMPERSONATED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED";
10610
+ workspaceName: string | null;
10611
+ payload: unknown;
10612
+ createdAt: Date;
10613
+ };
10614
+ meta: {
10615
+ [x: string]: unknown;
10616
+ } & {
10617
+ openapi?: {
10618
+ enabled?: boolean;
10619
+ method: import("trpc-to-openapi").OpenApiMethod;
10620
+ path: `/${string}`;
10621
+ operationId?: string;
10622
+ summary?: string;
10623
+ description?: string;
10624
+ protect?: boolean;
10625
+ tags?: string[];
10626
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10627
+ deprecated?: boolean;
10628
+ requestHeaders?: import("zod").ZodObject;
10629
+ responseHeaders?: import("zod").ZodObject;
10630
+ successDescription?: string;
10631
+ errorResponses?: number[] | Record<number, string>;
10632
+ };
10633
+ } & RateLimitMetricsMeta;
10634
+ }>;
7314
10635
  }>>;
7315
10636
  auditTrail: import("@trpc/server").TRPCBuiltRouter<{
7316
10637
  ctx: {