@herd-labs/sdk 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.d.ts +14 -3
  2. package/dist/index.js +14 -3
  3. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  4. package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
  5. package/dist/src/live/AgentSafesServiceLive.js +19 -0
  6. package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
  7. package/dist/src/live/AgentWalletsServiceLive.js +18 -0
  8. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
  9. package/dist/src/live/AgentWorkflowsServiceLive.js +33 -0
  10. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  11. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  12. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  13. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  14. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  15. package/dist/src/live/ContractsServiceLive.js +1 -6
  16. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  17. package/dist/src/live/GroupsServiceLive.d.ts +9 -0
  18. package/dist/src/live/GroupsServiceLive.js +26 -0
  19. package/dist/src/live/HalServiceLive.d.ts +2 -2
  20. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  21. package/dist/src/live/TransactionsServiceLive.js +1 -0
  22. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  23. package/dist/src/live/WalletsServiceLive.js +2 -1
  24. package/dist/src/schemas/actions.d.ts +13 -13
  25. package/dist/src/schemas/agent-wallets.d.ts +226 -0
  26. package/dist/src/schemas/agent-wallets.js +68 -0
  27. package/dist/src/schemas/agent-workflows.d.ts +245 -0
  28. package/dist/src/schemas/agent-workflows.js +72 -0
  29. package/dist/src/schemas/auth.d.ts +15 -1
  30. package/dist/src/schemas/auth.js +4 -2
  31. package/dist/src/schemas/bookmarks.d.ts +17 -17
  32. package/dist/src/schemas/codeblocks.d.ts +7 -7
  33. package/dist/src/schemas/collections.d.ts +3 -3
  34. package/dist/src/schemas/contracts.d.ts +16 -229
  35. package/dist/src/schemas/contracts.js +1 -62
  36. package/dist/src/schemas/groups.d.ts +94 -0
  37. package/dist/src/schemas/groups.js +62 -0
  38. package/dist/src/schemas/hal.d.ts +13 -13
  39. package/dist/src/schemas/transactions.d.ts +41 -37
  40. package/dist/src/schemas/transactions.js +1 -0
  41. package/dist/src/schemas/wallets.d.ts +47 -39
  42. package/dist/src/schemas/wallets.js +3 -1
  43. package/dist/src/services/AgentSafesService.d.ts +14 -0
  44. package/dist/src/services/AgentSafesService.js +7 -0
  45. package/dist/src/services/AgentWalletsService.d.ts +13 -0
  46. package/dist/src/services/AgentWalletsService.js +7 -0
  47. package/dist/src/services/AgentWorkflowsService.d.ts +26 -0
  48. package/dist/src/services/AgentWorkflowsService.js +21 -0
  49. package/dist/src/services/ContractsService.d.ts +1 -2
  50. package/dist/src/services/GroupsService.d.ts +34 -0
  51. package/dist/src/services/GroupsService.js +14 -0
  52. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand0 from "effect/Brand";
2
+ import * as effect_Brand13 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/bookmarks.d.ts
5
5
  declare const BookmarkObjectType: Schema.Literal<["contract", "transaction", "wallet"]>;
@@ -28,14 +28,14 @@ declare const ContractBookmark_base: Schema.Class<ContractBookmark, {
28
28
  readonly blockchain: string;
29
29
  } & {
30
30
  readonly contractAddress: string;
31
+ } & {
32
+ readonly contractName: string | null;
31
33
  } & {
32
34
  readonly createdAt: string;
33
35
  } & {
34
36
  readonly updatedAt: string;
35
37
  } & {
36
38
  readonly userLabel: string | null;
37
- } & {
38
- readonly contractName: string | null;
39
39
  } & {
40
40
  readonly label: string | null;
41
41
  }, {}, {}>;
@@ -58,14 +58,14 @@ declare const TransactionBookmark_base: Schema.Class<TransactionBookmark, {
58
58
  readonly id: string;
59
59
  } & {
60
60
  readonly blockchain: string;
61
+ } & {
62
+ readonly transactionHash: string;
61
63
  } & {
62
64
  readonly createdAt: string;
63
65
  } & {
64
66
  readonly updatedAt: string;
65
67
  } & {
66
68
  readonly userLabel: string | null;
67
- } & {
68
- readonly transactionHash: string;
69
69
  }, {}, {}>;
70
70
  declare class TransactionBookmark extends TransactionBookmark_base {}
71
71
  declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
@@ -82,14 +82,14 @@ declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
82
82
  updatedAt: typeof Schema.String;
83
83
  }>, never, {
84
84
  readonly id: string;
85
+ } & {
86
+ readonly walletAddress: string;
85
87
  } & {
86
88
  readonly createdAt: string;
87
89
  } & {
88
90
  readonly updatedAt: string;
89
91
  } & {
90
92
  readonly userLabel: string | null;
91
- } & {
92
- readonly walletAddress: string;
93
93
  }, {}, {}>;
94
94
  declare class WalletBookmark extends WalletBookmark_base {}
95
95
  declare const BookmarksList_base: Schema.Class<BookmarksList, {
@@ -101,9 +101,9 @@ declare const BookmarksList_base: Schema.Class<BookmarksList, {
101
101
  transactions: Schema.Array$<typeof TransactionBookmark>;
102
102
  wallets: Schema.Array$<typeof WalletBookmark>;
103
103
  }>, never, {
104
- readonly contracts: readonly ContractBookmark[];
105
- } & {
106
104
  readonly transactions: readonly TransactionBookmark[];
105
+ } & {
106
+ readonly contracts: readonly ContractBookmark[];
107
107
  } & {
108
108
  readonly wallets: readonly WalletBookmark[];
109
109
  }, {}, {}>;
@@ -140,9 +140,9 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
140
140
  }>, never, {
141
141
  readonly blockchain: "ethereum" | "base";
142
142
  } & {
143
- readonly label?: string | undefined;
143
+ readonly address: string & effect_Brand13.Brand<"EvmAddress">;
144
144
  } & {
145
- readonly address: string & effect_Brand0.Brand<"EvmAddress">;
145
+ readonly label?: string | undefined;
146
146
  }, {}, {}>;
147
147
  declare class AddContractBookmarkParams extends AddContractBookmarkParams_base {}
148
148
  declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBookmarkParams, {
@@ -168,9 +168,9 @@ declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams
168
168
  address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
169
169
  label: Schema.optional<typeof Schema.String>;
170
170
  }>, never, {
171
- readonly label?: string | undefined;
171
+ readonly address: string & effect_Brand13.Brand<"EvmAddress">;
172
172
  } & {
173
- readonly address: string & effect_Brand0.Brand<"EvmAddress">;
173
+ readonly label?: string | undefined;
174
174
  }, {}, {}>;
175
175
  declare class AddWalletBookmarkParams extends AddWalletBookmarkParams_base {}
176
176
  declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelParams, {
@@ -189,12 +189,12 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
189
189
  readonly txHash?: string | undefined;
190
190
  } & {
191
191
  readonly blockchain?: "ethereum" | "base" | undefined;
192
- } & {
193
- readonly label: string | null;
194
192
  } & {
195
193
  readonly address?: string | undefined;
196
194
  } & {
197
- readonly objectType: "contract" | "transaction" | "wallet";
195
+ readonly label: string | null;
196
+ } & {
197
+ readonly objectType: "contract" | "wallet" | "transaction";
198
198
  }, {}, {}>;
199
199
  declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
200
200
  declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
@@ -214,7 +214,7 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
214
214
  } & {
215
215
  readonly address?: string | undefined;
216
216
  } & {
217
- readonly objectType: "contract" | "transaction" | "wallet";
217
+ readonly objectType: "contract" | "wallet" | "transaction";
218
218
  }, {}, {}>;
219
219
  declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
220
220
  //#endregion
@@ -23,14 +23,14 @@ declare const CodeBlockCode_base: Schema.Class<CodeBlockCode, {
23
23
  readonly name: string;
24
24
  } & {
25
25
  readonly intent: string;
26
- } & {
27
- readonly publishedAt: string | null;
28
26
  } & {
29
27
  readonly code: string;
30
28
  } & {
31
29
  readonly valTownFileUrl: string;
32
30
  } & {
33
31
  readonly arguments?: unknown;
32
+ } & {
33
+ readonly publishedAt: string | null;
34
34
  }, {}, {}>;
35
35
  declare class CodeBlockCode extends CodeBlockCode_base {}
36
36
  declare const CodeBlockVersion_base: Schema.Class<CodeBlockVersion, {
@@ -73,12 +73,12 @@ declare const CodeBlockDefinition_base: Schema.Class<CodeBlockDefinition, {
73
73
  readonly name: string;
74
74
  } & {
75
75
  readonly intent: string;
76
- } & {
77
- readonly actionId?: string | null | undefined;
78
76
  } & {
79
77
  readonly latestCode: CodeBlockCode | null;
80
78
  } & {
81
79
  readonly allVersions?: readonly CodeBlockVersion[] | undefined;
80
+ } & {
81
+ readonly actionId?: string | null | undefined;
82
82
  }, {}, {}>;
83
83
  declare class CodeBlockDefinition extends CodeBlockDefinition_base {}
84
84
  declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams, {
@@ -204,8 +204,8 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
204
204
  } & {
205
205
  readonly error?: {
206
206
  readonly message: string;
207
- readonly body?: unknown;
208
207
  readonly status?: number | undefined;
208
+ readonly body?: unknown;
209
209
  } | undefined;
210
210
  } & {
211
211
  readonly logs?: readonly CodeBlockLogEntry[] | undefined;
@@ -263,12 +263,12 @@ declare const CreateCodeVersionResponse_base: Schema.Class<CreateCodeVersionResp
263
263
  readonly name: string;
264
264
  } & {
265
265
  readonly intent: string;
266
- } & {
267
- readonly publishedAt: string | null;
268
266
  } & {
269
267
  readonly code: string;
270
268
  } & {
271
269
  readonly valTownFileUrl: string;
270
+ } & {
271
+ readonly publishedAt: string | null;
272
272
  }, {}, {}>;
273
273
  declare class CreateCodeVersionResponse extends CreateCodeVersionResponse_base {}
274
274
  declare const UpdateCodeBlockMetadataParams_base: Schema.Class<UpdateCodeBlockMetadataParams, {
@@ -94,13 +94,13 @@ declare const CollectionsSearchParams_base: Schema.Class<CollectionsSearchParams
94
94
  }>, never, {
95
95
  readonly limit: number;
96
96
  } & {
97
- readonly offset: number;
98
- } & {
99
- readonly scope?: readonly ("yours" | "verified" | "all")[] | undefined;
97
+ readonly scope?: readonly ("yours" | "all" | "verified")[] | undefined;
100
98
  } & {
101
99
  readonly filters?: {
102
100
  readonly name?: string | undefined;
103
101
  } | undefined;
102
+ } & {
103
+ readonly offset: number;
104
104
  }, {}, {}>;
105
105
  declare class CollectionsSearchParams extends CollectionsSearchParams_base {}
106
106
  declare const CollectionsSearchResponse_base: Schema.Class<CollectionsSearchResponse, {
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand4 from "effect/Brand";
2
+ import * as effect_Brand0 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/contracts.d.ts
5
5
  declare const FunctionSummary_base: Schema.Class<FunctionSummary, {
@@ -252,11 +252,11 @@ declare const ContractMetadata_base: Schema.Class<ContractMetadata, {
252
252
  signatureImplementations: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
253
253
  signatureImplementationNames: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
254
254
  }>, never, {
255
- readonly contractName?: string | undefined;
256
- } & {
257
255
  readonly errorMessage?: string | undefined;
258
256
  } & {
259
257
  readonly addressDetails?: AddressDetails | undefined;
258
+ } & {
259
+ readonly contractName?: string | undefined;
260
260
  } & {
261
261
  readonly abi?: readonly {
262
262
  readonly [x: string]: unknown;
@@ -301,8 +301,6 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
301
301
  patterns: Schema.Array$<typeof Schema.String>;
302
302
  }>, never, {
303
303
  readonly code: string;
304
- } & {
305
- readonly patterns: readonly string[];
306
304
  } & {
307
305
  readonly fileName: string;
308
306
  } & {
@@ -311,6 +309,8 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
311
309
  readonly endLine: number;
312
310
  } & {
313
311
  readonly numberOfMatches: number;
312
+ } & {
313
+ readonly patterns: readonly string[];
314
314
  }, {}, {}>;
315
315
  declare class ContractCodeMatchBlock extends ContractCodeMatchBlock_base {}
316
316
  declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResult, {
@@ -330,11 +330,11 @@ declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResu
330
330
  }>, never, {
331
331
  readonly blockchain: "ethereum" | "base";
332
332
  } & {
333
- readonly contractAddress: string & effect_Brand4.Brand<"EvmAddress">;
333
+ readonly code?: string | undefined;
334
334
  } & {
335
- readonly contractName: string;
335
+ readonly contractAddress: string & effect_Brand0.Brand<"EvmAddress">;
336
336
  } & {
337
- readonly code?: string | undefined;
337
+ readonly contractName: string;
338
338
  } & {
339
339
  readonly proxyCode?: string | undefined;
340
340
  } & {
@@ -354,15 +354,15 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
354
354
  returnAllCode: Schema.optional<typeof Schema.Boolean>;
355
355
  patterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
356
356
  }>, never, {
357
+ readonly patterns?: readonly string[] | undefined;
358
+ } & {
357
359
  readonly query: string;
358
360
  } & {
359
- readonly contractAddresses: readonly (string & effect_Brand4.Brand<"EvmAddress">)[];
361
+ readonly contractAddresses: readonly (string & effect_Brand0.Brand<"EvmAddress">)[];
360
362
  } & {
361
363
  readonly includeProxies?: boolean | undefined;
362
364
  } & {
363
365
  readonly returnAllCode?: boolean | undefined;
364
- } & {
365
- readonly patterns?: readonly string[] | undefined;
366
366
  }, {}, {}>;
367
367
  declare class GetContractCodeParams extends GetContractCodeParams_base {}
368
368
  declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse, {
@@ -385,219 +385,6 @@ declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse
385
385
  readonly codeSearchResults?: readonly ContractCodeSearchResult[] | undefined;
386
386
  }, {}, {}>;
387
387
  declare class GetContractCodeResponse extends GetContractCodeResponse_base {}
388
- declare const RoleTimelock_base: Schema.Class<RoleTimelock, {
389
- submittedByRole: typeof Schema.String;
390
- executableBy: Schema.Literal<["role", "anyone"]>;
391
- submitFunctionName: typeof Schema.String;
392
- duration: Schema.optional<Schema.Struct<{
393
- value: typeof Schema.Number;
394
- unit: Schema.Literal<["seconds", "blocks"]>;
395
- }>>;
396
- }, Schema.Struct.Encoded<{
397
- submittedByRole: typeof Schema.String;
398
- executableBy: Schema.Literal<["role", "anyone"]>;
399
- submitFunctionName: typeof Schema.String;
400
- duration: Schema.optional<Schema.Struct<{
401
- value: typeof Schema.Number;
402
- unit: Schema.Literal<["seconds", "blocks"]>;
403
- }>>;
404
- }>, never, {
405
- readonly submittedByRole: string;
406
- } & {
407
- readonly submitFunctionName: string;
408
- } & {
409
- readonly executableBy: "role" | "anyone";
410
- } & {
411
- readonly duration?: {
412
- readonly value: number;
413
- readonly unit: "seconds" | "blocks";
414
- } | undefined;
415
- }, {}, {}>;
416
- declare class RoleTimelock extends RoleTimelock_base {}
417
- declare const RoleFunction_base: Schema.Class<RoleFunction, {
418
- name: typeof Schema.String;
419
- isTimelockSubmitter: Schema.optional<typeof Schema.Boolean>;
420
- timelock: Schema.optional<typeof RoleTimelock>;
421
- }, Schema.Struct.Encoded<{
422
- name: typeof Schema.String;
423
- isTimelockSubmitter: Schema.optional<typeof Schema.Boolean>;
424
- timelock: Schema.optional<typeof RoleTimelock>;
425
- }>, never, {
426
- readonly name: string;
427
- } & {
428
- readonly isTimelockSubmitter?: boolean | undefined;
429
- } & {
430
- readonly timelock?: RoleTimelock | undefined;
431
- }, {}, {}>;
432
- declare class RoleFunction extends RoleFunction_base {}
433
- declare const TokenBalance_base: Schema.Class<TokenBalance, {
434
- tokenAddress: typeof Schema.String;
435
- tokenStandard: Schema.Literal<["erc20", "erc721", "erc1155"]>;
436
- symbol: typeof Schema.String;
437
- name: typeof Schema.String;
438
- }, Schema.Struct.Encoded<{
439
- tokenAddress: typeof Schema.String;
440
- tokenStandard: Schema.Literal<["erc20", "erc721", "erc1155"]>;
441
- symbol: typeof Schema.String;
442
- name: typeof Schema.String;
443
- }>, never, {
444
- readonly symbol: string;
445
- } & {
446
- readonly name: string;
447
- } & {
448
- readonly tokenAddress: string;
449
- } & {
450
- readonly tokenStandard: "erc20" | "erc721" | "erc1155";
451
- }, {}, {}>;
452
- declare class TokenBalance extends TokenBalance_base {}
453
- declare const Role_base: Schema.Class<Role, {
454
- name: typeof Schema.String;
455
- modifier: Schema.optional<typeof Schema.String>;
456
- roleType: Schema.optional<Schema.Literal<["access-control", "gate"]>>;
457
- valueStorageType: Schema.optional<Schema.Literal<["constant", "immutable", "variable", "mapping", "unknown"]>>;
458
- administeredBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
459
- functions: Schema.Array$<typeof RoleFunction>;
460
- holderVerificationFunctionSignatures: Schema.optional<Schema.Array$<typeof Schema.String>>;
461
- anyAddress: Schema.optional<typeof Schema.Boolean>;
462
- onOtherContract: Schema.optional<typeof Schema.String>;
463
- tokenBalance: Schema.optional<typeof TokenBalance>;
464
- holders: Schema.optional<Schema.Array$<typeof Schema.String>>;
465
- totalHistoricalHolderCount: Schema.optional<typeof Schema.Number>;
466
- }, Schema.Struct.Encoded<{
467
- name: typeof Schema.String;
468
- modifier: Schema.optional<typeof Schema.String>;
469
- roleType: Schema.optional<Schema.Literal<["access-control", "gate"]>>;
470
- valueStorageType: Schema.optional<Schema.Literal<["constant", "immutable", "variable", "mapping", "unknown"]>>;
471
- administeredBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
472
- functions: Schema.Array$<typeof RoleFunction>;
473
- holderVerificationFunctionSignatures: Schema.optional<Schema.Array$<typeof Schema.String>>;
474
- anyAddress: Schema.optional<typeof Schema.Boolean>;
475
- onOtherContract: Schema.optional<typeof Schema.String>;
476
- tokenBalance: Schema.optional<typeof TokenBalance>;
477
- holders: Schema.optional<Schema.Array$<typeof Schema.String>>;
478
- totalHistoricalHolderCount: Schema.optional<typeof Schema.Number>;
479
- }>, never, {
480
- readonly name: string;
481
- } & {
482
- readonly tokenBalance?: TokenBalance | undefined;
483
- } & {
484
- readonly modifier?: string | undefined;
485
- } & {
486
- readonly roleType?: "access-control" | "gate" | undefined;
487
- } & {
488
- readonly valueStorageType?: "unknown" | "constant" | "immutable" | "variable" | "mapping" | undefined;
489
- } & {
490
- readonly administeredBy?: readonly string[] | undefined;
491
- } & {
492
- readonly functions: readonly RoleFunction[];
493
- } & {
494
- readonly holderVerificationFunctionSignatures?: readonly string[] | undefined;
495
- } & {
496
- readonly anyAddress?: boolean | undefined;
497
- } & {
498
- readonly onOtherContract?: string | undefined;
499
- } & {
500
- readonly holders?: readonly string[] | undefined;
501
- } & {
502
- readonly totalHistoricalHolderCount?: number | undefined;
503
- }, {}, {}>;
504
- declare class Role extends Role_base {}
505
- declare const RolesNodeMultisigDetails_base: Schema.Class<RolesNodeMultisigDetails, {
506
- type: Schema.Literal<["multisig", "aragon-multisig"]>;
507
- dao: Schema.optional<typeof Schema.String>;
508
- onlyListed: Schema.optional<typeof Schema.Boolean>;
509
- threshold: typeof Schema.Number;
510
- signerCount: typeof Schema.Number;
511
- }, Schema.Struct.Encoded<{
512
- type: Schema.Literal<["multisig", "aragon-multisig"]>;
513
- dao: Schema.optional<typeof Schema.String>;
514
- onlyListed: Schema.optional<typeof Schema.Boolean>;
515
- threshold: typeof Schema.Number;
516
- signerCount: typeof Schema.Number;
517
- }>, never, {
518
- readonly type: "multisig" | "aragon-multisig";
519
- } & {
520
- readonly threshold: number;
521
- } & {
522
- readonly signerCount: number;
523
- } & {
524
- readonly dao?: string | undefined;
525
- } & {
526
- readonly onlyListed?: boolean | undefined;
527
- }, {}, {}>;
528
- declare class RolesNodeMultisigDetails extends RolesNodeMultisigDetails_base {}
529
- declare const RolesNode_base: Schema.Class<RolesNode, {
530
- address: typeof Schema.String;
531
- label: Schema.optional<typeof Schema.String>;
532
- contractName: Schema.optional<typeof Schema.String>;
533
- tokenSymbol: Schema.optional<typeof Schema.String>;
534
- nodeType: Schema.Literal<["contract", "wallet", "safe", "unknown", "tokenBalance"]>;
535
- isVerified: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
536
- isPausable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
537
- isUpgradeable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
538
- tokenBalance: Schema.optional<typeof TokenBalance>;
539
- roles: Schema.optional<Schema.Array$<typeof Role>>;
540
- multisigDetails: Schema.optional<typeof RolesNodeMultisigDetails>;
541
- processState: Schema.optional<Schema.Literal<["processed", "skipped", "failed", "max_depth"]>>;
542
- nodeDepth: Schema.optional<typeof Schema.Number>;
543
- }, Schema.Struct.Encoded<{
544
- address: typeof Schema.String;
545
- label: Schema.optional<typeof Schema.String>;
546
- contractName: Schema.optional<typeof Schema.String>;
547
- tokenSymbol: Schema.optional<typeof Schema.String>;
548
- nodeType: Schema.Literal<["contract", "wallet", "safe", "unknown", "tokenBalance"]>;
549
- isVerified: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
550
- isPausable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
551
- isUpgradeable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
552
- tokenBalance: Schema.optional<typeof TokenBalance>;
553
- roles: Schema.optional<Schema.Array$<typeof Role>>;
554
- multisigDetails: Schema.optional<typeof RolesNodeMultisigDetails>;
555
- processState: Schema.optional<Schema.Literal<["processed", "skipped", "failed", "max_depth"]>>;
556
- nodeDepth: Schema.optional<typeof Schema.Number>;
557
- }>, never, {
558
- readonly contractName?: string | undefined;
559
- } & {
560
- readonly label?: string | undefined;
561
- } & {
562
- readonly address: string;
563
- } & {
564
- readonly tokenSymbol?: string | undefined;
565
- } & {
566
- readonly nodeType: "contract" | "wallet" | "safe" | "unknown" | "tokenBalance";
567
- } & {
568
- readonly tokenBalance?: TokenBalance | undefined;
569
- } & {
570
- readonly isVerified?: boolean | null | undefined;
571
- } & {
572
- readonly isPausable?: boolean | null | undefined;
573
- } & {
574
- readonly isUpgradeable?: boolean | null | undefined;
575
- } & {
576
- readonly roles?: readonly Role[] | undefined;
577
- } & {
578
- readonly multisigDetails?: RolesNodeMultisigDetails | undefined;
579
- } & {
580
- readonly processState?: "failed" | "processed" | "skipped" | "max_depth" | undefined;
581
- } & {
582
- readonly nodeDepth?: number | undefined;
583
- }, {}, {}>;
584
- declare class RolesNode extends RolesNode_base {}
585
- declare const RolesTopology_base: Schema.Class<RolesTopology, {
586
- roots: Schema.Array$<typeof Schema.String>;
587
- resolvedAt: typeof Schema.String;
588
- nodes: Schema.Array$<typeof RolesNode>;
589
- }, Schema.Struct.Encoded<{
590
- roots: Schema.Array$<typeof Schema.String>;
591
- resolvedAt: typeof Schema.String;
592
- nodes: Schema.Array$<typeof RolesNode>;
593
- }>, never, {
594
- readonly resolvedAt: string;
595
- } & {
596
- readonly roots: readonly string[];
597
- } & {
598
- readonly nodes: readonly RolesNode[];
599
- }, {}, {}>;
600
- declare class RolesTopology extends RolesTopology_base {}
601
388
  declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
602
389
  versionNumber: typeof Schema.Number;
603
390
  implementationAddress: typeof Schema.String;
@@ -609,13 +396,13 @@ declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
609
396
  blockNumber: typeof Schema.Number;
610
397
  contractName: typeof Schema.String;
611
398
  }>, never, {
612
- readonly contractName: string;
613
- } & {
614
- readonly blockNumber: number;
615
- } & {
616
399
  readonly versionNumber: number;
400
+ } & {
401
+ readonly contractName: string;
617
402
  } & {
618
403
  readonly implementationAddress: string;
404
+ } & {
405
+ readonly blockNumber: number;
619
406
  }, {}, {}>;
620
407
  declare class DiffVersionInfo extends DiffVersionInfo_base {}
621
408
  declare const DiffEntry_base: Schema.Class<DiffEntry, {
@@ -663,4 +450,4 @@ declare const DiffVersionsParams_base: Schema.Class<DiffVersionsParams, {
663
450
  }, {}, {}>;
664
451
  declare class DiffVersionsParams extends DiffVersionsParams_base {}
665
452
  //#endregion
666
- export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, Role, RoleFunction, RoleTimelock, RolesNode, RolesNodeMultisigDetails, RolesTopology, TokenBalance, TokenDetails, TokenImage, TopHolder };
453
+ export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };
@@ -123,67 +123,6 @@ var GetContractCodeResponse = class extends Schema.Class("GetContractCodeRespons
123
123
  allSearchPatterns: Schema.optional(Schema.Array(Schema.String)),
124
124
  codeSearchResults: Schema.optional(Schema.Array(ContractCodeSearchResult))
125
125
  }) {};
126
- var RoleTimelock = class extends Schema.Class("RoleTimelock")({
127
- submittedByRole: Schema.String,
128
- executableBy: Schema.Literal("role", "anyone"),
129
- submitFunctionName: Schema.String,
130
- duration: Schema.optional(Schema.Struct({
131
- value: Schema.Number,
132
- unit: Schema.Literal("seconds", "blocks")
133
- }))
134
- }) {};
135
- var RoleFunction = class extends Schema.Class("RoleFunction")({
136
- name: Schema.String,
137
- isTimelockSubmitter: Schema.optional(Schema.Boolean),
138
- timelock: Schema.optional(RoleTimelock)
139
- }) {};
140
- var TokenBalance = class extends Schema.Class("TokenBalance")({
141
- tokenAddress: Schema.String,
142
- tokenStandard: Schema.Literal("erc20", "erc721", "erc1155"),
143
- symbol: Schema.String,
144
- name: Schema.String
145
- }) {};
146
- var Role = class extends Schema.Class("Role")({
147
- name: Schema.String,
148
- modifier: Schema.optional(Schema.String),
149
- roleType: Schema.optional(Schema.Literal("access-control", "gate")),
150
- valueStorageType: Schema.optional(Schema.Literal("constant", "immutable", "variable", "mapping", "unknown")),
151
- administeredBy: Schema.optional(Schema.Array(Schema.String)),
152
- functions: Schema.Array(RoleFunction),
153
- holderVerificationFunctionSignatures: Schema.optional(Schema.Array(Schema.String)),
154
- anyAddress: Schema.optional(Schema.Boolean),
155
- onOtherContract: Schema.optional(Schema.String),
156
- tokenBalance: Schema.optional(TokenBalance),
157
- holders: Schema.optional(Schema.Array(Schema.String)),
158
- totalHistoricalHolderCount: Schema.optional(Schema.Number)
159
- }) {};
160
- var RolesNodeMultisigDetails = class extends Schema.Class("RolesNodeMultisigDetails")({
161
- type: Schema.Literal("multisig", "aragon-multisig"),
162
- dao: Schema.optional(Schema.String),
163
- onlyListed: Schema.optional(Schema.Boolean),
164
- threshold: Schema.Number,
165
- signerCount: Schema.Number
166
- }) {};
167
- var RolesNode = class extends Schema.Class("RolesNode")({
168
- address: Schema.String,
169
- label: Schema.optional(Schema.String),
170
- contractName: Schema.optional(Schema.String),
171
- tokenSymbol: Schema.optional(Schema.String),
172
- nodeType: Schema.Literal("contract", "wallet", "safe", "unknown", "tokenBalance"),
173
- isVerified: Schema.optional(Schema.NullOr(Schema.Boolean)),
174
- isPausable: Schema.optional(Schema.NullOr(Schema.Boolean)),
175
- isUpgradeable: Schema.optional(Schema.NullOr(Schema.Boolean)),
176
- tokenBalance: Schema.optional(TokenBalance),
177
- roles: Schema.optional(Schema.Array(Role)),
178
- multisigDetails: Schema.optional(RolesNodeMultisigDetails),
179
- processState: Schema.optional(Schema.Literal("processed", "skipped", "failed", "max_depth")),
180
- nodeDepth: Schema.optional(Schema.Number)
181
- }) {};
182
- var RolesTopology = class extends Schema.Class("RolesTopology")({
183
- roots: Schema.Array(Schema.String),
184
- resolvedAt: Schema.String,
185
- nodes: Schema.Array(RolesNode)
186
- }) {};
187
126
  var DiffVersionInfo = class extends Schema.Class("DiffVersionInfo")({
188
127
  versionNumber: Schema.Number,
189
128
  implementationAddress: Schema.String,
@@ -204,4 +143,4 @@ var ContractDiff = class extends Schema.Class("ContractDiff")({
204
143
  var DiffVersionsParams = class extends Schema.Class("DiffVersionsParams")({ compareAllVersions: Schema.optional(Schema.Boolean) }) {};
205
144
 
206
145
  //#endregion
207
- export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, Role, RoleFunction, RoleTimelock, RolesNode, RolesNodeMultisigDetails, RolesTopology, TokenBalance, TokenDetails, TokenImage, TopHolder };
146
+ export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };
@@ -0,0 +1,94 @@
1
+ import { Schema } from "effect";
2
+
3
+ //#region src/schemas/groups.d.ts
4
+ declare const GroupSummary: Schema.Struct<{
5
+ id: typeof Schema.String;
6
+ name: Schema.NullOr<typeof Schema.String>;
7
+ intent: Schema.NullOr<typeof Schema.String>;
8
+ quorum: typeof Schema.Number;
9
+ memberCount: typeof Schema.Number;
10
+ createdAt: typeof Schema.String;
11
+ }>;
12
+ type GroupSummaryType = typeof GroupSummary.Type;
13
+ declare const GroupMember: Schema.Struct<{
14
+ userId: typeof Schema.String;
15
+ email: Schema.NullOr<typeof Schema.String>;
16
+ joinedAt: typeof Schema.String;
17
+ }>;
18
+ type GroupMemberType = typeof GroupMember.Type;
19
+ declare const GroupWallet: Schema.Struct<{
20
+ address: typeof Schema.String;
21
+ name: Schema.NullOr<typeof Schema.String>;
22
+ }>;
23
+ type GroupWalletType = typeof GroupWallet.Type;
24
+ declare const GroupDetails: Schema.Struct<{
25
+ id: typeof Schema.String;
26
+ name: Schema.NullOr<typeof Schema.String>;
27
+ intent: Schema.NullOr<typeof Schema.String>;
28
+ quorum: typeof Schema.Number;
29
+ members: Schema.Array$<Schema.Struct<{
30
+ userId: typeof Schema.String;
31
+ email: Schema.NullOr<typeof Schema.String>;
32
+ joinedAt: typeof Schema.String;
33
+ }>>;
34
+ wallet: Schema.NullOr<Schema.Struct<{
35
+ address: typeof Schema.String;
36
+ name: Schema.NullOr<typeof Schema.String>;
37
+ }>>;
38
+ createdAt: typeof Schema.String;
39
+ }>;
40
+ type GroupDetailsType = typeof GroupDetails.Type;
41
+ declare const CreateGroupParams: Schema.Struct<{
42
+ name: typeof Schema.String;
43
+ members: Schema.Array$<typeof Schema.String>;
44
+ quorum: typeof Schema.Number;
45
+ intent: Schema.optional<typeof Schema.String>;
46
+ }>;
47
+ type CreateGroupParamsType = typeof CreateGroupParams.Type;
48
+ declare const CreateGroupResponse: Schema.Struct<{
49
+ groupId: typeof Schema.String;
50
+ walletAddress: typeof Schema.String;
51
+ }>;
52
+ type CreateGroupResponseType = typeof CreateGroupResponse.Type;
53
+ declare const ListGroupsResponse: Schema.Struct<{
54
+ groups: Schema.Array$<Schema.Struct<{
55
+ id: typeof Schema.String;
56
+ name: Schema.NullOr<typeof Schema.String>;
57
+ intent: Schema.NullOr<typeof Schema.String>;
58
+ quorum: typeof Schema.Number;
59
+ memberCount: typeof Schema.Number;
60
+ createdAt: typeof Schema.String;
61
+ }>>;
62
+ }>;
63
+ type ListGroupsResponseType = typeof ListGroupsResponse.Type;
64
+ declare const GroupIdParams: Schema.Struct<{
65
+ groupId: typeof Schema.String;
66
+ }>;
67
+ type GroupIdParamsType = typeof GroupIdParams.Type;
68
+ declare const ProposeMemberChangeParams: Schema.Struct<{
69
+ type: Schema.Literal<["add", "remove"]>;
70
+ email: typeof Schema.String;
71
+ }>;
72
+ type ProposeMemberChangeParamsType = typeof ProposeMemberChangeParams.Type;
73
+ declare const ProposeQuorumChangeParams: Schema.Struct<{
74
+ quorum: typeof Schema.Number;
75
+ }>;
76
+ type ProposeQuorumChangeParamsType = typeof ProposeQuorumChangeParams.Type;
77
+ declare const ProposalResponse: Schema.Struct<{
78
+ workflowId: typeof Schema.String;
79
+ workflowRunId: typeof Schema.String;
80
+ }>;
81
+ type ProposalResponseType = typeof ProposalResponse.Type;
82
+ declare const EditGroupMetadataParams: Schema.Struct<{
83
+ name: Schema.optional<typeof Schema.String>;
84
+ description: Schema.optional<typeof Schema.String>;
85
+ }>;
86
+ type EditGroupMetadataParamsType = typeof EditGroupMetadataParams.Type;
87
+ declare const EditGroupMetadataResponse: Schema.Struct<{
88
+ id: typeof Schema.String;
89
+ name: Schema.NullOr<typeof Schema.String>;
90
+ intent: Schema.NullOr<typeof Schema.String>;
91
+ }>;
92
+ type EditGroupMetadataResponseType = typeof EditGroupMetadataResponse.Type;
93
+ //#endregion
94
+ export { CreateGroupParams, CreateGroupParamsType, CreateGroupResponse, CreateGroupResponseType, EditGroupMetadataParams, EditGroupMetadataParamsType, EditGroupMetadataResponse, EditGroupMetadataResponseType, GroupDetails, GroupDetailsType, GroupIdParams, GroupIdParamsType, GroupMember, GroupMemberType, GroupSummary, GroupSummaryType, GroupWallet, GroupWalletType, ListGroupsResponse, ListGroupsResponseType, ProposalResponse, ProposalResponseType, ProposeMemberChangeParams, ProposeMemberChangeParamsType, ProposeQuorumChangeParams, ProposeQuorumChangeParamsType };