@story-protocol/core-sdk 0.0.1-beta-rc.11 → 0.0.1-beta-rc.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts +9 -9
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +0 -2
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +3 -4
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +419 -78
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +400 -76
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +26 -756
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +3411 -650
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +1000 -313
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +3103 -0
- package/dist/declarations/src/resources/{policy.d.ts.map → royalty.d.ts.map} +1 -1
- package/dist/declarations/src/types/config.d.ts +6 -2
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +5 -21
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +54 -18
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +41 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +1580 -1371
- package/dist/story-protocol-core-sdk.cjs.prod.js +1580 -1371
- package/dist/story-protocol-core-sdk.esm.js +1583 -1373
- package/package.json +5 -5
- package/dist/declarations/src/resources/policy.d.ts +0 -2436
- package/dist/declarations/src/types/resources/policy.d.ts +0 -83
- package/dist/declarations/src/types/resources/policy.d.ts.map +0 -1
@@ -2,9 +2,9 @@ import { StoryConfig } from "./types/config.js";
|
|
2
2
|
import { IPAssetClient } from "./resources/ipAsset.js";
|
3
3
|
import { PermissionClient } from "./resources/permission.js";
|
4
4
|
import { LicenseClient } from "./resources/license.js";
|
5
|
-
import { PolicyClient } from "./resources/policy.js";
|
6
5
|
import { DisputeClient } from "./resources/dispute.js";
|
7
6
|
import { IPAccountClient } from "./resources/ipAccount.js";
|
7
|
+
import { RoyaltyClient } from "./resources/royalty.js";
|
8
8
|
/**
|
9
9
|
* The StoryClient is the main entry point for the SDK.
|
10
10
|
*/
|
@@ -16,9 +16,9 @@ export declare class StoryClient {
|
|
16
16
|
private _ipAsset;
|
17
17
|
private _permission;
|
18
18
|
private _license;
|
19
|
-
private _policy;
|
20
19
|
private _dispute;
|
21
20
|
private _ipAccount;
|
21
|
+
private _royalty;
|
22
22
|
/**
|
23
23
|
* @param config - the configuration for the SDK client
|
24
24
|
*/
|
@@ -50,13 +50,6 @@ export declare class StoryClient {
|
|
50
50
|
* @returns the LicenseClient instance
|
51
51
|
*/
|
52
52
|
get license(): LicenseClient;
|
53
|
-
/**
|
54
|
-
* Getter for the policy client. The client is lazily created when
|
55
|
-
* this method is called.
|
56
|
-
*
|
57
|
-
* @returns the PolicyClient instance
|
58
|
-
*/
|
59
|
-
get policy(): PolicyClient;
|
60
53
|
/**
|
61
54
|
* Getter for the dispute client. The client is lazily created when
|
62
55
|
* this method is called.
|
@@ -71,5 +64,12 @@ export declare class StoryClient {
|
|
71
64
|
* @returns the IPAccountClient instance
|
72
65
|
*/
|
73
66
|
get ipAccount(): IPAccountClient;
|
67
|
+
/**
|
68
|
+
* Getter for the royalty client. The client is lazily created when
|
69
|
+
* this method is called.
|
70
|
+
*
|
71
|
+
* @returns the RoyaltyClient instance
|
72
|
+
*/
|
73
|
+
get royalty(): RoyaltyClient;
|
74
74
|
}
|
75
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,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAqB,0BAAuB;AAChE,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,iCAA8B;AAGxD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAKpD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+C;IACtE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,QAAQ,CAA8B;IAC9C;;OAEG;IACH,OAAO;IAgCP;;;;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,CAWlC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAMtC;IACD;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;CACF"}
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import { RoyaltyPolicy } from "../types/resources/royalty.js";
|
2
2
|
import { License } from "../types/resources/license.js";
|
3
|
-
import { Policy } from "../types/resources/policy.js";
|
4
3
|
export declare class StoryAPIClient {
|
5
4
|
private readonly httpClient;
|
6
5
|
constructor();
|
7
6
|
getRoyaltyPolicy(ipId: string): Promise<RoyaltyPolicy>;
|
8
7
|
getLicense(licenseId: string): Promise<License>;
|
9
|
-
getPolicy(policyId: string): Promise<Policy>;
|
10
8
|
}
|
11
9
|
//# sourceMappingURL=storyAPI.d.ts.map
|
@@ -1 +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;
|
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;AAEzE,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;CAI7D"}
|
@@ -3,13 +3,12 @@ export { AddressZero, HashZero } from "./constants/common.js";
|
|
3
3
|
export { IPAssetClient } from "./resources/ipAsset.js";
|
4
4
|
export { PermissionClient } from "./resources/permission.js";
|
5
5
|
export { LicenseClient } from "./resources/license.js";
|
6
|
-
export { PolicyClient } from "./resources/policy.js";
|
7
6
|
export { DisputeClient } from "./resources/dispute.js";
|
8
7
|
export type { StoryConfig } from "./types/config.js";
|
9
8
|
export type { Hex, TypedData } from "./types/common.js";
|
10
|
-
export type {
|
11
|
-
export type {
|
12
|
-
export type {
|
9
|
+
export type { RegisterIpResponse, RegisterRequest } from "./types/resources/ipAsset.js";
|
10
|
+
export type { MintLicenseTokensResponse, MintLicenseTokensRequest, RegisterCommercialUsePILRequest, RegisterLicenseTermsResponse, RegisterCommercialRemixPILRequest, AttachLicenseTermsRequest, LicenseTermsIdResponse, } from "./types/resources/license.js";
|
11
|
+
export type { CollectRoyaltyTokensRequest, CollectRoyaltyTokensResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, } from "./types/resources/royalty.js";
|
13
12
|
export type { SetPermissionsRequest, SetPermissionsResponse } from "./types/resources/permission.js";
|
14
13
|
export type { Dispute, RaiseDisputeRequest, RaiseDisputeResponse, SetDisputeJudgementRequest, SetDisputeJudgementResponse, CancelDisputeRequest, CancelDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, } from "./types/resources/dispute.js";
|
15
14
|
export type { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, } from "./types/resources/ipAccount.js";
|
@@ -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,
|
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,aAAa,EAAE,+BAA4B;AAEpD,YAAY,EAAE,WAAW,EAAE,0BAAuB;AAClD,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,0BAAuB;AAErD,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,qCAAkC;AAErF,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,EAC5B,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,GAC3B,qCAAkC;AAEnC,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"}
|