@bosonprotocol/agentic-commerce 1.2.7-alpha.1 → 1.2.7-alpha.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/boson/goat-sdk-plugin/boson-protocol-plugin.service.d.ts +85 -7
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.d.ts.map +1 -1
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.js +199 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.js.map +1 -1
- package/dist/boson/goat-sdk-plugin/parameters.d.ts +433 -0
- package/dist/boson/goat-sdk-plugin/parameters.d.ts.map +1 -1
- package/dist/boson/goat-sdk-plugin/parameters.js +27 -2
- package/dist/boson/goat-sdk-plugin/parameters.js.map +1 -1
- package/dist/boson/mcp-client/index.d.ts +1631 -7
- package/dist/boson/mcp-client/index.d.ts.map +1 -1
- package/dist/boson/mcp-client/index.js +48 -0
- package/dist/boson/mcp-client/index.js.map +1 -1
- package/dist/boson/mcp-server/handlers/exchanges.d.ts +3 -1
- package/dist/boson/mcp-server/handlers/exchanges.d.ts.map +1 -1
- package/dist/boson/mcp-server/handlers/exchanges.js +59 -0
- package/dist/boson/mcp-server/handlers/exchanges.js.map +1 -1
- package/dist/boson/mcp-server/handlers/offers.d.ts +3 -1
- package/dist/boson/mcp-server/handlers/offers.d.ts.map +1 -1
- package/dist/boson/mcp-server/handlers/offers.js +105 -0
- package/dist/boson/mcp-server/handlers/offers.js.map +1 -1
- package/dist/boson/mcp-server/handlers/tokens.d.ts +6 -0
- package/dist/boson/mcp-server/handlers/tokens.d.ts.map +1 -1
- package/dist/boson/mcp-server/handlers/tokens.js +83 -0
- package/dist/boson/mcp-server/handlers/tokens.js.map +1 -1
- package/dist/boson/mcp-server/index.d.ts.map +1 -1
- package/dist/boson/mcp-server/index.js +15 -0
- package/dist/boson/mcp-server/index.js.map +1 -1
- package/dist/boson/mcp-server/validation.d.ts +436 -0
- package/dist/boson/mcp-server/validation.d.ts.map +1 -1
- package/dist/boson/mcp-server/validation.js +92 -1
- package/dist/boson/mcp-server/validation.js.map +1 -1
- package/package.json +4 -4
|
@@ -2125,6 +2125,52 @@ export declare const commitToOfferValidation: z.ZodObject<{
|
|
|
2125
2125
|
signerAddress?: string;
|
|
2126
2126
|
executionMode?: "metaTx" | "direct";
|
|
2127
2127
|
}>;
|
|
2128
|
+
export declare const commitToOfferAndRedeemVoucherValidationShape: {
|
|
2129
|
+
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2130
|
+
};
|
|
2131
|
+
export declare const commitToOfferAndRedeemVoucherValidation: z.ZodObject<{
|
|
2132
|
+
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2133
|
+
} & {
|
|
2134
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2135
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2136
|
+
} & {
|
|
2137
|
+
executionMode: z.ZodOptional<z.ZodEnum<["direct", "metaTx"]>>;
|
|
2138
|
+
}, "strip", z.ZodTypeAny, {
|
|
2139
|
+
offerId?: string;
|
|
2140
|
+
configId?: string;
|
|
2141
|
+
signerAddress?: string;
|
|
2142
|
+
executionMode?: "metaTx" | "direct";
|
|
2143
|
+
}, {
|
|
2144
|
+
offerId?: string;
|
|
2145
|
+
configId?: string;
|
|
2146
|
+
signerAddress?: string;
|
|
2147
|
+
executionMode?: "metaTx" | "direct";
|
|
2148
|
+
}>;
|
|
2149
|
+
export declare const commitToConditionalOfferAndRedeemVoucherValidationShape: {
|
|
2150
|
+
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2151
|
+
tokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2152
|
+
};
|
|
2153
|
+
export declare const commitToConditionalOfferAndRedeemVoucherValidation: z.ZodObject<{
|
|
2154
|
+
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2155
|
+
tokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2156
|
+
} & {
|
|
2157
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2158
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2159
|
+
} & {
|
|
2160
|
+
executionMode: z.ZodOptional<z.ZodEnum<["direct", "metaTx"]>>;
|
|
2161
|
+
}, "strip", z.ZodTypeAny, {
|
|
2162
|
+
tokenId?: string;
|
|
2163
|
+
offerId?: string;
|
|
2164
|
+
configId?: string;
|
|
2165
|
+
signerAddress?: string;
|
|
2166
|
+
executionMode?: "metaTx" | "direct";
|
|
2167
|
+
}, {
|
|
2168
|
+
tokenId?: string;
|
|
2169
|
+
offerId?: string;
|
|
2170
|
+
configId?: string;
|
|
2171
|
+
signerAddress?: string;
|
|
2172
|
+
executionMode?: "metaTx" | "direct";
|
|
2173
|
+
}>;
|
|
2128
2174
|
export declare const commitToBuyerOfferValidationShape: {
|
|
2129
2175
|
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2130
2176
|
collectionIndex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -2426,6 +2472,238 @@ export declare const createOfferAndCommitValidation: z.ZodObject<{
|
|
|
2426
2472
|
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2427
2473
|
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2428
2474
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2475
|
+
export declare const createOfferCommitAndRedeemValidation: z.ZodObject<{
|
|
2476
|
+
signature: z.ZodEffects<z.ZodString, string, string>;
|
|
2477
|
+
} & {
|
|
2478
|
+
offerCreator: z.ZodEffects<z.ZodString, string, string>;
|
|
2479
|
+
committer: z.ZodEffects<z.ZodString, string, string>;
|
|
2480
|
+
conditionalTokenId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2481
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
2482
|
+
method: z.ZodNumber;
|
|
2483
|
+
tokenType: z.ZodNumber;
|
|
2484
|
+
tokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2485
|
+
gatingType: z.ZodNumber;
|
|
2486
|
+
minTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2487
|
+
maxTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2488
|
+
threshold: z.ZodEffects<z.ZodString, string, string>;
|
|
2489
|
+
maxCommits: z.ZodEffects<z.ZodString, string, string>;
|
|
2490
|
+
}, "strip", z.ZodTypeAny, {
|
|
2491
|
+
tokenAddress?: string;
|
|
2492
|
+
tokenType?: number;
|
|
2493
|
+
maxCommits?: string;
|
|
2494
|
+
method?: number;
|
|
2495
|
+
minTokenId?: string;
|
|
2496
|
+
threshold?: string;
|
|
2497
|
+
maxTokenId?: string;
|
|
2498
|
+
gatingType?: number;
|
|
2499
|
+
}, {
|
|
2500
|
+
tokenAddress?: string;
|
|
2501
|
+
tokenType?: number;
|
|
2502
|
+
maxCommits?: string;
|
|
2503
|
+
method?: number;
|
|
2504
|
+
minTokenId?: string;
|
|
2505
|
+
threshold?: string;
|
|
2506
|
+
maxTokenId?: string;
|
|
2507
|
+
gatingType?: number;
|
|
2508
|
+
}>>;
|
|
2509
|
+
useDepositedFunds: z.ZodOptional<z.ZodBoolean>;
|
|
2510
|
+
sellerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2511
|
+
buyerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2512
|
+
exchangeTokenAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2513
|
+
price: z.ZodEffects<z.ZodString, string, string>;
|
|
2514
|
+
sellerDeposit: z.ZodEffects<z.ZodString, string, string>;
|
|
2515
|
+
agentId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2516
|
+
buyerCancellationPenalty: z.ZodEffects<z.ZodString, string, string>;
|
|
2517
|
+
quantityAvailable: z.ZodNumber;
|
|
2518
|
+
validFromDateInMS: z.ZodNumber;
|
|
2519
|
+
validUntilDateInMS: z.ZodNumber;
|
|
2520
|
+
voucherRedeemableFromDateInMS: z.ZodNumber;
|
|
2521
|
+
voucherRedeemableUntilDateInMS: z.ZodNumber;
|
|
2522
|
+
disputePeriodDurationInMS: z.ZodNumber;
|
|
2523
|
+
voucherValidDurationInMS: z.ZodNumber;
|
|
2524
|
+
resolutionPeriodDurationInMS: z.ZodNumber;
|
|
2525
|
+
disputeResolverId: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
collectionIndex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2527
|
+
feeLimit: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2528
|
+
priceType: z.ZodOptional<z.ZodNumber>;
|
|
2529
|
+
royaltyInfo: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2530
|
+
recipients: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2531
|
+
bps: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2532
|
+
}, "strip", z.ZodTypeAny, {
|
|
2533
|
+
recipients?: string[];
|
|
2534
|
+
bps?: string[];
|
|
2535
|
+
}, {
|
|
2536
|
+
recipients?: string[];
|
|
2537
|
+
bps?: string[];
|
|
2538
|
+
}>, {
|
|
2539
|
+
recipients?: string[];
|
|
2540
|
+
bps?: string[];
|
|
2541
|
+
}, {
|
|
2542
|
+
recipients?: string[];
|
|
2543
|
+
bps?: string[];
|
|
2544
|
+
}>>;
|
|
2545
|
+
creator: z.ZodOptional<z.ZodEnum<["SELLER", "BUYER"]>>;
|
|
2546
|
+
drMutualizerAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2547
|
+
metadataUri: z.ZodString;
|
|
2548
|
+
metadataHash: z.ZodString;
|
|
2549
|
+
executionMode: z.ZodOptional<z.ZodEnum<["direct", "metaTx"]>>;
|
|
2550
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2551
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2552
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2553
|
+
signature: z.ZodEffects<z.ZodString, string, string>;
|
|
2554
|
+
} & {
|
|
2555
|
+
offerCreator: z.ZodEffects<z.ZodString, string, string>;
|
|
2556
|
+
committer: z.ZodEffects<z.ZodString, string, string>;
|
|
2557
|
+
conditionalTokenId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2558
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
2559
|
+
method: z.ZodNumber;
|
|
2560
|
+
tokenType: z.ZodNumber;
|
|
2561
|
+
tokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2562
|
+
gatingType: z.ZodNumber;
|
|
2563
|
+
minTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2564
|
+
maxTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2565
|
+
threshold: z.ZodEffects<z.ZodString, string, string>;
|
|
2566
|
+
maxCommits: z.ZodEffects<z.ZodString, string, string>;
|
|
2567
|
+
}, "strip", z.ZodTypeAny, {
|
|
2568
|
+
tokenAddress?: string;
|
|
2569
|
+
tokenType?: number;
|
|
2570
|
+
maxCommits?: string;
|
|
2571
|
+
method?: number;
|
|
2572
|
+
minTokenId?: string;
|
|
2573
|
+
threshold?: string;
|
|
2574
|
+
maxTokenId?: string;
|
|
2575
|
+
gatingType?: number;
|
|
2576
|
+
}, {
|
|
2577
|
+
tokenAddress?: string;
|
|
2578
|
+
tokenType?: number;
|
|
2579
|
+
maxCommits?: string;
|
|
2580
|
+
method?: number;
|
|
2581
|
+
minTokenId?: string;
|
|
2582
|
+
threshold?: string;
|
|
2583
|
+
maxTokenId?: string;
|
|
2584
|
+
gatingType?: number;
|
|
2585
|
+
}>>;
|
|
2586
|
+
useDepositedFunds: z.ZodOptional<z.ZodBoolean>;
|
|
2587
|
+
sellerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2588
|
+
buyerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2589
|
+
exchangeTokenAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2590
|
+
price: z.ZodEffects<z.ZodString, string, string>;
|
|
2591
|
+
sellerDeposit: z.ZodEffects<z.ZodString, string, string>;
|
|
2592
|
+
agentId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2593
|
+
buyerCancellationPenalty: z.ZodEffects<z.ZodString, string, string>;
|
|
2594
|
+
quantityAvailable: z.ZodNumber;
|
|
2595
|
+
validFromDateInMS: z.ZodNumber;
|
|
2596
|
+
validUntilDateInMS: z.ZodNumber;
|
|
2597
|
+
voucherRedeemableFromDateInMS: z.ZodNumber;
|
|
2598
|
+
voucherRedeemableUntilDateInMS: z.ZodNumber;
|
|
2599
|
+
disputePeriodDurationInMS: z.ZodNumber;
|
|
2600
|
+
voucherValidDurationInMS: z.ZodNumber;
|
|
2601
|
+
resolutionPeriodDurationInMS: z.ZodNumber;
|
|
2602
|
+
disputeResolverId: z.ZodOptional<z.ZodString>;
|
|
2603
|
+
collectionIndex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2604
|
+
feeLimit: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2605
|
+
priceType: z.ZodOptional<z.ZodNumber>;
|
|
2606
|
+
royaltyInfo: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2607
|
+
recipients: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2608
|
+
bps: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2609
|
+
}, "strip", z.ZodTypeAny, {
|
|
2610
|
+
recipients?: string[];
|
|
2611
|
+
bps?: string[];
|
|
2612
|
+
}, {
|
|
2613
|
+
recipients?: string[];
|
|
2614
|
+
bps?: string[];
|
|
2615
|
+
}>, {
|
|
2616
|
+
recipients?: string[];
|
|
2617
|
+
bps?: string[];
|
|
2618
|
+
}, {
|
|
2619
|
+
recipients?: string[];
|
|
2620
|
+
bps?: string[];
|
|
2621
|
+
}>>;
|
|
2622
|
+
creator: z.ZodOptional<z.ZodEnum<["SELLER", "BUYER"]>>;
|
|
2623
|
+
drMutualizerAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2624
|
+
metadataUri: z.ZodString;
|
|
2625
|
+
metadataHash: z.ZodString;
|
|
2626
|
+
executionMode: z.ZodOptional<z.ZodEnum<["direct", "metaTx"]>>;
|
|
2627
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2628
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2629
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2630
|
+
signature: z.ZodEffects<z.ZodString, string, string>;
|
|
2631
|
+
} & {
|
|
2632
|
+
offerCreator: z.ZodEffects<z.ZodString, string, string>;
|
|
2633
|
+
committer: z.ZodEffects<z.ZodString, string, string>;
|
|
2634
|
+
conditionalTokenId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2635
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
2636
|
+
method: z.ZodNumber;
|
|
2637
|
+
tokenType: z.ZodNumber;
|
|
2638
|
+
tokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2639
|
+
gatingType: z.ZodNumber;
|
|
2640
|
+
minTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2641
|
+
maxTokenId: z.ZodEffects<z.ZodString, string, string>;
|
|
2642
|
+
threshold: z.ZodEffects<z.ZodString, string, string>;
|
|
2643
|
+
maxCommits: z.ZodEffects<z.ZodString, string, string>;
|
|
2644
|
+
}, "strip", z.ZodTypeAny, {
|
|
2645
|
+
tokenAddress?: string;
|
|
2646
|
+
tokenType?: number;
|
|
2647
|
+
maxCommits?: string;
|
|
2648
|
+
method?: number;
|
|
2649
|
+
minTokenId?: string;
|
|
2650
|
+
threshold?: string;
|
|
2651
|
+
maxTokenId?: string;
|
|
2652
|
+
gatingType?: number;
|
|
2653
|
+
}, {
|
|
2654
|
+
tokenAddress?: string;
|
|
2655
|
+
tokenType?: number;
|
|
2656
|
+
maxCommits?: string;
|
|
2657
|
+
method?: number;
|
|
2658
|
+
minTokenId?: string;
|
|
2659
|
+
threshold?: string;
|
|
2660
|
+
maxTokenId?: string;
|
|
2661
|
+
gatingType?: number;
|
|
2662
|
+
}>>;
|
|
2663
|
+
useDepositedFunds: z.ZodOptional<z.ZodBoolean>;
|
|
2664
|
+
sellerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2665
|
+
buyerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2666
|
+
exchangeTokenAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2667
|
+
price: z.ZodEffects<z.ZodString, string, string>;
|
|
2668
|
+
sellerDeposit: z.ZodEffects<z.ZodString, string, string>;
|
|
2669
|
+
agentId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2670
|
+
buyerCancellationPenalty: z.ZodEffects<z.ZodString, string, string>;
|
|
2671
|
+
quantityAvailable: z.ZodNumber;
|
|
2672
|
+
validFromDateInMS: z.ZodNumber;
|
|
2673
|
+
validUntilDateInMS: z.ZodNumber;
|
|
2674
|
+
voucherRedeemableFromDateInMS: z.ZodNumber;
|
|
2675
|
+
voucherRedeemableUntilDateInMS: z.ZodNumber;
|
|
2676
|
+
disputePeriodDurationInMS: z.ZodNumber;
|
|
2677
|
+
voucherValidDurationInMS: z.ZodNumber;
|
|
2678
|
+
resolutionPeriodDurationInMS: z.ZodNumber;
|
|
2679
|
+
disputeResolverId: z.ZodOptional<z.ZodString>;
|
|
2680
|
+
collectionIndex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2681
|
+
feeLimit: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2682
|
+
priceType: z.ZodOptional<z.ZodNumber>;
|
|
2683
|
+
royaltyInfo: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2684
|
+
recipients: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2685
|
+
bps: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2686
|
+
}, "strip", z.ZodTypeAny, {
|
|
2687
|
+
recipients?: string[];
|
|
2688
|
+
bps?: string[];
|
|
2689
|
+
}, {
|
|
2690
|
+
recipients?: string[];
|
|
2691
|
+
bps?: string[];
|
|
2692
|
+
}>, {
|
|
2693
|
+
recipients?: string[];
|
|
2694
|
+
bps?: string[];
|
|
2695
|
+
}, {
|
|
2696
|
+
recipients?: string[];
|
|
2697
|
+
bps?: string[];
|
|
2698
|
+
}>>;
|
|
2699
|
+
creator: z.ZodOptional<z.ZodEnum<["SELLER", "BUYER"]>>;
|
|
2700
|
+
drMutualizerAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2701
|
+
metadataUri: z.ZodString;
|
|
2702
|
+
metadataHash: z.ZodString;
|
|
2703
|
+
executionMode: z.ZodOptional<z.ZodEnum<["direct", "metaTx"]>>;
|
|
2704
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2705
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2706
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2429
2707
|
export declare const approveExchangeTokenValidationShape: {
|
|
2430
2708
|
exchangeTokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2431
2709
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2451,6 +2729,122 @@ export declare const approveExchangeTokenValidation: z.ZodObject<{
|
|
|
2451
2729
|
exchangeTokenAddress?: string;
|
|
2452
2730
|
executionMode?: "metaTx" | "direct";
|
|
2453
2731
|
}>;
|
|
2732
|
+
export declare const signReceiveWithErc3009AuthorizationValidation: z.ZodObject<{
|
|
2733
|
+
validAfter: z.ZodEffects<z.ZodString, string, string>;
|
|
2734
|
+
validBefore: z.ZodEffects<z.ZodString, string, string>;
|
|
2735
|
+
tokenDomainName: z.ZodString;
|
|
2736
|
+
tokenDomainVersion: z.ZodString;
|
|
2737
|
+
exchangeTokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2738
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
2739
|
+
spender: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2740
|
+
} & {
|
|
2741
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2742
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2743
|
+
}, "strip", z.ZodTypeAny, {
|
|
2744
|
+
spender?: string;
|
|
2745
|
+
value?: string;
|
|
2746
|
+
validAfter?: string;
|
|
2747
|
+
validBefore?: string;
|
|
2748
|
+
configId?: string;
|
|
2749
|
+
signerAddress?: string;
|
|
2750
|
+
exchangeTokenAddress?: string;
|
|
2751
|
+
tokenDomainName?: string;
|
|
2752
|
+
tokenDomainVersion?: string;
|
|
2753
|
+
}, {
|
|
2754
|
+
spender?: string;
|
|
2755
|
+
value?: string;
|
|
2756
|
+
validAfter?: string;
|
|
2757
|
+
validBefore?: string;
|
|
2758
|
+
configId?: string;
|
|
2759
|
+
signerAddress?: string;
|
|
2760
|
+
exchangeTokenAddress?: string;
|
|
2761
|
+
tokenDomainName?: string;
|
|
2762
|
+
tokenDomainVersion?: string;
|
|
2763
|
+
}>;
|
|
2764
|
+
export declare const signReceiveWithErc2612PermitValidation: z.ZodObject<{
|
|
2765
|
+
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
2766
|
+
tokenDomainName: z.ZodString;
|
|
2767
|
+
tokenDomainVersion: z.ZodString;
|
|
2768
|
+
exchangeTokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2769
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
2770
|
+
spender: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2771
|
+
} & {
|
|
2772
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2773
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2774
|
+
}, "strip", z.ZodTypeAny, {
|
|
2775
|
+
deadline?: string;
|
|
2776
|
+
spender?: string;
|
|
2777
|
+
value?: string;
|
|
2778
|
+
configId?: string;
|
|
2779
|
+
signerAddress?: string;
|
|
2780
|
+
exchangeTokenAddress?: string;
|
|
2781
|
+
tokenDomainName?: string;
|
|
2782
|
+
tokenDomainVersion?: string;
|
|
2783
|
+
}, {
|
|
2784
|
+
deadline?: string;
|
|
2785
|
+
spender?: string;
|
|
2786
|
+
value?: string;
|
|
2787
|
+
configId?: string;
|
|
2788
|
+
signerAddress?: string;
|
|
2789
|
+
exchangeTokenAddress?: string;
|
|
2790
|
+
tokenDomainName?: string;
|
|
2791
|
+
tokenDomainVersion?: string;
|
|
2792
|
+
}>;
|
|
2793
|
+
export declare const signReceiveWithPermit2Validation: z.ZodObject<{
|
|
2794
|
+
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
2795
|
+
permit2Address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2796
|
+
permit2Nonce: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2797
|
+
exchangeTokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2798
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
2799
|
+
spender: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2800
|
+
} & {
|
|
2801
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2802
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2803
|
+
}, "strip", z.ZodTypeAny, {
|
|
2804
|
+
deadline?: string;
|
|
2805
|
+
spender?: string;
|
|
2806
|
+
value?: string;
|
|
2807
|
+
configId?: string;
|
|
2808
|
+
signerAddress?: string;
|
|
2809
|
+
exchangeTokenAddress?: string;
|
|
2810
|
+
permit2Address?: string;
|
|
2811
|
+
permit2Nonce?: string;
|
|
2812
|
+
}, {
|
|
2813
|
+
deadline?: string;
|
|
2814
|
+
spender?: string;
|
|
2815
|
+
value?: string;
|
|
2816
|
+
configId?: string;
|
|
2817
|
+
signerAddress?: string;
|
|
2818
|
+
exchangeTokenAddress?: string;
|
|
2819
|
+
permit2Address?: string;
|
|
2820
|
+
permit2Nonce?: string;
|
|
2821
|
+
}>;
|
|
2822
|
+
export declare const signReceiveWithDaiPermitValidation: z.ZodObject<{
|
|
2823
|
+
tokenDomainName: z.ZodString;
|
|
2824
|
+
expiry: z.ZodEffects<z.ZodString, string, string>;
|
|
2825
|
+
exchangeTokenAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2826
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
2827
|
+
spender: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2828
|
+
} & {
|
|
2829
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
2830
|
+
signerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2831
|
+
}, "strip", z.ZodTypeAny, {
|
|
2832
|
+
spender?: string;
|
|
2833
|
+
value?: string;
|
|
2834
|
+
configId?: string;
|
|
2835
|
+
signerAddress?: string;
|
|
2836
|
+
exchangeTokenAddress?: string;
|
|
2837
|
+
tokenDomainName?: string;
|
|
2838
|
+
expiry?: string;
|
|
2839
|
+
}, {
|
|
2840
|
+
spender?: string;
|
|
2841
|
+
value?: string;
|
|
2842
|
+
configId?: string;
|
|
2843
|
+
signerAddress?: string;
|
|
2844
|
+
exchangeTokenAddress?: string;
|
|
2845
|
+
tokenDomainName?: string;
|
|
2846
|
+
expiry?: string;
|
|
2847
|
+
}>;
|
|
2454
2848
|
export declare const voidOfferValidationShape: {
|
|
2455
2849
|
offerId: z.ZodEffects<z.ZodString, string, string>;
|
|
2456
2850
|
};
|
|
@@ -2921,6 +3315,48 @@ export declare const getAllProductsWithNotVoidedVariantsResourceValidation: z.Zo
|
|
|
2921
3315
|
productsOrderBy?: string;
|
|
2922
3316
|
productsOrderDirection?: string;
|
|
2923
3317
|
}>;
|
|
3318
|
+
export declare const searchProductsValidation: z.ZodObject<{
|
|
3319
|
+
keywords: z.ZodArray<z.ZodString, "many">;
|
|
3320
|
+
includeInvalidOffers: z.ZodOptional<z.ZodBoolean>;
|
|
3321
|
+
} & {
|
|
3322
|
+
productsSkip: z.ZodOptional<z.ZodNumber>;
|
|
3323
|
+
productsFirst: z.ZodOptional<z.ZodNumber>;
|
|
3324
|
+
productsOrderBy: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
3325
|
+
productsOrderDirection: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
3326
|
+
productsFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3327
|
+
} & {
|
|
3328
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
3329
|
+
}, "strip", z.ZodTypeAny, {
|
|
3330
|
+
configId?: string;
|
|
3331
|
+
productsFilter?: Record<string, unknown>;
|
|
3332
|
+
productsSkip?: number;
|
|
3333
|
+
productsFirst?: number;
|
|
3334
|
+
productsOrderBy?: string;
|
|
3335
|
+
productsOrderDirection?: string;
|
|
3336
|
+
keywords?: string[];
|
|
3337
|
+
includeInvalidOffers?: boolean;
|
|
3338
|
+
}, {
|
|
3339
|
+
configId?: string;
|
|
3340
|
+
productsFilter?: Record<string, unknown>;
|
|
3341
|
+
productsSkip?: number;
|
|
3342
|
+
productsFirst?: number;
|
|
3343
|
+
productsOrderBy?: string;
|
|
3344
|
+
productsOrderDirection?: string;
|
|
3345
|
+
keywords?: string[];
|
|
3346
|
+
includeInvalidOffers?: boolean;
|
|
3347
|
+
}>;
|
|
3348
|
+
export declare const searchProductsValidationShape: {
|
|
3349
|
+
keywords: z.ZodArray<z.ZodString, "many">;
|
|
3350
|
+
includeInvalidOffers: z.ZodOptional<z.ZodBoolean>;
|
|
3351
|
+
} & {
|
|
3352
|
+
productsSkip: z.ZodOptional<z.ZodNumber>;
|
|
3353
|
+
productsFirst: z.ZodOptional<z.ZodNumber>;
|
|
3354
|
+
productsOrderBy: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
3355
|
+
productsOrderDirection: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
3356
|
+
productsFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3357
|
+
} & {
|
|
3358
|
+
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
3359
|
+
};
|
|
2924
3360
|
export declare const getConfigIdsValidation: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2925
3361
|
export declare const getRegisteredAgentsValidation: z.ZodObject<{
|
|
2926
3362
|
configId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/boson/mcp-server/validation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,CAAC,EAAE,MAAM,KAAK,CAAC;AA2EvC,eAAO,MAAM,iBAAiB;;;;;;;;;EAK5B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAmD9B,CAAC;AAEL,eAAO,MAAM,uBAAuB,iCAIjC,CAAC;AAEJ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6FvC,CAAC;AAuDH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAOlB,CAAC;AAEjB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;gCAM7B,CAAC;AAEjB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B9B,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;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AAM,4CAA4C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.completeExchangeValidation = exports.completeExchangeValidationShape = exports.getDisputeByIdValidation = exports.getDisputeByIdValidationShape = exports.expireEscalatedDisputeValidation = exports.expireEscalatedDisputeValidationShape = exports.refuseEscalatedDisputeValidation = exports.refuseEscalatedDisputeValidationShape = exports.decideDisputeValidation = exports.decideDisputeValidationShape = exports.escalateDisputeValidation = exports.escalateDisputeValidationShape = exports.retractDisputeValidation = exports.retractDisputeValidationShape = exports.raiseDisputeValidation = exports.raiseDisputeValidationShape = exports.expireDisputeBatchValidation = exports.expireDisputeBatchValidationShape = exports.expireDisputeValidation = exports.expireDisputeValidationShape = exports.extendDisputeTimeoutValidation = exports.extendDisputeTimeoutValidationShape = exports.updateSellerValidationSimple = exports.createSellerValidationSimple = exports.updateSellerValidation = exports.createSellerValidation = exports.updateSellerNonMetadataFields = exports.createSellerNonMetadataFields = exports.getFundsResourceValidation = exports.getFundsValidationShape = exports.getFundsValidation = exports.depositFundsValidation = exports.depositFundsValidationShape = exports.withdrawFundsValidation = exports.withdrawFundsValidationShape = exports.validateMetadataValidation = exports.storeBaseMetadataValidation = exports.storeBundleMetadataValidation = exports.createBuyerValidation = exports.fullOfferUnsignedValidation = exports.voidNonListedOfferBatchValidation = exports.voidNonListedOfferValidation = exports.createOfferWithConditionValidation = exports.conditionValidation = exports.storeProductV1MetadataValidation = exports.createOfferValidation = exports.createOfferNonMetadataFields = exports.executionModeValidation = exports.royaltyInfoValidation = exports.contextValidation = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.searchProductsValidation = exports.getAllProductsWithNotVoidedVariantsResourceValidation = exports.getAllProductsWithNotVoidedVariantsValidationShape = exports.getAllProductsWithNotVoidedVariantsValidation = exports.getOffersResourceValidation = exports.getOffersValidationShape = exports.getOffersValidation = exports.getDisputeResolversResourceValidation = exports.getDisputeResolversValidationShape = exports.getDisputeResolversValidation = exports.getSellersByAddressResourceValidation = exports.getSellersByAddressValidationShape = exports.getSellersByAddressValidation = exports.getSellersResourceValidation = exports.getSellersValidationShape = exports.getSellersValidation = exports.getExchangesResourceValidation = exports.getExchangesValidationShape = exports.getExchangesValidation = exports.redeemVoucherValidation = exports.redeemVoucherValidationShape = exports.cancelVoucherValidation = exports.cancelVoucherValidationShape = exports.voidOfferValidation = exports.voidOfferValidationShape = exports.signReceiveWithDaiPermitValidation = exports.signReceiveWithPermit2Validation = exports.signReceiveWithErc2612PermitValidation = exports.signReceiveWithErc3009AuthorizationValidation = exports.approveExchangeTokenValidation = exports.approveExchangeTokenValidationShape = exports.createOfferCommitAndRedeemValidation = exports.createOfferAndCommitValidation = exports.commitToBuyerOfferValidation = exports.commitToBuyerOfferValidationShape = exports.commitToConditionalOfferAndRedeemVoucherValidation = exports.commitToConditionalOfferAndRedeemVoucherValidationShape = exports.commitToOfferAndRedeemVoucherValidation = exports.commitToOfferAndRedeemVoucherValidationShape = exports.commitToOfferValidation = exports.commitToOfferValidationShape = exports.revokeVoucherValidation = exports.revokeVoucherValidationShape = exports.getDisputesResourceValidation = exports.getDisputesValidationShape = exports.getDisputesValidation = exports.createDisputeResolutionProposalValidation = exports.createDisputeResolutionProposalValidationShape = exports.resolveDisputeValidation = exports.resolveDisputeValidationShape = void 0;
|
|
5
|
+
exports.ecdsaSignatureString = exports.signedTransactionValidationZod = exports.signedTransactionValidation = exports.storeBundleItemNftMetadataValidation = exports.storeBundleItemProductV1MetadataValidation = exports.renderContractualAgreementValidation = exports.getTokensValidation = exports.registerAgentValidation = exports.getRegisteredAgentsValidation = exports.getConfigIdsValidation = exports.searchProductsValidationShape = void 0;
|
|
5
6
|
const bignumber_js_1 = require("@ethersproject/bignumber/lib/bignumber.js");
|
|
6
7
|
const ethers_1 = require("ethers");
|
|
7
8
|
const zod_1 = require("zod");
|
|
@@ -525,6 +526,21 @@ exports.commitToOfferValidation = zod_1.z
|
|
|
525
526
|
.object(exports.commitToOfferValidationShape)
|
|
526
527
|
.extend(exports.contextValidation.shape)
|
|
527
528
|
.extend({ executionMode: exports.executionModeValidation.optional() });
|
|
529
|
+
exports.commitToOfferAndRedeemVoucherValidationShape = {
|
|
530
|
+
offerId: bigNumber.describe("ID of the active offer to commit to and immediately redeem in a single transaction. Combines commit_to_offer + redeem_voucher via the OrchestrationHandler."),
|
|
531
|
+
};
|
|
532
|
+
exports.commitToOfferAndRedeemVoucherValidation = zod_1.z
|
|
533
|
+
.object(exports.commitToOfferAndRedeemVoucherValidationShape)
|
|
534
|
+
.extend(exports.contextValidation.shape)
|
|
535
|
+
.extend({ executionMode: exports.executionModeValidation.optional() });
|
|
536
|
+
exports.commitToConditionalOfferAndRedeemVoucherValidationShape = {
|
|
537
|
+
offerId: bigNumber.describe("ID of a conditional (token-gated) offer to commit to and immediately redeem in a single transaction."),
|
|
538
|
+
tokenId: bigNumber.describe("Token ID of the gate token used to qualify for the conditional commit (relevant for ERC-721/1155 and SpecificToken / TokenRange gating)."),
|
|
539
|
+
};
|
|
540
|
+
exports.commitToConditionalOfferAndRedeemVoucherValidation = zod_1.z
|
|
541
|
+
.object(exports.commitToConditionalOfferAndRedeemVoucherValidationShape)
|
|
542
|
+
.extend(exports.contextValidation.shape)
|
|
543
|
+
.extend({ executionMode: exports.executionModeValidation.optional() });
|
|
528
544
|
exports.commitToBuyerOfferValidationShape = {
|
|
529
545
|
offerId: bigNumber.describe("ID of a buyer-initiated offer (creator='BUYER') to commit to. The seller fulfils the offer."),
|
|
530
546
|
collectionIndex: bigNumber.optional(),
|
|
@@ -542,6 +558,13 @@ exports.createOfferAndCommitValidation = zod_1.z
|
|
|
542
558
|
})
|
|
543
559
|
.extend(exports.fullOfferUnsignedValidation.shape)
|
|
544
560
|
.passthrough();
|
|
561
|
+
exports.createOfferCommitAndRedeemValidation = zod_1.z
|
|
562
|
+
.object({
|
|
563
|
+
executionMode: exports.executionModeValidation.optional(),
|
|
564
|
+
signature: validationUtils_js_1.ecdsaSignatureString.describe("ECDSA signature over the offer typed data. Workflow: sign_full_offer → sign the returned typed data locally with your wallet (EIP-712) → use result here."),
|
|
565
|
+
})
|
|
566
|
+
.extend(exports.fullOfferUnsignedValidation.shape)
|
|
567
|
+
.passthrough();
|
|
545
568
|
exports.approveExchangeTokenValidationShape = {
|
|
546
569
|
exchangeTokenAddress: validationUtils_js_1.ethereumAddressValidation.describe("ERC-20 token contract address to approve for the Boson Protocol diamond."),
|
|
547
570
|
amount: bigNumber.describe("Allowance in wei. Use max uint256 string for unlimited: '115792089237316195423570985008687907853269984665640564039457584007913129639935'."),
|
|
@@ -550,6 +573,60 @@ exports.approveExchangeTokenValidation = zod_1.z
|
|
|
550
573
|
.object(exports.approveExchangeTokenValidationShape)
|
|
551
574
|
.extend(exports.contextValidation.shape)
|
|
552
575
|
.extend({ executionMode: exports.executionModeValidation.optional() });
|
|
576
|
+
const signReceivePermitSharedShape = {
|
|
577
|
+
exchangeTokenAddress: validationUtils_js_1.ethereumAddressValidation.describe("ERC-20 token contract address that supports the permit/authorization standard."),
|
|
578
|
+
value: bigNumber.describe("Amount in wei the spender is authorized to pull from the signer."),
|
|
579
|
+
spender: validationUtils_js_1.ethereumAddressValidation
|
|
580
|
+
.optional()
|
|
581
|
+
.describe("Optional spender address. Defaults to the Boson Protocol diamond from SDK config."),
|
|
582
|
+
};
|
|
583
|
+
const tokenDomainWithVersionShape = {
|
|
584
|
+
tokenDomainName: zod_1.z
|
|
585
|
+
.string()
|
|
586
|
+
.min(1)
|
|
587
|
+
.describe("EIP-712 domain name of the token contract (e.g. 'USD Coin'). Required for ERC-3009 / EIP-2612 domain separator."),
|
|
588
|
+
tokenDomainVersion: zod_1.z
|
|
589
|
+
.string()
|
|
590
|
+
.min(1)
|
|
591
|
+
.describe("EIP-712 domain version of the token contract (e.g. '2'). Required for ERC-3009 / EIP-2612 domain separator."),
|
|
592
|
+
};
|
|
593
|
+
exports.signReceiveWithErc3009AuthorizationValidation = zod_1.z
|
|
594
|
+
.object({
|
|
595
|
+
...signReceivePermitSharedShape,
|
|
596
|
+
...tokenDomainWithVersionShape,
|
|
597
|
+
validAfter: bigNumber.describe("Unix timestamp in seconds before which the authorization is not valid."),
|
|
598
|
+
validBefore: bigNumber.describe("Unix timestamp in seconds after which the authorization is no longer valid."),
|
|
599
|
+
})
|
|
600
|
+
.extend(exports.contextValidation.shape);
|
|
601
|
+
exports.signReceiveWithErc2612PermitValidation = zod_1.z
|
|
602
|
+
.object({
|
|
603
|
+
...signReceivePermitSharedShape,
|
|
604
|
+
...tokenDomainWithVersionShape,
|
|
605
|
+
deadline: bigNumber.describe("Unix timestamp in seconds after which the permit is no longer valid."),
|
|
606
|
+
})
|
|
607
|
+
.extend(exports.contextValidation.shape);
|
|
608
|
+
exports.signReceiveWithPermit2Validation = zod_1.z
|
|
609
|
+
.object({
|
|
610
|
+
...signReceivePermitSharedShape,
|
|
611
|
+
deadline: bigNumber.describe("Unix timestamp in seconds after which the Permit2 authorization is no longer valid."),
|
|
612
|
+
permit2Address: validationUtils_js_1.ethereumAddressValidation
|
|
613
|
+
.optional()
|
|
614
|
+
.describe("Optional Uniswap Permit2 contract address. Defaults to contracts.permit2 from SDK config."),
|
|
615
|
+
permit2Nonce: bigNumber
|
|
616
|
+
.optional()
|
|
617
|
+
.describe("Optional Permit2 nonce as a uint256 string. If omitted, a random uint256 is generated."),
|
|
618
|
+
})
|
|
619
|
+
.extend(exports.contextValidation.shape);
|
|
620
|
+
exports.signReceiveWithDaiPermitValidation = zod_1.z
|
|
621
|
+
.object({
|
|
622
|
+
...signReceivePermitSharedShape,
|
|
623
|
+
tokenDomainName: zod_1.z
|
|
624
|
+
.string()
|
|
625
|
+
.min(1)
|
|
626
|
+
.describe("EIP-712 domain name of the DAI-style token (e.g. 'Dai Stablecoin')."),
|
|
627
|
+
expiry: bigNumber.describe("Unix timestamp in seconds after which the DAI-style permit is no longer valid."),
|
|
628
|
+
})
|
|
629
|
+
.extend(exports.contextValidation.shape);
|
|
553
630
|
exports.voidOfferValidationShape = {
|
|
554
631
|
offerId: bigNumber.describe("ID of the listed offer to void. Caller must be the seller assistant. Existing exchanges are unaffected."),
|
|
555
632
|
};
|
|
@@ -600,6 +677,20 @@ exports.getAllProductsWithNotVoidedVariantsValidation = resourceParameterTypes_j
|
|
|
600
677
|
exports.getAllProductsWithNotVoidedVariantsValidationShape = exports.getAllProductsWithNotVoidedVariantsValidation.shape;
|
|
601
678
|
// Resource validation (does not require configId and signerAddress)
|
|
602
679
|
exports.getAllProductsWithNotVoidedVariantsResourceValidation = resourceParameterTypes_js_1.resourceValidationSchemas.products;
|
|
680
|
+
exports.searchProductsValidation = zod_1.z
|
|
681
|
+
.object({
|
|
682
|
+
keywords: zod_1.z
|
|
683
|
+
.array(zod_1.z.string().min(1))
|
|
684
|
+
.min(1, "At least one keyword is required")
|
|
685
|
+
.describe("List of keywords matched against product title, description, brand, category, and tags."),
|
|
686
|
+
includeInvalidOffers: zod_1.z
|
|
687
|
+
.boolean()
|
|
688
|
+
.optional()
|
|
689
|
+
.describe("When true, include products whose offers are outside their validity window. Defaults to false (valid offers only)."),
|
|
690
|
+
})
|
|
691
|
+
.extend(resourceParameterTypes_js_1.resourceValidationSchemas.products.shape)
|
|
692
|
+
.extend(readOnlyContextValidation.shape);
|
|
693
|
+
exports.searchProductsValidationShape = exports.searchProductsValidation.shape;
|
|
603
694
|
exports.getConfigIdsValidation = resourceParameterTypes_js_1.resourceValidationSchemas.configIds;
|
|
604
695
|
exports.getRegisteredAgentsValidation = resourceParameterTypes_js_1.resourceValidationSchemas.getRegisteredAgents.extend(readOnlyContextValidation.shape);
|
|
605
696
|
exports.registerAgentValidation = resourceParameterTypes_js_1.resourceValidationSchemas.registerAgent;
|