@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
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AxiosInstance } from "axios";
|
2
|
+
import { PublicClient } from "viem";
|
3
|
+
import { GetTransactionRequest, GetTransactionResponse, ListTransactionRequest, ListTransactionResponse } from "../types/resources/transaction.js";
|
4
|
+
/**
|
5
|
+
* TransactionClient allows you to view and monitor transactions on
|
6
|
+
* Story Protocol.
|
7
|
+
*/
|
8
|
+
export declare class TransactionReadOnlyClient {
|
9
|
+
protected readonly httpClient: AxiosInstance;
|
10
|
+
protected readonly rpcClient: PublicClient;
|
11
|
+
constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
|
12
|
+
/**
|
13
|
+
* Get transaction data based on the specified transaction id.
|
14
|
+
*
|
15
|
+
* @param request - the request object for getting the transaction
|
16
|
+
* @returns the response object that contains the fetched transaction object
|
17
|
+
*/
|
18
|
+
get(request: GetTransactionRequest): Promise<GetTransactionResponse>;
|
19
|
+
/**
|
20
|
+
* Get transaction data based on the specified transaction id.
|
21
|
+
*
|
22
|
+
* @param request - the request object for getting the transactions
|
23
|
+
* @returns the response object that contains the fetched transaction object
|
24
|
+
*/
|
25
|
+
list(request?: ListTransactionRequest): Promise<ListTransactionResponse>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=transactionReadOnly.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["transactionReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,0CAAuC;AAExC;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,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,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASjF;;;;;OAKG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAQtF"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { LicenseReadOnlyClient } from "../resources/licenseReadOnly.js";
|
2
|
+
import { TransactionClient } from "../resources/transaction.js";
|
3
|
+
import { TransactionReadOnlyClient } from "../resources/transactionReadOnly.js";
|
4
|
+
import { IPAssetClient } from "../resources/ipAsset.js";
|
5
|
+
import { IPAssetReadOnlyClient } from "../resources/ipAssetReadOnly.js";
|
6
|
+
import { RelationshipReadOnlyClient } from "../resources/relationshipReadOnly.js";
|
7
|
+
import { IPOrgReadOnlyClient } from "../resources/ipOrgReadOnly.js";
|
8
|
+
import { IPOrgClient } from "../resources/ipOrg.js";
|
9
|
+
import { ModuleReadOnlyClient } from "../resources/moduleReadOnly.js";
|
10
|
+
import { ModuleClient } from "../resources/module.js";
|
11
|
+
import { HookReadOnlyClient } from "../resources/hookReadOnly.js";
|
12
|
+
import { HookClient } from "../resources/hook.js";
|
13
|
+
import { PlatformClient } from "../utils/platform.js";
|
14
|
+
import { LicenseClient } from "../resources/license.js";
|
15
|
+
import { RelationshipClient } from "../resources/relationship.js";
|
16
|
+
export interface ReadOnlyClient {
|
17
|
+
hook: HookReadOnlyClient;
|
18
|
+
module: ModuleReadOnlyClient;
|
19
|
+
ipOrg: IPOrgReadOnlyClient;
|
20
|
+
license: LicenseReadOnlyClient;
|
21
|
+
transaction: TransactionReadOnlyClient;
|
22
|
+
ipAsset: IPAssetReadOnlyClient;
|
23
|
+
relationship: RelationshipReadOnlyClient;
|
24
|
+
}
|
25
|
+
export interface Client {
|
26
|
+
hook: HookClient;
|
27
|
+
module: ModuleClient;
|
28
|
+
ipOrg: IPOrgClient;
|
29
|
+
license: LicenseClient;
|
30
|
+
transaction: TransactionClient;
|
31
|
+
ipAsset: IPAssetClient;
|
32
|
+
relationship: RelationshipClient;
|
33
|
+
platform: PlatformClient;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../../src/types","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AACrE,OAAO,EAAE,iBAAiB,EAAE,oCAAiC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,4CAAyC;AAC7E,OAAO,EAAE,aAAa,EAAE,gCAA6B;AACrD,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AACrE,OAAO,EAAE,0BAA0B,EAAE,6CAA0C;AAC/E,OAAO,EAAE,mBAAmB,EAAE,sCAAmC;AACjE,OAAO,EAAE,WAAW,EAAE,8BAA2B;AACjD,OAAO,EAAE,oBAAoB,EAAE,uCAAoC;AACnE,OAAO,EAAE,YAAY,EAAE,+BAA4B;AACnD,OAAO,EAAE,kBAAkB,EAAE,qCAAkC;AAC/D,OAAO,EAAE,UAAU,EAAE,6BAA0B;AAC/C,OAAO,EAAE,cAAc,EAAE,6BAA0B;AACnD,OAAO,EAAE,aAAa,EAAE,gCAA6B;AACrD,OAAO,EAAE,kBAAkB,EAAE,qCAAkC;AAE/D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,WAAW,EAAE,yBAAyB,CAAC;IACvC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,YAAY,EAAE,0BAA0B,CAAC;CAC1C;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,cAAc,CAAC;CAC1B"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Account, Chain, Transport } from "viem";
|
2
|
+
import { Environment } from "../enums/Environment.js";
|
3
|
+
/**
|
4
|
+
* Configuration for the SDK Client.
|
5
|
+
*
|
6
|
+
* @public
|
7
|
+
*/
|
8
|
+
export interface StoryCommonConfig {
|
9
|
+
readonly environment: Environment;
|
10
|
+
}
|
11
|
+
export interface StoryConfig extends StoryReadOnlyConfig {
|
12
|
+
readonly account: Account;
|
13
|
+
}
|
14
|
+
export interface StoryReadOnlyConfig extends StoryCommonConfig {
|
15
|
+
readonly chain?: Chain;
|
16
|
+
readonly transport?: Transport;
|
17
|
+
}
|
18
|
+
//# 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,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,gCAA6B;AAEnD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC;AAED,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;CAChC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Core data model for franchise.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type IPOrg = {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
symbol: string;
|
11
|
+
owner: string;
|
12
|
+
baseUri?: string;
|
13
|
+
contractUri?: string;
|
14
|
+
ipAssetTypes: string[];
|
15
|
+
createdAt: string;
|
16
|
+
txHash: string;
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* Request type for franchise.get method.
|
20
|
+
*
|
21
|
+
* @public
|
22
|
+
*/
|
23
|
+
export type GetIPOrgRequest = {
|
24
|
+
ipOrgId: string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Response type for franchise.get method.
|
28
|
+
*
|
29
|
+
* @public
|
30
|
+
*/
|
31
|
+
export type GetIPOrgResponse = {
|
32
|
+
ipOrg: IPOrg;
|
33
|
+
};
|
34
|
+
/**
|
35
|
+
* Request type for franchise.create method.
|
36
|
+
*
|
37
|
+
* @public
|
38
|
+
*/
|
39
|
+
export type CreateIPOrgRequest = {
|
40
|
+
name: string;
|
41
|
+
symbol: string;
|
42
|
+
owner?: string;
|
43
|
+
ipAssetTypes: Array<string>;
|
44
|
+
txOptions?: TxOptions;
|
45
|
+
};
|
46
|
+
/**
|
47
|
+
* Response type for franchise.create method.
|
48
|
+
*
|
49
|
+
* @public
|
50
|
+
*/
|
51
|
+
export type CreateIPOrgResponse = {
|
52
|
+
txHash: string;
|
53
|
+
ipOrgId?: string;
|
54
|
+
};
|
55
|
+
/**
|
56
|
+
* Request type for franchise.list method.
|
57
|
+
*
|
58
|
+
* @public
|
59
|
+
*/
|
60
|
+
export type ListIPOrgRequest = {
|
61
|
+
options?: QueryOptions;
|
62
|
+
};
|
63
|
+
/**
|
64
|
+
* Response type for franchise.list method.
|
65
|
+
*
|
66
|
+
* @public
|
67
|
+
*/
|
68
|
+
export type ListIPOrgResponse = {
|
69
|
+
ipOrgs: IPOrg[];
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=IPOrg.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IPOrg.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["IPOrg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { QueryOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Core data model for Hook.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type Hook = {
|
8
|
+
id: string;
|
9
|
+
moduleId: string;
|
10
|
+
interface?: string;
|
11
|
+
hookType: number;
|
12
|
+
registryKey: string;
|
13
|
+
registeredAt: string;
|
14
|
+
txHash: string;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Request type for hook.get method.
|
18
|
+
*
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
export type GetHookRequest = {
|
22
|
+
hookId: string;
|
23
|
+
};
|
24
|
+
/**
|
25
|
+
* Response type for hook.get method.
|
26
|
+
*
|
27
|
+
* @public
|
28
|
+
*/
|
29
|
+
export type GetHookResponse = {
|
30
|
+
hook: Hook;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* Request type for hook.list method.
|
34
|
+
*
|
35
|
+
* @public
|
36
|
+
*/
|
37
|
+
export type ListHookRequest = {
|
38
|
+
moduleId?: string;
|
39
|
+
options?: QueryOptions;
|
40
|
+
};
|
41
|
+
/**
|
42
|
+
* Response type for hook.list method.
|
43
|
+
*
|
44
|
+
* @public
|
45
|
+
*/
|
46
|
+
export type ListHookResponse = {
|
47
|
+
hooks: Hook[];
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=hook.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Core data model for IP Asset.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type IPAsset = {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
type: number;
|
11
|
+
ipOrgId: string;
|
12
|
+
owner: string;
|
13
|
+
mediaUrl: string;
|
14
|
+
contentHash?: string;
|
15
|
+
createdAt: string;
|
16
|
+
txHash: string;
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* Request type for ipAsset.get method.
|
20
|
+
*
|
21
|
+
* @public
|
22
|
+
*/
|
23
|
+
export type GetIpAssetRequest = {
|
24
|
+
ipAssetId: string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Response type for ipAsset.get method.
|
28
|
+
*
|
29
|
+
* @public
|
30
|
+
*/
|
31
|
+
export type GetIpAssetResponse = {
|
32
|
+
ipAsset: IPAsset;
|
33
|
+
};
|
34
|
+
/**
|
35
|
+
* Request type for ipAsset.create method.
|
36
|
+
*
|
37
|
+
* @public
|
38
|
+
*/
|
39
|
+
export type CreateIpAssetRequest = {
|
40
|
+
name: string;
|
41
|
+
type: number;
|
42
|
+
ipOrgId: string;
|
43
|
+
owner: string;
|
44
|
+
mediaUrl?: string;
|
45
|
+
contentHash?: string;
|
46
|
+
preHookData?: Array<Record<string, unknown>>;
|
47
|
+
postHookData?: Array<Record<string, unknown>>;
|
48
|
+
txOptions?: TxOptions;
|
49
|
+
};
|
50
|
+
/**
|
51
|
+
* Response type for ipAsset.create method.
|
52
|
+
*
|
53
|
+
* @public
|
54
|
+
*/
|
55
|
+
export type CreateIpAssetResponse = {
|
56
|
+
txHash: string;
|
57
|
+
ipAssetId?: string;
|
58
|
+
};
|
59
|
+
/**
|
60
|
+
* Request type for ipAsset.list method.
|
61
|
+
*
|
62
|
+
* @public
|
63
|
+
*/
|
64
|
+
export type ListIpAssetRequest = {
|
65
|
+
ipOrgId?: string;
|
66
|
+
options?: QueryOptions;
|
67
|
+
};
|
68
|
+
/**
|
69
|
+
* Response type for ipAsset.list method.
|
70
|
+
*
|
71
|
+
* @public
|
72
|
+
*/
|
73
|
+
export type ListIpAssetResponse = {
|
74
|
+
ipAssets: IPAsset[];
|
75
|
+
};
|
76
|
+
//# 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,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,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,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7C,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Represents the core data model for a License, containing essential information.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type License = {
|
8
|
+
id: number;
|
9
|
+
isCommercial: boolean;
|
10
|
+
status: number;
|
11
|
+
licensor: string;
|
12
|
+
revoker: string;
|
13
|
+
ipOrgId: string;
|
14
|
+
licenseeType: number;
|
15
|
+
ipAssetId: string;
|
16
|
+
parentLicenseId: string;
|
17
|
+
termIds: string[];
|
18
|
+
termsData: string[];
|
19
|
+
createdAt: string;
|
20
|
+
txHash: string;
|
21
|
+
};
|
22
|
+
interface CreateLicenseRequest {
|
23
|
+
ipOrgId: string;
|
24
|
+
parentLicenseId?: string;
|
25
|
+
isCommercial: boolean;
|
26
|
+
preHooksCalldata?: Record<string, undefined>[];
|
27
|
+
postHooksCalldata?: Record<string, undefined>[];
|
28
|
+
txOptions?: TxOptions;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Represents the request structure for creating a new license NFT (createLicenseNft on StoryProtocol.sol)
|
32
|
+
*
|
33
|
+
* @public
|
34
|
+
*/
|
35
|
+
export interface CreateLicenseNftRequest extends CreateLicenseRequest {
|
36
|
+
licensee: string;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Represents the request structure for creating a new IPA-bound license (createIpaBoundLicense on StoryProtocol.sol)
|
40
|
+
*
|
41
|
+
* @public
|
42
|
+
*/
|
43
|
+
export interface CreateIpaBoundLicenseRequest extends CreateLicenseRequest {
|
44
|
+
ipaId: number;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Represents the request structure for retrieving license details using the `franchise.get` method.
|
48
|
+
*
|
49
|
+
* @public
|
50
|
+
*/
|
51
|
+
export type GetLicenseRequest = {
|
52
|
+
licenseId: string;
|
53
|
+
};
|
54
|
+
/**
|
55
|
+
* Represents the response structure for retrieving license details using the `license.get` method.
|
56
|
+
*
|
57
|
+
* @public
|
58
|
+
*/
|
59
|
+
export type GetLicenseResponse = {
|
60
|
+
license: License;
|
61
|
+
};
|
62
|
+
export type ListLicenseRequest = {
|
63
|
+
ipOrgId?: string;
|
64
|
+
ipAssetId?: string;
|
65
|
+
options?: QueryOptions;
|
66
|
+
};
|
67
|
+
/**
|
68
|
+
* Represents the request structure for listing multiple licenses using the `license.list` method.
|
69
|
+
*
|
70
|
+
* @public
|
71
|
+
*/
|
72
|
+
export type ListLicenseResponse = {
|
73
|
+
licenses: License[];
|
74
|
+
};
|
75
|
+
/**
|
76
|
+
* Represents the response structure for creating a new license using the `license.create` method.
|
77
|
+
*
|
78
|
+
* @public
|
79
|
+
*/
|
80
|
+
export type CreateLicenseResponse = {
|
81
|
+
txHash: string;
|
82
|
+
licenseId?: string;
|
83
|
+
};
|
84
|
+
export {};
|
85
|
+
//# 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,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC;IAChD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACxE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Hook } from "./hook.js";
|
2
|
+
import { QueryOptions } from "../options.js";
|
3
|
+
/**
|
4
|
+
* Core data model for Module.
|
5
|
+
*
|
6
|
+
* @public
|
7
|
+
*/
|
8
|
+
export type Module = {
|
9
|
+
id: string;
|
10
|
+
ipOrgId: string;
|
11
|
+
moduleKey: string;
|
12
|
+
interface?: string;
|
13
|
+
preHooks?: Hook[];
|
14
|
+
postHooks?: Hook[];
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Request type for module.get method.
|
18
|
+
*
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
export type GetModuleRequest = {
|
22
|
+
moduleId: string;
|
23
|
+
};
|
24
|
+
/**
|
25
|
+
* Response type for module.get method.
|
26
|
+
*
|
27
|
+
* @public
|
28
|
+
*/
|
29
|
+
export type GetModuleResponse = {
|
30
|
+
module: Module;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* Request type for module.list method.
|
34
|
+
*
|
35
|
+
* @public
|
36
|
+
*/
|
37
|
+
export type ListModuleRequest = {
|
38
|
+
ipOrgId?: string;
|
39
|
+
options?: QueryOptions;
|
40
|
+
};
|
41
|
+
/**
|
42
|
+
* Response type for module.list method.
|
43
|
+
*
|
44
|
+
* @public
|
45
|
+
*/
|
46
|
+
export type ListModuleResponse = {
|
47
|
+
modules: Module[];
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=module.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,kBAAe;AAC9B,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
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?: string;
|
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?: string;
|
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?: string;
|
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?: string;
|
74
|
+
};
|
75
|
+
/**
|
76
|
+
* Response type for relationship.isRelated method.
|
77
|
+
*
|
78
|
+
* @public
|
79
|
+
*/
|
80
|
+
export type RelationshipIsRelatedResponse = {
|
81
|
+
result: boolean;
|
82
|
+
};
|
83
|
+
declare enum Relatables {
|
84
|
+
UNDEFINED = 0,
|
85
|
+
IPA = 1,
|
86
|
+
IPORG_ENTRY = 2,
|
87
|
+
LICENSE = 3,
|
88
|
+
ADDRESS = 4,
|
89
|
+
EXTERNAL_NFT = 5
|
90
|
+
}
|
91
|
+
export interface RelatedElements {
|
92
|
+
src: Relatables;
|
93
|
+
dst: Relatables;
|
94
|
+
}
|
95
|
+
export type Relationship = {
|
96
|
+
id: string;
|
97
|
+
type: string;
|
98
|
+
typeId: string;
|
99
|
+
srcContract: string;
|
100
|
+
srcTokenId: string;
|
101
|
+
srcName?: string;
|
102
|
+
dstContract: string;
|
103
|
+
dstTokenId: string;
|
104
|
+
dstName?: string;
|
105
|
+
ttl?: number;
|
106
|
+
registeredAt: string;
|
107
|
+
txHash: string;
|
108
|
+
};
|
109
|
+
export type RegisterRelationshipRequest = {
|
110
|
+
ipOrgId: string;
|
111
|
+
relType: string;
|
112
|
+
srcContract: string;
|
113
|
+
srcTokenId: string;
|
114
|
+
srcType?: string;
|
115
|
+
dstContract: string;
|
116
|
+
dstTokenId: string;
|
117
|
+
dstType?: string;
|
118
|
+
preHookData: Record<string, unknown>[];
|
119
|
+
postHookData: Record<string, unknown>[];
|
120
|
+
txOptions?: TxOptions;
|
121
|
+
};
|
122
|
+
export type RegisterRelationshipResponse = {
|
123
|
+
txHash: string;
|
124
|
+
relationshipId?: string;
|
125
|
+
success?: boolean;
|
126
|
+
};
|
127
|
+
export type GetRelationshipRequest = {
|
128
|
+
relationshipId: string;
|
129
|
+
options?: QueryOptions;
|
130
|
+
};
|
131
|
+
export type GetRelationshipResponse = {
|
132
|
+
relationship: Relationship;
|
133
|
+
};
|
134
|
+
export type ListRelationshipRequest = {
|
135
|
+
tokenId: string;
|
136
|
+
contract?: string;
|
137
|
+
options?: QueryOptions;
|
138
|
+
};
|
139
|
+
export type ListRelationshipResponse = {
|
140
|
+
relationships: Relationship[];
|
141
|
+
};
|
142
|
+
export type RegisterRelationshipTypeRequest = {
|
143
|
+
ipOrgId: string;
|
144
|
+
relType: string;
|
145
|
+
relatedElements: RelatedElements;
|
146
|
+
allowedSrcs: string[];
|
147
|
+
allowedDsts: string[];
|
148
|
+
preHooksConfig: Record<string, unknown>[];
|
149
|
+
postHooksConfig: Record<string, unknown>[];
|
150
|
+
txOptions?: TxOptions;
|
151
|
+
};
|
152
|
+
export type RegisterRelationshipTypeResponse = {
|
153
|
+
txHash: string;
|
154
|
+
success?: boolean;
|
155
|
+
relationshipId?: string;
|
156
|
+
};
|
157
|
+
export {};
|
158
|
+
//# sourceMappingURL=relationship.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { ResourceType } from "../../enums/ResourceType.js";
|
2
|
+
import { ActionType } from "../../enums/ActionType.js";
|
3
|
+
import { QueryOptions } from "../options.js";
|
4
|
+
/**
|
5
|
+
* Core data model for transactions.
|
6
|
+
*
|
7
|
+
* @public
|
8
|
+
*/
|
9
|
+
export type Transaction = {
|
10
|
+
id: string;
|
11
|
+
txHash: string;
|
12
|
+
ipOrgId: string;
|
13
|
+
initiator: string;
|
14
|
+
resourceId: string;
|
15
|
+
resourceType: ResourceType;
|
16
|
+
actionType: ActionType;
|
17
|
+
createdAt: string;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* Request type for transaction.get method.
|
21
|
+
*
|
22
|
+
* @public
|
23
|
+
*/
|
24
|
+
export type GetTransactionRequest = {
|
25
|
+
transactionId: string;
|
26
|
+
};
|
27
|
+
/**
|
28
|
+
* Response type for transaction.get method.
|
29
|
+
*
|
30
|
+
* @public
|
31
|
+
*/
|
32
|
+
export type GetTransactionResponse = {
|
33
|
+
transaction: Transaction;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* Response type for transaction.list method.
|
37
|
+
*
|
38
|
+
* @public
|
39
|
+
*/
|
40
|
+
export type ListTransactionRequest = {
|
41
|
+
ipOrgId?: string;
|
42
|
+
options?: QueryOptions;
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* Response type for transaction.list method.
|
46
|
+
*
|
47
|
+
* @public
|
48
|
+
*/
|
49
|
+
export type ListTransactionResponse = {
|
50
|
+
transactions: Transaction[];
|
51
|
+
};
|
52
|
+
//# sourceMappingURL=transaction.d.ts.map
|