@story-protocol/core-sdk 0.1.0-alpha-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/dist/declarations/src/client.d.ts +111 -0
- package/dist/declarations/src/client.d.ts.map +1 -0
- package/dist/declarations/src/enums/ActionType.d.ts +11 -0
- package/dist/declarations/src/enums/ActionType.d.ts.map +1 -0
- package/dist/declarations/src/enums/Environment.d.ts +8 -0
- package/dist/declarations/src/enums/Environment.d.ts.map +1 -0
- package/dist/declarations/src/enums/IPAssetType.d.ts +11 -0
- package/dist/declarations/src/enums/IPAssetType.d.ts.map +1 -0
- package/dist/declarations/src/enums/ResourceType.d.ts +15 -0
- package/dist/declarations/src/enums/ResourceType.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +13 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/resources/hook.d.ts +12 -0
- package/dist/declarations/src/resources/hook.d.ts.map +1 -0
- package/dist/declarations/src/resources/hookReadOnly.d.ts +27 -0
- package/dist/declarations/src/resources/hookReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +19 -0
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +25 -0
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipOrg.d.ts +20 -0
- package/dist/declarations/src/resources/ipOrg.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipOrgReadOnly.d.ts +26 -0
- package/dist/declarations/src/resources/ipOrgReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/license.d.ts +15 -0
- package/dist/declarations/src/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/resources/licenseReadOnly.d.ts +27 -0
- package/dist/declarations/src/resources/licenseReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/module.d.ts +12 -0
- package/dist/declarations/src/resources/module.d.ts.map +1 -0
- package/dist/declarations/src/resources/moduleReadOnly.d.ts +27 -0
- package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/relationship.d.ts +26 -0
- package/dist/declarations/src/resources/relationship.d.ts.map +1 -0
- package/dist/declarations/src/resources/relationshipReadOnly.d.ts +25 -0
- package/dist/declarations/src/resources/relationshipReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/transaction.d.ts +12 -0
- package/dist/declarations/src/resources/transaction.d.ts.map +1 -0
- package/dist/declarations/src/resources/transactionReadOnly.d.ts +27 -0
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/types/client.d.ts +35 -0
- package/dist/declarations/src/types/client.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +18 -0
- package/dist/declarations/src/types/config.d.ts.map +1 -0
- package/dist/declarations/src/types/options.d.ts +10 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/IPOrg.d.ts +71 -0
- package/dist/declarations/src/types/resources/IPOrg.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/hook.d.ts +49 -0
- package/dist/declarations/src/types/resources/hook.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +76 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/license.d.ts +85 -0
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/module.d.ts +49 -0
- package/dist/declarations/src/types/resources/module.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/relationship.d.ts +158 -0
- package/dist/declarations/src/types/resources/relationship.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/transaction.d.ts +52 -0
- package/dist/declarations/src/types/resources/transaction.d.ts.map +1 -0
- package/dist/declarations/src/utils/platform.d.ts +17 -0
- package/dist/declarations/src/utils/platform.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts +2 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +2650 -0
- package/dist/story-protocol-core-sdk.cjs.js +7 -0
- package/dist/story-protocol-core-sdk.cjs.prod.js +2650 -0
- package/dist/story-protocol-core-sdk.esm.js +2620 -0
- package/package.json +91 -0
package/README.md
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
core-sdk is the base level sdk to interact with story protocol. It provides functions to both read and write data to the protocol.
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
Install the SDK and ethers.js
|
6
|
+
|
7
|
+
npm
|
8
|
+
|
9
|
+
```shell
|
10
|
+
npm i @story-protocol/core-sdk ethers@^5.7.2
|
11
|
+
```
|
12
|
+
|
13
|
+
pnpm
|
14
|
+
|
15
|
+
```shell
|
16
|
+
pnpm i @story-protocol/core-sdk ethers@^5.7.2
|
17
|
+
```
|
18
|
+
|
19
|
+
yarn
|
20
|
+
|
21
|
+
```shell
|
22
|
+
yarn add @story-protocol/core-sdk ethers@^5.7.2
|
23
|
+
```
|
24
|
+
|
25
|
+
## Set up `.env` file
|
26
|
+
|
27
|
+
(Ask the team to provide the values)
|
28
|
+
|
29
|
+
```
|
30
|
+
NEXT_PUBLIC_API_BASE_URL =
|
31
|
+
NEXT_PUBLIC_FRANCHISE_REGISTRY_CONTRACT =
|
32
|
+
NEXT_PUBLIC_RELATIONSHIP_MODULE_CONTRACT =
|
33
|
+
NEXT_PUBLIC_COLLECT_MODULE_CONTRACT =
|
34
|
+
NEXT_PUBLIC_LICENSING_MODULE_CONTRACT =
|
35
|
+
```
|
36
|
+
|
37
|
+
## Set up SDK client
|
38
|
+
|
39
|
+
Using browser wallet
|
40
|
+
|
41
|
+
```typescript
|
42
|
+
import { StoryClient } from "@story-protocol/core-sdk";
|
43
|
+
import ethers from "ethers";
|
44
|
+
|
45
|
+
// Provider/Signer from browser wallet (i.e Metamask)
|
46
|
+
const provider = new ethers.providers.Web3Provider(window.ethereum);
|
47
|
+
await provider.send("eth_requestAccounts", []);
|
48
|
+
const signer = await provider.getSigner();
|
49
|
+
|
50
|
+
// Instantiate a read-only Story Client with an optional provider
|
51
|
+
const client = StoryClient.newReadOnlyClient({ provider });
|
52
|
+
|
53
|
+
// Instatiate a read/write Story Client with a signer
|
54
|
+
const client = StoryClient.newClient({ signer });
|
55
|
+
```
|
56
|
+
|
57
|
+
Using private key
|
58
|
+
|
59
|
+
```typescript
|
60
|
+
import { StoryClient } from "@story-protocol/core-sdk"
|
61
|
+
import ethers from "ethers"
|
62
|
+
|
63
|
+
// Signer from private key
|
64
|
+
const provider = new ethers.providers.JsonRpcProvider(<YOUR RPC URL>)
|
65
|
+
const signer = new ethers.Wallet(<YOUR PRIVATE KEY>, provider)
|
66
|
+
|
67
|
+
// Instantiate the Story Client
|
68
|
+
const client = StoryClient.newClient({ signer })
|
69
|
+
|
70
|
+
```
|
71
|
+
|
72
|
+
## Use SDK client
|
73
|
+
|
74
|
+
```typescript
|
75
|
+
// Create a new franchise
|
76
|
+
const response = await client.franchise.create({
|
77
|
+
franchiseName: "Alice in Wonderland",
|
78
|
+
franchiseSymbol: "Wonderland",
|
79
|
+
franchiseDescription:
|
80
|
+
"Fantastical journey, curious girl, whimsical characters, dreamlike adventures.",
|
81
|
+
});
|
82
|
+
|
83
|
+
// List franchises
|
84
|
+
const { data: franchise } = await client.franchise.list();
|
85
|
+
```
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import { StoryConfig, StoryReadOnlyConfig } from "./types/config.js";
|
2
|
+
import { IPOrgClient } from "./resources/ipOrg.js";
|
3
|
+
import { IPOrgReadOnlyClient } from "./resources/ipOrgReadOnly.js";
|
4
|
+
import { RelationshipReadOnlyClient } from "./resources/relationshipReadOnly.js";
|
5
|
+
import { IPAssetClient } from "./resources/ipAsset.js";
|
6
|
+
import { IPAssetReadOnlyClient } from "./resources/ipAssetReadOnly.js";
|
7
|
+
import { LicenseReadOnlyClient } from "./resources/licenseReadOnly.js";
|
8
|
+
import { TransactionClient } from "./resources/transaction.js";
|
9
|
+
import { TransactionReadOnlyClient } from "./resources/transactionReadOnly.js";
|
10
|
+
import { Client, ReadOnlyClient } from "./types/client.js";
|
11
|
+
import { ModuleClient } from "./resources/module.js";
|
12
|
+
import { ModuleReadOnlyClient } from "./resources/moduleReadOnly.js";
|
13
|
+
import { HookClient } from "./resources/hook.js";
|
14
|
+
import { HookReadOnlyClient } from "./resources/hookReadOnly.js";
|
15
|
+
import { PlatformClient } from "./utils/platform.js";
|
16
|
+
import { LicenseClient } from "./resources/license.js";
|
17
|
+
import { RelationshipClient } from "./resources/relationship.js";
|
18
|
+
/**
|
19
|
+
* The StoryClient is the main entry point for the SDK.
|
20
|
+
*/
|
21
|
+
export declare class StoryClient {
|
22
|
+
private readonly config;
|
23
|
+
private readonly httpClient;
|
24
|
+
private readonly isReadOnly;
|
25
|
+
private readonly rpcClient;
|
26
|
+
private readonly wallet?;
|
27
|
+
private _ipOrg;
|
28
|
+
private _license;
|
29
|
+
private _transaction;
|
30
|
+
private _ipAsset;
|
31
|
+
private _relationship;
|
32
|
+
private _module;
|
33
|
+
private _hook;
|
34
|
+
private _platform;
|
35
|
+
/**
|
36
|
+
* @param config - the configuration for the SDK client
|
37
|
+
* @param isReadOnly
|
38
|
+
*/
|
39
|
+
private constructor();
|
40
|
+
/**
|
41
|
+
* Factory method for creating a read only SDK client.
|
42
|
+
*
|
43
|
+
* @param config - the configuration for a read only SDK client
|
44
|
+
*/
|
45
|
+
static newReadOnlyClient(config: StoryReadOnlyConfig): ReadOnlyClient;
|
46
|
+
/**
|
47
|
+
* Factory method for creating a SDK client with a signer.
|
48
|
+
*
|
49
|
+
* @param config - the configuration for a new read/write SDK client
|
50
|
+
*/
|
51
|
+
static newClient(config: StoryConfig): Client;
|
52
|
+
private initIPOrg;
|
53
|
+
private initRelationship;
|
54
|
+
private initIpAsset;
|
55
|
+
private initLicense;
|
56
|
+
private initTransaction;
|
57
|
+
private initModule;
|
58
|
+
private initHook;
|
59
|
+
private initPlatform;
|
60
|
+
/**
|
61
|
+
* Getter for the ipOrg client. The client is lazily created when
|
62
|
+
* this method is called.
|
63
|
+
*
|
64
|
+
* @returns the IPOrgClient or IPOrgReadOnlyClient instance
|
65
|
+
*/
|
66
|
+
get ipOrg(): IPOrgClient | IPOrgReadOnlyClient;
|
67
|
+
/**
|
68
|
+
* Getter for the relationship client. The client is lazily created when
|
69
|
+
* this method is called.
|
70
|
+
*
|
71
|
+
* @returns the RelationshipClient instance
|
72
|
+
*/
|
73
|
+
get relationship(): RelationshipClient | RelationshipReadOnlyClient;
|
74
|
+
/**
|
75
|
+
* Getter for the IP Asset client. The client is lazily created when
|
76
|
+
* this method is called.
|
77
|
+
*
|
78
|
+
* @returns the IpAssetClient instance
|
79
|
+
*/
|
80
|
+
get ipAsset(): IPAssetClient | IPAssetReadOnlyClient;
|
81
|
+
/**
|
82
|
+
* Getter for the license client. The client is lazily created when
|
83
|
+
* this method is called.
|
84
|
+
*
|
85
|
+
* @returns the License instance
|
86
|
+
*/
|
87
|
+
get license(): LicenseClient | LicenseReadOnlyClient;
|
88
|
+
/**
|
89
|
+
* Getter for the transaction client. The client is lazily created when
|
90
|
+
* this method is called.
|
91
|
+
*
|
92
|
+
* @returns the TransactionClient instance
|
93
|
+
*/
|
94
|
+
get transaction(): TransactionClient | TransactionReadOnlyClient;
|
95
|
+
/**
|
96
|
+
* Getter for the module client. The client is lazily created when
|
97
|
+
* this method is called.
|
98
|
+
*
|
99
|
+
* @returns the ModuleClient instance
|
100
|
+
*/
|
101
|
+
get module(): ModuleClient | ModuleReadOnlyClient;
|
102
|
+
/**
|
103
|
+
* Getter for the hook client. The client is lazily created when
|
104
|
+
* this method is called.
|
105
|
+
*
|
106
|
+
* @returns the HookClient instance
|
107
|
+
*/
|
108
|
+
get hook(): HookClient | HookReadOnlyClient;
|
109
|
+
get platform(): PlatformClient;
|
110
|
+
}
|
111
|
+
//# sourceMappingURL=client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,0BAAuB;AAElE,OAAO,EAAE,WAAW,EAAE,6BAA0B;AAChD,OAAO,EAAE,mBAAmB,EAAE,qCAAkC;AAChE,OAAO,EAAE,0BAA0B,EAAE,4CAAyC;AAC9E,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,qBAAqB,EAAE,uCAAoC;AACpE,OAAO,EAAE,qBAAqB,EAAE,uCAAoC;AACpE,OAAO,EAAE,iBAAiB,EAAE,mCAAgC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,2CAAwC;AAE5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,0BAAuB;AACxD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,oBAAoB,EAAE,sCAAmC;AAClE,OAAO,EAAE,UAAU,EAAE,4BAAyB;AAC9C,OAAO,EAAE,kBAAkB,EAAE,oCAAiC;AAC9D,OAAO,EAAE,cAAc,EAAE,4BAAyB;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,kBAAkB,EAAE,oCAAiC;AAK9D;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAe;IAEvC,OAAO,CAAC,MAAM,CAAkD;IAChE,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,YAAY,CAA8D;IAClF,OAAO,CAAC,QAAQ,CAAsD;IACtE,OAAO,CAAC,aAAa,CAA2C;IAChE,OAAO,CAAC,OAAO,CAAoD;IACnE,OAAO,CAAC,KAAK,CAAgD;IAC7D,OAAO,CAAC,SAAS,CAA+B;IAEhD;;;OAGG;IACH,OAAO;IAoCP;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,GAAG,cAAc;IAIrE;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IAI7C,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,IAAW,KAAK,IAAI,WAAW,GAAG,mBAAmB,CAMpD;IAED;;;;;OAKG;IACH,IAAW,YAAY,IAAI,kBAAkB,GAAG,0BAA0B,CAMzE;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,GAAG,qBAAqB,CAK1D;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,GAAG,qBAAqB,CAM1D;IAED;;;;;OAKG;IACH,IAAW,WAAW,IAAI,iBAAiB,GAAG,yBAAyB,CAMtE;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,YAAY,GAAG,oBAAoB,CAMvD;IAED;;;;;OAKG;IACH,IAAW,IAAI,IAAI,UAAU,GAAG,kBAAkB,CAMjD;IAED,IAAW,QAAQ,IAAI,cAAc,CAMpC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ActionType.d.ts","sourceRoot":"../../../../src/enums","sources":["ActionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,WAAW,IAAA;IACX,QAAQ,IAAA;IACR,UAAU,IAAA;IACV,SAAS,IAAA;IACT,MAAM,IAAA;CACP"}
|
@@ -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"}
|
@@ -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,QAAQ,IAAI;IACZ,IAAI,IAAI;CACT"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @public
|
3
|
+
*/
|
4
|
+
export declare enum ResourceType {
|
5
|
+
UNSPECIFIED = 0,
|
6
|
+
IP_ORG = 1,
|
7
|
+
IP_ASSET = 2,
|
8
|
+
LICENSE = 3,
|
9
|
+
RELATIONSHIP = 4,
|
10
|
+
RELATIONSHIPTYPE = 5,
|
11
|
+
MODULE = 6,
|
12
|
+
HOOK = 7,
|
13
|
+
DISPUTE = 8
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=ResourceType.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ResourceType.d.ts","sourceRoot":"../../../../src/enums","sources":["ResourceType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,WAAW,IAAA;IACX,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,YAAY,IAAA;IACZ,gBAAgB,IAAA;IAChB,MAAM,IAAA;IACN,IAAI,IAAA;IACJ,OAAO,IAAA;CACR"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export { StoryClient } from "./client.js";
|
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, StoryReadOnlyConfig } from "./types/config.js";
|
6
|
+
export type { IPOrg, GetIPOrgRequest, GetIPOrgResponse, CreateIPOrgRequest, CreateIPOrgResponse, ListIPOrgResponse, } from "./types/resources/IPOrg.js";
|
7
|
+
export type { IPAsset, GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse, } from "./types/resources/ipAsset.js";
|
8
|
+
export type { License, GetLicenseRequest, GetLicenseResponse, CreateLicenseNftRequest, CreateIpaBoundLicenseRequest, CreateLicenseResponse, ListLicenseRequest, ListLicenseResponse, } from "./types/resources/license.js";
|
9
|
+
export type { Relationship, RegisterRelationshipRequest, RegisterRelationshipResponse, ListRelationshipRequest, ListRelationshipResponse, GetRelationshipRequest, GetRelationshipResponse, RegisterRelationshipTypeRequest, RegisterRelationshipTypeResponse, } from "./types/resources/relationship.js";
|
10
|
+
export type { Transaction, GetTransactionRequest, GetTransactionResponse, ListTransactionResponse, } from "./types/resources/transaction.js";
|
11
|
+
export type { Module, GetModuleRequest, GetModuleResponse, ListModuleRequest, ListModuleResponse, } from "./types/resources/module.js";
|
12
|
+
export type { Hook, GetHookRequest, GetHookResponse, ListHookRequest, ListHookResponse, } from "./types/resources/hook.js";
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +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;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AAEpD,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,0BAAuB;AAEvE,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,mCAAgC;AAEjC,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,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,qCAAkC;AAEnC,YAAY,EACV,YAAY,EACZ,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,gCAAgC,GACjC,0CAAuC;AAExC,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,yCAAsC;AAEvC,YAAY,EACV,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,oCAAiC;AAElC,YAAY,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,kCAA+B"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient, WalletClient } from "viem";
|
3
|
+
import { HookReadOnlyClient } from "./hookReadOnly.js";
|
4
|
+
/**
|
5
|
+
* HookClient allows you to view and monitor hooks on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class HookClient extends HookReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=hook.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"../../../../src/resources","sources":["hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,0BAAuB;AAEpD;;;GAGG;AACH,qBAAa,UAAW,SAAQ,kBAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;CAIrF"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetHookRequest, GetHookResponse, ListHookRequest, ListHookResponse } from "../types/resources/hook.js";
|
4
|
+
/**
|
5
|
+
* HookClient allows you to view and monitor hooks on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class HookReadOnlyClient {
|
9
|
+
protected readonly httpClient: AxiosInstance;
|
10
|
+
protected readonly rpcClient: PublicClient;
|
11
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
12
|
+
/**
|
13
|
+
* Get hook data based on the specified hook id.
|
14
|
+
*
|
15
|
+
* @param request - the request object for getting the hook
|
16
|
+
* @returns the response object that contains the fetched hook object
|
17
|
+
*/
|
18
|
+
get(request: GetHookRequest): Promise<GetHookResponse>;
|
19
|
+
/**
|
20
|
+
* Get hook data based on the specified hook id.
|
21
|
+
*
|
22
|
+
* @param request - the request object for getting the hooks
|
23
|
+
* @returns the response object that contains the fetched hook object
|
24
|
+
*/
|
25
|
+
list(request?: ListHookRequest): Promise<ListHookResponse>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=hookReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hookReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["hookReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,mCAAgC;AAEjC;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IASnE;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAYxE"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient, WalletClient } from "viem";
|
3
|
+
import { CreateIpAssetRequest, CreateIpAssetResponse } from "../types/resources/ipAsset.js";
|
4
|
+
import { IPAssetReadOnlyClient } from "./ipAssetReadOnly.js";
|
5
|
+
/**
|
6
|
+
* IpAssetClient allows you to create, view, and list IP Assets on Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class IPAssetClient extends IPAssetReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
/**
|
12
|
+
* Create an IP Asset on Story Protocol based on the specified input asset data.
|
13
|
+
*
|
14
|
+
* @param request - the request object that contains all data needed to create an IP Asset.
|
15
|
+
* @returns the response object that contains results from the asset creation.
|
16
|
+
*/
|
17
|
+
create(request: CreateIpAssetRequest): Promise<CreateIpAssetResponse>;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -0,0 +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,EAAc,YAAY,EAAS,YAAY,EAAE,MAAM,MAAM,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,sCAAmC;AAEzF,OAAO,EAAE,qBAAqB,EAAE,6BAA0B;AAK1D;;GAEG;AACH,qBAAa,aAAc,SAAQ,qBAAqB;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAkCnF"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetIpAssetRequest, GetIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse } from "../types/resources/ipAsset.js";
|
4
|
+
/**
|
5
|
+
* IpAssetClient allows you to create, view, and list IP Assets on Story Protocol.
|
6
|
+
*/
|
7
|
+
export declare class IPAssetReadOnlyClient {
|
8
|
+
protected readonly httpClient: AxiosInstance;
|
9
|
+
protected readonly rpcClient: PublicClient;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
11
|
+
/**
|
12
|
+
* Get an IP Asset based on the specified IP asset ID.
|
13
|
+
*
|
14
|
+
* @param request - the request object for getting an IP Asset.
|
15
|
+
* @returns the response object the contains the fetched IP Asset.
|
16
|
+
*/
|
17
|
+
get(request: GetIpAssetRequest): Promise<GetIpAssetResponse>;
|
18
|
+
/**
|
19
|
+
* List all IP assets.
|
20
|
+
*
|
21
|
+
* @returns the response object that contains results from listing query.
|
22
|
+
*/
|
23
|
+
list(request: ListIpAssetRequest): Promise<ListIpAssetResponse>;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=ipAssetReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipAssetReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAssetReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;GAEG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAazE;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAQ7E"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient, WalletClient } from "viem";
|
3
|
+
import { CreateIPOrgRequest, CreateIPOrgResponse } from "../types/resources/IPOrg.js";
|
4
|
+
import { IPOrgReadOnlyClient } from "./ipOrgReadOnly.js";
|
5
|
+
/**
|
6
|
+
* IPOrgClient allows you to create, update, view, search IPOrgs on
|
7
|
+
* Story Protocol.
|
8
|
+
*/
|
9
|
+
export declare class IPOrgClient extends IPOrgReadOnlyClient {
|
10
|
+
private readonly wallet;
|
11
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
12
|
+
/**
|
13
|
+
* Create a IPOrg on Story Protocol based on the specified input IPOrg data.
|
14
|
+
*
|
15
|
+
* @param request - the request object that contains all data needed to create a IPOrg
|
16
|
+
* @returns the response object that contains results from the create IPOrg action
|
17
|
+
*/
|
18
|
+
create(request: CreateIPOrgRequest): Promise<CreateIPOrgResponse>;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=ipOrg.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipOrg.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,YAAY,EAAE,YAAY,EAAe,MAAM,MAAM,CAAC;AAE3E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oCAAiC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,2BAAwB;AAKtD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,mBAAmB;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,MAAM,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA4B/E"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetIPOrgRequest, GetIPOrgResponse, ListIPOrgRequest, ListIPOrgResponse } from "../types/resources/IPOrg.js";
|
4
|
+
/**
|
5
|
+
* IPOrgReadOnlyClient allows you to view, search IPOrgs on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class IPOrgReadOnlyClient {
|
9
|
+
protected readonly httpClient: AxiosInstance;
|
10
|
+
protected readonly rpcClient: PublicClient;
|
11
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
12
|
+
/**
|
13
|
+
* Get a IPOrg data based on the specified IPOrg id.
|
14
|
+
*
|
15
|
+
* @param request - the request object for getting the IPOrg
|
16
|
+
* @returns the response object that contains the fetched IPOrg object
|
17
|
+
*/
|
18
|
+
get(request: GetIPOrgRequest): Promise<GetIPOrgResponse>;
|
19
|
+
/**
|
20
|
+
* List all IPOrgs.
|
21
|
+
*
|
22
|
+
* @returns the response object that contains a list of IPOrgs
|
23
|
+
*/
|
24
|
+
list(request?: ListIPOrgRequest): Promise<ListIPOrgResponse>;
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=ipOrgReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipOrgReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipOrgReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAa,YAAY,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAClB,oCAAiC;AAGlC;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYrE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAQ1E"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { PublicClient, WalletClient } from "viem";
|
2
|
+
import { AxiosInstance } from "axios";
|
3
|
+
import { LicenseReadOnlyClient } from "./licenseReadOnly.js";
|
4
|
+
import { CreateIpaBoundLicenseRequest, CreateLicenseNftRequest, CreateLicenseResponse } from "../types/resources/license.js";
|
5
|
+
/**
|
6
|
+
* Client for managing relationships.
|
7
|
+
*/
|
8
|
+
export declare class LicenseClient extends LicenseReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
create(request: CreateLicenseNftRequest | CreateIpaBoundLicenseRequest): Promise<CreateLicenseResponse>;
|
12
|
+
private isCreateLicenseNftRequest;
|
13
|
+
private isCreateIpaBoundLicenseRequest;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=license.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAMtC,OAAO,EAAE,qBAAqB,EAAE,6BAA0B;AAC1D,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACtB,sCAAmC;AAEpC;;GAEG;AACH,qBAAa,aAAc,SAAQ,qBAAqB;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKvE,MAAM,CACjB,OAAO,EAAE,uBAAuB,GAAG,4BAA4B,GAC9D,OAAO,CAAC,qBAAqB,CAAC;IAiDjC,OAAO,CAAC,yBAAyB;IAMjC,OAAO,CAAC,8BAA8B;CAKvC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetLicenseRequest, GetLicenseResponse, ListLicenseRequest, ListLicenseResponse } from "../types/resources/license.js";
|
4
|
+
/**
|
5
|
+
* A class representing License operations.
|
6
|
+
*
|
7
|
+
* @public
|
8
|
+
*/
|
9
|
+
export declare class LicenseReadOnlyClient {
|
10
|
+
protected readonly httpClient: AxiosInstance;
|
11
|
+
protected readonly rpcClient: PublicClient;
|
12
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
13
|
+
/**
|
14
|
+
* Get a license by its ID.
|
15
|
+
*
|
16
|
+
* @param licenseId - The ID of the license to retrieve.
|
17
|
+
* @returns A Promise that resolves to the GetLicenseResponse.
|
18
|
+
*/
|
19
|
+
get(request: GetLicenseRequest): Promise<GetLicenseResponse>;
|
20
|
+
/**
|
21
|
+
* List all licenses.
|
22
|
+
*
|
23
|
+
* @returns A Promise that resolves to the ListLicenseResponse.
|
24
|
+
*/
|
25
|
+
list(request?: ListLicenseRequest): Promise<ListLicenseResponse>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=licenseReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"licenseReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["licenseReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAIpC;;;;GAIG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgBzE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAc9E"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient, WalletClient } from "viem";
|
3
|
+
import { ModuleReadOnlyClient } from "./moduleReadOnly.js";
|
4
|
+
/**
|
5
|
+
* ModuleClient allows you to view and monitor modules on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class ModuleClient extends ModuleReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=module.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"../../../../src/resources","sources":["module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,4BAAyB;AAExD;;;GAGG;AACH,qBAAa,YAAa,SAAQ,oBAAoB;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;CAIrF"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetModuleRequest, GetModuleResponse, ListModuleRequest, ListModuleResponse } from "../types/resources/module.js";
|
4
|
+
/**
|
5
|
+
* ModuleClient allows you to view and monitor modules on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class ModuleReadOnlyClient {
|
9
|
+
protected readonly httpClient: AxiosInstance;
|
10
|
+
protected readonly rpcClient: PublicClient;
|
11
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
12
|
+
/**
|
13
|
+
* Get module data based on the specified module id.
|
14
|
+
*
|
15
|
+
* @param request - the request object for getting the module
|
16
|
+
* @returns the response object that contains the fetched module object
|
17
|
+
*/
|
18
|
+
get(request: GetModuleRequest): Promise<GetModuleResponse>;
|
19
|
+
/**
|
20
|
+
* Get module data based on the specified module id.
|
21
|
+
*
|
22
|
+
* @param request - the request object for getting the modules
|
23
|
+
* @returns the response object that contains the fetched module object
|
24
|
+
*/
|
25
|
+
list(request?: ListModuleRequest): Promise<ListModuleResponse>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=moduleReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"moduleReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["moduleReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,qCAAkC;AAEnC;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASvE;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAY5E"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { PublicClient, WalletClient } from "viem";
|
2
|
+
import { AxiosInstance } from "axios";
|
3
|
+
import { RegisterRelationshipTypeRequest, RegisterRelationshipTypeResponse, RegisterRelationshipRequest, RegisterRelationshipResponse } from "../types/resources/relationship.js";
|
4
|
+
import { RelationshipReadOnlyClient } from "./relationshipReadOnly.js";
|
5
|
+
/**
|
6
|
+
* Client for managing relationships.
|
7
|
+
*/
|
8
|
+
export declare class RelationshipClient extends RelationshipReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
/**
|
12
|
+
* Register a relationship on Story Protocol based on the specified input relationship data.
|
13
|
+
*
|
14
|
+
* @param request - the request object that contains all data needed to register a relationship
|
15
|
+
* @returns the response object that contains results from the register relationship action
|
16
|
+
*/
|
17
|
+
register(request: RegisterRelationshipRequest): Promise<RegisterRelationshipResponse>;
|
18
|
+
/**
|
19
|
+
* Register a relationship type on Story Protocol based on the specified input data.
|
20
|
+
*
|
21
|
+
* @param request - the request object that contains all data needed to register a relationship type
|
22
|
+
* @returns the response object that contains results from the register relationship type action
|
23
|
+
*/
|
24
|
+
registerRelationshipType(request: RegisterRelationshipTypeRequest): Promise<RegisterRelationshipTypeResponse>;
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=relationship.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../src/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC7B,2CAAwC;AAEzC,OAAO,EAAE,0BAA0B,EAAE,kCAA+B;AAKpE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,0BAA0B;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAKpF;;;;;OAKG;IACU,QAAQ,CACnB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAsCxC;;;;;OAKG;IACU,wBAAwB,CACnC,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,gCAAgC,CAAC;CAmC7C"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetRelationshipRequest, GetRelationshipResponse, ListRelationshipRequest, ListRelationshipResponse } from "../types/resources/relationship.js";
|
4
|
+
/**
|
5
|
+
* Client for managing relationships.
|
6
|
+
*/
|
7
|
+
export declare class RelationshipReadOnlyClient {
|
8
|
+
protected readonly httpClient: AxiosInstance;
|
9
|
+
protected readonly rpcClient: PublicClient;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
11
|
+
/**
|
12
|
+
* Get a relationship by its ID.
|
13
|
+
*
|
14
|
+
* @param relationshipId - The ID of the relationship to retrieve.
|
15
|
+
* @returns A Promise that resolves to the RelationshipGetResponse.
|
16
|
+
*/
|
17
|
+
get(request: GetRelationshipRequest): Promise<GetRelationshipResponse>;
|
18
|
+
/**
|
19
|
+
* List all relationships.
|
20
|
+
*
|
21
|
+
* @returns A Promise that resolves to the RelationshipListResponse.
|
22
|
+
*/
|
23
|
+
list(request: ListRelationshipRequest): Promise<ListRelationshipResponse>;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=relationshipReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"relationshipReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["relationshipReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACzB,2CAAwC;AAIzC;;GAEG;AACH,qBAAa,0BAA0B;IACrC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAkBnF;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAqBvF"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient, WalletClient } from "viem";
|
3
|
+
import { TransactionReadOnlyClient } from "./transactionReadOnly.js";
|
4
|
+
/**
|
5
|
+
* TransactionClient allows you to view and monitor transactions on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class TransactionClient extends TransactionReadOnlyClient {
|
9
|
+
private readonly wallet;
|
10
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=transaction.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../src/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,iCAA8B;AAElE;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,yBAAyB;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;CAIrF"}
|