@story-protocol/core-sdk 0.1.0-rc.2 → 0.1.0-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts +3 -3
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/enums/{environment.d.ts → Environment.d.ts} +1 -1
- package/dist/declarations/src/enums/Environment.d.ts.map +1 -0
- package/dist/declarations/src/enums/{ipAssetType.d.ts → IPAssetType.d.ts} +2 -3
- package/dist/declarations/src/enums/IPAssetType.d.ts.map +1 -0
- package/dist/declarations/src/enums/ResourceType.d.ts +11 -0
- package/dist/declarations/src/enums/ResourceType.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +10 -9
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/collect.d.ts +1 -1
- package/dist/declarations/src/resources/collect.d.ts.map +1 -1
- package/dist/declarations/src/resources/franchise.d.ts +1 -1
- package/dist/declarations/src/resources/franchise.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +2 -2
- 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/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/relationship.d.ts +1 -1
- package/dist/declarations/src/resources/relationship.d.ts.map +1 -1
- package/dist/declarations/src/resources/transaction.d.ts +1 -1
- package/dist/declarations/src/resources/transaction.d.ts.map +1 -1
- package/dist/declarations/src/{interfaces → types}/config.d.ts +3 -3
- package/dist/declarations/src/types/config.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/collect.d.ts +45 -0
- package/dist/declarations/src/types/resources/collect.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/franchise.d.ts +71 -0
- package/dist/declarations/src/types/resources/franchise.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +71 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/{interfaces → types}/resources/license.d.ts +16 -16
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/relationship.d.ts +83 -0
- package/dist/declarations/src/types/resources/relationship.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/transaction.d.ts +40 -0
- package/dist/declarations/src/types/resources/transaction.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +46 -25
- package/dist/story-protocol-core-sdk.cjs.prod.js +46 -25
- package/dist/story-protocol-core-sdk.esm.js +45 -25
- package/package.json +1 -1
- package/dist/declarations/src/enums/environment.d.ts.map +0 -1
- package/dist/declarations/src/enums/ipAssetType.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/config.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/collect.d.ts +0 -45
- package/dist/declarations/src/interfaces/resources/collect.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/franchise.d.ts +0 -71
- package/dist/declarations/src/interfaces/resources/franchise.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/ipAsset.d.ts +0 -70
- package/dist/declarations/src/interfaces/resources/ipAsset.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/license.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/relationship.d.ts +0 -83
- package/dist/declarations/src/interfaces/resources/relationship.d.ts.map +0 -1
- package/dist/declarations/src/interfaces/resources/transaction.d.ts +0 -46
- package/dist/declarations/src/interfaces/resources/transaction.d.ts.map +0 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import { StoryConfig } from "./
|
1
|
+
import { StoryConfig } from "./types/config.js";
|
2
2
|
import { FranchiseClient } from "./resources/franchise.js";
|
3
3
|
import { LicenseClient } from "./resources/license.js";
|
4
4
|
import { TransactionClient } from "./resources/transaction.js";
|
5
5
|
import { RelationshipClient } from "./resources/relationship.js";
|
6
|
-
import {
|
6
|
+
import { IPAssetClient } from "./resources/ipAsset.js";
|
7
7
|
import { CollectClient } from "./resources/collect.js";
|
8
8
|
/**
|
9
9
|
* The StoryClient is the main entry point for the SDK.
|
@@ -41,7 +41,7 @@ export declare class StoryClient {
|
|
41
41
|
*
|
42
42
|
* @returns the IpAssetClient instance
|
43
43
|
*/
|
44
|
-
get ipAsset():
|
44
|
+
get ipAsset(): IPAssetClient;
|
45
45
|
/**
|
46
46
|
* Getter for the license client. The client is lazily created when
|
47
47
|
* this method is called.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,0BAAuB;AAE7C,OAAO,EAAE,eAAe,EAAE,iCAA8B;AACxD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,iBAAiB,EAAE,mCAAgC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,oCAAiC;AAC9D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AASpD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,QAAQ,CAA8B;IAE9C;;OAEG;gBACS,MAAM,EAAE,WAAW;IAW/B;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAmBtC;IAED;;;;;OAKG;IACH,IAAW,YAAY,IAAI,kBAAkB,CAqB5C;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAYlC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAYlC;IAED;;;;;OAKG;IACH,IAAW,WAAW,IAAI,iBAAiB,CAK1C;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAWlC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Environment.d.ts","sourceRoot":"../../../../src/enums","sources":["Environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
2
|
* @public
|
4
3
|
*/
|
5
|
-
export declare enum
|
4
|
+
export declare enum IPAssetType {
|
6
5
|
STORY = 1,
|
7
6
|
CHARACTER = 2,
|
8
7
|
ART = 3,
|
@@ -10,4 +9,4 @@ export declare enum ipAssetType {
|
|
10
9
|
LOCATION = 5,
|
11
10
|
ITEM = 6
|
12
11
|
}
|
13
|
-
//# sourceMappingURL=
|
12
|
+
//# sourceMappingURL=IPAssetType.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IPAssetType.d.ts","sourceRoot":"../../../../src/enums","sources":["IPAssetType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,KAAK,IAAI;IACT,SAAS,IAAI;IACb,GAAG,IAAI;IACP,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,IAAI,IAAI;CACT"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ResourceType.d.ts","sourceRoot":"../../../../src/enums","sources":["ResourceType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,YAAY,IAAA;IACZ,OAAO,IAAA;CACR"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
export { StoryClient } from "./client.js";
|
2
|
-
export { Environment } from "./enums/
|
3
|
-
export {
|
4
|
-
export
|
5
|
-
export type {
|
6
|
-
export type {
|
7
|
-
export type {
|
8
|
-
export type {
|
9
|
-
export type {
|
10
|
-
export type {
|
2
|
+
export { Environment } from "./enums/Environment.js";
|
3
|
+
export { IPAssetType } from "./enums/IPAssetType.js";
|
4
|
+
export { ResourceType } from "./enums/ResourceType.js";
|
5
|
+
export type { StoryConfig } from "./types/config.js";
|
6
|
+
export type { Franchise, GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, ListFranchiseResponse, ConfigureFranchiseRequest, ConfigureFranchiseResponse, } from "./types/resources/franchise.js";
|
7
|
+
export type { IPAsset, GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse, } from "./types/resources/ipAsset.js";
|
8
|
+
export type { License, GetLicenseRequest, GetLicenseResponse, CreateLicenseRequest, CreateLicenseResponse, CreateLicenseRequestOptions, ListLicenseRequest, ListLicenseResponse, } from "./types/resources/license.js";
|
9
|
+
export type { IPAssetId, RelationshipRelateRequest, RelationshipRelateResponse, RelationshipUnrelateRequest, RelationshipUnrelateResponse, RelationshipIsRelationshipExpiredRequest, RelationshipIsRelationshipExpiredResponse, RelationshipIsRelatedRequest, RelationshipIsRelatedResponse, } from "./types/resources/relationship.js";
|
10
|
+
export type { Collection, CollectIPAssetRequest, CollectIPAssetResponse, ListCollectionsRequest, ListCollectionsResponse, } from "./types/resources/collect.js";
|
11
|
+
export type { Transaction, GetTransactionRequest, GetTransactionResponse, ListTransactionResponse, } from "./types/resources/transaction.js";
|
11
12
|
//# 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,+BAA4B;AAClD,OAAO,EAAE,WAAW,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,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AAEpD,YAAY,EAAE,WAAW,EAAE,0BAAuB;AAElD,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,GAC3B,uCAAoC;AAErC,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,qCAAkC;AAEnC,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,qCAAkC;AAEnC,YAAY,EACV,SAAS,EACT,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,wCAAwC,EACxC,yCAAyC,EACzC,4BAA4B,EAC5B,6BAA6B,GAC9B,0CAAuC;AAExC,YAAY,EACV,UAAU,EACV,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,GACxB,qCAAkC;AAEnC,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,yCAAsC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AxiosInstance } from "axios";
|
2
2
|
import { Signer } from "ethers";
|
3
|
-
import { CollectIPAssetRequest, CollectIPAssetResponse, ListCollectionsRequest, ListCollectionsResponse } from "../
|
3
|
+
import { CollectIPAssetRequest, CollectIPAssetResponse, ListCollectionsRequest, ListCollectionsResponse } from "../types/resources/collect.js";
|
4
4
|
import { CollectModule } from "../abi/generated/index.js";
|
5
5
|
export declare class CollectClient {
|
6
6
|
private readonly httpClient;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collect.d.ts","sourceRoot":"../../../../src/resources","sources":["collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAuB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"../../../../src/resources","sources":["collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAuB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,sCAAmC;AACpC,OAAO,EAAE,aAAa,EAAE,kCAAyB;AAGjD,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAgB;gBAE1C,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAMnF;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAWpF;;;;;OAKG;IACU,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAkBtF"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AxiosInstance } from "axios";
|
2
|
-
import { GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, ListFranchiseResponse, ConfigureFranchiseRequest, ConfigureFranchiseResponse } from "../
|
2
|
+
import { GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, ListFranchiseResponse, ConfigureFranchiseRequest, ConfigureFranchiseResponse } from "../types/resources/franchise.js";
|
3
3
|
import { FranchiseRegistry, LicensingModule } from "../abi/generated/index.js";
|
4
4
|
/**
|
5
5
|
* FranchiseClient allows you to create, update, view, search franchises on
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"franchise.d.ts","sourceRoot":"../../../../src/resources","sources":["franchise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC3B,
|
1
|
+
{"version":3,"file":"franchise.d.ts","sourceRoot":"../../../../src/resources","sources":["franchise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC3B,wCAAqC;AAGtC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,kCAAyB;AAEtE;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IACtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkB;gBAG9C,UAAU,EAAE,aAAa,EACzB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,eAAe;IAOhC;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAc7E;;;;OAIG;IACU,IAAI,IAAI,OAAO,CAAC,qBAAqB,CAAC;IASnD;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAoBtF;;;;;OAKG;IACU,SAAS,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CA+BhG"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { AxiosInstance } from "axios";
|
2
2
|
import { Signer } from "ethers";
|
3
|
-
import { GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse } from "../
|
3
|
+
import { GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse } from "../types/resources/ipAsset.js";
|
4
4
|
import { FranchiseRegistry } from "../abi/generated/index.js";
|
5
5
|
/**
|
6
6
|
* IpAssetClient allows you to create, view, and list IP Assets on Story Protocol.
|
7
7
|
*/
|
8
|
-
export declare class
|
8
|
+
export declare class IPAssetClient {
|
9
9
|
private readonly httpClient;
|
10
10
|
private readonly franchiseRegistry;
|
11
11
|
private readonly signer;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACpB,
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAGpC,OAAO,EAAE,iBAAiB,EAA4B,kCAAyB;AAG/E;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;IAM3F;;;;OAIG;YACW,WAAW;IAUzB;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAezE;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA0BlF;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAQ7E"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AxiosInstance } from "axios";
|
2
2
|
import { Signer } from "ethers";
|
3
|
-
import { GetLicenseRequest, GetLicenseResponse, ListLicenseResponse, CreateLicenseRequest, CreateLicenseResponse, ListLicenseRequest } from "../
|
3
|
+
import { GetLicenseRequest, GetLicenseResponse, ListLicenseResponse, CreateLicenseRequest, CreateLicenseResponse, ListLicenseRequest } from "../types/resources/license.js";
|
4
4
|
import { FranchiseRegistry } from "../abi/generated/index.js";
|
5
5
|
/**
|
6
6
|
* A class representing License operations.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAkC,MAAM,QAAQ,CAAC;AAEhE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EACnB,
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAkC,MAAM,QAAQ,CAAC;AAEhE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EACnB,sCAAmC;AACpC,OAAO,EAAE,iBAAiB,EAA4B,kCAAyB;AAI/E;;;;GAIG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;gBAE1C,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB;IAM3F;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAczE;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAY5E;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAyDnF"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RelationshipModule } from "../abi/generated/RelationshipModule.js";
|
2
|
-
import { RelationshipIsRelatedRequest, RelationshipIsRelatedResponse, RelationshipIsRelationshipExpiredRequest, RelationshipIsRelationshipExpiredResponse, RelationshipRelateRequest, RelationshipRelateResponse, RelationshipUnrelateRequest, RelationshipUnrelateResponse } from "../
|
2
|
+
import { RelationshipIsRelatedRequest, RelationshipIsRelatedResponse, RelationshipIsRelationshipExpiredRequest, RelationshipIsRelationshipExpiredResponse, RelationshipRelateRequest, RelationshipRelateResponse, RelationshipUnrelateRequest, RelationshipUnrelateResponse } from "../types/resources/relationship.js";
|
3
3
|
import { FranchiseRegistry } from "../abi/generated/index.js";
|
4
4
|
/**
|
5
5
|
* Client for managing relationships.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../src/resources","sources":["relationship.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,+CAA4C;AACzE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC7B,
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../src/resources","sources":["relationship.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,+CAA4C;AACzE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC7B,2CAAwC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,kCAAyB;AAErD;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IAEtD;;;;OAIG;gBACS,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB;IAKxF;;;;;OAKG;YACW,oBAAoB;IAwBlC;;;;OAIG;IACU,MAAM,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAiC5F;;;;OAIG;IACU,QAAQ,CACnB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IA+BxC;;;;OAIG;IACU,qBAAqB,CAChC,OAAO,EAAE,wCAAwC,GAChD,OAAO,CAAC,yCAAyC,CAAC;IA+BrD;;;;OAIG;IACU,SAAS,CACpB,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,6BAA6B,CAAC;CA8B1C"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AxiosInstance } from "axios";
|
2
|
-
import { GetTransactionRequest, GetTransactionResponse, ListTransactionResponse } from "../
|
2
|
+
import { GetTransactionRequest, GetTransactionResponse, ListTransactionResponse } from "../types/resources/transaction.js";
|
3
3
|
/**
|
4
4
|
* TransactionClient allows you to view and monitor transactions on
|
5
5
|
* Story Protocol.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../src/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AAGrD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACxB
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../src/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AAGrD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACxB,0CAAuC;AAExC;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;gBAE/B,UAAU,EAAE,aAAa;IAIrC;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASjF;;;;;OAKG;IACU,IAAI,IAAI,OAAO,CAAC,uBAAuB,CAAC;CAQtD"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Signer } from "ethers";
|
2
|
-
import { Environment } from "../enums/
|
2
|
+
import { Environment } from "../enums/Environment.js";
|
3
3
|
/**
|
4
4
|
* Configuration for the SDK Client.
|
5
5
|
*
|
6
6
|
* @public
|
7
7
|
*/
|
8
|
-
export
|
8
|
+
export type StoryConfig = {
|
9
9
|
readonly environment: Environment;
|
10
10
|
readonly signer: Signer;
|
11
|
-
}
|
11
|
+
};
|
12
12
|
//# sourceMappingURL=config.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Core data model for Collect.
|
3
|
+
*
|
4
|
+
* @public
|
5
|
+
*/
|
6
|
+
export type Collection = {
|
7
|
+
franchiseId: string;
|
8
|
+
ipAssetId: string;
|
9
|
+
totalCollected: number;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* Request type for collect.collect method.
|
13
|
+
*
|
14
|
+
* @public
|
15
|
+
*/
|
16
|
+
export type CollectIPAssetRequest = {
|
17
|
+
franchiseId: string;
|
18
|
+
ipAssetId: string;
|
19
|
+
collector: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Response type for collect.collect method.
|
23
|
+
*
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export type CollectIPAssetResponse = {
|
27
|
+
txHash: string;
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Request type for collect.list method.
|
31
|
+
*
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export type ListCollectionsRequest = {
|
35
|
+
franchiseId: string;
|
36
|
+
};
|
37
|
+
/**
|
38
|
+
* Response type for collect.list method.
|
39
|
+
*
|
40
|
+
* @public
|
41
|
+
*/
|
42
|
+
export type ListCollectionsResponse = {
|
43
|
+
data: Collection[];
|
44
|
+
};
|
45
|
+
//# sourceMappingURL=collect.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["collect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* Core data model for franchise.
|
3
|
+
*
|
4
|
+
* @public
|
5
|
+
*/
|
6
|
+
export type Franchise = {
|
7
|
+
franchiseId: string;
|
8
|
+
franchiseName: string;
|
9
|
+
ownerAddress: string;
|
10
|
+
tokenUri: string;
|
11
|
+
txHash: string;
|
12
|
+
};
|
13
|
+
/**
|
14
|
+
* Request type for franchise.get method.
|
15
|
+
*
|
16
|
+
* @public
|
17
|
+
*/
|
18
|
+
export type GetFranchiseRequest = {
|
19
|
+
franchiseId: string;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Response type for franchise.get method.
|
23
|
+
*
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export type GetFranchiseResponse = {
|
27
|
+
data: Franchise;
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Request type for franchise.create method.
|
31
|
+
*
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export type CreateFranchiseRequest = {
|
35
|
+
franchiseName: string;
|
36
|
+
franchiseSymbol: string;
|
37
|
+
franchiseDescription: string;
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* Response type for franchise.create method.
|
41
|
+
*
|
42
|
+
* @public
|
43
|
+
*/
|
44
|
+
export type CreateFranchiseResponse = {
|
45
|
+
txHash: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Response type for franchise.list method.
|
49
|
+
*
|
50
|
+
* @public
|
51
|
+
*/
|
52
|
+
export type ListFranchiseResponse = {
|
53
|
+
data: Franchise[];
|
54
|
+
};
|
55
|
+
/**
|
56
|
+
* Request type for franchise.configure method.
|
57
|
+
*
|
58
|
+
* @public
|
59
|
+
*/
|
60
|
+
export type ConfigureFranchiseRequest = {
|
61
|
+
franchiseId: string;
|
62
|
+
};
|
63
|
+
/**
|
64
|
+
* Response type for franchise.configure method.
|
65
|
+
*
|
66
|
+
* @public
|
67
|
+
*/
|
68
|
+
export type ConfigureFranchiseResponse = {
|
69
|
+
txHash: string;
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=franchise.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"franchise.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["franchise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
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;
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* Response type for ipAsset.get method.
|
27
|
+
*
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
export type GetIpAssetResponse = {
|
31
|
+
data: IPAsset;
|
32
|
+
};
|
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;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Response type for ipAsset.create method.
|
49
|
+
*
|
50
|
+
* @public
|
51
|
+
*/
|
52
|
+
export type CreateIpAssetResponse = {
|
53
|
+
txHash: string;
|
54
|
+
};
|
55
|
+
/**
|
56
|
+
* Request type for ipAsset.list method.
|
57
|
+
*
|
58
|
+
* @public
|
59
|
+
*/
|
60
|
+
export type ListIpAssetRequest = {
|
61
|
+
franchiseId: string;
|
62
|
+
};
|
63
|
+
/**
|
64
|
+
* Response type for ipAsset.list method.
|
65
|
+
*
|
66
|
+
* @public
|
67
|
+
*/
|
68
|
+
export type ListIpAssetResponse = {
|
69
|
+
data: IPAsset[];
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mCAAgC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC"}
|
@@ -4,48 +4,48 @@ import { BytesLike } from "ethers";
|
|
4
4
|
*
|
5
5
|
* @public
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export type License = {
|
8
8
|
licenseId: string;
|
9
9
|
ipAssetId: string;
|
10
10
|
franchiseId: string;
|
11
11
|
ownerAddress: string;
|
12
12
|
uri: string;
|
13
13
|
txHash: string;
|
14
|
-
}
|
14
|
+
};
|
15
15
|
/**
|
16
16
|
* Represents the request structure for retrieving license details using the `franchise.get` method.
|
17
17
|
*
|
18
18
|
* @public
|
19
19
|
*/
|
20
|
-
export
|
20
|
+
export type GetLicenseRequest = {
|
21
21
|
licenseId: string;
|
22
|
-
}
|
22
|
+
};
|
23
23
|
/**
|
24
24
|
* Represents the response structure for retrieving license details using the `license.get` method.
|
25
25
|
*
|
26
26
|
* @public
|
27
27
|
*/
|
28
|
-
export
|
28
|
+
export type GetLicenseResponse = {
|
29
29
|
data: License;
|
30
|
-
}
|
31
|
-
export
|
30
|
+
};
|
31
|
+
export type ListLicenseRequest = {
|
32
32
|
ipAssetId: string;
|
33
33
|
franchiseId: string;
|
34
|
-
}
|
34
|
+
};
|
35
35
|
/**
|
36
36
|
* Represents the request structure for listing multiple licenses using the `license.list` method.
|
37
37
|
*
|
38
38
|
* @public
|
39
39
|
*/
|
40
|
-
export
|
40
|
+
export type ListLicenseResponse = {
|
41
41
|
data: License[];
|
42
|
-
}
|
42
|
+
};
|
43
43
|
/**
|
44
44
|
* Represents the optional parameters for creating a new license using the `license.create` method.
|
45
45
|
*
|
46
46
|
* @public
|
47
47
|
*/
|
48
|
-
export
|
48
|
+
export type CreateLicenseRequestOptions = {
|
49
49
|
parentLicenseId?: string;
|
50
50
|
ownerAddress?: string;
|
51
51
|
revoker?: string;
|
@@ -55,24 +55,24 @@ export interface CreateLicenseRequestOptions {
|
|
55
55
|
processor: string;
|
56
56
|
data: BytesLike | string;
|
57
57
|
};
|
58
|
-
}
|
58
|
+
};
|
59
59
|
/**
|
60
60
|
* Represents the request structure for creating a new license using the `license.create` method.
|
61
61
|
*
|
62
62
|
* @public
|
63
63
|
*/
|
64
|
-
export
|
64
|
+
export type CreateLicenseRequest = {
|
65
65
|
franchiseId: string;
|
66
66
|
ipAssetId: string;
|
67
67
|
licenseURI: string;
|
68
68
|
options?: CreateLicenseRequestOptions;
|
69
|
-
}
|
69
|
+
};
|
70
70
|
/**
|
71
71
|
* Represents the response structure for creating a new license using the `license.create` method.
|
72
72
|
*
|
73
73
|
* @public
|
74
74
|
*/
|
75
|
-
export
|
75
|
+
export type CreateLicenseResponse = {
|
76
76
|
txHash: string;
|
77
|
-
}
|
77
|
+
};
|
78
78
|
//# 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,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"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { BigNumberish } from "ethers";
|
2
|
+
/**
|
3
|
+
* Core type for relationship IPAsset.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type IPAssetId = {
|
8
|
+
franchiseId: string;
|
9
|
+
ipAssetId: string;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* Request type for relationship.relate method.
|
13
|
+
*
|
14
|
+
* @public
|
15
|
+
*/
|
16
|
+
export type RelationshipRelateRequest = {
|
17
|
+
sourceIPAsset: IPAssetId;
|
18
|
+
destIPAsset: IPAssetId;
|
19
|
+
ttl?: BigNumberish;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Response type for relationship.relate method.
|
23
|
+
*
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export type RelationshipRelateResponse = {
|
27
|
+
txHash: string;
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Request type for relationship.unrelate method.
|
31
|
+
*
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export type RelationshipUnrelateRequest = {
|
35
|
+
sourceIPAsset: IPAssetId;
|
36
|
+
destIPAsset: IPAssetId;
|
37
|
+
ttl?: BigNumberish;
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* Response type for relationship.unrelate method.
|
41
|
+
*
|
42
|
+
* @public
|
43
|
+
*/
|
44
|
+
export type RelationshipUnrelateResponse = {
|
45
|
+
txHash: string;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* Request type for relationship.isRelationshipExpired method.
|
49
|
+
*
|
50
|
+
* @public
|
51
|
+
*/
|
52
|
+
export type RelationshipIsRelationshipExpiredRequest = {
|
53
|
+
sourceIPAsset: IPAssetId;
|
54
|
+
destIPAsset: IPAssetId;
|
55
|
+
ttl?: BigNumberish;
|
56
|
+
};
|
57
|
+
/**
|
58
|
+
* Response type for relationship.isRelationshipExpired method.
|
59
|
+
*
|
60
|
+
* @public
|
61
|
+
*/
|
62
|
+
export type RelationshipIsRelationshipExpiredResponse = {
|
63
|
+
result: boolean;
|
64
|
+
};
|
65
|
+
/**
|
66
|
+
* Request type for relationship.isRelated method.
|
67
|
+
*
|
68
|
+
* @public
|
69
|
+
*/
|
70
|
+
export type RelationshipIsRelatedRequest = {
|
71
|
+
sourceIPAsset: IPAssetId;
|
72
|
+
destIPAsset: IPAssetId;
|
73
|
+
ttl?: BigNumberish;
|
74
|
+
};
|
75
|
+
/**
|
76
|
+
* Response type for relationship.isRelated method.
|
77
|
+
*
|
78
|
+
* @public
|
79
|
+
*/
|
80
|
+
export type RelationshipIsRelatedResponse = {
|
81
|
+
result: boolean;
|
82
|
+
};
|
83
|
+
//# sourceMappingURL=relationship.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AACF;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}
|