@story-protocol/core-sdk 0.1.0-rc.5 → 1.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/README.md +100 -52
  2. package/dist/declarations/src/client.d.ts +36 -28
  3. package/dist/declarations/src/client.d.ts.map +1 -1
  4. package/dist/declarations/src/clients/storyAPI.d.ts +9 -0
  5. package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
  6. package/dist/declarations/src/constants/common.d.ts +4 -0
  7. package/dist/declarations/src/constants/common.d.ts.map +1 -0
  8. package/dist/declarations/src/index.d.ts +12 -9
  9. package/dist/declarations/src/index.d.ts.map +1 -1
  10. package/dist/declarations/src/resources/dispute.d.ts +1128 -0
  11. package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
  12. package/dist/declarations/src/resources/ipAccount.d.ts +1028 -0
  13. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
  14. package/dist/declarations/src/resources/ipAsset.d.ts +2357 -31
  15. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  16. package/dist/declarations/src/resources/license.d.ts +4351 -27
  17. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  18. package/dist/declarations/src/resources/permission.d.ts +2077 -0
  19. package/dist/declarations/src/resources/permission.d.ts.map +1 -0
  20. package/dist/declarations/src/resources/royalty.d.ts +3019 -0
  21. package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
  22. package/dist/declarations/src/types/common.d.ts +6 -0
  23. package/dist/declarations/src/types/common.d.ts.map +1 -0
  24. package/dist/declarations/src/types/config.d.ts +15 -5
  25. package/dist/declarations/src/types/config.d.ts.map +1 -1
  26. package/dist/declarations/src/types/options.d.ts +6 -0
  27. package/dist/declarations/src/types/options.d.ts.map +1 -0
  28. package/dist/declarations/src/types/resources/dispute.d.ts +50 -0
  29. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
  30. package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
  31. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
  32. package/dist/declarations/src/types/resources/ipAsset.d.ts +23 -63
  33. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  34. package/dist/declarations/src/types/resources/license.d.ts +56 -68
  35. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  36. package/dist/declarations/src/types/resources/permission.d.ts +14 -0
  37. package/dist/declarations/src/types/resources/permission.d.ts.map +1 -0
  38. package/dist/declarations/src/types/resources/royalty.d.ts +58 -0
  39. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
  40. package/dist/story-protocol-core-sdk.cjs.d.ts +1 -1
  41. package/dist/story-protocol-core-sdk.cjs.dev.js +3347 -1332
  42. package/dist/story-protocol-core-sdk.cjs.prod.js +3347 -1332
  43. package/dist/story-protocol-core-sdk.esm.js +3339 -1327
  44. package/package.json +16 -13
  45. package/dist/declarations/src/abi/generated/CollectModule.d.ts +0 -70
  46. package/dist/declarations/src/abi/generated/CollectModule.d.ts.map +0 -1
  47. package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts +0 -73
  48. package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts.map +0 -1
  49. package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts +0 -94
  50. package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts.map +0 -1
  51. package/dist/declarations/src/abi/generated/LicensingModule.d.ts +0 -97
  52. package/dist/declarations/src/abi/generated/LicensingModule.d.ts.map +0 -1
  53. package/dist/declarations/src/abi/generated/RelationshipModule.d.ts +0 -116
  54. package/dist/declarations/src/abi/generated/RelationshipModule.d.ts.map +0 -1
  55. package/dist/declarations/src/abi/generated/common.d.ts +0 -22
  56. package/dist/declarations/src/abi/generated/common.d.ts.map +0 -1
  57. package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts +0 -52
  58. package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts.map +0 -1
  59. package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts +0 -58
  60. package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts.map +0 -1
  61. package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts +0 -112
  62. package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts.map +0 -1
  63. package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts +0 -88
  64. package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts.map +0 -1
  65. package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts +0 -175
  66. package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts.map +0 -1
  67. package/dist/declarations/src/abi/generated/factories/index.d.ts +0 -6
  68. package/dist/declarations/src/abi/generated/factories/index.d.ts.map +0 -1
  69. package/dist/declarations/src/abi/generated/index.d.ts +0 -12
  70. package/dist/declarations/src/abi/generated/index.d.ts.map +0 -1
  71. package/dist/declarations/src/enums/Environment.d.ts +0 -8
  72. package/dist/declarations/src/enums/Environment.d.ts.map +0 -1
  73. package/dist/declarations/src/enums/IPAssetType.d.ts +0 -12
  74. package/dist/declarations/src/enums/IPAssetType.d.ts.map +0 -1
  75. package/dist/declarations/src/enums/ResourceType.d.ts +0 -11
  76. package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
  77. package/dist/declarations/src/resources/collect.d.ts +0 -24
  78. package/dist/declarations/src/resources/collect.d.ts.map +0 -1
  79. package/dist/declarations/src/resources/franchise.d.ts +0 -41
  80. package/dist/declarations/src/resources/franchise.d.ts.map +0 -1
  81. package/dist/declarations/src/resources/relationship.d.ts +0 -48
  82. package/dist/declarations/src/resources/relationship.d.ts.map +0 -1
  83. package/dist/declarations/src/resources/transaction.d.ts +0 -25
  84. package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
  85. package/dist/declarations/src/types/resources/collect.d.ts +0 -45
  86. package/dist/declarations/src/types/resources/collect.d.ts.map +0 -1
  87. package/dist/declarations/src/types/resources/franchise.d.ts +0 -71
  88. package/dist/declarations/src/types/resources/franchise.d.ts.map +0 -1
  89. package/dist/declarations/src/types/resources/relationship.d.ts +0 -83
  90. package/dist/declarations/src/types/resources/relationship.d.ts.map +0 -1
  91. package/dist/declarations/src/types/resources/transaction.d.ts +0 -40
  92. package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
  93. package/dist/story-protocol-core-sdk.cjs.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AACpD,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC3B,sCAAmC;AAQpC,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAC;gBAEf,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB;IAOrF;;;;;;;OAOG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;YAoB1B,eAAe;IAW7B;;;;;;;;;;OAUG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;CAiBvC"}
@@ -0,0 +1,6 @@
1
+ export type Hex = `0x${string}`;
2
+ export type TypedData = {
3
+ interface: string;
4
+ data: unknown[];
5
+ };
6
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,KAAK,MAAM,EAAE,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC"}
@@ -1,12 +1,22 @@
1
- import { Signer } from "ethers";
2
- import { Environment } from "../enums/Environment.js";
1
+ import { Account, Transport, Address, WalletClient } from "viem";
2
+ /**
3
+ * Supported chains. For convenience, both name or chain ID are supported.
4
+ *
5
+ * @public
6
+ */
7
+ export type SupportedChainIds = "11155111" | "sepolia" | "1513" | "storyTestnet";
3
8
  /**
4
9
  * Configuration for the SDK Client.
5
10
  *
6
11
  * @public
7
12
  */
8
- export type StoryConfig = {
9
- readonly environment: Environment;
10
- readonly signer: Signer;
13
+ export interface StoryConfig {
14
+ readonly account: Account | Address;
15
+ readonly chainId?: SupportedChainIds;
16
+ readonly transport: Transport;
17
+ readonly wallet?: WalletClient;
18
+ }
19
+ export type ContractAddress = {
20
+ [key in SupportedChainIds]: Record<string, string>;
11
21
  };
12
22
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,gCAA6B;AAEnD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,CAAC;AAEjF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type TxOptions = {
2
+ waitForTransaction?: boolean;
3
+ gasPrice?: bigint;
4
+ numBlockConfirmations?: number;
5
+ };
6
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { TxOptions } from "../options.js";
2
+ export type Dispute = {
3
+ targetIpId: `0x${string}`;
4
+ disputeInitiator: `0x${string}`;
5
+ arbitrationPolicy: `0x${string}`;
6
+ linkToDisputeEvidence: string;
7
+ targetTag: string;
8
+ currentTag: string;
9
+ };
10
+ export type RaiseDisputeRequest = {
11
+ targetIpId: `0x${string}`;
12
+ arbitrationPolicy: `0x${string}`;
13
+ linkToDisputeEvidence: string;
14
+ targetTag: string;
15
+ calldata?: `0x${string}`;
16
+ txOptions?: TxOptions;
17
+ };
18
+ export type RaiseDisputeResponse = {
19
+ txHash: string;
20
+ disputeId?: `0x${string}`;
21
+ arbitrationPolicy?: `0x${string}`;
22
+ };
23
+ export type SetDisputeJudgementRequest = {
24
+ disputeId: number;
25
+ decision: boolean;
26
+ calldata?: `0x${string}`;
27
+ txOptions?: TxOptions;
28
+ };
29
+ export type SetDisputeJudgementResponse = {
30
+ txHash: string;
31
+ disputeId?: bigint;
32
+ decision?: boolean;
33
+ data?: `0x${string}`;
34
+ };
35
+ export type CancelDisputeRequest = {
36
+ disputeId: number | string | bigint;
37
+ calldata?: `0x${string}`;
38
+ txOptions?: TxOptions;
39
+ };
40
+ export type CancelDisputeResponse = {
41
+ txHash: string;
42
+ };
43
+ export type ResolveDisputeRequest = {
44
+ disputeId: number | string | bigint;
45
+ txOptions?: TxOptions;
46
+ };
47
+ export type ResolveDisputeResponse = {
48
+ txHash: string;
49
+ };
50
+ //# sourceMappingURL=dispute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,iBAAiB,EAAE,KAAK,MAAM,EAAE,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,iBAAiB,EAAE,KAAK,MAAM,EAAE,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { TxOptions } from "../options.js";
2
+ export type IPAccountExecuteRequest = {
3
+ accountAddress: `0x${string}`;
4
+ to: `0x${string}`;
5
+ value: number;
6
+ data: `0x${string}`;
7
+ txOptions?: TxOptions;
8
+ };
9
+ export type IPAccountExecuteResponse = {
10
+ txHash: string;
11
+ };
12
+ export type IPAccountExecuteWithSigRequest = {
13
+ accountAddress: `0x${string}`;
14
+ to: `0x${string}`;
15
+ value: number;
16
+ data: `0x${string}`;
17
+ signer: `0x${string}`;
18
+ deadline: number;
19
+ signature: `0x${string}`;
20
+ txOptions?: TxOptions;
21
+ };
22
+ export type IPAccountExecuteWithSigResponse = {
23
+ txHash: string;
24
+ };
25
+ //# sourceMappingURL=ipAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,EAAE,KAAK,MAAM,EAAE,CAAC;IAC9B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,cAAc,EAAE,KAAK,MAAM,EAAE,CAAC;IAC9B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,71 +1,31 @@
1
- import { IPAssetType } from "../../enums/IPAssetType.js";
2
- /**
3
- * Core data model for IP Asset.
4
- *
5
- * @public
6
- */
7
- export type IPAsset = {
8
- ipAssetId: string;
9
- franchiseId: string;
10
- ipAssetName: string;
11
- ipAssetType: IPAssetType;
12
- ownerAddress: string;
13
- tokenUri: string;
14
- txHash: string;
15
- };
16
- /**
17
- * Request type for ipAsset.get method.
18
- *
19
- * @public
20
- */
21
- export type GetIpAssetRequest = {
22
- ipAssetId: string;
23
- franchiseId: string;
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type RegisterIpResponse = {
4
+ txHash?: string;
5
+ ipId?: Hex;
24
6
  };
25
- /**
26
- * Response type for ipAsset.get method.
27
- *
28
- * @public
29
- */
30
- export type GetIpAssetResponse = {
31
- data: IPAsset;
7
+ export type RegisterRequest = {
8
+ tokenContract: Hex;
9
+ tokenId: string;
10
+ txOptions?: TxOptions;
32
11
  };
33
- /**
34
- * Request type for ipAsset.create method.
35
- *
36
- * @public
37
- */
38
- export type CreateIpAssetRequest = {
39
- franchiseId: string;
40
- ipAssetType: IPAssetType;
41
- ipAssetName: string;
42
- description: string;
43
- mediaUrl: string;
44
- to: string;
45
- parentIpAssetId: string;
12
+ export type RegisterDerivativeWithLicenseTokensRequest = {
13
+ childIpId: Hex;
14
+ licenseTokenIds: string[];
15
+ txOptions?: TxOptions;
46
16
  };
47
- /**
48
- * Response type for ipAsset.create method.
49
- *
50
- * @public
51
- */
52
- export type CreateIpAssetResponse = {
17
+ export type RegisterDerivativeWithLicenseTokensResponse = {
53
18
  txHash: string;
54
19
  };
55
- /**
56
- * Request type for ipAsset.list method.
57
- *
58
- * @public
59
- */
60
- export type ListIpAssetRequest = {
61
- franchiseId: string;
20
+ export type RegisterDerivativeRequest = {
21
+ childIpId: Hex;
22
+ parentIpIds: Hex[];
23
+ licenseTermsIds: string[];
24
+ licenseTemplate?: Hex;
25
+ txOptions?: TxOptions;
62
26
  };
63
- /**
64
- * Response type for ipAsset.list method.
65
- *
66
- * @public
67
- */
68
- export type ListIpAssetResponse = {
69
- data: IPAsset[];
27
+ export type RegisterDerivativeResponse = {
28
+ txHash?: string;
29
+ childIpId?: Hex;
70
30
  };
71
31
  //# 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,WA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M,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG;IACvD,SAAS,EAAE,GAAG,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC"}
@@ -1,78 +1,66 @@
1
- import { BytesLike } from "ethers";
2
- /**
3
- * Represents the core data model for a License, containing essential information.
4
- *
5
- * @public
6
- */
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type LicenseApiResponse = {
4
+ data: License;
5
+ };
7
6
  export type License = {
8
- licenseId: string;
9
- ipAssetId: string;
10
- franchiseId: string;
11
- ownerAddress: string;
12
- uri: string;
13
- txHash: string;
7
+ id: string;
8
+ policyId: string;
9
+ licensorIpId: Hex;
14
10
  };
15
- /**
16
- * Represents the request structure for retrieving license details using the `franchise.get` method.
17
- *
18
- * @public
19
- */
20
- export type GetLicenseRequest = {
21
- licenseId: string;
11
+ export type RegisterLicenseTermsRequest = {
12
+ txOptions?: TxOptions;
22
13
  };
23
- /**
24
- * Represents the response structure for retrieving license details using the `license.get` method.
25
- *
26
- * @public
27
- */
28
- export type GetLicenseResponse = {
29
- data: License;
14
+ export type LicenseTerms = {
15
+ mintingFee: bigint;
16
+ expiration: bigint;
17
+ commercialRevCelling: bigint;
18
+ derivativeRevCelling: bigint;
19
+ commercializerCheckerData: Hex;
20
+ transferable: boolean;
21
+ royaltyPolicy: Hex;
22
+ commercialUse: boolean;
23
+ commercialAttribution: boolean;
24
+ commercializerChecker: Hex;
25
+ commercialRevShare: number;
26
+ derivativesAllowed: boolean;
27
+ derivativesAttribution: boolean;
28
+ derivativesApproval: boolean;
29
+ derivativesReciprocal: boolean;
30
+ currency: Hex;
31
+ };
32
+ export type LicenseTermsIdResponse = number;
33
+ export type RegisterLicenseTermsResponse = {
34
+ licenseTermsId?: string;
35
+ txHash?: string;
30
36
  };
31
- export type ListLicenseRequest = {
32
- ipAssetId: string;
33
- franchiseId: string;
37
+ export type RegisterCommercialUsePILRequest = {
38
+ mintingFee: string;
39
+ currency: Hex;
40
+ txOptions?: TxOptions;
34
41
  };
35
- /**
36
- * Represents the request structure for listing multiple licenses using the `license.list` method.
37
- *
38
- * @public
39
- */
40
- export type ListLicenseResponse = {
41
- data: License[];
42
+ export type RegisterCommercialRemixPILRequest = {
43
+ mintingFee: string;
44
+ commercialRevShare: number;
45
+ currency: Hex;
46
+ txOptions?: TxOptions;
42
47
  };
43
- /**
44
- * Represents the optional parameters for creating a new license using the `license.create` method.
45
- *
46
- * @public
47
- */
48
- export type CreateLicenseRequestOptions = {
49
- parentLicenseId?: string;
50
- ownerAddress?: string;
51
- revoker?: string;
52
- isCommercial?: boolean;
53
- isSublicensable?: boolean;
54
- terms?: {
55
- processor: string;
56
- data: BytesLike | string;
57
- };
48
+ export type AttachLicenseTermsRequest = {
49
+ ipId: Hex;
50
+ licenseTermsId: string;
51
+ licenseTemplate?: Hex;
52
+ txOptions?: TxOptions;
58
53
  };
59
- /**
60
- * Represents the request structure for creating a new license using the `license.create` method.
61
- *
62
- * @public
63
- */
64
- export type CreateLicenseRequest = {
65
- franchiseId: string;
66
- ipAssetId: string;
67
- licenseURI: string;
68
- options?: CreateLicenseRequestOptions;
54
+ export type MintLicenseTokensRequest = {
55
+ licensorIpId: Hex;
56
+ licenseTermsId: string;
57
+ licenseTemplate?: Hex;
58
+ amount?: number;
59
+ receiver?: Hex;
60
+ txOptions?: TxOptions;
69
61
  };
70
- /**
71
- * Represents the response structure for creating a new license using the `license.create` method.
72
- *
73
- * @public
74
- */
75
- export type CreateLicenseResponse = {
76
- txHash: string;
62
+ export type MintLicenseTokensResponse = {
63
+ licenseTokenId?: string;
64
+ txHash?: string;
77
65
  };
78
66
  //# sourceMappingURL=license.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,GAAG,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B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AAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TxOptions } from "../options.js";
2
+ export type SetPermissionsRequest = {
3
+ ipId: `0x${string}`;
4
+ signer: `0x${string}`;
5
+ to: `0x${string}`;
6
+ func?: string;
7
+ permission: number;
8
+ txOptions?: TxOptions;
9
+ };
10
+ export type SetPermissionsResponse = {
11
+ txHash: string;
12
+ success?: boolean;
13
+ };
14
+ //# sourceMappingURL=permission.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,58 @@
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type RoyaltyPolicyApiResponse = {
4
+ data: RoyaltyPolicy;
5
+ };
6
+ export type RoyaltyPolicy = {
7
+ id: `0x${string}`;
8
+ targetAncestors: string[];
9
+ targetRoyaltyAmount: string[];
10
+ };
11
+ export type RoyaltyContext = {
12
+ targetAncestors: string[];
13
+ targetRoyaltyAmount: number[];
14
+ parentAncestors1: string[];
15
+ parentAncestors2: string[];
16
+ parentAncestorsRoyalties1: number[];
17
+ parentAncestorsRoyalties2: number[];
18
+ };
19
+ export type CollectRoyaltyTokensRequest = {
20
+ ancestorIpId: Hex;
21
+ derivativeId: Hex;
22
+ txOptions?: TxOptions;
23
+ };
24
+ export type CollectRoyaltyTokensResponse = {
25
+ txHash: string;
26
+ };
27
+ export type RoyaltyData = [
28
+ isUnlinkableToParents: boolean,
29
+ ipRoyaltyVault: Hex,
30
+ royaltyStack: bigint,
31
+ ancestorsAddresses: Hex,
32
+ ancestorsRoyalties: bigint[]
33
+ ];
34
+ export type ClaimableRevenueRequest = {
35
+ account: Hex;
36
+ snapshotId: bigint;
37
+ token: Hex;
38
+ txOptions?: TxOptions;
39
+ };
40
+ export type ClaimableRevenueResponse = {
41
+ claimableRevenueAmount: bigint;
42
+ txHash: string;
43
+ };
44
+ export type PayRoyaltyOnBehalfRequest = {
45
+ receiverIpId: Hex;
46
+ payerIpId: Hex;
47
+ token: Hex;
48
+ amount: bigint;
49
+ txOptions?: TxOptions;
50
+ };
51
+ export type PayRoyaltyOnBehalfResponse = {
52
+ txHash: string;
53
+ };
54
+ export type ApproveResponse = {
55
+ txHash: string;
56
+ success: boolean;
57
+ };
58
+ //# sourceMappingURL=royalty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,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M,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
- //# sourceMappingURL=story-protocol-core-sdk.cjs.d.ts.map
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcnktcHJvdG9jb2wtY29yZS1zZGsuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9