@settlemint/dalp-cli 2.1.7-main.23333499047 → 2.1.7-main.23341131506

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/dalp.js +370 -123
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -57197,6 +57197,12 @@ init_zod();
57197
57197
  init_zod();
57198
57198
  init_zod();
57199
57199
  init_zod();
57200
+ init_zod();
57201
+ init_zod();
57202
+ init_zod();
57203
+ init_zod();
57204
+ init_zod();
57205
+ init_zod();
57200
57206
  function resolveMaybeOptionalOptions2(rest) {
57201
57207
  return rest[0] ?? {};
57202
57208
  }
@@ -70571,6 +70577,185 @@ var settingsV2Contract = {
70571
70577
  assetTypeTemplates: assetTypeTemplatesV2Contract,
70572
70578
  complianceTemplates: complianceTemplatesV2Contract
70573
70579
  };
70580
+ var SmartWalletSignerSchema = exports_external.object({
70581
+ signer: exports_external.string(),
70582
+ validatorAddress: ethereumAddress,
70583
+ weight: exports_external.string().nullable()
70584
+ });
70585
+ var SmartWalletValidatorSchema = exports_external.object({
70586
+ moduleAddress: ethereumAddress,
70587
+ moduleTypeId: exports_external.string().nullable(),
70588
+ isInstalled: exports_external.boolean()
70589
+ });
70590
+ var SmartWalletSchema = exports_external.object({
70591
+ address: ethereumAddress,
70592
+ factory: ethereumAddress,
70593
+ owner: ethereumAddress,
70594
+ defaultValidator: ethereumAddress.nullable(),
70595
+ identity: ethereumAddress.nullable(),
70596
+ system: ethereumAddress.nullable(),
70597
+ threshold: exports_external.string().nullable(),
70598
+ validators: exports_external.array(SmartWalletValidatorSchema),
70599
+ signers: exports_external.array(SmartWalletSignerSchema),
70600
+ description: exports_external.string().nullable(),
70601
+ createdAt: exports_external.iso.datetime()
70602
+ });
70603
+ var SmartWalletCreateInputSchema = exports_external.object({
70604
+ salt: exports_external.string().optional(),
70605
+ description: exports_external.string().optional(),
70606
+ claimAuthorizationContracts: exports_external.array(ethereumAddress).optional()
70607
+ });
70608
+ var SmartWalletUpdateInputSchema = exports_external.object({
70609
+ description: exports_external.string()
70610
+ });
70611
+ var SmartWalletGasStatusSchema = exports_external.object({
70612
+ hasPaymaster: exports_external.boolean(),
70613
+ walletBalance: exports_external.string(),
70614
+ chainZeroGas: exports_external.boolean()
70615
+ });
70616
+ var SmartWalletGasStatusQuerySchema = exports_external.object({
70617
+ systemAddress: ethereumAddress.optional()
70618
+ });
70619
+ var SmartWalletAddressParamsSchema = exports_external.object({
70620
+ address: ethereumAddress
70621
+ });
70622
+ var TAGS22 = ["v2-smart-wallets"];
70623
+ var InstallModuleParamsSchema = exports_external.object({
70624
+ address: ethereumAddress
70625
+ });
70626
+ var InstallModuleBodySchema = exports_external.object({
70627
+ moduleAddress: ethereumAddress,
70628
+ initData: exports_external.string().optional()
70629
+ });
70630
+ var UninstallModuleParamsSchema = exports_external.object({
70631
+ address: ethereumAddress,
70632
+ moduleAddress: ethereumAddress
70633
+ });
70634
+ var installModule = v2Contract.route({
70635
+ method: "POST",
70636
+ path: "/smart-wallets/{address}/modules",
70637
+ description: "Install an ERC-7579 validator module on a smart wallet.",
70638
+ successDescription: "Module installation submitted.",
70639
+ tags: [...TAGS22]
70640
+ }).input(v2Input.paramsBody(InstallModuleParamsSchema, InstallModuleBodySchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70641
+ var uninstallModule = v2Contract.route({
70642
+ method: "DELETE",
70643
+ path: "/smart-wallets/{address}/modules/{moduleAddress}",
70644
+ description: "Uninstall a validator module from a smart wallet.",
70645
+ successDescription: "Module uninstallation submitted.",
70646
+ tags: [...TAGS22]
70647
+ }).input(v2Input.params(UninstallModuleParamsSchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70648
+ var smartWalletsV2ModulesContract = {
70649
+ installModule,
70650
+ uninstallModule
70651
+ };
70652
+ var TAGS23 = ["v2-smart-wallets"];
70653
+ var ListSignersParamsSchema = exports_external.object({
70654
+ address: ethereumAddress
70655
+ });
70656
+ var AddSignerParamsSchema = exports_external.object({
70657
+ address: ethereumAddress
70658
+ });
70659
+ var AddSignerBodySchema = exports_external.object({
70660
+ signer: ethereumAddress,
70661
+ weight: exports_external.string().regex(/^\d+$/, "Weight must be a positive decimal integer string").refine((v) => BigInt(v) > 0n && BigInt(v) <= 18446744073709551615n, "Weight must be between 1 and 2^64-1")
70662
+ });
70663
+ var RemoveSignerParamsSchema = exports_external.object({
70664
+ address: ethereumAddress,
70665
+ signer: ethereumAddress
70666
+ });
70667
+ var listSigners = v2Contract.route({
70668
+ method: "GET",
70669
+ path: "/smart-wallets/{address}/signers",
70670
+ description: "List all authorized signers for a smart wallet.",
70671
+ successDescription: "Array of signers with their weights and validator assignments.",
70672
+ tags: [...TAGS23]
70673
+ }).input(v2Input.params(ListSignersParamsSchema)).output(createSingleResponse(exports_external.array(SmartWalletSignerSchema)));
70674
+ var addSigner = v2Contract.route({
70675
+ method: "POST",
70676
+ path: "/smart-wallets/{address}/signers",
70677
+ description: "Add a new multisig signer to a smart wallet.",
70678
+ successDescription: "Signer addition submitted.",
70679
+ tags: [...TAGS23]
70680
+ }).input(v2Input.paramsBody(AddSignerParamsSchema, AddSignerBodySchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70681
+ var removeSigner = v2Contract.route({
70682
+ method: "DELETE",
70683
+ path: "/smart-wallets/{address}/signers/{signer}",
70684
+ description: "Remove a signer from a smart wallet.",
70685
+ successDescription: "Signer removal submitted.",
70686
+ tags: [...TAGS23]
70687
+ }).input(v2Input.params(RemoveSignerParamsSchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70688
+ var smartWalletsV2SignersContract = {
70689
+ listSigners,
70690
+ addSigner,
70691
+ removeSigner
70692
+ };
70693
+ var TAGS24 = ["v2-smart-wallets"];
70694
+ var SetThresholdParamsSchema = exports_external.object({
70695
+ address: ethereumAddress
70696
+ });
70697
+ var SetThresholdBodySchema = exports_external.object({
70698
+ threshold: exports_external.string().regex(/^\d+$/, "Threshold must be a positive decimal integer string").refine((v) => BigInt(v) > 0n && BigInt(v) <= 18446744073709551615n, "Threshold must be between 1 and 2^64-1")
70699
+ });
70700
+ var setThreshold = v2Contract.route({
70701
+ method: "PUT",
70702
+ path: "/smart-wallets/{address}/threshold",
70703
+ description: "Set the multisig threshold for a smart wallet. The threshold must not exceed the sum of all signer weights.",
70704
+ successDescription: "Threshold update submitted.",
70705
+ tags: [...TAGS24]
70706
+ }).input(v2Input.paramsBody(SetThresholdParamsSchema, SetThresholdBodySchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70707
+ var smartWalletsV2ThresholdContract = {
70708
+ setThreshold
70709
+ };
70710
+ var TAGS25 = ["v2-smart-wallets"];
70711
+ var list22 = v2Contract.route({
70712
+ method: "GET",
70713
+ path: "/smart-wallets",
70714
+ description: "List smart wallets where the authenticated user is a signer.",
70715
+ successDescription: "Array of smart wallets.",
70716
+ tags: [...TAGS25]
70717
+ }).input(v2Input.query(exports_external.object({}).optional())).output(createSingleResponse(exports_external.array(SmartWalletSchema)));
70718
+ var read18 = v2Contract.route({
70719
+ method: "GET",
70720
+ path: "/smart-wallets/{address}",
70721
+ description: "Read a single smart wallet by contract address, including validators, signers, and gas status.",
70722
+ successDescription: "Smart wallet details.",
70723
+ tags: [...TAGS25]
70724
+ }).input(v2Input.params(SmartWalletAddressParamsSchema)).output(createSingleResponse(SmartWalletSchema));
70725
+ var gasStatus = v2Contract.route({
70726
+ method: "GET",
70727
+ path: "/smart-wallets/{address}/gas-status",
70728
+ description: "Check gas funding status for a smart wallet — EntryPoint deposit, wallet balance, and paymaster availability.",
70729
+ successDescription: "Gas status for the wallet.",
70730
+ tags: [...TAGS25]
70731
+ }).input(v2Input.paramsQuery(SmartWalletAddressParamsSchema, SmartWalletGasStatusQuerySchema)).output(createSingleResponse(SmartWalletGasStatusSchema));
70732
+ var create12 = v2Contract.route({
70733
+ method: "POST",
70734
+ path: "/smart-wallets",
70735
+ description: "Deploy a new ERC-4337 smart wallet via the DALPAccountFactory. The factory's default validator (ECDSA) is installed automatically.",
70736
+ successDescription: "Smart wallet creation submitted.",
70737
+ tags: [...TAGS25]
70738
+ }).input(v2Input.body(SmartWalletCreateInputSchema)).output(createAsyncBlockchainMutationResponse(SmartWalletSchema));
70739
+ var update9 = v2Contract.route({
70740
+ method: "PATCH",
70741
+ path: "/smart-wallets/{address}",
70742
+ description: "Update off-chain metadata (description) for a smart wallet.",
70743
+ successDescription: "Smart wallet metadata updated.",
70744
+ tags: [...TAGS25]
70745
+ }).input(v2Input.paramsBody(SmartWalletAddressParamsSchema, SmartWalletUpdateInputSchema)).output(createSingleResponse(SmartWalletSchema));
70746
+ var smartWalletsV2Contract = {
70747
+ list: list22,
70748
+ read: read18,
70749
+ gasStatus,
70750
+ create: create12,
70751
+ update: update9,
70752
+ installModule: smartWalletsV2ModulesContract.installModule,
70753
+ uninstallModule: smartWalletsV2ModulesContract.uninstallModule,
70754
+ listSigners: smartWalletsV2SignersContract.listSigners,
70755
+ addSigner: smartWalletsV2SignersContract.addSigner,
70756
+ removeSigner: smartWalletsV2SignersContract.removeSigner,
70757
+ setThreshold: smartWalletsV2ThresholdContract.setThreshold
70758
+ };
70574
70759
  var ACCESS_ERRORS = ["DALP-4001", "DALP-4008", "DALP-4009"];
70575
70760
  var rolesList = v2Contract.route({
70576
70761
  method: "GET",
@@ -70606,7 +70791,7 @@ var accessManagerV2Contract = {
70606
70791
  grantRole,
70607
70792
  revokeRole
70608
70793
  };
70609
- var list22 = v2Contract.route({
70794
+ var list23 = v2Contract.route({
70610
70795
  method: "GET",
70611
70796
  path: "/system/accounts/{accountAddress}/activities",
70612
70797
  description: "Retrieve blockchain events where the specified" + " account address is involved. Provides a" + " paginated activity feed for any wallet or" + " contract address.",
@@ -70621,36 +70806,36 @@ var stats3 = v2Contract.route({
70621
70806
  tags: ["v2-system"]
70622
70807
  }).input(v2Input.paramsQuery(exports_external.object({ accountAddress: ActivityStatsInputSchema.shape.accountAddress }), ActivityStatsInputSchema.omit({ accountAddress: true }))).output(createSingleResponse(ActivityStatsOutputSchema));
70623
70808
  var activityV2Contract = {
70624
- list: list22,
70809
+ list: list23,
70625
70810
  stats: stats3
70626
70811
  };
70627
- var TAGS22 = ["v2-addon-factory"];
70812
+ var TAGS26 = ["v2-addon-factory"];
70628
70813
  var FACTORY_ERRORS = ["DALP-4001", "DALP-4003", "DALP-4018"];
70629
- var list23 = v2Contract.route({
70814
+ var list24 = v2Contract.route({
70630
70815
  method: "GET",
70631
70816
  path: "/system/addon-factories",
70632
70817
  description: "List system addon factories (extensions that add functionality to tokens)",
70633
70818
  successDescription: "List of system addon factories with their types and deployment info",
70634
- tags: [...TAGS22]
70819
+ tags: [...TAGS26]
70635
70820
  }).input(v2Input.query(SystemAddonListSchema)).output(createSingleResponse(SystemAddonSchema2.array()));
70636
- var create12 = v2Contract.route({
70821
+ var create13 = v2Contract.route({
70637
70822
  method: "POST",
70638
70823
  path: "/system/addon-factories",
70639
70824
  description: "Register system addon factory to extend SMART system functionality",
70640
70825
  successDescription: "System addon factory registered successfully",
70641
- tags: [...TAGS22]
70826
+ tags: [...TAGS26]
70642
70827
  }).meta({ contractErrors: [...FACTORY_ERRORS] }).input(v2Input.body(SystemAddonCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
70643
- var read18 = v2Contract.route({
70828
+ var read19 = v2Contract.route({
70644
70829
  method: "GET",
70645
70830
  path: "/system/addon-factories/{factoryAddress}",
70646
70831
  description: "Get an addon factory by address",
70647
70832
  successDescription: "Addon factory data with type information",
70648
- tags: [...TAGS22]
70833
+ tags: [...TAGS26]
70649
70834
  }).input(v2Input.params(exports_external.object({ factoryAddress: AddonFactoryReadInputSchema.shape.addonFactoryAddress }))).output(createSingleResponse(AddonFactoryReadOutputSchema));
70650
70835
  var addonFactoryV2Contract = {
70651
- list: list23,
70652
- create: create12,
70653
- read: read18
70836
+ list: list24,
70837
+ create: create13,
70838
+ read: read19
70654
70839
  };
70655
70840
  var CLAIM_TOPICS_COLLECTION_FIELDS = {
70656
70841
  topicId: textField(),
@@ -70663,28 +70848,28 @@ var ClaimTopicsV2ListInputSchema = createCollectionInputSchema(CLAIM_TOPICS_COLL
70663
70848
  var CLAIM_TOPICS_COLLECTION_METADATA = resolveCollectionMetadata(CLAIM_TOPICS_COLLECTION_FIELDS);
70664
70849
  var ClaimTopicsV2ListOutputSchema = createPaginatedResponse(TopicSchemeSchema);
70665
70850
  var CLAIM_TOPIC_ERRORS = ["DALP-4001", "DALP-4003", "DALP-3003", "DALP-3004"];
70666
- var list24 = v2Contract.route({
70851
+ var list25 = v2Contract.route({
70667
70852
  method: "GET",
70668
70853
  path: "/system/claim-topics",
70669
70854
  description: "List identity claim topics registered in the on-chain claim topic registry. Sortable by topicId, name.",
70670
70855
  successDescription: "Paginated array of claim topics with total count and faceted filter values.",
70671
70856
  tags: ["v2-claim-topics"]
70672
70857
  }).input(v2Input.query(ClaimTopicsV2ListInputSchema)).output(ClaimTopicsV2ListOutputSchema);
70673
- var create13 = v2Contract.route({
70858
+ var create14 = v2Contract.route({
70674
70859
  method: "POST",
70675
70860
  path: "/system/claim-topics",
70676
70861
  description: "Register a new topic scheme for identity claims.",
70677
70862
  successDescription: "Topic scheme registered successfully.",
70678
70863
  tags: ["v2-claim-topics"]
70679
70864
  }).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.body(TopicCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TopicCreateOutputSchema));
70680
- var read19 = v2Contract.route({
70865
+ var read20 = v2Contract.route({
70681
70866
  method: "GET",
70682
70867
  path: "/system/claim-topics/{name}",
70683
70868
  description: "Get detailed information about a specific claim topic including its trusted issuers.",
70684
70869
  successDescription: "Topic details retrieved successfully.",
70685
70870
  tags: ["v2-claim-topics"]
70686
70871
  }).input(v2Input.params(TopicReadInputSchema)).output(createSingleResponse(TopicReadOutputSchema));
70687
- var update9 = v2Contract.route({
70872
+ var update10 = v2Contract.route({
70688
70873
  method: "PUT",
70689
70874
  path: "/system/claim-topics/{name}",
70690
70875
  description: "Update the signature of an existing topic scheme.",
@@ -70699,21 +70884,21 @@ var del11 = v2Contract.route({
70699
70884
  tags: ["v2-claim-topics"]
70700
70885
  }).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(exports_external.object({ name: TopicDeleteInputSchema.shape.name }), TopicDeleteInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicDeleteOutputSchema));
70701
70886
  var claimTopicsV2Contract = {
70702
- list: list24,
70703
- create: create13,
70704
- read: read19,
70705
- update: update9,
70887
+ list: list25,
70888
+ create: create14,
70889
+ read: read20,
70890
+ update: update10,
70706
70891
  delete: del11
70707
70892
  };
70708
70893
  var COMPLIANCE_MODULE_ERRORS = ["DALP-4001", "DALP-4003", "DALP-1029", "DALP-1032"];
70709
- var list25 = v2Contract.route({
70894
+ var list26 = v2Contract.route({
70710
70895
  method: "GET",
70711
70896
  path: "/system/compliance-modules",
70712
70897
  description: "List all compliance modules registered in the system",
70713
70898
  successDescription: "Compliance modules retrieved successfully",
70714
70899
  tags: ["v2-compliance"]
70715
70900
  }).output(createSingleResponse(ComplianceModulesListOutputSchema));
70716
- var create14 = v2Contract.route({
70901
+ var create15 = v2Contract.route({
70717
70902
  method: "POST",
70718
70903
  path: "/system/compliance-modules",
70719
70904
  description: "Register system compliance modules",
@@ -70728,25 +70913,25 @@ var removeGlobal = v2Contract.route({
70728
70913
  tags: ["v2-compliance"]
70729
70914
  }).meta({ contractErrors: [...COMPLIANCE_MODULE_ERRORS] }).input(v2Input.body(ComplianceModuleRemoveGlobalSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
70730
70915
  var complianceModuleV2Contract = {
70731
- list: list25,
70732
- create: create14,
70916
+ list: list26,
70917
+ create: create15,
70733
70918
  removeGlobal
70734
70919
  };
70735
- var list26 = v2Contract.route({
70920
+ var list27 = v2Contract.route({
70736
70921
  method: "GET",
70737
70922
  path: "/systems",
70738
70923
  description: "List all SMART systems deployed on the blockchain with their registry contracts and configuration",
70739
70924
  successDescription: "List of SMART systems with deployment details and registry addresses",
70740
70925
  tags: ["v2-system"]
70741
70926
  }).input(v2Input.query(SystemListInputSchema)).output(createSingleResponse(exports_external.array(SystemListItemSchema)));
70742
- var create15 = v2Contract.route({
70927
+ var create16 = v2Contract.route({
70743
70928
  method: "POST",
70744
70929
  path: "/systems",
70745
70930
  description: "Deploy a new SMART system with identity registry, compliance engine, and token factory registry contracts",
70746
70931
  successDescription: "SMART system deployed successfully with all registry contracts and configuration",
70747
70932
  tags: ["v2-system"]
70748
70933
  }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(SystemCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemCreateOutputSchema));
70749
- var read20 = v2Contract.route({
70934
+ var read21 = v2Contract.route({
70750
70935
  method: "GET",
70751
70936
  path: "/systems/{systemAddress}",
70752
70937
  description: "Get details of a specific SMART system (use 'default' for the dApp system)",
@@ -70763,12 +70948,12 @@ var resume2 = v2Contract.route({
70763
70948
  tags: ["v2-system"]
70764
70949
  }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(SystemResumeInputSchema)).output(createBlockchainMutationResponse(SystemResumeOutputSchema));
70765
70950
  var coreV2Contract = {
70766
- list: list26,
70767
- create: create15,
70768
- read: read20,
70951
+ list: list27,
70952
+ create: create16,
70953
+ read: read21,
70769
70954
  resume: resume2
70770
70955
  };
70771
- var read21 = v2Contract.route({
70956
+ var read22 = v2Contract.route({
70772
70957
  method: "GET",
70773
70958
  path: "/system/directory",
70774
70959
  description: "Get the Directory configuration including" + " system implementations, registered asset" + " types, compliance modules, and addons",
@@ -70776,7 +70961,7 @@ var read21 = v2Contract.route({
70776
70961
  tags: ["v2-directory"]
70777
70962
  }).input(v2Input.query(DirectoryReadInputSchema)).output(createSingleResponse(DirectoryReadOutputSchema.nullable()));
70778
70963
  var directoryV2Contract = {
70779
- read: read21
70964
+ read: read22
70780
70965
  };
70781
70966
  var ENTITIES_COLLECTION_FIELDS = {
70782
70967
  lastActivity: dateField(),
@@ -70788,7 +70973,7 @@ var EntityV2ListInputSchema = createCollectionInputSchema(ENTITIES_COLLECTION_FI
70788
70973
  });
70789
70974
  var ENTITIES_COLLECTION_METADATA = resolveCollectionMetadata(ENTITIES_COLLECTION_FIELDS);
70790
70975
  var EntityV2ListOutputSchema = createPaginatedResponse(EntityItemSchema);
70791
- var list27 = v2Contract.route({
70976
+ var list28 = v2Contract.route({
70792
70977
  method: "GET",
70793
70978
  path: "/system/entities",
70794
70979
  description: "List on-chain registered identities from the identity registry. Filterable by entityType. Sortable by lastActivity, identityAddress.",
@@ -70796,36 +70981,36 @@ var list27 = v2Contract.route({
70796
70981
  tags: ["v2-entity"]
70797
70982
  }).input(v2Input.query(EntityV2ListInputSchema)).output(EntityV2ListOutputSchema);
70798
70983
  var entityV2Contract = {
70799
- list: list27
70984
+ list: list28
70800
70985
  };
70801
- var TAGS23 = ["v2-feeds"];
70986
+ var TAGS27 = ["v2-feeds"];
70802
70987
  var capabilities2 = v2Contract.route({
70803
70988
  method: "GET",
70804
70989
  path: "/system/feeds/capabilities",
70805
70990
  description: "Get the current installation state of feed-related modules (directory, factories, adapters)",
70806
70991
  successDescription: "Feed capabilities with addon installation status",
70807
- tags: [...TAGS23]
70992
+ tags: [...TAGS27]
70808
70993
  }).output(createSingleResponse(FeedsCapabilitiesOutputSchema));
70809
- var list28 = v2Contract.route({
70994
+ var list29 = v2Contract.route({
70810
70995
  method: "GET",
70811
70996
  path: "/system/feeds",
70812
70997
  description: "List all feeds registered in the feeds directory with optional filtering",
70813
70998
  successDescription: "Paginated list of feeds with latest values",
70814
- tags: [...TAGS23]
70999
+ tags: [...TAGS27]
70815
71000
  }).input(v2Input.query(FeedListInputSchema)).output(createSingleResponse(FeedListOutputSchema));
70816
71001
  var resolve2 = v2Contract.route({
70817
71002
  method: "GET",
70818
71003
  path: "/system/feeds/resolve",
70819
71004
  description: "Resolve the feed registered for a (subject, topic) pair via direct chain read with optional subgraph enrichment",
70820
71005
  successDescription: "Feed resolution result",
70821
- tags: [...TAGS23]
71006
+ tags: [...TAGS27]
70822
71007
  }).input(v2Input.query(FeedResolveInputSchema)).output(createSingleResponse(FeedResolveOutputSchema));
70823
- var read22 = v2Contract.route({
71008
+ var read23 = v2Contract.route({
70824
71009
  method: "GET",
70825
71010
  path: "/system/feeds/{feedAddress}",
70826
71011
  description: "Read a single feed by its contract address",
70827
71012
  successDescription: "Feed details with latest value",
70828
- tags: [...TAGS23]
71013
+ tags: [...TAGS27]
70829
71014
  }).input(v2Input.params(FeedReadInputSchema)).output(createSingleResponse(FeedReadOutputSchema));
70830
71015
  var registerExternal2 = v2Contract.route({
70831
71016
  method: "POST",
@@ -70833,63 +71018,63 @@ var registerExternal2 = v2Contract.route({
70833
71018
  description: "Register an already-deployed Chainlink-compatible feed address in the feeds directory",
70834
71019
  successDescription: "Feed registered successfully",
70835
71020
  successStatus: 201,
70836
- tags: [...TAGS23]
71021
+ tags: [...TAGS27]
70837
71022
  }).input(v2Input.body(FeedRegisterExternalInputSchema)).output(createAsyncBlockchainMutationResponse(FeedRegisterExternalOutputSchema));
70838
71023
  var replace2 = v2Contract.route({
70839
71024
  method: "PUT",
70840
71025
  path: "/system/feeds/replace",
70841
71026
  description: "Replace the feed registered for a (subject, topic) pair with a new feed address",
70842
71027
  successDescription: "Feed replaced successfully",
70843
- tags: [...TAGS23]
71028
+ tags: [...TAGS27]
70844
71029
  }).input(v2Input.body(FeedReplaceInputSchema)).output(createAsyncBlockchainMutationResponse(FeedReplaceOutputSchema));
70845
71030
  var remove3 = v2Contract.route({
70846
71031
  method: "DELETE",
70847
71032
  path: "/system/feeds/remove",
70848
71033
  description: "Remove the feed registered for a (subject, topic) pair from the directory",
70849
71034
  successDescription: "Feed removed successfully",
70850
- tags: [...TAGS23]
71035
+ tags: [...TAGS27]
70851
71036
  }).input(v2Input.body(FeedRemoveInputSchema)).output(createAsyncBlockchainMutationResponse(FeedRemoveOutputSchema));
70852
71037
  var latest2 = v2Contract.route({
70853
71038
  method: "GET",
70854
71039
  path: "/system/feeds/{feedAddress}/latest",
70855
71040
  description: "Get the latest round data from a feed via direct chain read",
70856
71041
  successDescription: "Latest feed value with metadata",
70857
- tags: [...TAGS23]
71042
+ tags: [...TAGS27]
70858
71043
  }).input(v2Input.params(FeedLatestInputSchema)).output(createSingleResponse(FeedLatestOutputSchema));
70859
71044
  var round22 = v2Contract.route({
70860
71045
  method: "GET",
70861
71046
  path: "/system/feeds/{feedAddress}/round/{roundId}",
70862
71047
  description: "Get historical round data from a feed",
70863
71048
  successDescription: "Round data for the requested round ID",
70864
- tags: [...TAGS23]
71049
+ tags: [...TAGS27]
70865
71050
  }).input(v2Input.params(FeedRoundInputSchema)).output(createSingleResponse(FeedRoundOutputSchema));
70866
71051
  var staleness2 = v2Contract.route({
70867
71052
  method: "GET",
70868
71053
  path: "/system/feeds/{feedAddress}/staleness",
70869
71054
  description: "Evaluate whether a feed value is stale based on a maximum age threshold",
70870
71055
  successDescription: "Staleness evaluation result",
70871
- tags: [...TAGS23]
71056
+ tags: [...TAGS27]
70872
71057
  }).input(v2Input.paramsQuery(exports_external.object({ feedAddress: FeedStalenessInputSchema.shape.feedAddress }), exports_external.object(FeedStalenessInputSchema.shape).omit({ feedAddress: true }))).output(createSingleResponse(FeedStalenessOutputSchema));
70873
71058
  var config22 = v2Contract.route({
70874
71059
  method: "GET",
70875
71060
  path: "/system/feeds/{feedAddress}/config",
70876
71061
  description: "Read immutable configuration from an IssuerSignedScalarFeed instance",
70877
71062
  successDescription: "Feed configuration",
70878
- tags: [...TAGS23]
71063
+ tags: [...TAGS27]
70879
71064
  }).input(v2Input.params(FeedConfigInputSchema)).output(createSingleResponse(FeedConfigOutputSchema));
70880
71065
  var nonce2 = v2Contract.route({
70881
71066
  method: "GET",
70882
71067
  path: "/system/feeds/{feedAddress}/nonce/{issuerIdentity}",
70883
71068
  description: "Get the current nonce for an issuer identity contract on a specific feed",
70884
71069
  successDescription: "Current and next nonce values",
70885
- tags: [...TAGS23]
71070
+ tags: [...TAGS27]
70886
71071
  }).input(v2Input.params(FeedNonceInputSchema)).output(createSingleResponse(FeedNonceOutputSchema));
70887
71072
  var submit2 = v2Contract.route({
70888
71073
  method: "POST",
70889
71074
  path: "/system/feeds/{feedAddress}/submit",
70890
71075
  description: "Sign and submit a feed update using the backend-managed signer (EIP-712)",
70891
71076
  successDescription: "Feed update submitted",
70892
- tags: [...TAGS23]
71077
+ tags: [...TAGS27]
70893
71078
  }).input(v2Input.paramsBody(exports_external.object({ feedAddress: FeedSubmitInputSchema.shape.feedAddress }), exports_external.object(FeedSubmitInputSchema.shape).omit({ feedAddress: true }))).output(createAsyncBlockchainMutationResponse(FeedSubmitOutputSchema));
70894
71079
  var issuerSignedCreate2 = v2Contract.route({
70895
71080
  method: "POST",
@@ -70897,14 +71082,14 @@ var issuerSignedCreate2 = v2Contract.route({
70897
71082
  description: "Create a new issuer-signed scalar feed via the factory and auto-register in the directory",
70898
71083
  successDescription: "Feed created and registered",
70899
71084
  successStatus: 201,
70900
- tags: [...TAGS23]
71085
+ tags: [...TAGS27]
70901
71086
  }).input(v2Input.body(IssuerSignedCreateInputSchema)).output(createAsyncBlockchainMutationResponse(IssuerSignedCreateOutputSchema));
70902
71087
  var issuerSignedList2 = v2Contract.route({
70903
71088
  method: "GET",
70904
71089
  path: "/system/feeds/issuer-signed",
70905
71090
  description: "List feeds created via the IssuerSignedScalarFeedFactory (indexed via subgraph)",
70906
71091
  successDescription: "List of factory-created feeds",
70907
- tags: [...TAGS23]
71092
+ tags: [...TAGS27]
70908
71093
  }).input(v2Input.query(IssuerSignedListInputSchema)).output(createSingleResponse(IssuerSignedListOutputSchema));
70909
71094
  var adapterCreate2 = v2Contract.route({
70910
71095
  method: "POST",
@@ -70912,20 +71097,20 @@ var adapterCreate2 = v2Contract.route({
70912
71097
  description: "Create a stable-address adapter for a (subject, topic) pair",
70913
71098
  successDescription: "Adapter created",
70914
71099
  successStatus: 201,
70915
- tags: [...TAGS23]
71100
+ tags: [...TAGS27]
70916
71101
  }).input(v2Input.body(AdapterCreateInputSchema)).output(createAsyncBlockchainMutationResponse(AdapterCreateOutputSchema));
70917
71102
  var adapterList2 = v2Contract.route({
70918
71103
  method: "GET",
70919
71104
  path: "/system/feeds/adapters",
70920
71105
  description: "List adapters created via the ScalarFeedAggregatorAdapterFactory (indexed via subgraph)",
70921
71106
  successDescription: "List of adapters",
70922
- tags: [...TAGS23]
71107
+ tags: [...TAGS27]
70923
71108
  }).input(v2Input.query(AdapterListInputSchema)).output(createSingleResponse(AdapterListOutputSchema));
70924
71109
  var feedsV2Contract = {
70925
71110
  capabilities: capabilities2,
70926
- list: list28,
71111
+ list: list29,
70927
71112
  resolve: resolve2,
70928
- read: read22,
71113
+ read: read23,
70929
71114
  registerExternal: registerExternal2,
70930
71115
  replace: replace2,
70931
71116
  remove: remove3,
@@ -70944,36 +71129,36 @@ var feedsV2Contract = {
70944
71129
  list: adapterList2
70945
71130
  }
70946
71131
  };
70947
- var TAGS24 = ["v2-identity"];
71132
+ var TAGS28 = ["v2-identity"];
70948
71133
  var IDENTITY_ERRORS = ["DALP-4001", "DALP-4003", "DALP-1027", "DALP-1028"];
70949
71134
  var identityMutationOutput = createAsyncBlockchainMutationResponse(IdentitySchema);
70950
- var create16 = v2Contract.route({
71135
+ var create17 = v2Contract.route({
70951
71136
  method: "POST",
70952
71137
  path: "/identities",
70953
71138
  description: "Create a new blockchain identity contract for the authenticated user.",
70954
71139
  successDescription: "Identity created successfully.",
70955
- tags: TAGS24
71140
+ tags: TAGS28
70956
71141
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityCreateSchema)).output(identityMutationOutput);
70957
71142
  var register22 = v2Contract.route({
70958
71143
  method: "POST",
70959
71144
  path: "/system/identity-registrations",
70960
71145
  description: "Register identity claims for the current user and current system.",
70961
71146
  successDescription: "Identity claims registered successfully.",
70962
- tags: TAGS24
71147
+ tags: TAGS28
70963
71148
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityRegisterSchema)).output(identityMutationOutput);
70964
71149
  var registerPending = v2Contract.route({
70965
71150
  method: "POST",
70966
71151
  path: "/system/pending-identity-registrations",
70967
71152
  description: "Register an existing identity contract in the current system as PENDING.",
70968
71153
  successDescription: "Identity registered as PENDING.",
70969
- tags: TAGS24
71154
+ tags: TAGS28
70970
71155
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityRegisterPendingSchema)).output(identityMutationOutput);
70971
71156
  var readByWallet2 = v2Contract.route({
70972
71157
  method: "GET",
70973
71158
  path: "/system/wallets/{wallet}/identity",
70974
71159
  description: "Read identity information by wallet address with claim validation.",
70975
71160
  successDescription: "Identity information retrieved successfully.",
70976
- tags: TAGS24
71161
+ tags: TAGS28
70977
71162
  }).input(v2Input.paramsQuery(exports_external.object({
70978
71163
  wallet: ethereumAddress.meta({
70979
71164
  description: "The wallet address of the user",
@@ -70990,7 +71175,7 @@ var readById = v2Contract.route({
70990
71175
  path: "/system/identities/{identityAddress}",
70991
71176
  description: "Read identity information by identity contract address.",
70992
71177
  successDescription: "Identity information retrieved successfully.",
70993
- tags: TAGS24
71178
+ tags: TAGS28
70994
71179
  }).input(v2Input.paramsQuery(exports_external.object({
70995
71180
  identityAddress: ethereumAddress.meta({
70996
71181
  description: "The address of the identity contract to read",
@@ -71007,73 +71192,73 @@ var search3 = v2Contract.route({
71007
71192
  path: "/system/identity-searches",
71008
71193
  description: "Search for basic identity information by account or contract address.",
71009
71194
  successDescription: "Identity search completed successfully.",
71010
- tags: TAGS24
71195
+ tags: TAGS28
71011
71196
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentitySearchSchema)).output(createSingleResponse(IdentitySearchResultSchema));
71012
71197
  var me2 = v2Contract.route({
71013
71198
  method: "GET",
71014
71199
  path: "/system/identities/me",
71015
71200
  description: "Get the authenticated user's identity information.",
71016
71201
  successDescription: "Identity retrieved successfully.",
71017
- tags: TAGS24
71202
+ tags: TAGS28
71018
71203
  }).output(createSingleResponse(IdentitySchema));
71019
- var list29 = v2Contract.route({
71204
+ var list30 = v2Contract.route({
71020
71205
  method: "GET",
71021
71206
  path: "/system/identities",
71022
71207
  description: "Retrieve a paginated list of blockchain identities with metadata.",
71023
71208
  successDescription: "Identities fetched successfully.",
71024
- tags: TAGS24
71209
+ tags: TAGS28
71025
71210
  }).input(v2Input.query(IdentityListInputSchema)).output(createSingleResponse(IdentityListOutputSchema));
71026
71211
  var identityDelete2 = v2Contract.route({
71027
71212
  method: "DELETE",
71028
71213
  path: "/system/wallets/{wallet}/identity",
71029
71214
  description: "Delete an identity from the system's identity registry.",
71030
71215
  successDescription: "Identity deleted successfully.",
71031
- tags: TAGS24
71216
+ tags: TAGS28
71032
71217
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(exports_external.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
71033
71218
  var updateCountry = v2Contract.route({
71034
71219
  method: "PATCH",
71035
71220
  path: "/system/identity-countries",
71036
71221
  description: "Update the country for a registered identity.",
71037
71222
  successDescription: "Identity country updated successfully.",
71038
- tags: TAGS24
71223
+ tags: TAGS28
71039
71224
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityUpdateCountrySchema)).output(identityMutationOutput);
71040
71225
  var registrationStatus = v2Contract.route({
71041
71226
  method: "GET",
71042
71227
  path: "/system/identity-registration-statuses",
71043
71228
  description: "Check if a user's identity needs registration in a system.",
71044
71229
  successDescription: "Registration status retrieved successfully.",
71045
- tags: TAGS24
71230
+ tags: TAGS28
71046
71231
  }).input(v2Input.query(IdentityRegistrationStatusInputSchema)).output(createSingleResponse(IdentityRegistrationStatusOutputSchema));
71047
71232
  var claimHistory = v2Contract.route({
71048
71233
  method: "GET",
71049
71234
  path: "/system/identity-claim-events",
71050
71235
  description: "Retrieve chronological claim events for an identity.",
71051
71236
  successDescription: "Claim history retrieved successfully.",
71052
- tags: TAGS24
71237
+ tags: TAGS28
71053
71238
  }).input(v2Input.query(ClaimsHistoryInputSchema)).output(createSingleResponse(ClaimsHistoryOutputSchema));
71054
71239
  var claimIssue = v2Contract.route({
71055
71240
  method: "POST",
71056
71241
  path: "/system/identity-claims",
71057
71242
  description: "Issue a new claim to a user's on-chain identity.",
71058
71243
  successDescription: "Claim issued successfully.",
71059
- tags: TAGS24
71244
+ tags: TAGS28
71060
71245
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(ClaimsIssueInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsIssueOutputSchema));
71061
71246
  var claimRevoke = v2Contract.route({
71062
71247
  method: "POST",
71063
71248
  path: "/system/identity-claim-revocations",
71064
71249
  description: "Revoke an existing claim from a user's on-chain identity.",
71065
71250
  successDescription: "Claim revoked successfully.",
71066
- tags: TAGS24
71251
+ tags: TAGS28
71067
71252
  }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(ClaimsRevokeInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsRevokeOutputSchema));
71068
71253
  var identityV2Contract = {
71069
- create: create16,
71254
+ create: create17,
71070
71255
  register: register22,
71071
71256
  registerPending,
71072
71257
  readByWallet: readByWallet2,
71073
71258
  readById,
71074
71259
  search: search3,
71075
71260
  me: me2,
71076
- list: list29,
71261
+ list: list30,
71077
71262
  delete: identityDelete2,
71078
71263
  updateCountry,
71079
71264
  registrationStatus,
@@ -71349,50 +71534,93 @@ var statsV2Contract = {
71349
71534
  systemValueHistoryByRange,
71350
71535
  systemValueHistoryByPreset
71351
71536
  };
71352
- var TAGS25 = ["v2-token-factory"];
71537
+ var TAGS29 = ["v2-token-factory"];
71353
71538
  var FACTORY_ERRORS2 = ["DALP-4001", "DALP-4003", "DALP-4013", "DALP-4014"];
71354
- var list30 = v2Contract.route({
71539
+ var list31 = v2Contract.route({
71355
71540
  method: "GET",
71356
71541
  path: "/system/factories",
71357
71542
  description: "List all token factories",
71358
71543
  successDescription: "List of token factories",
71359
- tags: [...TAGS25]
71544
+ tags: [...TAGS29]
71360
71545
  }).input(v2Input.query(TokenFactoryListSchema)).output(createSingleResponse(FactoryListSchema));
71361
- var create17 = v2Contract.route({
71546
+ var create18 = v2Contract.route({
71362
71547
  method: "POST",
71363
71548
  path: "/system/factories",
71364
71549
  description: "Deploy one or more token factory contracts for creating specific token types",
71365
71550
  successDescription: "Token factory deployed successfully",
71366
- tags: [...TAGS25]
71551
+ tags: [...TAGS29]
71367
71552
  }).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(FactoryCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
71368
- var read23 = v2Contract.route({
71553
+ var read24 = v2Contract.route({
71369
71554
  method: "GET",
71370
71555
  path: "/system/factories/{factoryAddress}",
71371
71556
  description: "Get a token factory by address",
71372
71557
  successDescription: "Token factory details",
71373
- tags: [...TAGS25]
71558
+ tags: [...TAGS29]
71374
71559
  }).input(v2Input.params(FactoryReadSchema)).output(createSingleResponse(TokenFactoryDetailSchema));
71375
71560
  var available = v2Contract.route({
71376
71561
  method: "GET",
71377
71562
  path: "/system/factory-address-availability-checks",
71378
71563
  description: "Check if a predicted token address is available before deployment",
71379
71564
  successDescription: "Predicted address and availability status",
71380
- tags: [...TAGS25]
71565
+ tags: [...TAGS29]
71381
71566
  }).input(v2Input.query(AvailableInputSchema)).output(createSingleResponse(AvailableOutputSchema));
71382
71567
  var predictAddress = v2Contract.route({
71383
71568
  method: "POST",
71384
71569
  path: "/system/factory-address-predictions",
71385
71570
  description: "Predict the address of a token before deployment",
71386
71571
  successDescription: "Predicted token address",
71387
- tags: [...TAGS25]
71572
+ tags: [...TAGS29]
71388
71573
  }).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(PredictAddressInputSchema)).output(createSingleResponse(PredictAddressOutputSchema));
71389
71574
  var tokenFactoryV2Contract = {
71390
- list: list30,
71391
- create: create17,
71392
- read: read23,
71575
+ list: list31,
71576
+ create: create18,
71577
+ read: read24,
71393
71578
  available,
71394
71579
  predictAddress
71395
71580
  };
71581
+ var PaymasterSchema = exports_external.object({
71582
+ address: ethereumAddress,
71583
+ system: ethereumAddress.nullable(),
71584
+ factory: ethereumAddress,
71585
+ createdAt: exports_external.iso.datetime()
71586
+ });
71587
+ var PaymasterBalanceSchema = exports_external.object({
71588
+ address: ethereumAddress,
71589
+ depositBalance: exports_external.string()
71590
+ });
71591
+ var PaymasterDepositInputSchema = exports_external.object({
71592
+ amount: exports_external.string()
71593
+ });
71594
+ var PaymasterAddressParamsSchema = exports_external.object({
71595
+ address: ethereumAddress
71596
+ });
71597
+ var TAGS30 = ["v2-paymaster"];
71598
+ var list32 = v2Contract.route({
71599
+ method: "GET",
71600
+ path: "/system/paymasters",
71601
+ description: "List all paymasters for the current system",
71602
+ successDescription: "List of paymasters",
71603
+ tags: [...TAGS30]
71604
+ }).output(createSingleResponse(PaymasterSchema.array()));
71605
+ var balance = v2Contract.route({
71606
+ method: "GET",
71607
+ path: "/system/paymasters/{address}/balance",
71608
+ description: "Get the EntryPoint deposit balance for a paymaster",
71609
+ successDescription: "Paymaster balance",
71610
+ tags: [...TAGS30]
71611
+ }).input(v2Input.params(PaymasterAddressParamsSchema)).output(createSingleResponse(PaymasterBalanceSchema));
71612
+ var deposit = v2Contract.route({
71613
+ method: "POST",
71614
+ path: "/system/paymasters/{address}/deposits",
71615
+ description: "Fund a paymaster's EntryPoint deposit",
71616
+ successDescription: "Deposit initiated",
71617
+ tags: [...TAGS30]
71618
+ }).input(v2Input.paramsBody(PaymasterAddressParamsSchema, PaymasterDepositInputSchema)).output(createAsyncBlockchainMutationResponse(PaymasterBalanceSchema));
71619
+ var paymasterV2Contract = {
71620
+ list: list32,
71621
+ balance,
71622
+ deposit
71623
+ };
71396
71624
  var TRUSTED_ISSUERS_COLLECTION_FIELDS = {
71397
71625
  id: addressField()
71398
71626
  };
@@ -71403,28 +71631,28 @@ var TrustedIssuersV2ListInputSchema = createCollectionInputSchema(TRUSTED_ISSUER
71403
71631
  var TRUSTED_ISSUERS_COLLECTION_METADATA = resolveCollectionMetadata(TRUSTED_ISSUERS_COLLECTION_FIELDS);
71404
71632
  var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
71405
71633
  var TRUSTED_ISSUER_ERRORS = ["DALP-4001", "DALP-4003"];
71406
- var list31 = v2Contract.route({
71634
+ var list33 = v2Contract.route({
71407
71635
  method: "GET",
71408
71636
  path: "/system/trusted-issuers",
71409
71637
  description: "List trusted claim issuers registered in the on-chain trusted issuers registry. Sortable by id.",
71410
71638
  successDescription: "Paginated array of trusted issuers with total count and faceted filter values.",
71411
71639
  tags: ["v2-trusted-issuers"]
71412
71640
  }).input(v2Input.query(TrustedIssuersV2ListInputSchema)).output(TrustedIssuersV2ListOutputSchema);
71413
- var read24 = v2Contract.route({
71641
+ var read25 = v2Contract.route({
71414
71642
  method: "GET",
71415
71643
  path: "/system/trusted-issuers/{issuerAddress}",
71416
71644
  description: "Get details for a trusted issuer by identity address.",
71417
71645
  successDescription: "Trusted issuer retrieved successfully.",
71418
71646
  tags: ["v2-trusted-issuers"]
71419
71647
  }).input(v2Input.params(TrustedIssuerReadInputSchema)).output(createSingleResponse(TrustedIssuerReadOutputSchema));
71420
- var create18 = v2Contract.route({
71648
+ var create19 = v2Contract.route({
71421
71649
  method: "POST",
71422
71650
  path: "/system/trusted-issuers",
71423
71651
  description: "Create a new trusted issuer in the registry.",
71424
71652
  successDescription: "Trusted issuer created successfully.",
71425
71653
  tags: ["v2-trusted-issuers"]
71426
71654
  }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.body(TrustedIssuerCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TrustedIssuerCreateOutputSchema));
71427
- var update10 = v2Contract.route({
71655
+ var update11 = v2Contract.route({
71428
71656
  method: "PATCH",
71429
71657
  path: "/system/trusted-issuers/{issuerAddress}",
71430
71658
  description: "Update the claim topics for a trusted issuer.",
@@ -71453,10 +71681,10 @@ var topics = v2Contract.route({
71453
71681
  tags: ["v2-trusted-issuers"]
71454
71682
  }).input(v2Input.params(TrustedIssuerTopicsInputSchema)).output(createSingleResponse(TrustedIssuerTopicsOutputSchema));
71455
71683
  var trustedIssuersV2Contract = {
71456
- list: list31,
71457
- read: read24,
71458
- create: create18,
71459
- update: update10,
71684
+ list: list33,
71685
+ read: read25,
71686
+ create: create19,
71687
+ update: update11,
71460
71688
  upsert: upsert5,
71461
71689
  delete: del12,
71462
71690
  topics
@@ -71474,9 +71702,10 @@ var systemV2Contract = {
71474
71702
  identity: identityV2Contract,
71475
71703
  stats: statsV2Contract,
71476
71704
  factory: tokenFactoryV2Contract,
71705
+ paymaster: paymasterV2Contract,
71477
71706
  trustedIssuers: trustedIssuersV2Contract
71478
71707
  };
71479
- var list32 = v2Contract.route({
71708
+ var list34 = v2Contract.route({
71480
71709
  method: "GET",
71481
71710
  path: "/tokens/{tokenAddress}/documents",
71482
71711
  description: "List all documents for a token.",
@@ -71512,7 +71741,7 @@ var getDownloadUrl = v2Contract.route({
71512
71741
  tags: ["v2-token-documents"]
71513
71742
  }).input(v2Input.params(TokenDocumentGetDownloadUrlInputSchema)).output(createSingleResponse(TokenDocumentGetDownloadUrlOutputSchema));
71514
71743
  var tokenV2DocumentsContract = {
71515
- list: list32,
71744
+ list: list34,
71516
71745
  delete: del13,
71517
71746
  getUploadUrl,
71518
71747
  confirmUpload,
@@ -71804,7 +72033,7 @@ var FREEZE = ["DALP-1019", "DALP-1020", "DALP-1024", "DALP-1025", "DALP-1043"];
71804
72033
  var RECOVERY = ["DALP-1076", "DALP-1079", "DALP-4051"];
71805
72034
  var ROLES = ["DALP-4008", "DALP-4009"];
71806
72035
  var mutationOutput = createAsyncBlockchainMutationResponse(TokenSchema);
71807
- var create19 = v2Contract.route({
72036
+ var create20 = v2Contract.route({
71808
72037
  method: "POST",
71809
72038
  path: "/tokens",
71810
72039
  description: "Create a new token (deposit, bond, equity, fund, or stablecoin) and deploy it to the blockchain.",
@@ -72255,7 +72484,7 @@ var removeAuthorizedConverter = v2Contract.route({
72255
72484
  tags: ["v2-token"]
72256
72485
  }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRemoveAuthorizedConverterInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
72257
72486
  var tokenV2MutationsContract = {
72258
- create: create19,
72487
+ create: create20,
72259
72488
  mint,
72260
72489
  burn,
72261
72490
  transfer,
@@ -72700,7 +72929,7 @@ var TokenActionsInputSchema2 = exports_external.object({
72700
72929
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
72701
72930
  })
72702
72931
  }).extend(ActionsListInputSchema.shape);
72703
- var read25 = v2Contract.route({
72932
+ var read26 = v2Contract.route({
72704
72933
  method: "GET",
72705
72934
  path: "/tokens/{tokenAddress}",
72706
72935
  description: "Get a token by address.",
@@ -72778,7 +73007,7 @@ var transferApprovals = v2Contract.route({
72778
73007
  tags: ["v2-compliance"]
72779
73008
  }).input(v2Input.params(TransferApprovalsInputSchema)).output(createSingleResponse(TransferApprovalsResponseSchema));
72780
73009
  var tokenV2ReadsContract = {
72781
- read: read25,
73010
+ read: read26,
72782
73011
  allowance,
72783
73012
  holder,
72784
73013
  holders,
@@ -72860,7 +73089,7 @@ var tokenV2StatsContract = {
72860
73089
  statsYieldDistribution,
72861
73090
  statsYieldCoverage
72862
73091
  };
72863
- var list33 = v2Contract.route({
73092
+ var list35 = v2Contract.route({
72864
73093
  method: "GET",
72865
73094
  path: "/tokens",
72866
73095
  description: "List deployed tokens visible to the authenticated user, optionally filtered by tokenFactory address. Sortable by name, symbol, decimals, createdAt.",
@@ -72868,7 +73097,7 @@ var list33 = v2Contract.route({
72868
73097
  tags: ["v2-token"]
72869
73098
  }).input(v2Input.query(TokenV2ListInputSchema)).output(TokenV2ListOutputSchema);
72870
73099
  var tokenV2Contract = {
72871
- list: list33,
73100
+ list: list35,
72872
73101
  ...tokenV2ReadsContract,
72873
73102
  ...tokenV2MutationsContract,
72874
73103
  ...tokenV2StatsContract,
@@ -73101,7 +73330,7 @@ var TransactionStatusOutputSchema = exports_external.object({
73101
73330
  });
73102
73331
  var TransactionV2StatusInputSchema = TransactionStatusInputSchema;
73103
73332
  var TransactionV2StatusOutputSchema = createSingleResponse(TransactionStatusOutputSchema);
73104
- var read26 = v2Contract.route({
73333
+ var read27 = v2Contract.route({
73105
73334
  method: "GET",
73106
73335
  path: "/blockchain-transactions/{transactionHash}",
73107
73336
  description: "Get transaction details by hash including receipt data. Receipt is null for pending transactions.",
@@ -73115,7 +73344,7 @@ var status3 = v2Contract.route({
73115
73344
  successDescription: "Transaction queue status retrieved successfully.",
73116
73345
  tags: ["v2-transaction"]
73117
73346
  }).input(v2Input.params(TransactionV2StatusInputSchema)).output(TransactionV2StatusOutputSchema);
73118
- var list34 = v2Contract.route({
73347
+ var list36 = v2Contract.route({
73119
73348
  method: "GET",
73120
73349
  path: "/transaction-requests",
73121
73350
  description: "List transaction queue entries with optional filtering by status, sender address, chain ID, and date range. Supports sorting and offset pagination.",
@@ -73151,9 +73380,9 @@ var forceNonce = v2Contract.route({
73151
73380
  tags: ["v2-transaction-admin"]
73152
73381
  }).input(v2Input.paramsBody(TransactionForceNonceInputSchema, TransactionForceNonceBodySchema)).output(TransactionV2ForceNonceOutputSchema);
73153
73382
  var transactionV2Contract = {
73154
- read: read26,
73383
+ read: read27,
73155
73384
  status: status3,
73156
- list: list34,
73385
+ list: list36,
73157
73386
  cancel: cancel3,
73158
73387
  forceRetry,
73159
73388
  forceFail,
@@ -73313,7 +73542,7 @@ var kycV2Contract = {
73313
73542
  },
73314
73543
  actionRequest: { fulfill: actionRequestFulfill }
73315
73544
  };
73316
- var list35 = v2Contract.route({
73545
+ var list37 = v2Contract.route({
73317
73546
  method: "GET",
73318
73547
  path: "/users",
73319
73548
  description: "List all users in the current organization. Sortable by createdAt, name, email, wallet.",
@@ -73334,7 +73563,7 @@ var me3 = v2Contract.route({
73334
73563
  successDescription: "Authenticated user profile retrieved successfully.",
73335
73564
  tags: ["v2-user"]
73336
73565
  }).output(createSingleResponse(UserMeSchema));
73337
- var update11 = v2Contract.route({
73566
+ var update12 = v2Contract.route({
73338
73567
  method: "PATCH",
73339
73568
  path: "/users/me",
73340
73569
  description: "Update the authenticated user's profile fields.",
@@ -73397,7 +73626,7 @@ var statsGrowthOverTime2 = v2Contract.route({
73397
73626
  successDescription: "User growth statistics retrieved successfully.",
73398
73627
  tags: ["v2-user"]
73399
73628
  }).input(v2Input.query(UserStatsGrowthOverTimeInputSchema)).output(createSingleResponse(UserStatsGrowthOverTimeOutputSchema));
73400
- var create20 = v2Contract.route({
73629
+ var create21 = v2Contract.route({
73401
73630
  method: "POST",
73402
73631
  path: "/users",
73403
73632
  description: "Create a new user with wallet and on-chain identity. Requires admin privileges.",
@@ -73447,10 +73676,10 @@ var adminTriggerPasswordReset2 = v2Contract.route({
73447
73676
  tags: ["v2-user-admin"]
73448
73677
  }).input(v2Input.params(UserAdminInputSchema)).output(createSingleResponse(AdminMutationOutputSchema));
73449
73678
  var userV2Contract = {
73450
- list: list35,
73679
+ list: list37,
73451
73680
  events: events3,
73452
73681
  me: me3,
73453
- update: update11,
73682
+ update: update12,
73454
73683
  adminList: adminList2,
73455
73684
  readByUserId: readByUserId2,
73456
73685
  readByWallet: readByWallet3,
@@ -73459,7 +73688,7 @@ var userV2Contract = {
73459
73688
  stats: stats4,
73460
73689
  statsUserCount: statsUserCount2,
73461
73690
  statsGrowthOverTime: statsGrowthOverTime2,
73462
- create: create20,
73691
+ create: create21,
73463
73692
  createWallet,
73464
73693
  adminGetSecurity: adminGetSecurity2,
73465
73694
  adminRevokeSession: adminRevokeSession2,
@@ -73483,6 +73712,7 @@ var v2Contract2 = {
73483
73712
  identityRecovery: identityRecoveryV2Contract,
73484
73713
  search: searchV2Contract,
73485
73714
  settings: settingsV2Contract,
73715
+ smartWallets: smartWalletsV2Contract,
73486
73716
  system: systemV2Contract,
73487
73717
  token: tokenV2Contract,
73488
73718
  transaction: transactionV2Contract,
@@ -77900,6 +78130,23 @@ var contractErrorCatalog = defineContractErrors({
77900
78130
  retryable: false,
77901
78131
  severity: "error"
77902
78132
  },
78133
+ "NotImplemented()": {
78134
+ dalpCode: "DALP-4374",
78135
+ audience: "user",
78136
+ qualityTier: "scaffolded",
78137
+ message: "Not implemented",
78138
+ retryable: false,
78139
+ severity: "error"
78140
+ },
78141
+ "PaymasterNotDeployed(address)": {
78142
+ dalpCode: "DALP-4375",
78143
+ audience: "user",
78144
+ qualityTier: "scaffolded",
78145
+ message: "Paymaster not deployed",
78146
+ retryable: false,
78147
+ severity: "error",
78148
+ argNames: ["paymaster"]
78149
+ },
77903
78150
  "AccessControlUnauthorizedAccount(address,bytes32)": {
77904
78151
  dalpCode: "DALP-4400",
77905
78152
  audience: "user",
@@ -78594,7 +78841,7 @@ var timestampSerializer = {
78594
78841
  };
78595
78842
  var package_default = {
78596
78843
  name: "@settlemint/dalp-sdk",
78597
- version: "2.1.7-main.23333499047",
78844
+ version: "2.1.7-main.23341131506",
78598
78845
  private: false,
78599
78846
  description: "Fully typed SDK for the DALP tokenization platform API",
78600
78847
  homepage: "https://settlemint.com",
@@ -78737,7 +78984,7 @@ function createDalpClient(config3) {
78737
78984
  // package.json
78738
78985
  var package_default2 = {
78739
78986
  name: "@settlemint/dalp-cli",
78740
- version: "2.1.7-main.23333499047",
78987
+ version: "2.1.7-main.23341131506",
78741
78988
  private: false,
78742
78989
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
78743
78990
  homepage: "https://settlemint.com",
@@ -92567,11 +92814,11 @@ var createInternalAdapter = (adapter, ctx) => {
92567
92814
  const currentList = await secondaryStorage.get(`active-sessions-${userId}`);
92568
92815
  if (!currentList)
92569
92816
  return [];
92570
- const list36 = safeJSONParse(currentList) || [];
92817
+ const list38 = safeJSONParse(currentList) || [];
92571
92818
  const now4 = Date.now();
92572
92819
  const seenTokens = /* @__PURE__ */ new Set;
92573
92820
  const sessions = [];
92574
- for (const { token, expiresAt } of list36) {
92821
+ for (const { token, expiresAt } of list38) {
92575
92822
  if (expiresAt <= now4 || seenTokens.has(token))
92576
92823
  continue;
92577
92824
  seenTokens.add(token);
@@ -92660,13 +92907,13 @@ var createInternalAdapter = (adapter, ctx) => {
92660
92907
  return await createWithHooks(data2, "session", secondaryStorage ? {
92661
92908
  fn: async (sessionData) => {
92662
92909
  const currentList = await secondaryStorage.get(`active-sessions-${userId}`);
92663
- let list36 = [];
92910
+ let list38 = [];
92664
92911
  const now4 = Date.now();
92665
92912
  if (currentList) {
92666
- list36 = safeJSONParse(currentList) || [];
92667
- list36 = list36.filter((session) => session.expiresAt > now4 && session.token !== data2.token);
92913
+ list38 = safeJSONParse(currentList) || [];
92914
+ list38 = list38.filter((session) => session.expiresAt > now4 && session.token !== data2.token);
92668
92915
  }
92669
- const sorted = [...list36, {
92916
+ const sorted = [...list38, {
92670
92917
  token: data2.token,
92671
92918
  expiresAt: data2.expiresAt.getTime()
92672
92919
  }].sort((a, b) => a.expiresAt - b.expiresAt);
@@ -92846,9 +93093,9 @@ var createInternalAdapter = (adapter, ctx) => {
92846
93093
  const userId = session.userId;
92847
93094
  const currentList = await secondaryStorage.get(`active-sessions-${userId}`);
92848
93095
  if (currentList) {
92849
- const list36 = safeJSONParse(currentList) || [];
93096
+ const list38 = safeJSONParse(currentList) || [];
92850
93097
  const now4 = Date.now();
92851
- const filtered = list36.filter((session2) => session2.expiresAt > now4 && session2.token !== token);
93098
+ const filtered = list38.filter((session2) => session2.expiresAt > now4 && session2.token !== token);
92852
93099
  const furthestSessionExp = filtered.sort((a, b) => a.expiresAt - b.expiresAt).at(-1)?.expiresAt;
92853
93100
  if (filtered.length > 0 && furthestSessionExp && furthestSessionExp > Date.now())
92854
93101
  await secondaryStorage.set(`active-sessions-${userId}`, JSON.stringify(filtered), getTTLSeconds(furthestSessionExp, now4));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "2.1.7-main.23333499047",
3
+ "version": "2.1.7-main.23341131506",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",