@story-protocol/core-sdk 0.0.1-beta-rc.3 → 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 +28 -13
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +11 -0
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +2 -4
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.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 +674 -4
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +736 -66
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +58 -58
- package/dist/declarations/src/resources/policy.d.ts +1416 -66
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- 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/license.d.ts +8 -1
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +2 -2
- package/dist/declarations/src/types/resources/policy.d.ts +11 -1
- package/dist/declarations/src/types/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +17 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +412 -299
- package/dist/story-protocol-core-sdk.cjs.prod.js +412 -299
- package/dist/story-protocol-core-sdk.esm.js +413 -298
- package/package.json +5 -5
- 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
- package/dist/declarations/src/utils/platform.d.ts +0 -17
- package/dist/declarations/src/utils/platform.d.ts.map +0 -1
@@ -1,11 +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";
|
8
|
-
import {
|
7
|
+
import { IPAccountClient } from "./resources/ipAccount.js";
|
9
8
|
/**
|
10
9
|
* The StoryClient is the main entry point for the SDK.
|
11
10
|
*/
|
@@ -13,14 +12,13 @@ export declare class StoryClient {
|
|
13
12
|
private readonly config;
|
14
13
|
private readonly rpcClient;
|
15
14
|
private readonly wallet;
|
16
|
-
private readonly
|
17
|
-
private
|
15
|
+
private readonly storyClient;
|
16
|
+
private _ipAsset;
|
18
17
|
private _permission;
|
19
18
|
private _license;
|
20
19
|
private _policy;
|
21
|
-
private _platform;
|
22
|
-
private _tagging;
|
23
20
|
private _dispute;
|
21
|
+
private _ipAccount;
|
24
22
|
/**
|
25
23
|
* @param config - the configuration for the SDK client
|
26
24
|
*/
|
@@ -31,17 +29,34 @@ export declare class StoryClient {
|
|
31
29
|
* @param config - the configuration for a new SDK client
|
32
30
|
*/
|
33
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
|
+
*/
|
34
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
|
+
*/
|
35
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
|
+
*/
|
36
52
|
get license(): LicenseClient;
|
37
|
-
get policy(): PolicyClient;
|
38
53
|
/**
|
39
|
-
* Getter for the
|
54
|
+
* Getter for the policy client. The client is lazily created when
|
40
55
|
* this method is called.
|
41
56
|
*
|
42
|
-
* @returns the
|
57
|
+
* @returns the PolicyClient instance
|
43
58
|
*/
|
44
|
-
get
|
59
|
+
get policy(): PolicyClient;
|
45
60
|
/**
|
46
61
|
* Getter for the dispute client. The client is lazily created when
|
47
62
|
* this method is called.
|
@@ -50,11 +65,11 @@ export declare class StoryClient {
|
|
50
65
|
*/
|
51
66
|
get dispute(): DisputeClient;
|
52
67
|
/**
|
53
|
-
* Getter for the
|
68
|
+
* Getter for the ip account client. The client is lazily created when
|
54
69
|
* this method is called.
|
55
70
|
*
|
56
|
-
* @returns the
|
71
|
+
* @returns the IPAccountClient instance
|
57
72
|
*/
|
58
|
-
get
|
73
|
+
get ipAccount(): IPAccountClient;
|
59
74
|
}
|
60
75
|
//# sourceMappingURL=client.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"
|
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"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { RoyaltyPolicy } from "../types/resources/royalty.js";
|
2
|
+
import { License } from "../types/resources/license.js";
|
3
|
+
import { Policy } from "../types/resources/policy.js";
|
4
|
+
export declare class StoryAPIClient {
|
5
|
+
private readonly httpClient;
|
6
|
+
constructor();
|
7
|
+
getRoyaltyPolicy(ipId: string): Promise<RoyaltyPolicy>;
|
8
|
+
getLicense(licenseId: string): Promise<License>;
|
9
|
+
getPolicy(policyId: string): Promise<Policy>;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=storyAPI.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storyAPI.d.ts","sourceRoot":"../../../../src/clients","sources":["storyAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAA4B,sCAAmC;AACrF,OAAO,EAAE,OAAO,EAAsB,sCAAmC;AACzE,OAAO,EAAE,MAAM,EAAqB,qCAAkC;AAEtE,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;;IAY9B,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKtD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/C,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAI1D"}
|
@@ -1,18 +1,16 @@
|
|
1
1
|
export { StoryClient } from "./client.js";
|
2
|
-
export { PlatformClient } from "./utils/platform.js";
|
3
2
|
export { AddressZero, HashZero } from "./constants/common.js";
|
4
3
|
export { IPAssetClient } from "./resources/ipAsset.js";
|
5
4
|
export { PermissionClient } from "./resources/permission.js";
|
6
5
|
export { LicenseClient } from "./resources/license.js";
|
7
6
|
export { PolicyClient } from "./resources/policy.js";
|
8
|
-
export { TaggingClient } from "./resources/tagging.js";
|
9
7
|
export { DisputeClient } from "./resources/dispute.js";
|
10
8
|
export type { StoryConfig } from "./types/config.js";
|
11
9
|
export type { Hex, TypedData } from "./types/common.js";
|
12
10
|
export type { RegisterRootIpRequest, RegisterRootIpResponse, RegisterDerivativeIpRequest, RegisterDerivativeIpResponse, } from "./types/resources/ipAsset.js";
|
13
11
|
export type { MintLicenseRequest, MintLicenseResponse, LinkIpToParentRequest, LinkIpToParentResponse, } from "./types/resources/license.js";
|
14
12
|
export type { RegisterPILPolicyRequest, RegisterPILPolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse, } from "./types/resources/policy.js";
|
15
|
-
export type {
|
16
|
-
export type { SetTagRequest, SetTagResponse, RemoveTagRequest, RemoveTagResponse, } from "./types/resources/tagging.js";
|
13
|
+
export type { SetPermissionsRequest, SetPermissionsResponse } from "./types/resources/permission.js";
|
17
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";
|
18
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,
|
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,o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