@nexusmutual/sdk 1.12.0-rc.1 → 1.12.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -407,6 +407,9 @@ declare const claimProofSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<
407
407
  incidentDescription: string;
408
408
  attachedFilesHashes?: string[] | undefined;
409
409
  }>]>;
410
+ /** @deprecated
411
+ * use assessmentReasonSchema instead
412
+ */
410
413
  declare const assessmentCriteriaAnswersSchema: z.ZodObject<{
411
414
  version: z.ZodLiteral<"1.0">;
412
415
  answers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -417,6 +420,16 @@ declare const assessmentCriteriaAnswersSchema: z.ZodObject<{
417
420
  version: "1.0";
418
421
  answers: Record<string, string>;
419
422
  }>;
423
+ declare const assessmentReasonSchema: z.ZodObject<{
424
+ version: z.ZodLiteral<"1.0">;
425
+ reason: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ version: "1.0";
428
+ reason: string;
429
+ }, {
430
+ version: "1.0";
431
+ reason: string;
432
+ }>;
420
433
  declare const governanceProposalSchema: z.ZodObject<{
421
434
  version: z.ZodLiteral<"1.0">;
422
435
  proposal: z.ZodString;
@@ -437,7 +450,16 @@ declare const governanceCategorySchema: z.ZodObject<{
437
450
  version: "1.0";
438
451
  category: string;
439
452
  }>;
440
- declare const fileSchema: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
453
+ declare const fileSchema: z.ZodObject<{
454
+ version: z.ZodLiteral<"1.0">;
455
+ file: z.ZodAny;
456
+ }, "strip", z.ZodTypeAny, {
457
+ version: "1.0";
458
+ file?: any;
459
+ }, {
460
+ version: "1.0";
461
+ file?: any;
462
+ }>;
441
463
 
442
464
  declare enum ContentType {
443
465
  coverValidators = "coverValidators",
@@ -451,6 +473,7 @@ declare enum ContentType {
451
473
  stakingPoolDetails = "stakingPoolDetails",
452
474
  claimProof = "claimProof",
453
475
  assessmentCriteriaAnswers = "assessmentCriteriaAnswers",
476
+ assessmentReason = "assessmentReason",
454
477
  governanceProposal = "governanceProposal",
455
478
  governanceCategory = "governanceCategory",
456
479
  file = "file"
@@ -469,8 +492,9 @@ type AssessmentCriteriaAnswers = z.infer<typeof assessmentCriteriaAnswersSchema>
469
492
  type GovernanceProposal = z.infer<typeof governanceProposalSchema>;
470
493
  type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
471
494
  type File = z.infer<typeof fileSchema>;
472
- type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | GovernanceProposal | GovernanceCategory | File;
473
- type IPFSTypeContentTuple = [type: ContentType.coverValidators, content: CoverValidators] | [type: ContentType.coverQuotaShare, content: CoverQuotaShare] | [type: ContentType.coverAumCoverAmountPercentage, content: CoverAumCoverAmountPercentage] | [type: ContentType.coverWalletAddress, content: CoverWalletAddress] | [type: ContentType.coverWalletAddresses, content: CoverWalletAddresses] | [type: ContentType.coverFreeText, content: CoverFreeText] | [type: ContentType.coverDesignatedWallets, content: CoverDesignatedWallets] | [type: ContentType.defiPassContent, content: DefiPassContent] | [type: ContentType.stakingPoolDetails, content: StakingPoolDetails] | [type: ContentType.claimProof, content: ClaimProof] | [type: ContentType.assessmentCriteriaAnswers, content: AssessmentCriteriaAnswers] | [type: ContentType.governanceProposal, content: GovernanceProposal] | [type: ContentType.governanceCategory, content: GovernanceCategory] | [type: ContentType.file, content: File];
495
+ type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
496
+ type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File;
497
+ type IPFSTypeContentTuple = [type: ContentType.coverValidators, content: CoverValidators] | [type: ContentType.coverQuotaShare, content: CoverQuotaShare] | [type: ContentType.coverAumCoverAmountPercentage, content: CoverAumCoverAmountPercentage] | [type: ContentType.coverWalletAddress, content: CoverWalletAddress] | [type: ContentType.coverWalletAddresses, content: CoverWalletAddresses] | [type: ContentType.coverFreeText, content: CoverFreeText] | [type: ContentType.coverDesignatedWallets, content: CoverDesignatedWallets] | [type: ContentType.defiPassContent, content: DefiPassContent] | [type: ContentType.stakingPoolDetails, content: StakingPoolDetails] | [type: ContentType.claimProof, content: ClaimProof] | [type: ContentType.assessmentCriteriaAnswers, content: AssessmentCriteriaAnswers] | [type: ContentType.assessmentReason, content: AssessmentReason] | [type: ContentType.governanceProposal, content: GovernanceProposal] | [type: ContentType.governanceCategory, content: GovernanceCategory] | [type: ContentType.file, content: File];
474
498
  declare const IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE: Record<ProductTypes, ContentType | undefined>;
475
499
  interface IPFSContentForProductType {
476
500
  [ProductTypes.ethSlashing]: CoverValidators;
@@ -667,12 +691,18 @@ declare class Ipfs extends NexusSDKBase {
667
691
  } | {
668
692
  version: "1.0";
669
693
  answers: Record<string, string>;
694
+ } | {
695
+ version: "1.0";
696
+ reason: string;
670
697
  } | {
671
698
  version: "1.0";
672
699
  proposal: string;
673
700
  } | {
674
701
  version: "1.0";
675
702
  category: string;
703
+ } | {
704
+ version: "1.0";
705
+ file?: any;
676
706
  };
677
707
  /**
678
708
  * Convert IPFS CID to 32-byte hex string
@@ -1710,7 +1740,7 @@ var products = [
1710
1740
  "cbBTC"
1711
1741
  ],
1712
1742
  isPrivate: false,
1713
- timestamp: 1738243583,
1743
+ timestamp: 1726758407,
1714
1744
  minPrice: 60
1715
1745
  },
1716
1746
  {
@@ -3719,7 +3749,7 @@ var products = [
3719
3749
  "ETH"
3720
3750
  ],
3721
3751
  isPrivate: false,
3722
- timestamp: 1751550659,
3752
+ timestamp: 1734557999,
3723
3753
  minPrice: 100
3724
3754
  },
3725
3755
  {
@@ -3970,7 +4000,7 @@ var products = [
3970
4000
  "cbBTC"
3971
4001
  ],
3972
4002
  isPrivate: true,
3973
- timestamp: 1725537203,
4003
+ timestamp: 1736430671,
3974
4004
  minPrice: 100
3975
4005
  },
3976
4006
  {
@@ -3987,7 +4017,7 @@ var products = [
3987
4017
  "USDC"
3988
4018
  ],
3989
4019
  isPrivate: false,
3990
- timestamp: 1734557999,
4020
+ timestamp: 1751550659,
3991
4021
  minPrice: 100
3992
4022
  },
3993
4023
  {
@@ -4267,7 +4297,7 @@ var products = [
4267
4297
  "cbBTC"
4268
4298
  ],
4269
4299
  isPrivate: false,
4270
- timestamp: 1726227311,
4300
+ timestamp: 1734557999,
4271
4301
  minPrice: 100
4272
4302
  },
4273
4303
  {
@@ -4434,7 +4464,7 @@ var products = [
4434
4464
  "cbBTC"
4435
4465
  ],
4436
4466
  isPrivate: false,
4437
- timestamp: 1725264851,
4467
+ timestamp: 1734557999,
4438
4468
  minPrice: 100
4439
4469
  },
4440
4470
  {
@@ -4831,7 +4861,7 @@ var products = [
4831
4861
  "cbBTC"
4832
4862
  ],
4833
4863
  isPrivate: false,
4834
- timestamp: 1741267523,
4864
+ timestamp: 1744902863,
4835
4865
  minPrice: 100
4836
4866
  },
4837
4867
  {
@@ -4984,7 +5014,7 @@ var products = [
4984
5014
  "USDC"
4985
5015
  ],
4986
5016
  isPrivate: false,
4987
- timestamp: 1722950807,
5017
+ timestamp: 1723127459,
4988
5018
  minPrice: 100
4989
5019
  },
4990
5020
  {
@@ -5019,7 +5049,7 @@ var products = [
5019
5049
  "cbBTC"
5020
5050
  ],
5021
5051
  isPrivate: false,
5022
- timestamp: 1734557999,
5052
+ timestamp: 1724341943,
5023
5053
  minPrice: 100
5024
5054
  },
5025
5055
  {
@@ -5078,7 +5108,7 @@ var products = [
5078
5108
  "cbBTC"
5079
5109
  ],
5080
5110
  isPrivate: false,
5081
- timestamp: 1738243583,
5111
+ timestamp: 1724341943,
5082
5112
  minPrice: 100
5083
5113
  },
5084
5114
  {
@@ -5117,7 +5147,7 @@ var products = [
5117
5147
  "cbBTC"
5118
5148
  ],
5119
5149
  isPrivate: false,
5120
- timestamp: 1725264851,
5150
+ timestamp: 1734557999,
5121
5151
  minPrice: 100
5122
5152
  },
5123
5153
  {
@@ -5136,7 +5166,7 @@ var products = [
5136
5166
  "cbBTC"
5137
5167
  ],
5138
5168
  isPrivate: true,
5139
- timestamp: 1753877075,
5169
+ timestamp: 1725264851,
5140
5170
  minPrice: 275
5141
5171
  },
5142
5172
  {
@@ -5155,7 +5185,7 @@ var products = [
5155
5185
  "cbBTC"
5156
5186
  ],
5157
5187
  isPrivate: false,
5158
- timestamp: 1743519947,
5188
+ timestamp: 1757486507,
5159
5189
  minPrice: 100
5160
5190
  },
5161
5191
  {
@@ -5174,7 +5204,7 @@ var products = [
5174
5204
  "cbBTC"
5175
5205
  ],
5176
5206
  isPrivate: false,
5177
- timestamp: 1726227311,
5207
+ timestamp: 1736430671,
5178
5208
  minPrice: 100
5179
5209
  },
5180
5210
  {
@@ -5340,7 +5370,7 @@ var products = [
5340
5370
  "USDC"
5341
5371
  ],
5342
5372
  isPrivate: false,
5343
- timestamp: 1738243583,
5373
+ timestamp: 1726758407,
5344
5374
  minPrice: 10
5345
5375
  },
5346
5376
  {
@@ -5390,7 +5420,7 @@ var products = [
5390
5420
  "USDC"
5391
5421
  ],
5392
5422
  isPrivate: false,
5393
- timestamp: 1731583079,
5423
+ timestamp: 1738243583,
5394
5424
  minPrice: 25
5395
5425
  },
5396
5426
  {
@@ -5462,7 +5492,7 @@ var products = [
5462
5492
  "cbBTC"
5463
5493
  ],
5464
5494
  isPrivate: false,
5465
- timestamp: 1740672395,
5495
+ timestamp: 1733753135,
5466
5496
  minPrice: 49
5467
5497
  },
5468
5498
  {
@@ -5481,7 +5511,7 @@ var products = [
5481
5511
  "cbBTC"
5482
5512
  ],
5483
5513
  isPrivate: false,
5484
- timestamp: 1733326763,
5514
+ timestamp: 1740672395,
5485
5515
  minPrice: 225
5486
5516
  },
5487
5517
  {
@@ -5500,7 +5530,7 @@ var products = [
5500
5530
  "cbBTC"
5501
5531
  ],
5502
5532
  isPrivate: false,
5503
- timestamp: 1744902863,
5533
+ timestamp: 1753877075,
5504
5534
  minPrice: 300
5505
5535
  },
5506
5536
  {
@@ -5556,7 +5586,7 @@ var products = [
5556
5586
  "cbBTC"
5557
5587
  ],
5558
5588
  isPrivate: true,
5559
- timestamp: 1745409575,
5589
+ timestamp: 1753260539,
5560
5590
  minPrice: 100
5561
5591
  },
5562
5592
  {
@@ -5756,7 +5786,7 @@ var products = [
5756
5786
  "USDC"
5757
5787
  ],
5758
5788
  isPrivate: false,
5759
- timestamp: 1757074607,
5789
+ timestamp: 1744902863,
5760
5790
  minPrice: 50
5761
5791
  },
5762
5792
  {
@@ -5773,7 +5803,7 @@ var products = [
5773
5803
  "USDC"
5774
5804
  ],
5775
5805
  isPrivate: false,
5776
- timestamp: 1757074607,
5806
+ timestamp: 1739447471,
5777
5807
  minPrice: 150
5778
5808
  },
5779
5809
  {
@@ -5790,7 +5820,7 @@ var products = [
5790
5820
  "USDC"
5791
5821
  ],
5792
5822
  isPrivate: false,
5793
- timestamp: 1739447471,
5823
+ timestamp: 1745946671,
5794
5824
  minPrice: 50
5795
5825
  },
5796
5826
  {
@@ -5807,7 +5837,7 @@ var products = [
5807
5837
  "USDC"
5808
5838
  ],
5809
5839
  isPrivate: false,
5810
- timestamp: 1757074607,
5840
+ timestamp: 1747055891,
5811
5841
  minPrice: 150
5812
5842
  },
5813
5843
  {
@@ -5841,7 +5871,7 @@ var products = [
5841
5871
  "ETH"
5842
5872
  ],
5843
5873
  isPrivate: false,
5844
- timestamp: 1739447471,
5874
+ timestamp: 1747055891,
5845
5875
  minPrice: 100
5846
5876
  },
5847
5877
  {
@@ -5932,7 +5962,7 @@ var products = [
5932
5962
  "cbBTC"
5933
5963
  ],
5934
5964
  isPrivate: false,
5935
- timestamp: 1739447471,
5965
+ timestamp: 1739537399,
5936
5966
  minPrice: 235
5937
5967
  },
5938
5968
  {
@@ -5951,7 +5981,7 @@ var products = [
5951
5981
  "cbBTC"
5952
5982
  ],
5953
5983
  isPrivate: false,
5954
- timestamp: 1739537399,
5984
+ timestamp: 1739447471,
5955
5985
  minPrice: 380
5956
5986
  },
5957
5987
  {
@@ -5970,7 +6000,7 @@ var products = [
5970
6000
  "cbBTC"
5971
6001
  ],
5972
6002
  isPrivate: true,
5973
- timestamp: 1745946671,
6003
+ timestamp: 1747300211,
5974
6004
  minPrice: 225
5975
6005
  },
5976
6006
  {
@@ -5987,7 +6017,7 @@ var products = [
5987
6017
  "ETH"
5988
6018
  ],
5989
6019
  isPrivate: true,
5990
- timestamp: 1741267523,
6020
+ timestamp: 1740672395,
5991
6021
  minPrice: 95
5992
6022
  },
5993
6023
  {
@@ -6210,7 +6240,7 @@ var products = [
6210
6240
  "USDC"
6211
6241
  ],
6212
6242
  isPrivate: false,
6213
- timestamp: 1747055891,
6243
+ timestamp: 1757074607,
6214
6244
  minPrice: 75
6215
6245
  },
6216
6246
  {
@@ -6263,7 +6293,7 @@ var products = [
6263
6293
  "cbBTC"
6264
6294
  ],
6265
6295
  isPrivate: false,
6266
- timestamp: 1749739367,
6296
+ timestamp: 1743519947,
6267
6297
  minPrice: 100
6268
6298
  },
6269
6299
  {
@@ -6282,7 +6312,7 @@ var products = [
6282
6312
  "cbBTC"
6283
6313
  ],
6284
6314
  isPrivate: false,
6285
- timestamp: 1743519947,
6315
+ timestamp: 1749739367,
6286
6316
  minPrice: 100
6287
6317
  },
6288
6318
  {
@@ -6318,7 +6348,7 @@ var products = [
6318
6348
  "USDC"
6319
6349
  ],
6320
6350
  isPrivate: true,
6321
- timestamp: 1743603467,
6351
+ timestamp: 1744110779,
6322
6352
  minPrice: 1586
6323
6353
  },
6324
6354
  {
@@ -6335,7 +6365,7 @@ var products = [
6335
6365
  "USDC"
6336
6366
  ],
6337
6367
  isPrivate: false,
6338
- timestamp: 1748970347,
6368
+ timestamp: 1757074607,
6339
6369
  minPrice: 150
6340
6370
  },
6341
6371
  {
@@ -6427,7 +6457,7 @@ var products = [
6427
6457
  "cbBTC"
6428
6458
  ],
6429
6459
  isPrivate: false,
6430
- timestamp: 1753877075,
6460
+ timestamp: 1749739367,
6431
6461
  minPrice: 300
6432
6462
  },
6433
6463
  {
@@ -6660,7 +6690,7 @@ var products = [
6660
6690
  "USDC"
6661
6691
  ],
6662
6692
  isPrivate: false,
6663
- timestamp: 1752150803,
6693
+ timestamp: 1754552351,
6664
6694
  minPrice: 50
6665
6695
  },
6666
6696
  {
@@ -6694,7 +6724,7 @@ var products = [
6694
6724
  "USDC"
6695
6725
  ],
6696
6726
  isPrivate: false,
6697
- timestamp: 1757074607,
6727
+ timestamp: 1752834371,
6698
6728
  minPrice: 300
6699
6729
  },
6700
6730
  {
@@ -6926,7 +6956,7 @@ var products = [
6926
6956
  "USDC"
6927
6957
  ],
6928
6958
  isPrivate: false,
6929
- timestamp: 1757074607,
6959
+ timestamp: 1755778907,
6930
6960
  minPrice: 100
6931
6961
  },
6932
6962
  {
@@ -42929,4 +42959,4 @@ declare const nexusSdk: {
42929
42959
  }];
42930
42960
  };
42931
42961
 
42932
- export { Address, ApiResponse, AssessmentCriteriaAnswers, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };
42962
+ export { Address, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };