@story-protocol/core-sdk 0.0.1-beta-rc.5 → 0.0.1-beta-rc.6
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/README.md +97 -43
- package/dist/declarations/src/constants/common.d.ts +1 -0
- package/dist/declarations/src/constants/common.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +0 -20
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +0 -20
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +52 -21
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +43 -40
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +1 -41
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +99 -82
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +4 -4
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/policy.d.ts +39 -1
- package/dist/declarations/src/types/resources/policy.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +551 -114
- package/dist/story-protocol-core-sdk.cjs.prod.js +551 -114
- package/dist/story-protocol-core-sdk.esm.js +552 -115
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PublicClient, WalletClient } from "viem";
|
2
|
-
import { RegisterPILPolicyRequest, RegisterPILPolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse } from "../types/resources/policy.js";
|
2
|
+
import { RegisterPILPolicyRequest, RegisterPILPolicyResponse, RegisterPILSocialRemixPolicyRequest, RegisterPILSocialRemixPolicyResponse, RegisterPILCommercialUsePolicyRequest, RegisterPILCommercialUsePolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse } from "../types/resources/policy.js";
|
3
3
|
export declare class PolicyClient {
|
4
4
|
private readonly wallet;
|
5
5
|
private readonly rpcClient;
|
@@ -209,13 +209,6 @@ export declare class PolicyClient {
|
|
209
209
|
readonly type: "error";
|
210
210
|
} | {
|
211
211
|
readonly inputs: readonly [];
|
212
|
-
/**
|
213
|
-
* Adds a policy to the set of policies of an IP
|
214
|
-
* @param request The request object containing details to add a policy to an IP
|
215
|
-
* @param request.ipId The id of the IP
|
216
|
-
* @param request.polId The id of the policy
|
217
|
-
* @return the transaction hash and the index of the policy in the IP's policy set if the txOptions.waitForTransaction is set to true
|
218
|
-
*/
|
219
212
|
readonly name: "IPAccount__InvalidCalldata";
|
220
213
|
readonly type: "error";
|
221
214
|
} | {
|
@@ -291,6 +284,15 @@ export declare class PolicyClient {
|
|
291
284
|
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
292
285
|
readonly type: "error";
|
293
286
|
} | {
|
287
|
+
/**
|
288
|
+
* Convenient function to register a PIL social remix policy to the registry
|
289
|
+
* Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
|
290
|
+
* @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
|
291
|
+
* @param request.territories List of territories where the license is valid. If empty, global.
|
292
|
+
* @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
|
293
|
+
* @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
|
294
|
+
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
295
|
+
*/
|
294
296
|
readonly inputs: readonly [];
|
295
297
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
296
298
|
readonly type: "error";
|
@@ -658,26 +660,6 @@ export declare class PolicyClient {
|
|
658
660
|
readonly inputs: readonly [];
|
659
661
|
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
660
662
|
readonly type: "error";
|
661
|
-
} | {
|
662
|
-
readonly inputs: readonly [];
|
663
|
-
readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
|
664
|
-
readonly type: "error";
|
665
|
-
} | {
|
666
|
-
readonly inputs: readonly [];
|
667
|
-
readonly name: "TaggingModule__InvalidRelationTypeName";
|
668
|
-
readonly type: "error";
|
669
|
-
} | {
|
670
|
-
readonly inputs: readonly [];
|
671
|
-
readonly name: "TaggingModule__RelationTypeAlreadyExists";
|
672
|
-
readonly type: "error";
|
673
|
-
} | {
|
674
|
-
readonly inputs: readonly [];
|
675
|
-
readonly name: "TaggingModule__RelationTypeDoesNotExist";
|
676
|
-
readonly type: "error";
|
677
|
-
} | {
|
678
|
-
readonly inputs: readonly [];
|
679
|
-
readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
|
680
|
-
readonly type: "error";
|
681
663
|
} | {
|
682
664
|
readonly inputs: readonly [{
|
683
665
|
readonly internalType: "address";
|
@@ -942,13 +924,6 @@ export declare class PolicyClient {
|
|
942
924
|
readonly type: "error";
|
943
925
|
} | {
|
944
926
|
readonly inputs: readonly [];
|
945
|
-
/**
|
946
|
-
* Adds a policy to the set of policies of an IP
|
947
|
-
* @param request The request object containing details to add a policy to an IP
|
948
|
-
* @param request.ipId The id of the IP
|
949
|
-
* @param request.polId The id of the policy
|
950
|
-
* @return the transaction hash and the index of the policy in the IP's policy set if the txOptions.waitForTransaction is set to true
|
951
|
-
*/
|
952
927
|
readonly name: "IPAccount__InvalidCalldata";
|
953
928
|
readonly type: "error";
|
954
929
|
} | {
|
@@ -1024,6 +999,15 @@ export declare class PolicyClient {
|
|
1024
999
|
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
1025
1000
|
readonly type: "error";
|
1026
1001
|
} | {
|
1002
|
+
/**
|
1003
|
+
* Convenient function to register a PIL social remix policy to the registry
|
1004
|
+
* Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
|
1005
|
+
* @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
|
1006
|
+
* @param request.territories List of territories where the license is valid. If empty, global.
|
1007
|
+
* @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
|
1008
|
+
* @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
|
1009
|
+
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
1010
|
+
*/
|
1027
1011
|
readonly inputs: readonly [];
|
1028
1012
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
1029
1013
|
readonly type: "error";
|
@@ -1391,26 +1375,6 @@ export declare class PolicyClient {
|
|
1391
1375
|
readonly inputs: readonly [];
|
1392
1376
|
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
1393
1377
|
readonly type: "error";
|
1394
|
-
} | {
|
1395
|
-
readonly inputs: readonly [];
|
1396
|
-
readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
|
1397
|
-
readonly type: "error";
|
1398
|
-
} | {
|
1399
|
-
readonly inputs: readonly [];
|
1400
|
-
readonly name: "TaggingModule__InvalidRelationTypeName";
|
1401
|
-
readonly type: "error";
|
1402
|
-
} | {
|
1403
|
-
readonly inputs: readonly [];
|
1404
|
-
readonly name: "TaggingModule__RelationTypeAlreadyExists";
|
1405
|
-
readonly type: "error";
|
1406
|
-
} | {
|
1407
|
-
readonly inputs: readonly [];
|
1408
|
-
readonly name: "TaggingModule__RelationTypeDoesNotExist";
|
1409
|
-
readonly type: "error";
|
1410
|
-
} | {
|
1411
|
-
readonly inputs: readonly [];
|
1412
|
-
readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
|
1413
|
-
readonly type: "error";
|
1414
1378
|
} | {
|
1415
1379
|
readonly anonymous: false;
|
1416
1380
|
readonly inputs: readonly [{
|
@@ -1519,6 +1483,49 @@ export declare class PolicyClient {
|
|
1519
1483
|
}];
|
1520
1484
|
readonly stateMutability: "nonpayable";
|
1521
1485
|
readonly type: "function";
|
1486
|
+
} | {
|
1487
|
+
readonly inputs: readonly [{
|
1488
|
+
readonly components: readonly [{
|
1489
|
+
readonly internalType: "bool";
|
1490
|
+
readonly name: "isLicenseTransferable";
|
1491
|
+
readonly type: "bool";
|
1492
|
+
}, {
|
1493
|
+
readonly internalType: "address";
|
1494
|
+
readonly name: "policyFramework";
|
1495
|
+
readonly type: "address";
|
1496
|
+
}, {
|
1497
|
+
readonly internalType: "bytes";
|
1498
|
+
readonly name: "frameworkData";
|
1499
|
+
readonly type: "bytes";
|
1500
|
+
}, {
|
1501
|
+
readonly internalType: "address";
|
1502
|
+
readonly name: "royaltyPolicy";
|
1503
|
+
readonly type: "address";
|
1504
|
+
}, {
|
1505
|
+
readonly internalType: "bytes";
|
1506
|
+
readonly name: "royaltyData";
|
1507
|
+
readonly type: "bytes";
|
1508
|
+
}, {
|
1509
|
+
readonly internalType: "uint256";
|
1510
|
+
readonly name: "mintingFee";
|
1511
|
+
readonly type: "uint256";
|
1512
|
+
}, {
|
1513
|
+
readonly internalType: "address";
|
1514
|
+
readonly name: "mintingFeeToken";
|
1515
|
+
readonly type: "address";
|
1516
|
+
}];
|
1517
|
+
readonly internalType: "struct Licensing.Policy";
|
1518
|
+
readonly name: "pol";
|
1519
|
+
readonly type: "tuple";
|
1520
|
+
}];
|
1521
|
+
readonly name: "getPolicyId";
|
1522
|
+
readonly outputs: readonly [{
|
1523
|
+
readonly internalType: "uint256";
|
1524
|
+
readonly name: "policyId";
|
1525
|
+
readonly type: "uint256";
|
1526
|
+
}];
|
1527
|
+
readonly stateMutability: "view";
|
1528
|
+
readonly type: "function";
|
1522
1529
|
} | {
|
1523
1530
|
readonly inputs: readonly [{
|
1524
1531
|
readonly internalType: "uint256[]";
|
@@ -1820,13 +1827,6 @@ export declare class PolicyClient {
|
|
1820
1827
|
readonly type: "error";
|
1821
1828
|
} | {
|
1822
1829
|
readonly inputs: readonly [];
|
1823
|
-
/**
|
1824
|
-
* Adds a policy to the set of policies of an IP
|
1825
|
-
* @param request The request object containing details to add a policy to an IP
|
1826
|
-
* @param request.ipId The id of the IP
|
1827
|
-
* @param request.polId The id of the policy
|
1828
|
-
* @return the transaction hash and the index of the policy in the IP's policy set if the txOptions.waitForTransaction is set to true
|
1829
|
-
*/
|
1830
1830
|
readonly name: "IPAccount__InvalidCalldata";
|
1831
1831
|
readonly type: "error";
|
1832
1832
|
} | {
|
@@ -1902,6 +1902,15 @@ export declare class PolicyClient {
|
|
1902
1902
|
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
1903
1903
|
readonly type: "error";
|
1904
1904
|
} | {
|
1905
|
+
/**
|
1906
|
+
* Convenient function to register a PIL social remix policy to the registry
|
1907
|
+
* Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
|
1908
|
+
* @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
|
1909
|
+
* @param request.territories List of territories where the license is valid. If empty, global.
|
1910
|
+
* @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
|
1911
|
+
* @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
|
1912
|
+
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
1913
|
+
*/
|
1905
1914
|
readonly inputs: readonly [];
|
1906
1915
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
1907
1916
|
readonly type: "error";
|
@@ -2269,26 +2278,6 @@ export declare class PolicyClient {
|
|
2269
2278
|
readonly inputs: readonly [];
|
2270
2279
|
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
2271
2280
|
readonly type: "error";
|
2272
|
-
} | {
|
2273
|
-
readonly inputs: readonly [];
|
2274
|
-
readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
|
2275
|
-
readonly type: "error";
|
2276
|
-
} | {
|
2277
|
-
readonly inputs: readonly [];
|
2278
|
-
readonly name: "TaggingModule__InvalidRelationTypeName";
|
2279
|
-
readonly type: "error";
|
2280
|
-
} | {
|
2281
|
-
readonly inputs: readonly [];
|
2282
|
-
readonly name: "TaggingModule__RelationTypeAlreadyExists";
|
2283
|
-
readonly type: "error";
|
2284
|
-
} | {
|
2285
|
-
readonly inputs: readonly [];
|
2286
|
-
readonly name: "TaggingModule__RelationTypeDoesNotExist";
|
2287
|
-
readonly type: "error";
|
2288
|
-
} | {
|
2289
|
-
readonly inputs: readonly [];
|
2290
|
-
readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
|
2291
|
-
readonly type: "error";
|
2292
2281
|
} | {
|
2293
2282
|
readonly inputs: readonly [{
|
2294
2283
|
readonly components: readonly [{
|
@@ -2380,6 +2369,9 @@ export declare class PolicyClient {
|
|
2380
2369
|
})[];
|
2381
2370
|
address: `0x${string}`;
|
2382
2371
|
};
|
2372
|
+
royaltyPolicyLAPConfig: {
|
2373
|
+
address: `0x${string}`;
|
2374
|
+
};
|
2383
2375
|
constructor(rpcClient: PublicClient, wallet: WalletClient);
|
2384
2376
|
/**
|
2385
2377
|
* Registers a PIL policy to the registry
|
@@ -2401,6 +2393,31 @@ export declare class PolicyClient {
|
|
2401
2393
|
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
2402
2394
|
*/
|
2403
2395
|
registerPILPolicy(request: RegisterPILPolicyRequest): Promise<RegisterPILPolicyResponse>;
|
2396
|
+
/**
|
2397
|
+
* Convenient function to register a PIL social remix policy to the registry
|
2398
|
+
* Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
|
2399
|
+
* @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
|
2400
|
+
* @param request.territories List of territories where the license is valid. If empty, global.
|
2401
|
+
* @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
|
2402
|
+
* @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
|
2403
|
+
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
2404
|
+
*/
|
2405
|
+
registerPILSocialRemixPolicy(request: RegisterPILSocialRemixPolicyRequest): Promise<RegisterPILSocialRemixPolicyResponse>;
|
2406
|
+
/**
|
2407
|
+
* Convenient function to register a PIL social remix policy to the registry
|
2408
|
+
* Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
|
2409
|
+
* @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
|
2410
|
+
* @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
|
2411
|
+
* @param mintingFee Fee to be paid when minting a license
|
2412
|
+
* @param mintingFeeToken Token to be used to pay the minting fee
|
2413
|
+
* @param request.territories List of territories where the license is valid. If empty, global.
|
2414
|
+
* @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
|
2415
|
+
* @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
|
2416
|
+
* @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
|
2417
|
+
*/
|
2418
|
+
registerPILCommercialUsePolicy(request: RegisterPILCommercialUsePolicyRequest): Promise<RegisterPILCommercialUsePolicyResponse>;
|
2419
|
+
private getPolicyId;
|
2420
|
+
private encodeFrameworkData;
|
2404
2421
|
/**
|
2405
2422
|
* Adds a policy to the set of policies of an IP
|
2406
2423
|
* @param request The request object containing details to add a policy to an IP
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"../../../../src/resources","sources":["policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAA+C,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"../../../../src/resources","sources":["policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAA+C,MAAM,MAAM,CAAC;AAU/F,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,sCAAsC,EACtC,oBAAoB,EACpB,qBAAqB,EAEtB,qCAAkC;AAEnC,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAnHsE;IAClE,sBAAsB;;MAA0B;gBAE3C,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKzD;;;;;;;;;;;;;;;;;;OAkBG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IA8ErC;;;;;;;;OAQG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,oCAAoC,CAAC;IA6EhD;;;;;;;;;;;OAWG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sCAAsC,CAAC;YA6EpC,WAAW;IA2BzB,OAAO,CAAC,mBAAmB;IAwB3B;;;;;;OAMG;IACU,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAoC1F"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TxOptions } from "../options.js";
|
2
2
|
export type RegisterRootIpRequest = {
|
3
|
-
tokenContractAddress: string
|
3
|
+
tokenContractAddress: `0x${string}`;
|
4
4
|
tokenId: string;
|
5
5
|
policyId?: string;
|
6
6
|
ipName?: string;
|
@@ -9,12 +9,12 @@ export type RegisterRootIpRequest = {
|
|
9
9
|
txOptions?: TxOptions;
|
10
10
|
};
|
11
11
|
export type RegisterRootIpResponse = {
|
12
|
-
txHash
|
12
|
+
txHash?: string;
|
13
13
|
ipId?: string;
|
14
14
|
};
|
15
15
|
export type RegisterDerivativeIpRequest = {
|
16
16
|
licenseIds: string[];
|
17
|
-
tokenContractAddress: string
|
17
|
+
tokenContractAddress: `0x${string}`;
|
18
18
|
tokenId: string;
|
19
19
|
ipName?: string;
|
20
20
|
contentHash?: `0x${string}`;
|
@@ -23,7 +23,7 @@ export type RegisterDerivativeIpRequest = {
|
|
23
23
|
txOptions?: TxOptions;
|
24
24
|
};
|
25
25
|
export type RegisterDerivativeIpResponse = {
|
26
|
-
txHash
|
26
|
+
txHash?: string;
|
27
27
|
ipId?: string;
|
28
28
|
};
|
29
29
|
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
@@ -20,7 +20,30 @@ export type RegisterPILPolicyRequest = {
|
|
20
20
|
txOptions?: TxOptions;
|
21
21
|
};
|
22
22
|
export type RegisterPILPolicyResponse = {
|
23
|
-
txHash
|
23
|
+
txHash?: string;
|
24
|
+
policyId?: string;
|
25
|
+
};
|
26
|
+
export type RegisterPILSocialRemixPolicyRequest = {
|
27
|
+
territories?: string[];
|
28
|
+
distributionChannels?: string[];
|
29
|
+
contentRestrictions?: string[];
|
30
|
+
txOptions?: TxOptions;
|
31
|
+
};
|
32
|
+
export type RegisterPILSocialRemixPolicyResponse = {
|
33
|
+
txHash?: string;
|
34
|
+
policyId?: string;
|
35
|
+
};
|
36
|
+
export type RegisterPILCommercialUsePolicyRequest = {
|
37
|
+
commercialRevShare: number;
|
38
|
+
mintingFee?: string;
|
39
|
+
mintingFeeToken?: `0x${string}`;
|
40
|
+
territories?: string[];
|
41
|
+
distributionChannels?: string[];
|
42
|
+
contentRestrictions?: string[];
|
43
|
+
txOptions?: TxOptions;
|
44
|
+
};
|
45
|
+
export type RegisterPILCommercialUsePolicyResponse = {
|
46
|
+
txHash?: string;
|
24
47
|
policyId?: string;
|
25
48
|
};
|
26
49
|
export type AddPolicyToIpRequest = {
|
@@ -42,4 +65,19 @@ export type Policy = {
|
|
42
65
|
export type PILData = {
|
43
66
|
commercialRevShare: string;
|
44
67
|
};
|
68
|
+
export type FrameworkData = {
|
69
|
+
attribution: boolean;
|
70
|
+
commercialUse: boolean;
|
71
|
+
commercialAttribution: boolean;
|
72
|
+
commercialRevShare: number;
|
73
|
+
derivativesAllowed: boolean;
|
74
|
+
derivativesAttribution: boolean;
|
75
|
+
derivativesApproval: boolean;
|
76
|
+
derivativesReciprocal: boolean;
|
77
|
+
territories: string[];
|
78
|
+
distributionChannels: string[];
|
79
|
+
contentRestrictions: string[];
|
80
|
+
commercializerChecker: `0x${string}`;
|
81
|
+
commercializerCheckerData: `0x${string}`;
|
82
|
+
};
|
45
83
|
//# sourceMappingURL=policy.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACtC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["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