@story-protocol/core-sdk 0.0.1-beta-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +85 -0
- package/dist/declarations/src/client.d.ts +76 -0
- package/dist/declarations/src/client.d.ts.map +1 -0
- package/dist/declarations/src/constants/common.d.ts +3 -0
- package/dist/declarations/src/constants/common.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/ResourceType.d.ts +15 -0
- package/dist/declarations/src/enums/ResourceType.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +19 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +23 -0
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +26 -0
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/moduleReadOnly.d.ts +25 -0
- package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/permission.d.ts +16 -0
- package/dist/declarations/src/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/resources/permissionReadOnly.d.ts +25 -0
- package/dist/declarations/src/resources/permissionReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/tagging.d.ts +11 -0
- package/dist/declarations/src/resources/tagging.d.ts.map +1 -0
- package/dist/declarations/src/resources/taggingReadOnly.d.ts +24 -0
- package/dist/declarations/src/resources/taggingReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/resources/transaction.d.ts +11 -0
- package/dist/declarations/src/resources/transaction.d.ts.map +1 -0
- package/dist/declarations/src/resources/transactionReadOnly.d.ts +25 -0
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +1 -0
- package/dist/declarations/src/types/client.d.ts +23 -0
- package/dist/declarations/src/types/client.d.ts.map +1 -0
- package/dist/declarations/src/types/common.d.ts +6 -0
- package/dist/declarations/src/types/common.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +19 -0
- package/dist/declarations/src/types/config.d.ts.map +1 -0
- package/dist/declarations/src/types/options.d.ts +12 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +144 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/module.d.ts +43 -0
- package/dist/declarations/src/types/resources/module.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/permission.d.ts +35 -0
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/tagging.d.ts +35 -0
- package/dist/declarations/src/types/resources/tagging.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 +2367 -0
- package/dist/story-protocol-core-sdk.cjs.js +7 -0
- package/dist/story-protocol-core-sdk.cjs.prod.js +2367 -0
- package/dist/story-protocol-core-sdk.esm.js +2328 -0
- package/package.json +91 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Core data model for IP Org.
|
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: Array<string>;
|
15
|
+
createdAt: string;
|
16
|
+
txHash: string;
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* Request type for iporg.get method.
|
20
|
+
*
|
21
|
+
* @public
|
22
|
+
*/
|
23
|
+
export type GetIPOrgRequest = {
|
24
|
+
ipOrgId: string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Response type for iporg.get method.
|
28
|
+
*
|
29
|
+
* @public
|
30
|
+
*/
|
31
|
+
export type GetIPOrgResponse = {
|
32
|
+
ipOrg: IPOrg;
|
33
|
+
};
|
34
|
+
/**
|
35
|
+
* Request type for iporg.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 iporg.create method.
|
48
|
+
*
|
49
|
+
* @public
|
50
|
+
*/
|
51
|
+
export type CreateIPOrgResponse = {
|
52
|
+
txHash: string;
|
53
|
+
ipOrgId?: string;
|
54
|
+
};
|
55
|
+
/**
|
56
|
+
* Request type for iporg.list method.
|
57
|
+
*
|
58
|
+
* @public
|
59
|
+
*/
|
60
|
+
export type ListIPOrgRequest = {
|
61
|
+
options?: QueryOptions;
|
62
|
+
};
|
63
|
+
/**
|
64
|
+
* Response type for iporg.list method.
|
65
|
+
*
|
66
|
+
* @public
|
67
|
+
*/
|
68
|
+
export type ListIPOrgResponse = {
|
69
|
+
ipOrgs: IPOrg[];
|
70
|
+
};
|
71
|
+
export type IpAsset = {
|
72
|
+
id: string;
|
73
|
+
ipId: string;
|
74
|
+
chainId: number;
|
75
|
+
tokenContract: string;
|
76
|
+
tokenId: number;
|
77
|
+
metadataResolverAddress: string;
|
78
|
+
};
|
79
|
+
export type GetIpAssetRequest = {
|
80
|
+
ipId: string;
|
81
|
+
};
|
82
|
+
export type GetIpAssetResponse = {
|
83
|
+
data: IpAsset;
|
84
|
+
};
|
85
|
+
export type ListIpAssetRequest = {
|
86
|
+
options?: QueryOptions;
|
87
|
+
};
|
88
|
+
export type ListIpAssetResponse = {
|
89
|
+
data: IpAsset[];
|
90
|
+
};
|
91
|
+
export type RegisterIpAssetRequest = {
|
92
|
+
chainId: string;
|
93
|
+
tokenContractAddress: string;
|
94
|
+
tokenId: string;
|
95
|
+
txOptions?: TxOptions;
|
96
|
+
};
|
97
|
+
export type RegisterIpAssetResponse = {
|
98
|
+
txHash: string;
|
99
|
+
ipAccountId?: string;
|
100
|
+
};
|
101
|
+
export type RegisterRootIpRequest = {
|
102
|
+
policyId: string;
|
103
|
+
tokenContractAddress: string;
|
104
|
+
tokenId: string;
|
105
|
+
txOptions?: TxOptions;
|
106
|
+
};
|
107
|
+
export type RegisterRootIpResponse = {
|
108
|
+
txHash: string;
|
109
|
+
ipAccountId?: string;
|
110
|
+
};
|
111
|
+
export type RegisterDerivativeIpRequest = {
|
112
|
+
licenseId: string;
|
113
|
+
tokenContractAddress: string;
|
114
|
+
tokenId: string;
|
115
|
+
ipName: string;
|
116
|
+
ipDescription: string;
|
117
|
+
hash: string;
|
118
|
+
txOptions?: TxOptions;
|
119
|
+
};
|
120
|
+
export type RegisterDerivativeIpResponse = {
|
121
|
+
txHash: string;
|
122
|
+
ipAccountId?: string;
|
123
|
+
};
|
124
|
+
export type addPolicyRequest = {
|
125
|
+
frameworkId: string;
|
126
|
+
mintingParamValues: string[];
|
127
|
+
activationParamValues: string[];
|
128
|
+
needsActivation: boolean;
|
129
|
+
linkParentParamValues: string[];
|
130
|
+
txOptions?: TxOptions;
|
131
|
+
};
|
132
|
+
export type addPolicyToIpRequest = {
|
133
|
+
ipId: string;
|
134
|
+
policyId: string;
|
135
|
+
};
|
136
|
+
export type addPolicyResponse = {
|
137
|
+
txHash: string;
|
138
|
+
policyId?: number;
|
139
|
+
isNew?: boolean;
|
140
|
+
};
|
141
|
+
export type addPolicyToIpResponse = {
|
142
|
+
indexOnIpId: number;
|
143
|
+
};
|
144
|
+
//# sourceMappingURL=ipAsset.d.ts.map
|
@@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,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAGhC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { QueryOptions } from "../options.js";
|
2
|
+
/**
|
3
|
+
* Core data model for modules.
|
4
|
+
*
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export type Module = {
|
8
|
+
name: string;
|
9
|
+
module: `0x${string}`;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* Request type for module.get method.
|
13
|
+
*
|
14
|
+
* @public
|
15
|
+
*/
|
16
|
+
export type GetModuleRequest = {
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* Response type for module.get method.
|
21
|
+
*
|
22
|
+
* @public
|
23
|
+
*/
|
24
|
+
export type GetModuleResponse = {
|
25
|
+
data: Module;
|
26
|
+
};
|
27
|
+
/**
|
28
|
+
* Response type for module.list method.
|
29
|
+
*
|
30
|
+
* @public
|
31
|
+
*/
|
32
|
+
export type ListModuleRequest = {
|
33
|
+
options?: QueryOptions;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* Response type for module.list method.
|
37
|
+
*
|
38
|
+
* @public
|
39
|
+
*/
|
40
|
+
export type ListModuleResponse = {
|
41
|
+
data: Module[];
|
42
|
+
};
|
43
|
+
//# 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,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
export type setPermissionsRequest = {
|
3
|
+
ipAsset: string;
|
4
|
+
signer: string;
|
5
|
+
to: string;
|
6
|
+
func: string;
|
7
|
+
permission: number;
|
8
|
+
txOptions?: TxOptions;
|
9
|
+
};
|
10
|
+
export type Permission = {
|
11
|
+
id: string;
|
12
|
+
ipAccount: string;
|
13
|
+
permission: string;
|
14
|
+
signer: string;
|
15
|
+
to: string;
|
16
|
+
func: string;
|
17
|
+
blockTimestamp: string;
|
18
|
+
blockNumber: string;
|
19
|
+
};
|
20
|
+
export type setPermissionsResponse = {
|
21
|
+
txHash: string;
|
22
|
+
};
|
23
|
+
export type GetPermissionRequest = {
|
24
|
+
permissionId: string;
|
25
|
+
};
|
26
|
+
export type GetPermissionResponse = {
|
27
|
+
data: Permission;
|
28
|
+
};
|
29
|
+
export type ListPermissionsRequest = {
|
30
|
+
options: QueryOptions;
|
31
|
+
};
|
32
|
+
export type ListPermissionsResponse = {
|
33
|
+
data: Permission[];
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=permission.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
export type Tag = {
|
3
|
+
id: string;
|
4
|
+
ipId: `0x${string}`;
|
5
|
+
tag: string;
|
6
|
+
};
|
7
|
+
export type ListTagRequest = {
|
8
|
+
options?: QueryOptions;
|
9
|
+
};
|
10
|
+
export type ListTagResponse = {
|
11
|
+
data: Tag[];
|
12
|
+
};
|
13
|
+
export type GetTagRequest = {
|
14
|
+
id: string;
|
15
|
+
};
|
16
|
+
export type GetTagResponse = {
|
17
|
+
data: Tag;
|
18
|
+
};
|
19
|
+
export type SetTagRequest = {
|
20
|
+
tag: string;
|
21
|
+
ipId: `0x${string}`;
|
22
|
+
txOptions?: TxOptions;
|
23
|
+
};
|
24
|
+
export type SetTagResponse = {
|
25
|
+
txHash: string;
|
26
|
+
};
|
27
|
+
export type RemoveTagRequest = {
|
28
|
+
tag: string;
|
29
|
+
ipId: `0x${string}`;
|
30
|
+
txOptions?: TxOptions;
|
31
|
+
};
|
32
|
+
export type RemoveTagResponse = {
|
33
|
+
txHash: string;
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=tagging.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD,MAAM,MAAM,GAAG,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oCAAiC;AACxD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { AxiosInstance } from "axios";
|
3
|
+
export declare class PlatformClient {
|
4
|
+
protected readonly httpClient: AxiosInstance;
|
5
|
+
constructor(httpClient: AxiosInstance);
|
6
|
+
/**
|
7
|
+
* Upload a file to Arweave.
|
8
|
+
*
|
9
|
+
* @param file - the file binary data to upload
|
10
|
+
* @param mimeType - the mime type of the file
|
11
|
+
* @returns the response object that contains the uri of the uploaded file
|
12
|
+
*/
|
13
|
+
uploadFile(file: File | Buffer, mimeType: string): Promise<{
|
14
|
+
uri: string;
|
15
|
+
}>;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=platform.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"../../../../src/utils","sources":["platform.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,qBAAa,cAAc;IACzB,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;gBAEjC,UAAU,EAAE,aAAa;IAIrC;;;;;;OAMG;IACU,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAyBzF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"story-protocol-core-sdk.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|