@story-protocol/core-sdk 0.0.1-beta-test.1 → 0.0.1-beta-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -15
- package/dist/declarations/src/client.d.ts +22 -38
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +11 -12
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +835 -0
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +145 -12
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +1014 -0
- package/dist/declarations/src/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/resources/permission.d.ts +1478 -8
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +1063 -0
- package/dist/declarations/src/resources/policy.d.ts.map +1 -0
- package/dist/declarations/src/resources/tagging.d.ts +711 -4
- package/dist/declarations/src/resources/tagging.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +8 -9
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +0 -6
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +50 -0
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +11 -126
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +23 -0
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/permission.d.ts +5 -26
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/policy.d.ts +35 -0
- package/dist/declarations/src/types/resources/policy.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/tagging.d.ts +1 -13
- package/dist/declarations/src/types/resources/tagging.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +2492 -1617
- package/dist/story-protocol-core-sdk.cjs.prod.js +2492 -1617
- package/dist/story-protocol-core-sdk.esm.js +2490 -1612
- package/package.json +5 -5
- package/dist/declarations/src/enums/ActionType.d.ts +0 -11
- package/dist/declarations/src/enums/ActionType.d.ts.map +0 -1
- package/dist/declarations/src/enums/ResourceType.d.ts +0 -15
- package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +0 -26
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/moduleReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/permissionReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/permissionReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/taggingReadOnly.d.ts +0 -24
- package/dist/declarations/src/resources/taggingReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/transaction.d.ts +0 -11
- package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
- package/dist/declarations/src/resources/transactionReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/types/client.d.ts +0 -23
- package/dist/declarations/src/types/client.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/module.d.ts +0 -43
- package/dist/declarations/src/types/resources/module.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/transaction.d.ts +0 -52
- package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../src/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../src/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EA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B,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAmB9E"}
|
@@ -1,19 +1,18 @@
|
|
1
|
-
import { Account,
|
1
|
+
import { Account, Transport } from "viem";
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* Supported chains. For convenience, both name or chain ID are supported.
|
4
4
|
*
|
5
5
|
* @public
|
6
6
|
*/
|
7
|
-
export
|
8
|
-
readonly account: Account;
|
9
|
-
}
|
7
|
+
export type SupportedChainIds = "11155111" | "sepolia" | "1" | "mainnet" | "80001" | "mumbai" | "polygonMumbai";
|
10
8
|
/**
|
11
|
-
* Configuration for the
|
9
|
+
* Configuration for the SDK Client.
|
12
10
|
*
|
13
11
|
* @public
|
14
12
|
*/
|
15
|
-
export interface
|
16
|
-
readonly
|
17
|
-
readonly
|
13
|
+
export interface StoryConfig {
|
14
|
+
readonly account: Account;
|
15
|
+
readonly chainId?: SupportedChainIds;
|
16
|
+
readonly transport: Transport;
|
18
17
|
}
|
19
18
|
//# 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,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,SAAS,GACT,GAAG,GACH,SAAS,GACT,OAAO,GACP,QAAQ,GACR,eAAe,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B"}
|
@@ -1 +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
|
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"}
|
@@ -1,144 +1,29 @@
|
|
1
|
-
import {
|
2
|
-
/**
|
3
|
-
* Core data model for IP Org.
|
4
|
-
*
|
5
|
-
* @public
|
6
|
-
*/
|
7
|
-
export type IPOrg = {
|
8
|
-
id: string;
|
9
|
-
name: string;
|
10
|
-
symbol: string;
|
11
|
-
owner: string;
|
12
|
-
baseUri?: string;
|
13
|
-
contractUri?: string;
|
14
|
-
ipAssetTypes: Array<string>;
|
15
|
-
createdAt: string;
|
16
|
-
txHash: string;
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* Request type for iporg.get method.
|
20
|
-
*
|
21
|
-
* @public
|
22
|
-
*/
|
23
|
-
export type GetIPOrgRequest = {
|
24
|
-
ipOrgId: string;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* Response type for iporg.get method.
|
28
|
-
*
|
29
|
-
* @public
|
30
|
-
*/
|
31
|
-
export type GetIPOrgResponse = {
|
32
|
-
ipOrg: IPOrg;
|
33
|
-
};
|
34
|
-
/**
|
35
|
-
* Request type for iporg.create method.
|
36
|
-
*
|
37
|
-
* @public
|
38
|
-
*/
|
39
|
-
export type CreateIPOrgRequest = {
|
40
|
-
name: string;
|
41
|
-
symbol: string;
|
42
|
-
owner?: string;
|
43
|
-
ipAssetTypes: Array<string>;
|
44
|
-
txOptions?: TxOptions;
|
45
|
-
};
|
46
|
-
/**
|
47
|
-
* Response type for iporg.create method.
|
48
|
-
*
|
49
|
-
* @public
|
50
|
-
*/
|
51
|
-
export type CreateIPOrgResponse = {
|
52
|
-
txHash: string;
|
53
|
-
ipOrgId?: string;
|
54
|
-
};
|
55
|
-
/**
|
56
|
-
* Request type for iporg.list method.
|
57
|
-
*
|
58
|
-
* @public
|
59
|
-
*/
|
60
|
-
export type ListIPOrgRequest = {
|
61
|
-
options?: QueryOptions;
|
62
|
-
};
|
63
|
-
/**
|
64
|
-
* Response type for iporg.list method.
|
65
|
-
*
|
66
|
-
* @public
|
67
|
-
*/
|
68
|
-
export type ListIPOrgResponse = {
|
69
|
-
ipOrgs: IPOrg[];
|
70
|
-
};
|
71
|
-
export type IpAsset = {
|
72
|
-
id: string;
|
73
|
-
ipId: string;
|
74
|
-
chainId: number;
|
75
|
-
tokenContract: string;
|
76
|
-
tokenId: number;
|
77
|
-
metadataResolverAddress: string;
|
78
|
-
};
|
79
|
-
export type GetIpAssetRequest = {
|
80
|
-
ipId: string;
|
81
|
-
};
|
82
|
-
export type GetIpAssetResponse = {
|
83
|
-
data: IpAsset;
|
84
|
-
};
|
85
|
-
export type ListIpAssetRequest = {
|
86
|
-
options?: QueryOptions;
|
87
|
-
};
|
88
|
-
export type ListIpAssetResponse = {
|
89
|
-
data: IpAsset[];
|
90
|
-
};
|
91
|
-
export type RegisterIpAssetRequest = {
|
92
|
-
chainId: string;
|
93
|
-
tokenContractAddress: string;
|
94
|
-
tokenId: string;
|
95
|
-
txOptions?: TxOptions;
|
96
|
-
};
|
97
|
-
export type RegisterIpAssetResponse = {
|
98
|
-
txHash: string;
|
99
|
-
ipAccountId?: string;
|
100
|
-
};
|
1
|
+
import { TxOptions } from "../options.js";
|
101
2
|
export type RegisterRootIpRequest = {
|
102
3
|
policyId: string;
|
103
4
|
tokenContractAddress: string;
|
104
5
|
tokenId: string;
|
6
|
+
ipName?: string;
|
7
|
+
contentHash?: `0x${string}`;
|
8
|
+
uri?: string;
|
105
9
|
txOptions?: TxOptions;
|
106
10
|
};
|
107
11
|
export type RegisterRootIpResponse = {
|
108
12
|
txHash: string;
|
109
|
-
|
13
|
+
ipId?: string;
|
110
14
|
};
|
111
15
|
export type RegisterDerivativeIpRequest = {
|
112
|
-
|
16
|
+
licenseIds: string[];
|
113
17
|
tokenContractAddress: string;
|
114
18
|
tokenId: string;
|
115
|
-
ipName
|
116
|
-
|
117
|
-
|
19
|
+
ipName?: string;
|
20
|
+
contentHash?: `0x${string}`;
|
21
|
+
uri?: string;
|
22
|
+
minRoyalty?: number;
|
118
23
|
txOptions?: TxOptions;
|
119
24
|
};
|
120
25
|
export type RegisterDerivativeIpResponse = {
|
121
26
|
txHash: string;
|
122
|
-
|
123
|
-
};
|
124
|
-
export type addPolicyRequest = {
|
125
|
-
frameworkId: string;
|
126
|
-
mintingParamValues: string[];
|
127
|
-
activationParamValues: string[];
|
128
|
-
needsActivation: boolean;
|
129
|
-
linkParentParamValues: string[];
|
130
|
-
txOptions?: TxOptions;
|
131
|
-
};
|
132
|
-
export type addPolicyToIpRequest = {
|
133
|
-
ipId: string;
|
134
|
-
policyId: string;
|
135
|
-
};
|
136
|
-
export type addPolicyResponse = {
|
137
|
-
txHash: string;
|
138
|
-
policyId?: number;
|
139
|
-
isNew?: boolean;
|
140
|
-
};
|
141
|
-
export type addPolicyToIpResponse = {
|
142
|
-
indexOnIpId: number;
|
27
|
+
ipId?: string;
|
143
28
|
};
|
144
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,
|
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,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,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,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,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,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { TxOptions } from "../options.js";
|
2
|
+
export type MintLicenseRequest = {
|
3
|
+
policyId: string;
|
4
|
+
licensorIpId: `0x${string}`;
|
5
|
+
mintAmount: number;
|
6
|
+
receiverAddress: `0x${string}`;
|
7
|
+
txOptions?: TxOptions;
|
8
|
+
};
|
9
|
+
export type MintLicenseResponse = {
|
10
|
+
txHash: string;
|
11
|
+
licenseId?: string;
|
12
|
+
};
|
13
|
+
export type LinkIpToParentRequest = {
|
14
|
+
licenseIds: string[];
|
15
|
+
childIpId: `0x${string}`;
|
16
|
+
minRoyalty: number;
|
17
|
+
txOptions?: TxOptions;
|
18
|
+
};
|
19
|
+
export type LinkIpToParentResponse = {
|
20
|
+
txHash: string;
|
21
|
+
success?: boolean;
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=license.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,KAAK,MAAM,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,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"}
|
@@ -1,35 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { TxOptions } from "../options.js";
|
2
2
|
export type setPermissionsRequest = {
|
3
|
-
|
4
|
-
signer: string
|
5
|
-
to: string
|
3
|
+
ipId: `0x${string}`;
|
4
|
+
signer: `0x${string}`;
|
5
|
+
to: `0x${string}`;
|
6
6
|
func: string;
|
7
7
|
permission: number;
|
8
8
|
txOptions?: TxOptions;
|
9
9
|
};
|
10
|
-
export type Permission = {
|
11
|
-
id: string;
|
12
|
-
ipAccount: string;
|
13
|
-
permission: string;
|
14
|
-
signer: string;
|
15
|
-
to: string;
|
16
|
-
func: string;
|
17
|
-
blockTimestamp: string;
|
18
|
-
blockNumber: string;
|
19
|
-
};
|
20
10
|
export type setPermissionsResponse = {
|
21
11
|
txHash: string;
|
22
|
-
|
23
|
-
export type GetPermissionRequest = {
|
24
|
-
permissionId: string;
|
25
|
-
};
|
26
|
-
export type GetPermissionResponse = {
|
27
|
-
data: Permission;
|
28
|
-
};
|
29
|
-
export type ListPermissionsRequest = {
|
30
|
-
options: QueryOptions;
|
31
|
-
};
|
32
|
-
export type ListPermissionsResponse = {
|
33
|
-
data: Permission[];
|
12
|
+
success?: boolean;
|
34
13
|
};
|
35
14
|
//# sourceMappingURL=permission.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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;IACb,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,35 @@
|
|
1
|
+
import { TxOptions } from "../options.js";
|
2
|
+
export type RegisterPILPolicyRequest = {
|
3
|
+
transferable: boolean;
|
4
|
+
royaltyPolicy?: `0x${string}`;
|
5
|
+
mintingFee?: number;
|
6
|
+
mintingFeeToken?: `0x${string}`;
|
7
|
+
attribution?: boolean;
|
8
|
+
commercialUse?: boolean;
|
9
|
+
commercialAttribution?: boolean;
|
10
|
+
commercialRevShare?: number;
|
11
|
+
derivativesAllowed?: boolean;
|
12
|
+
derivativesAttribution?: boolean;
|
13
|
+
derivativesApproval?: boolean;
|
14
|
+
derivativesReciprocal?: boolean;
|
15
|
+
territories?: string[];
|
16
|
+
distributionChannels?: string[];
|
17
|
+
contentRestrictions?: string[];
|
18
|
+
commercializerChecker?: `0x${string}`;
|
19
|
+
commercializerCheckerData?: string;
|
20
|
+
txOptions?: TxOptions;
|
21
|
+
};
|
22
|
+
export type RegisterPILPolicyResponse = {
|
23
|
+
txHash: string;
|
24
|
+
policyId?: string;
|
25
|
+
};
|
26
|
+
export type AddPolicyToIpRequest = {
|
27
|
+
ipId: `0x${string}`;
|
28
|
+
policyId: string;
|
29
|
+
txOptions?: TxOptions;
|
30
|
+
};
|
31
|
+
export type AddPolicyToIpResponse = {
|
32
|
+
txHash: string;
|
33
|
+
index?: string;
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=policy.d.ts.map
|
@@ -0,0 +1 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,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -1,21 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { TxOptions } from "../options.js";
|
2
2
|
export type Tag = {
|
3
3
|
id: string;
|
4
4
|
ipId: `0x${string}`;
|
5
5
|
tag: string;
|
6
6
|
};
|
7
|
-
export type ListTagRequest = {
|
8
|
-
options?: QueryOptions;
|
9
|
-
};
|
10
|
-
export type ListTagResponse = {
|
11
|
-
data: Tag[];
|
12
|
-
};
|
13
|
-
export type GetTagRequest = {
|
14
|
-
id: string;
|
15
|
-
};
|
16
|
-
export type GetTagResponse = {
|
17
|
-
data: Tag;
|
18
|
-
};
|
19
7
|
export type SetTagRequest = {
|
20
8
|
tag: string;
|
21
9
|
ipId: `0x${string}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,GAAG,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|