@story-protocol/core-sdk 0.0.1-beta-rc.4 → 0.0.1-beta-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts +31 -7
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +752 -0
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +1 -15
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +1 -1
- package/dist/declarations/src/resources/permission.d.ts +2 -2
- package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +2 -2
- package/dist/story-protocol-core-sdk.cjs.dev.js +184 -172
- package/dist/story-protocol-core-sdk.cjs.prod.js +184 -172
- package/dist/story-protocol-core-sdk.esm.js +185 -172
- package/package.json +1 -1
- package/dist/declarations/src/resources/tagging.d.ts +0 -718
- package/dist/declarations/src/resources/tagging.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/tagging.d.ts +0 -23
- package/dist/declarations/src/types/resources/tagging.d.ts.map +0 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
import { StoryConfig } from "./types/config.js";
|
2
|
-
import { TaggingClient } from "./resources/tagging.js";
|
3
2
|
import { IPAssetClient } from "./resources/ipAsset.js";
|
4
3
|
import { PermissionClient } from "./resources/permission.js";
|
5
4
|
import { LicenseClient } from "./resources/license.js";
|
6
5
|
import { PolicyClient } from "./resources/policy.js";
|
7
6
|
import { DisputeClient } from "./resources/dispute.js";
|
7
|
+
import { IPAccountClient } from "./resources/ipAccount.js";
|
8
8
|
/**
|
9
9
|
* The StoryClient is the main entry point for the SDK.
|
10
10
|
*/
|
@@ -13,12 +13,12 @@ export declare class StoryClient {
|
|
13
13
|
private readonly rpcClient;
|
14
14
|
private readonly wallet;
|
15
15
|
private readonly storyClient;
|
16
|
-
private
|
16
|
+
private _ipAsset;
|
17
17
|
private _permission;
|
18
18
|
private _license;
|
19
19
|
private _policy;
|
20
|
-
private _tagging;
|
21
20
|
private _dispute;
|
21
|
+
private _ipAccount;
|
22
22
|
/**
|
23
23
|
* @param config - the configuration for the SDK client
|
24
24
|
*/
|
@@ -29,17 +29,34 @@ export declare class StoryClient {
|
|
29
29
|
* @param config - the configuration for a new SDK client
|
30
30
|
*/
|
31
31
|
static newClient(config: StoryConfig): StoryClient;
|
32
|
+
/**
|
33
|
+
* Getter for the ip asset client. The client is lazily created when
|
34
|
+
* this method is called.
|
35
|
+
*
|
36
|
+
* @returns the IPAssetClient instance
|
37
|
+
*/
|
32
38
|
get ipAsset(): IPAssetClient;
|
39
|
+
/**
|
40
|
+
* Getter for the permission client. The client is lazily created when
|
41
|
+
* this method is called.
|
42
|
+
*
|
43
|
+
* @returns the PermissionClient instance
|
44
|
+
*/
|
33
45
|
get permission(): PermissionClient;
|
46
|
+
/**
|
47
|
+
* Getter for the license client. The client is lazily created when
|
48
|
+
* this method is called.
|
49
|
+
*
|
50
|
+
* @returns the LicenseClient instance
|
51
|
+
*/
|
34
52
|
get license(): LicenseClient;
|
35
|
-
get policy(): PolicyClient;
|
36
53
|
/**
|
37
|
-
* Getter for the
|
54
|
+
* Getter for the policy client. The client is lazily created when
|
38
55
|
* this method is called.
|
39
56
|
*
|
40
|
-
* @returns the
|
57
|
+
* @returns the PolicyClient instance
|
41
58
|
*/
|
42
|
-
get
|
59
|
+
get policy(): PolicyClient;
|
43
60
|
/**
|
44
61
|
* Getter for the dispute client. The client is lazily created when
|
45
62
|
* this method is called.
|
@@ -47,5 +64,12 @@ export declare class StoryClient {
|
|
47
64
|
* @returns the DisputeClient instance
|
48
65
|
*/
|
49
66
|
get dispute(): DisputeClient;
|
67
|
+
/**
|
68
|
+
* Getter for the ip account client. The client is lazily created when
|
69
|
+
* this method is called.
|
70
|
+
*
|
71
|
+
* @returns the IPAccountClient instance
|
72
|
+
*/
|
73
|
+
get ipAccount(): IPAccountClient;
|
50
74
|
}
|
51
75
|
//# sourceMappingURL=client.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,0BAAuB;AAC7C,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,0BAAuB;AAC7C,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,iCAA8B;AAOxD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAE7C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,UAAU,CAAgC;IAElD;;OAEG;IACH,OAAO;IA2BP;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW;IAIlD;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,UAAU,IAAI,gBAAgB,CAMxC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,YAAY,CAMhC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAMtC;CACF"}
|
@@ -4,14 +4,13 @@ export { IPAssetClient } from "./resources/ipAsset.js";
|
|
4
4
|
export { PermissionClient } from "./resources/permission.js";
|
5
5
|
export { LicenseClient } from "./resources/license.js";
|
6
6
|
export { PolicyClient } from "./resources/policy.js";
|
7
|
-
export { TaggingClient } from "./resources/tagging.js";
|
8
7
|
export { DisputeClient } from "./resources/dispute.js";
|
9
8
|
export type { StoryConfig } from "./types/config.js";
|
10
9
|
export type { Hex, TypedData } from "./types/common.js";
|
11
10
|
export type { RegisterRootIpRequest, RegisterRootIpResponse, RegisterDerivativeIpRequest, RegisterDerivativeIpResponse, } from "./types/resources/ipAsset.js";
|
12
11
|
export type { MintLicenseRequest, MintLicenseResponse, LinkIpToParentRequest, LinkIpToParentResponse, } from "./types/resources/license.js";
|
13
12
|
export type { RegisterPILPolicyRequest, RegisterPILPolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse, } from "./types/resources/policy.js";
|
14
|
-
export type {
|
15
|
-
export type { SetTagRequest, SetTagResponse, RemoveTagRequest, RemoveTagResponse, } from "./types/resources/tagging.js";
|
13
|
+
export type { SetPermissionsRequest, SetPermissionsResponse } from "./types/resources/permission.js";
|
16
14
|
export type { Dispute, RaiseDisputeRequest, RaiseDisputeResponse, SetDisputeJudgementRequest, SetDisputeJudgementResponse, CancelDisputeRequest, CancelDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, } from "./types/resources/dispute.js";
|
15
|
+
export type { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, } from "./types/resources/ipAccount.js";
|
17
16
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA2B;AAE3D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA2B;AAE3D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,YAAY,EAAE,WAAW,EAAE,0BAAuB;AAClD,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,0BAAuB;AAErD,YAAY,EACV,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,GAC7B,qCAAkC;AAEnC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,GACtB,oCAAiC;AAElC,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wCAAqC;AAElG,YAAY,EACV,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,GAChC,uCAAoC"}
|