@nexusmutual/sdk 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/version.json +1 -1
- package/dist/index.d.mts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/data/version.json
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -421,6 +421,16 @@ declare const productAnnexSchema: z.ZodObject<{
|
|
|
421
421
|
version: "1.0";
|
|
422
422
|
annex: string;
|
|
423
423
|
}>;
|
|
424
|
+
declare const coverMetadataRefSchema: z.ZodObject<{
|
|
425
|
+
version: z.ZodLiteral<"1.0">;
|
|
426
|
+
coverMetadata: z.ZodString;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
version: "1.0";
|
|
429
|
+
coverMetadata: string;
|
|
430
|
+
}, {
|
|
431
|
+
version: "1.0";
|
|
432
|
+
coverMetadata: string;
|
|
433
|
+
}>;
|
|
424
434
|
|
|
425
435
|
declare enum ContentType {
|
|
426
436
|
coverValidators = "coverValidators",
|
|
@@ -438,7 +448,8 @@ declare enum ContentType {
|
|
|
438
448
|
governanceProposal = "governanceProposal",
|
|
439
449
|
governanceCategory = "governanceCategory",
|
|
440
450
|
file = "file",
|
|
441
|
-
productAnnex = "productAnnex"
|
|
451
|
+
productAnnex = "productAnnex",
|
|
452
|
+
coverMetadataRef = "coverMetadataRef"
|
|
442
453
|
}
|
|
443
454
|
type CoverValidators = z.infer<typeof coverValidatorsSchema>;
|
|
444
455
|
type CoverQuotaShare = z.infer<typeof coverQuotaShareSchema>;
|
|
@@ -456,8 +467,9 @@ type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
|
|
|
456
467
|
type File = z.infer<typeof fileSchema>;
|
|
457
468
|
type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
|
|
458
469
|
type ProductAnnex = z.infer<typeof productAnnexSchema>;
|
|
459
|
-
type
|
|
460
|
-
type
|
|
470
|
+
type CoverMetadataRef = z.infer<typeof coverMetadataRefSchema>;
|
|
471
|
+
type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File | ProductAnnex | CoverMetadataRef;
|
|
472
|
+
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] | [type: ContentType.productAnnex, content: ProductAnnex] | [type: ContentType.coverMetadataRef, content: CoverMetadataRef];
|
|
461
473
|
type IPFSUploadServiceResponse = {
|
|
462
474
|
ipfsHash: string;
|
|
463
475
|
};
|
|
@@ -654,6 +666,9 @@ declare class Ipfs extends NexusSDKBase {
|
|
|
654
666
|
} | {
|
|
655
667
|
version: "1.0";
|
|
656
668
|
annex: string;
|
|
669
|
+
} | {
|
|
670
|
+
version: "1.0";
|
|
671
|
+
coverMetadata: string;
|
|
657
672
|
};
|
|
658
673
|
/**
|
|
659
674
|
* Convert IPFS CID to 32-byte hex string
|
|
@@ -36692,4 +36707,4 @@ declare const nexusSdk: {
|
|
|
36692
36707
|
}];
|
|
36693
36708
|
};
|
|
36694
36709
|
|
|
36695
|
-
export { Address, ApiError, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_SLIPPAGE, DefiPassContent, ErrorApiResponse, ErrorResponse, File, FloatString, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IntString, Integer, Ipfs, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAPI, ProductAnnex, ProductCategoryEnum, Quote, QuoteDisplayInfo, QuoteParams, RequestConfig, Reserves, SLIPPAGE_DENOMINATOR, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, categoryLabelByEnum, nexusSdk as default, productCategoryMap };
|
|
36710
|
+
export { Address, ApiError, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverMetadataRef, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_SLIPPAGE, DefiPassContent, ErrorApiResponse, ErrorResponse, File, FloatString, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IntString, Integer, Ipfs, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAPI, ProductAnnex, ProductCategoryEnum, Quote, QuoteDisplayInfo, QuoteParams, RequestConfig, Reserves, SLIPPAGE_DENOMINATOR, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, categoryLabelByEnum, nexusSdk as default, productCategoryMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -421,6 +421,16 @@ declare const productAnnexSchema: z.ZodObject<{
|
|
|
421
421
|
version: "1.0";
|
|
422
422
|
annex: string;
|
|
423
423
|
}>;
|
|
424
|
+
declare const coverMetadataRefSchema: z.ZodObject<{
|
|
425
|
+
version: z.ZodLiteral<"1.0">;
|
|
426
|
+
coverMetadata: z.ZodString;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
version: "1.0";
|
|
429
|
+
coverMetadata: string;
|
|
430
|
+
}, {
|
|
431
|
+
version: "1.0";
|
|
432
|
+
coverMetadata: string;
|
|
433
|
+
}>;
|
|
424
434
|
|
|
425
435
|
declare enum ContentType {
|
|
426
436
|
coverValidators = "coverValidators",
|
|
@@ -438,7 +448,8 @@ declare enum ContentType {
|
|
|
438
448
|
governanceProposal = "governanceProposal",
|
|
439
449
|
governanceCategory = "governanceCategory",
|
|
440
450
|
file = "file",
|
|
441
|
-
productAnnex = "productAnnex"
|
|
451
|
+
productAnnex = "productAnnex",
|
|
452
|
+
coverMetadataRef = "coverMetadataRef"
|
|
442
453
|
}
|
|
443
454
|
type CoverValidators = z.infer<typeof coverValidatorsSchema>;
|
|
444
455
|
type CoverQuotaShare = z.infer<typeof coverQuotaShareSchema>;
|
|
@@ -456,8 +467,9 @@ type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
|
|
|
456
467
|
type File = z.infer<typeof fileSchema>;
|
|
457
468
|
type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
|
|
458
469
|
type ProductAnnex = z.infer<typeof productAnnexSchema>;
|
|
459
|
-
type
|
|
460
|
-
type
|
|
470
|
+
type CoverMetadataRef = z.infer<typeof coverMetadataRefSchema>;
|
|
471
|
+
type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File | ProductAnnex | CoverMetadataRef;
|
|
472
|
+
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] | [type: ContentType.productAnnex, content: ProductAnnex] | [type: ContentType.coverMetadataRef, content: CoverMetadataRef];
|
|
461
473
|
type IPFSUploadServiceResponse = {
|
|
462
474
|
ipfsHash: string;
|
|
463
475
|
};
|
|
@@ -654,6 +666,9 @@ declare class Ipfs extends NexusSDKBase {
|
|
|
654
666
|
} | {
|
|
655
667
|
version: "1.0";
|
|
656
668
|
annex: string;
|
|
669
|
+
} | {
|
|
670
|
+
version: "1.0";
|
|
671
|
+
coverMetadata: string;
|
|
657
672
|
};
|
|
658
673
|
/**
|
|
659
674
|
* Convert IPFS CID to 32-byte hex string
|
|
@@ -36692,4 +36707,4 @@ declare const nexusSdk: {
|
|
|
36692
36707
|
}];
|
|
36693
36708
|
};
|
|
36694
36709
|
|
|
36695
|
-
export { Address, ApiError, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_SLIPPAGE, DefiPassContent, ErrorApiResponse, ErrorResponse, File, FloatString, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IntString, Integer, Ipfs, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAPI, ProductAnnex, ProductCategoryEnum, Quote, QuoteDisplayInfo, QuoteParams, RequestConfig, Reserves, SLIPPAGE_DENOMINATOR, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, categoryLabelByEnum, nexusSdk as default, productCategoryMap };
|
|
36710
|
+
export { Address, ApiError, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverMetadataRef, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_SLIPPAGE, DefiPassContent, ErrorApiResponse, ErrorResponse, File, FloatString, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IntString, Integer, Ipfs, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAPI, ProductAnnex, ProductCategoryEnum, Quote, QuoteDisplayInfo, QuoteParams, RequestConfig, Reserves, SLIPPAGE_DENOMINATOR, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, categoryLabelByEnum, nexusSdk as default, productCategoryMap };
|
package/dist/index.js
CHANGED
|
@@ -23273,9 +23273,13 @@ var productAnnexSchema = import_zod.z.object({
|
|
|
23273
23273
|
version: import_zod.z.literal(VERSION_1_0),
|
|
23274
23274
|
annex: import_zod.z.string()
|
|
23275
23275
|
});
|
|
23276
|
+
var coverMetadataRefSchema = import_zod.z.object({
|
|
23277
|
+
version: import_zod.z.literal(VERSION_1_0),
|
|
23278
|
+
coverMetadata: import_zod.z.string().uuid()
|
|
23279
|
+
});
|
|
23276
23280
|
|
|
23277
23281
|
// generated/version.json
|
|
23278
|
-
var version27 = "2.0
|
|
23282
|
+
var version27 = "2.1.0";
|
|
23279
23283
|
|
|
23280
23284
|
// src/nexus-sdk-base.ts
|
|
23281
23285
|
var ApiError = class extends Error {
|
|
@@ -23368,6 +23372,7 @@ var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
|
23368
23372
|
ContentType2["governanceCategory"] = "governanceCategory";
|
|
23369
23373
|
ContentType2["file"] = "file";
|
|
23370
23374
|
ContentType2["productAnnex"] = "productAnnex";
|
|
23375
|
+
ContentType2["coverMetadataRef"] = "coverMetadataRef";
|
|
23371
23376
|
return ContentType2;
|
|
23372
23377
|
})(ContentType || {});
|
|
23373
23378
|
|
|
@@ -23456,6 +23461,8 @@ var Ipfs = class extends NexusSDKBase {
|
|
|
23456
23461
|
return assessmentReasonSchema.parse(content);
|
|
23457
23462
|
case "productAnnex" /* productAnnex */:
|
|
23458
23463
|
return productAnnexSchema.parse(content);
|
|
23464
|
+
case "coverMetadataRef" /* coverMetadataRef */:
|
|
23465
|
+
return coverMetadataRefSchema.parse(content);
|
|
23459
23466
|
default:
|
|
23460
23467
|
throw new Error(`Invalid content type: ${type}`);
|
|
23461
23468
|
}
|