@ledgerhq/revault-sdk 0.13.1 → 0.16.1

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.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Logger } from './index.cjs';
2
2
  import z from 'zod';
3
- import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-DVIS-vF0.cjs';
3
+ import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-BxfmwEOw.cjs';
4
4
  import { VaultRequestResponse } from '@ledgerhq/revault-api';
5
- import './types-CsvE9Mlb.cjs';
5
+ import './types-DJfbanPz.cjs';
6
6
  import '@trpc/client';
7
7
  import '@trpc/server';
8
8
 
@@ -12,6 +12,23 @@ type BakeOptions = {
12
12
  workspaceName?: string;
13
13
  rootAuthToken?: string;
14
14
  };
15
+ declare const zManifestApiUser: z.ZodObject<{
16
+ name: z.ZodString;
17
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
18
+ pubKey: z.ZodString;
19
+ viewAll: z.ZodBoolean;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ role: "ADMIN" | "OPERATOR";
23
+ pubKey: string;
24
+ viewAll: boolean;
25
+ }, {
26
+ name: string;
27
+ pubKey: string;
28
+ viewAll: boolean;
29
+ role?: "ADMIN" | "OPERATOR" | undefined;
30
+ }>;
31
+ type ManifestApiUser = z.infer<typeof zManifestApiUser>;
15
32
  declare const zManifestGroup: z.ZodObject<{
16
33
  name: z.ZodString;
17
34
  members: z.ZodArray<z.ZodNumber, "many">;
@@ -180,6 +197,7 @@ type ManifestPolicy = z.infer<typeof zManifestPolicy>;
180
197
  declare const zManifestAccount: z.ZodObject<{
181
198
  name: z.ZodString;
182
199
  currency: z.ZodString;
200
+ index: z.ZodOptional<z.ZodNumber>;
183
201
  contractAddress: z.ZodOptional<z.ZodString>;
184
202
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
185
203
  type: z.ZodLiteral<"CLASSIC">;
@@ -304,6 +322,7 @@ declare const zManifestAccount: z.ZodObject<{
304
322
  }[];
305
323
  assetManager: string;
306
324
  };
325
+ index?: number | undefined;
307
326
  contractAddress?: string | undefined;
308
327
  }, {
309
328
  name: string;
@@ -329,6 +348,7 @@ declare const zManifestAccount: z.ZodObject<{
329
348
  }[];
330
349
  assetManager: string;
331
350
  };
351
+ index?: number | undefined;
332
352
  contractAddress?: string | undefined;
333
353
  }>;
334
354
  type ManifestAccount = z.infer<typeof zManifestAccount>;
@@ -939,12 +959,40 @@ declare const zManifestWorkspace: z.ZodObject<{
939
959
  users: z.ZodOptional<z.ZodObject<{
940
960
  admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
941
961
  operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
962
+ api: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ name: z.ZodString;
964
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
965
+ pubKey: z.ZodString;
966
+ viewAll: z.ZodBoolean;
967
+ }, "strip", z.ZodTypeAny, {
968
+ name: string;
969
+ role: "ADMIN" | "OPERATOR";
970
+ pubKey: string;
971
+ viewAll: boolean;
972
+ }, {
973
+ name: string;
974
+ pubKey: string;
975
+ viewAll: boolean;
976
+ role?: "ADMIN" | "OPERATOR" | undefined;
977
+ }>, "many">>;
942
978
  }, "strip", z.ZodTypeAny, {
943
979
  admins?: number[] | undefined;
944
980
  operators?: number[] | undefined;
981
+ api?: {
982
+ name: string;
983
+ role: "ADMIN" | "OPERATOR";
984
+ pubKey: string;
985
+ viewAll: boolean;
986
+ }[] | undefined;
945
987
  }, {
946
988
  admins?: number[] | undefined;
947
989
  operators?: number[] | undefined;
990
+ api?: {
991
+ name: string;
992
+ pubKey: string;
993
+ viewAll: boolean;
994
+ role?: "ADMIN" | "OPERATOR" | undefined;
995
+ }[] | undefined;
948
996
  }>>;
949
997
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
950
998
  name: z.ZodString;
@@ -1070,6 +1118,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1070
1118
  accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1071
1119
  name: z.ZodString;
1072
1120
  currency: z.ZodString;
1121
+ index: z.ZodOptional<z.ZodNumber>;
1073
1122
  contractAddress: z.ZodOptional<z.ZodString>;
1074
1123
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1075
1124
  type: z.ZodLiteral<"CLASSIC">;
@@ -1194,6 +1243,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1194
1243
  }[];
1195
1244
  assetManager: string;
1196
1245
  };
1246
+ index?: number | undefined;
1197
1247
  contractAddress?: string | undefined;
1198
1248
  }, {
1199
1249
  name: string;
@@ -1219,6 +1269,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1219
1269
  }[];
1220
1270
  assetManager: string;
1221
1271
  };
1272
+ index?: number | undefined;
1222
1273
  contractAddress?: string | undefined;
1223
1274
  }>, "many">>;
1224
1275
  pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1287,6 +1338,12 @@ declare const zManifestWorkspace: z.ZodObject<{
1287
1338
  users?: {
1288
1339
  admins?: number[] | undefined;
1289
1340
  operators?: number[] | undefined;
1341
+ api?: {
1342
+ name: string;
1343
+ role: "ADMIN" | "OPERATOR";
1344
+ pubKey: string;
1345
+ viewAll: boolean;
1346
+ }[] | undefined;
1290
1347
  } | undefined;
1291
1348
  whitelists?: {
1292
1349
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -1337,6 +1394,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1337
1394
  }[];
1338
1395
  assetManager: string;
1339
1396
  };
1397
+ index?: number | undefined;
1340
1398
  contractAddress?: string | undefined;
1341
1399
  }[] | undefined;
1342
1400
  pledges?: {
@@ -1397,6 +1455,12 @@ declare const zManifestWorkspace: z.ZodObject<{
1397
1455
  users?: {
1398
1456
  admins?: number[] | undefined;
1399
1457
  operators?: number[] | undefined;
1458
+ api?: {
1459
+ name: string;
1460
+ pubKey: string;
1461
+ viewAll: boolean;
1462
+ role?: "ADMIN" | "OPERATOR" | undefined;
1463
+ }[] | undefined;
1400
1464
  } | undefined;
1401
1465
  whitelists?: {
1402
1466
  name: string;
@@ -1447,6 +1511,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1447
1511
  }[];
1448
1512
  assetManager: string;
1449
1513
  };
1514
+ index?: number | undefined;
1450
1515
  contractAddress?: string | undefined;
1451
1516
  }[] | undefined;
1452
1517
  pledges?: {
@@ -1866,12 +1931,40 @@ declare const zManifest: z.ZodObject<{
1866
1931
  users: z.ZodOptional<z.ZodObject<{
1867
1932
  admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1868
1933
  operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1934
+ api: z.ZodOptional<z.ZodArray<z.ZodObject<{
1935
+ name: z.ZodString;
1936
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
1937
+ pubKey: z.ZodString;
1938
+ viewAll: z.ZodBoolean;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ name: string;
1941
+ role: "ADMIN" | "OPERATOR";
1942
+ pubKey: string;
1943
+ viewAll: boolean;
1944
+ }, {
1945
+ name: string;
1946
+ pubKey: string;
1947
+ viewAll: boolean;
1948
+ role?: "ADMIN" | "OPERATOR" | undefined;
1949
+ }>, "many">>;
1869
1950
  }, "strip", z.ZodTypeAny, {
1870
1951
  admins?: number[] | undefined;
1871
1952
  operators?: number[] | undefined;
1953
+ api?: {
1954
+ name: string;
1955
+ role: "ADMIN" | "OPERATOR";
1956
+ pubKey: string;
1957
+ viewAll: boolean;
1958
+ }[] | undefined;
1872
1959
  }, {
1873
1960
  admins?: number[] | undefined;
1874
1961
  operators?: number[] | undefined;
1962
+ api?: {
1963
+ name: string;
1964
+ pubKey: string;
1965
+ viewAll: boolean;
1966
+ role?: "ADMIN" | "OPERATOR" | undefined;
1967
+ }[] | undefined;
1875
1968
  }>>;
1876
1969
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
1970
  name: z.ZodString;
@@ -1997,6 +2090,7 @@ declare const zManifest: z.ZodObject<{
1997
2090
  accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1998
2091
  name: z.ZodString;
1999
2092
  currency: z.ZodString;
2093
+ index: z.ZodOptional<z.ZodNumber>;
2000
2094
  contractAddress: z.ZodOptional<z.ZodString>;
2001
2095
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2002
2096
  type: z.ZodLiteral<"CLASSIC">;
@@ -2121,6 +2215,7 @@ declare const zManifest: z.ZodObject<{
2121
2215
  }[];
2122
2216
  assetManager: string;
2123
2217
  };
2218
+ index?: number | undefined;
2124
2219
  contractAddress?: string | undefined;
2125
2220
  }, {
2126
2221
  name: string;
@@ -2146,6 +2241,7 @@ declare const zManifest: z.ZodObject<{
2146
2241
  }[];
2147
2242
  assetManager: string;
2148
2243
  };
2244
+ index?: number | undefined;
2149
2245
  contractAddress?: string | undefined;
2150
2246
  }>, "many">>;
2151
2247
  pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2214,6 +2310,12 @@ declare const zManifest: z.ZodObject<{
2214
2310
  users?: {
2215
2311
  admins?: number[] | undefined;
2216
2312
  operators?: number[] | undefined;
2313
+ api?: {
2314
+ name: string;
2315
+ role: "ADMIN" | "OPERATOR";
2316
+ pubKey: string;
2317
+ viewAll: boolean;
2318
+ }[] | undefined;
2217
2319
  } | undefined;
2218
2320
  whitelists?: {
2219
2321
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -2264,6 +2366,7 @@ declare const zManifest: z.ZodObject<{
2264
2366
  }[];
2265
2367
  assetManager: string;
2266
2368
  };
2369
+ index?: number | undefined;
2267
2370
  contractAddress?: string | undefined;
2268
2371
  }[] | undefined;
2269
2372
  pledges?: {
@@ -2324,6 +2427,12 @@ declare const zManifest: z.ZodObject<{
2324
2427
  users?: {
2325
2428
  admins?: number[] | undefined;
2326
2429
  operators?: number[] | undefined;
2430
+ api?: {
2431
+ name: string;
2432
+ pubKey: string;
2433
+ viewAll: boolean;
2434
+ role?: "ADMIN" | "OPERATOR" | undefined;
2435
+ }[] | undefined;
2327
2436
  } | undefined;
2328
2437
  whitelists?: {
2329
2438
  name: string;
@@ -2374,6 +2483,7 @@ declare const zManifest: z.ZodObject<{
2374
2483
  }[];
2375
2484
  assetManager: string;
2376
2485
  };
2486
+ index?: number | undefined;
2377
2487
  contractAddress?: string | undefined;
2378
2488
  }[] | undefined;
2379
2489
  pledges?: {
@@ -2454,6 +2564,12 @@ declare const zManifest: z.ZodObject<{
2454
2564
  users?: {
2455
2565
  admins?: number[] | undefined;
2456
2566
  operators?: number[] | undefined;
2567
+ api?: {
2568
+ name: string;
2569
+ role: "ADMIN" | "OPERATOR";
2570
+ pubKey: string;
2571
+ viewAll: boolean;
2572
+ }[] | undefined;
2457
2573
  } | undefined;
2458
2574
  whitelists?: {
2459
2575
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -2504,6 +2620,7 @@ declare const zManifest: z.ZodObject<{
2504
2620
  }[];
2505
2621
  assetManager: string;
2506
2622
  };
2623
+ index?: number | undefined;
2507
2624
  contractAddress?: string | undefined;
2508
2625
  }[] | undefined;
2509
2626
  pledges?: {
@@ -2584,6 +2701,12 @@ declare const zManifest: z.ZodObject<{
2584
2701
  users?: {
2585
2702
  admins?: number[] | undefined;
2586
2703
  operators?: number[] | undefined;
2704
+ api?: {
2705
+ name: string;
2706
+ pubKey: string;
2707
+ viewAll: boolean;
2708
+ role?: "ADMIN" | "OPERATOR" | undefined;
2709
+ }[] | undefined;
2587
2710
  } | undefined;
2588
2711
  whitelists?: {
2589
2712
  name: string;
@@ -2634,6 +2757,7 @@ declare const zManifest: z.ZodObject<{
2634
2757
  }[];
2635
2758
  assetManager: string;
2636
2759
  };
2760
+ index?: number | undefined;
2637
2761
  contractAddress?: string | undefined;
2638
2762
  }[] | undefined;
2639
2763
  pledges?: {
@@ -2656,4 +2780,4 @@ declare function createAndApproveRequest(input: CreateRequestInput, approvers: E
2656
2780
 
2657
2781
  declare function bakeManifest(options: BakeOptions, logger: Logger): Promise<void>;
2658
2782
 
2659
- export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
2783
+ export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestApiUser, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
package/lib/bake.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Logger } from './index.js';
2
2
  import z from 'zod';
3
- import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-CisIFJCB.js';
3
+ import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-ZEEgdlx2.js';
4
4
  import { VaultRequestResponse } from '@ledgerhq/revault-api';
5
- import './types-CsvE9Mlb.js';
5
+ import './types-DJfbanPz.js';
6
6
  import '@trpc/client';
7
7
  import '@trpc/server';
8
8
 
@@ -12,6 +12,23 @@ type BakeOptions = {
12
12
  workspaceName?: string;
13
13
  rootAuthToken?: string;
14
14
  };
15
+ declare const zManifestApiUser: z.ZodObject<{
16
+ name: z.ZodString;
17
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
18
+ pubKey: z.ZodString;
19
+ viewAll: z.ZodBoolean;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ role: "ADMIN" | "OPERATOR";
23
+ pubKey: string;
24
+ viewAll: boolean;
25
+ }, {
26
+ name: string;
27
+ pubKey: string;
28
+ viewAll: boolean;
29
+ role?: "ADMIN" | "OPERATOR" | undefined;
30
+ }>;
31
+ type ManifestApiUser = z.infer<typeof zManifestApiUser>;
15
32
  declare const zManifestGroup: z.ZodObject<{
16
33
  name: z.ZodString;
17
34
  members: z.ZodArray<z.ZodNumber, "many">;
@@ -180,6 +197,7 @@ type ManifestPolicy = z.infer<typeof zManifestPolicy>;
180
197
  declare const zManifestAccount: z.ZodObject<{
181
198
  name: z.ZodString;
182
199
  currency: z.ZodString;
200
+ index: z.ZodOptional<z.ZodNumber>;
183
201
  contractAddress: z.ZodOptional<z.ZodString>;
184
202
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
185
203
  type: z.ZodLiteral<"CLASSIC">;
@@ -304,6 +322,7 @@ declare const zManifestAccount: z.ZodObject<{
304
322
  }[];
305
323
  assetManager: string;
306
324
  };
325
+ index?: number | undefined;
307
326
  contractAddress?: string | undefined;
308
327
  }, {
309
328
  name: string;
@@ -329,6 +348,7 @@ declare const zManifestAccount: z.ZodObject<{
329
348
  }[];
330
349
  assetManager: string;
331
350
  };
351
+ index?: number | undefined;
332
352
  contractAddress?: string | undefined;
333
353
  }>;
334
354
  type ManifestAccount = z.infer<typeof zManifestAccount>;
@@ -939,12 +959,40 @@ declare const zManifestWorkspace: z.ZodObject<{
939
959
  users: z.ZodOptional<z.ZodObject<{
940
960
  admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
941
961
  operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
962
+ api: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ name: z.ZodString;
964
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
965
+ pubKey: z.ZodString;
966
+ viewAll: z.ZodBoolean;
967
+ }, "strip", z.ZodTypeAny, {
968
+ name: string;
969
+ role: "ADMIN" | "OPERATOR";
970
+ pubKey: string;
971
+ viewAll: boolean;
972
+ }, {
973
+ name: string;
974
+ pubKey: string;
975
+ viewAll: boolean;
976
+ role?: "ADMIN" | "OPERATOR" | undefined;
977
+ }>, "many">>;
942
978
  }, "strip", z.ZodTypeAny, {
943
979
  admins?: number[] | undefined;
944
980
  operators?: number[] | undefined;
981
+ api?: {
982
+ name: string;
983
+ role: "ADMIN" | "OPERATOR";
984
+ pubKey: string;
985
+ viewAll: boolean;
986
+ }[] | undefined;
945
987
  }, {
946
988
  admins?: number[] | undefined;
947
989
  operators?: number[] | undefined;
990
+ api?: {
991
+ name: string;
992
+ pubKey: string;
993
+ viewAll: boolean;
994
+ role?: "ADMIN" | "OPERATOR" | undefined;
995
+ }[] | undefined;
948
996
  }>>;
949
997
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
950
998
  name: z.ZodString;
@@ -1070,6 +1118,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1070
1118
  accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1071
1119
  name: z.ZodString;
1072
1120
  currency: z.ZodString;
1121
+ index: z.ZodOptional<z.ZodNumber>;
1073
1122
  contractAddress: z.ZodOptional<z.ZodString>;
1074
1123
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1075
1124
  type: z.ZodLiteral<"CLASSIC">;
@@ -1194,6 +1243,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1194
1243
  }[];
1195
1244
  assetManager: string;
1196
1245
  };
1246
+ index?: number | undefined;
1197
1247
  contractAddress?: string | undefined;
1198
1248
  }, {
1199
1249
  name: string;
@@ -1219,6 +1269,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1219
1269
  }[];
1220
1270
  assetManager: string;
1221
1271
  };
1272
+ index?: number | undefined;
1222
1273
  contractAddress?: string | undefined;
1223
1274
  }>, "many">>;
1224
1275
  pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1287,6 +1338,12 @@ declare const zManifestWorkspace: z.ZodObject<{
1287
1338
  users?: {
1288
1339
  admins?: number[] | undefined;
1289
1340
  operators?: number[] | undefined;
1341
+ api?: {
1342
+ name: string;
1343
+ role: "ADMIN" | "OPERATOR";
1344
+ pubKey: string;
1345
+ viewAll: boolean;
1346
+ }[] | undefined;
1290
1347
  } | undefined;
1291
1348
  whitelists?: {
1292
1349
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -1337,6 +1394,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1337
1394
  }[];
1338
1395
  assetManager: string;
1339
1396
  };
1397
+ index?: number | undefined;
1340
1398
  contractAddress?: string | undefined;
1341
1399
  }[] | undefined;
1342
1400
  pledges?: {
@@ -1397,6 +1455,12 @@ declare const zManifestWorkspace: z.ZodObject<{
1397
1455
  users?: {
1398
1456
  admins?: number[] | undefined;
1399
1457
  operators?: number[] | undefined;
1458
+ api?: {
1459
+ name: string;
1460
+ pubKey: string;
1461
+ viewAll: boolean;
1462
+ role?: "ADMIN" | "OPERATOR" | undefined;
1463
+ }[] | undefined;
1400
1464
  } | undefined;
1401
1465
  whitelists?: {
1402
1466
  name: string;
@@ -1447,6 +1511,7 @@ declare const zManifestWorkspace: z.ZodObject<{
1447
1511
  }[];
1448
1512
  assetManager: string;
1449
1513
  };
1514
+ index?: number | undefined;
1450
1515
  contractAddress?: string | undefined;
1451
1516
  }[] | undefined;
1452
1517
  pledges?: {
@@ -1866,12 +1931,40 @@ declare const zManifest: z.ZodObject<{
1866
1931
  users: z.ZodOptional<z.ZodObject<{
1867
1932
  admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1868
1933
  operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1934
+ api: z.ZodOptional<z.ZodArray<z.ZodObject<{
1935
+ name: z.ZodString;
1936
+ role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
1937
+ pubKey: z.ZodString;
1938
+ viewAll: z.ZodBoolean;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ name: string;
1941
+ role: "ADMIN" | "OPERATOR";
1942
+ pubKey: string;
1943
+ viewAll: boolean;
1944
+ }, {
1945
+ name: string;
1946
+ pubKey: string;
1947
+ viewAll: boolean;
1948
+ role?: "ADMIN" | "OPERATOR" | undefined;
1949
+ }>, "many">>;
1869
1950
  }, "strip", z.ZodTypeAny, {
1870
1951
  admins?: number[] | undefined;
1871
1952
  operators?: number[] | undefined;
1953
+ api?: {
1954
+ name: string;
1955
+ role: "ADMIN" | "OPERATOR";
1956
+ pubKey: string;
1957
+ viewAll: boolean;
1958
+ }[] | undefined;
1872
1959
  }, {
1873
1960
  admins?: number[] | undefined;
1874
1961
  operators?: number[] | undefined;
1962
+ api?: {
1963
+ name: string;
1964
+ pubKey: string;
1965
+ viewAll: boolean;
1966
+ role?: "ADMIN" | "OPERATOR" | undefined;
1967
+ }[] | undefined;
1875
1968
  }>>;
1876
1969
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
1970
  name: z.ZodString;
@@ -1997,6 +2090,7 @@ declare const zManifest: z.ZodObject<{
1997
2090
  accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1998
2091
  name: z.ZodString;
1999
2092
  currency: z.ZodString;
2093
+ index: z.ZodOptional<z.ZodNumber>;
2000
2094
  contractAddress: z.ZodOptional<z.ZodString>;
2001
2095
  governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2002
2096
  type: z.ZodLiteral<"CLASSIC">;
@@ -2121,6 +2215,7 @@ declare const zManifest: z.ZodObject<{
2121
2215
  }[];
2122
2216
  assetManager: string;
2123
2217
  };
2218
+ index?: number | undefined;
2124
2219
  contractAddress?: string | undefined;
2125
2220
  }, {
2126
2221
  name: string;
@@ -2146,6 +2241,7 @@ declare const zManifest: z.ZodObject<{
2146
2241
  }[];
2147
2242
  assetManager: string;
2148
2243
  };
2244
+ index?: number | undefined;
2149
2245
  contractAddress?: string | undefined;
2150
2246
  }>, "many">>;
2151
2247
  pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2214,6 +2310,12 @@ declare const zManifest: z.ZodObject<{
2214
2310
  users?: {
2215
2311
  admins?: number[] | undefined;
2216
2312
  operators?: number[] | undefined;
2313
+ api?: {
2314
+ name: string;
2315
+ role: "ADMIN" | "OPERATOR";
2316
+ pubKey: string;
2317
+ viewAll: boolean;
2318
+ }[] | undefined;
2217
2319
  } | undefined;
2218
2320
  whitelists?: {
2219
2321
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -2264,6 +2366,7 @@ declare const zManifest: z.ZodObject<{
2264
2366
  }[];
2265
2367
  assetManager: string;
2266
2368
  };
2369
+ index?: number | undefined;
2267
2370
  contractAddress?: string | undefined;
2268
2371
  }[] | undefined;
2269
2372
  pledges?: {
@@ -2324,6 +2427,12 @@ declare const zManifest: z.ZodObject<{
2324
2427
  users?: {
2325
2428
  admins?: number[] | undefined;
2326
2429
  operators?: number[] | undefined;
2430
+ api?: {
2431
+ name: string;
2432
+ pubKey: string;
2433
+ viewAll: boolean;
2434
+ role?: "ADMIN" | "OPERATOR" | undefined;
2435
+ }[] | undefined;
2327
2436
  } | undefined;
2328
2437
  whitelists?: {
2329
2438
  name: string;
@@ -2374,6 +2483,7 @@ declare const zManifest: z.ZodObject<{
2374
2483
  }[];
2375
2484
  assetManager: string;
2376
2485
  };
2486
+ index?: number | undefined;
2377
2487
  contractAddress?: string | undefined;
2378
2488
  }[] | undefined;
2379
2489
  pledges?: {
@@ -2454,6 +2564,12 @@ declare const zManifest: z.ZodObject<{
2454
2564
  users?: {
2455
2565
  admins?: number[] | undefined;
2456
2566
  operators?: number[] | undefined;
2567
+ api?: {
2568
+ name: string;
2569
+ role: "ADMIN" | "OPERATOR";
2570
+ pubKey: string;
2571
+ viewAll: boolean;
2572
+ }[] | undefined;
2457
2573
  } | undefined;
2458
2574
  whitelists?: {
2459
2575
  type: "TRANSACTION" | "SMART_CONTRACT";
@@ -2504,6 +2620,7 @@ declare const zManifest: z.ZodObject<{
2504
2620
  }[];
2505
2621
  assetManager: string;
2506
2622
  };
2623
+ index?: number | undefined;
2507
2624
  contractAddress?: string | undefined;
2508
2625
  }[] | undefined;
2509
2626
  pledges?: {
@@ -2584,6 +2701,12 @@ declare const zManifest: z.ZodObject<{
2584
2701
  users?: {
2585
2702
  admins?: number[] | undefined;
2586
2703
  operators?: number[] | undefined;
2704
+ api?: {
2705
+ name: string;
2706
+ pubKey: string;
2707
+ viewAll: boolean;
2708
+ role?: "ADMIN" | "OPERATOR" | undefined;
2709
+ }[] | undefined;
2587
2710
  } | undefined;
2588
2711
  whitelists?: {
2589
2712
  name: string;
@@ -2634,6 +2757,7 @@ declare const zManifest: z.ZodObject<{
2634
2757
  }[];
2635
2758
  assetManager: string;
2636
2759
  };
2760
+ index?: number | undefined;
2637
2761
  contractAddress?: string | undefined;
2638
2762
  }[] | undefined;
2639
2763
  pledges?: {
@@ -2656,4 +2780,4 @@ declare function createAndApproveRequest(input: CreateRequestInput, approvers: E
2656
2780
 
2657
2781
  declare function bakeManifest(options: BakeOptions, logger: Logger): Promise<void>;
2658
2782
 
2659
- export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
2783
+ export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestApiUser, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };