@ledgerhq/revault-sdk 0.24.1 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/bake.d.ts CHANGED
@@ -30,7 +30,7 @@ declare const zManifestGroup: z.ZodObject<{
30
30
  type ManifestGroup = z.infer<typeof zManifestGroup>;
31
31
  declare const zManifestWhitelist: z.ZodObject<{
32
32
  name: z.ZodString;
33
- description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
+ description: z.ZodOptional<z.ZodString>;
34
34
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
35
35
  TRANSACTION: "TRANSACTION";
36
36
  SMART_CONTRACT: "SMART_CONTRACT";
@@ -60,8 +60,8 @@ declare const zManifestGovernanceRule: z.ZodObject<{
60
60
  group: z.ZodString;
61
61
  }, z.core.$strict>]>>;
62
62
  threshold: z.ZodOptional<z.ZodObject<{
63
- min: z.ZodString;
64
- max: z.ZodString;
63
+ min: z.ZodNullable<z.ZodString>;
64
+ max: z.ZodNullable<z.ZodString>;
65
65
  }, z.core.$strip>>;
66
66
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
67
  }, z.core.$strict>;
@@ -86,8 +86,8 @@ declare const zManifestPolicy: z.ZodObject<{
86
86
  group: z.ZodString;
87
87
  }, z.core.$strict>]>>;
88
88
  threshold: z.ZodOptional<z.ZodObject<{
89
- min: z.ZodString;
90
- max: z.ZodString;
89
+ min: z.ZodNullable<z.ZodString>;
90
+ max: z.ZodNullable<z.ZodString>;
91
91
  }, z.core.$strip>>;
92
92
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
93
  }, z.core.$strict>>;
@@ -126,8 +126,8 @@ declare const zManifestAccount: z.ZodObject<{
126
126
  group: z.ZodString;
127
127
  }, z.core.$strict>]>>;
128
128
  threshold: z.ZodOptional<z.ZodObject<{
129
- min: z.ZodString;
130
- max: z.ZodString;
129
+ min: z.ZodNullable<z.ZodString>;
130
+ max: z.ZodNullable<z.ZodString>;
131
131
  }, z.core.$strip>>;
132
132
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
133
  }, z.core.$strict>>;
@@ -154,6 +154,12 @@ declare const zManifestAccount: z.ZodObject<{
154
154
  }, z.core.$strict>], "type">;
155
155
  }, z.core.$strict>;
156
156
  type ManifestAccount = z.infer<typeof zManifestAccount>;
157
+ declare const zManifestEntity: z.ZodObject<{
158
+ name: z.ZodString;
159
+ accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ members: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ }, z.core.$strict>;
162
+ type ManifestEntity = z.infer<typeof zManifestEntity>;
157
163
  declare const zManifestHederaData: z.ZodObject<{
158
164
  index: z.ZodNumber;
159
165
  onChainId: z.ZodString;
@@ -309,7 +315,7 @@ declare const zManifestWorkspace: z.ZodObject<{
309
315
  }, z.core.$strict>>>;
310
316
  whitelists: z.ZodOptional<z.ZodArray<z.ZodObject<{
311
317
  name: z.ZodString;
312
- description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
318
+ description: z.ZodOptional<z.ZodString>;
313
319
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
314
320
  TRANSACTION: "TRANSACTION";
315
321
  SMART_CONTRACT: "SMART_CONTRACT";
@@ -341,8 +347,8 @@ declare const zManifestWorkspace: z.ZodObject<{
341
347
  group: z.ZodString;
342
348
  }, z.core.$strict>]>>;
343
349
  threshold: z.ZodOptional<z.ZodObject<{
344
- min: z.ZodString;
345
- max: z.ZodString;
350
+ min: z.ZodNullable<z.ZodString>;
351
+ max: z.ZodNullable<z.ZodString>;
346
352
  }, z.core.$strip>>;
347
353
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
354
  }, z.core.$strict>>;
@@ -372,8 +378,8 @@ declare const zManifestWorkspace: z.ZodObject<{
372
378
  group: z.ZodString;
373
379
  }, z.core.$strict>]>>;
374
380
  threshold: z.ZodOptional<z.ZodObject<{
375
- min: z.ZodString;
376
- max: z.ZodString;
381
+ min: z.ZodNullable<z.ZodString>;
382
+ max: z.ZodNullable<z.ZodString>;
377
383
  }, z.core.$strip>>;
378
384
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
379
385
  }, z.core.$strict>>;
@@ -399,6 +405,11 @@ declare const zManifestWorkspace: z.ZodObject<{
399
405
  policy: z.ZodString;
400
406
  }, z.core.$strict>], "type">;
401
407
  }, z.core.$strict>>>;
408
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
409
+ name: z.ZodString;
410
+ accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ members: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
+ }, z.core.$strict>>>;
402
413
  hederaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
403
414
  index: z.ZodNumber;
404
415
  onChainId: z.ZodString;
@@ -520,7 +531,7 @@ declare const zManifest: z.ZodObject<{
520
531
  }, z.core.$strict>>>;
521
532
  whitelists: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
533
  name: z.ZodString;
523
- description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
534
+ description: z.ZodOptional<z.ZodString>;
524
535
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
525
536
  TRANSACTION: "TRANSACTION";
526
537
  SMART_CONTRACT: "SMART_CONTRACT";
@@ -552,8 +563,8 @@ declare const zManifest: z.ZodObject<{
552
563
  group: z.ZodString;
553
564
  }, z.core.$strict>]>>;
554
565
  threshold: z.ZodOptional<z.ZodObject<{
555
- min: z.ZodString;
556
- max: z.ZodString;
566
+ min: z.ZodNullable<z.ZodString>;
567
+ max: z.ZodNullable<z.ZodString>;
557
568
  }, z.core.$strip>>;
558
569
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
559
570
  }, z.core.$strict>>;
@@ -583,8 +594,8 @@ declare const zManifest: z.ZodObject<{
583
594
  group: z.ZodString;
584
595
  }, z.core.$strict>]>>;
585
596
  threshold: z.ZodOptional<z.ZodObject<{
586
- min: z.ZodString;
587
- max: z.ZodString;
597
+ min: z.ZodNullable<z.ZodString>;
598
+ max: z.ZodNullable<z.ZodString>;
588
599
  }, z.core.$strip>>;
589
600
  whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
601
  }, z.core.$strict>>;
@@ -610,6 +621,11 @@ declare const zManifest: z.ZodObject<{
610
621
  policy: z.ZodString;
611
622
  }, z.core.$strict>], "type">;
612
623
  }, z.core.$strict>>>;
624
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
625
+ name: z.ZodString;
626
+ accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
627
+ members: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
+ }, z.core.$strict>>>;
613
629
  hederaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
614
630
  index: z.ZodNumber;
615
631
  onChainId: z.ZodString;
@@ -637,9 +653,15 @@ type Options = {
637
653
  };
638
654
  declare function bakePledgeAdjustment(options: Options, logger: Logger): Promise<void>;
639
655
 
656
+ type RecipeOptions = {
657
+ engine: Engine;
658
+ workspaceName: string;
659
+ };
660
+ declare function recipeManifest(options: RecipeOptions, logger: Logger): Promise<Manifest>;
661
+
640
662
  type CreateRequestInput = RouterInputs["requests"]["create"]["request"];
641
663
  declare function createAndApproveRequest(input: CreateRequestInput, approvers: Engine<WithWorkspace & WithDevice & WithPsdAuth>[], logger: Logger): Promise<VaultRequestResponse>;
642
664
 
643
665
  declare function bakeManifest(options: BakeOptions, logger: Logger): Promise<void>;
644
666
 
645
- export { type BakeOptions, type CreateRequestInput, type Manifest, type ManifestAccount, type ManifestApiUser, type ManifestGovernanceRule, type ManifestGroup, type ManifestHederaData, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestRawSigningGovernanceRule, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, type ManifestWorkspaceRule, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
667
+ export { type BakeOptions, type CreateRequestInput, type Manifest, type ManifestAccount, type ManifestApiUser, type ManifestEntity, type ManifestGovernanceRule, type ManifestGroup, type ManifestHederaData, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestRawSigningGovernanceRule, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, type ManifestWorkspaceRule, type RecipeOptions, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, recipeManifest, zManifest, zManifestPolicy };