@0xsequence/api 0.0.0-202182517435 → 0.0.0-20220425195445
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/dist/0xsequence-api.cjs.dev.js +84 -4
- package/dist/0xsequence-api.cjs.prod.js +84 -4
- package/dist/0xsequence-api.esm.js +83 -3
- package/dist/declarations/src/api.gen.d.ts +345 -270
- package/dist/declarations/src/index.d.ts +7 -7
- package/package.json +2 -2
- package/src/api.gen.ts +172 -2
- package/src/index.ts +1 -1
- package/CHANGELOG.md +0 -362
|
@@ -1,270 +1,345 @@
|
|
|
1
|
-
export declare const WebRPCVersion = "v1";
|
|
2
|
-
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
4
|
-
export declare enum SortOrder {
|
|
5
|
-
DESC = "DESC",
|
|
6
|
-
ASC = "ASC"
|
|
7
|
-
}
|
|
8
|
-
export interface Version {
|
|
9
|
-
webrpcVersion: string;
|
|
10
|
-
schemaVersion: string;
|
|
11
|
-
schemaHash: string;
|
|
12
|
-
appVersion: string;
|
|
13
|
-
}
|
|
14
|
-
export interface RuntimeStatus {
|
|
15
|
-
healthOK: boolean;
|
|
16
|
-
startTime: string;
|
|
17
|
-
uptime: number;
|
|
18
|
-
ver: string;
|
|
19
|
-
branch: string;
|
|
20
|
-
commitHash: string;
|
|
21
|
-
checks: RuntimeChecks;
|
|
22
|
-
}
|
|
23
|
-
export interface RuntimeChecks {
|
|
24
|
-
}
|
|
25
|
-
export interface SequenceContext {
|
|
26
|
-
factory: string;
|
|
27
|
-
mainModule: string;
|
|
28
|
-
mainModuleUpgradable: string;
|
|
29
|
-
guestModule: string;
|
|
30
|
-
utils: string;
|
|
31
|
-
}
|
|
32
|
-
export interface User {
|
|
33
|
-
address: string;
|
|
34
|
-
username: string;
|
|
35
|
-
avatar: string;
|
|
36
|
-
bio: string;
|
|
37
|
-
location: string;
|
|
38
|
-
locale: string;
|
|
39
|
-
backup?: boolean;
|
|
40
|
-
backupConfirmed?: boolean;
|
|
41
|
-
maxInvites?: number;
|
|
42
|
-
updatedAt?: string;
|
|
43
|
-
createdAt?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface WalletBackup {
|
|
46
|
-
accountAddress: string;
|
|
47
|
-
secretHash: string;
|
|
48
|
-
encryptedWallet: string;
|
|
49
|
-
userConfirmed: boolean;
|
|
50
|
-
updatedAt?: string;
|
|
51
|
-
createdAt?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface Friend {
|
|
54
|
-
id: number;
|
|
55
|
-
userAddress: string;
|
|
56
|
-
friendAddress: string;
|
|
57
|
-
nickname: string;
|
|
58
|
-
user?: User;
|
|
59
|
-
createdAt?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface InviteCode {
|
|
62
|
-
usesLeft: number;
|
|
63
|
-
ownerAccount: string;
|
|
64
|
-
email?: string;
|
|
65
|
-
url: string;
|
|
66
|
-
createdAt?: string;
|
|
67
|
-
expiresAt?: string;
|
|
68
|
-
}
|
|
69
|
-
export interface InviteCodeAccount {
|
|
70
|
-
claimedByUserAddress: string;
|
|
71
|
-
claimedAt?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface InviteInfo {
|
|
74
|
-
expiryInHours: number;
|
|
75
|
-
max: number;
|
|
76
|
-
invites: Array<InviteCode>;
|
|
77
|
-
}
|
|
78
|
-
export interface ContractCall {
|
|
79
|
-
signature: string;
|
|
80
|
-
function: string;
|
|
81
|
-
args: Array<ContractCallArg>;
|
|
82
|
-
}
|
|
83
|
-
export interface ContractCallArg {
|
|
84
|
-
name?: string;
|
|
85
|
-
type: string;
|
|
86
|
-
value: any;
|
|
87
|
-
}
|
|
88
|
-
export interface Transaction {
|
|
89
|
-
delegateCall: boolean;
|
|
90
|
-
revertOnError: boolean;
|
|
91
|
-
gasLimit: string;
|
|
92
|
-
target: string;
|
|
93
|
-
value: string;
|
|
94
|
-
data: string;
|
|
95
|
-
call?: ContractCall;
|
|
96
|
-
}
|
|
97
|
-
export interface
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
export interface
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
export interface
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
export interface
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
export interface
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
export interface
|
|
191
|
-
status: boolean;
|
|
192
|
-
friend
|
|
193
|
-
}
|
|
194
|
-
export interface
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
export interface
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
export interface
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
export interface
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
export interface
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
export interface
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
export interface
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
1
|
+
export declare const WebRPCVersion = "v1";
|
|
2
|
+
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
+
export declare const WebRPCSchemaHash = "db6421c0a8d94ad6eafa79249ba7692c55059b39";
|
|
4
|
+
export declare enum SortOrder {
|
|
5
|
+
DESC = "DESC",
|
|
6
|
+
ASC = "ASC"
|
|
7
|
+
}
|
|
8
|
+
export interface Version {
|
|
9
|
+
webrpcVersion: string;
|
|
10
|
+
schemaVersion: string;
|
|
11
|
+
schemaHash: string;
|
|
12
|
+
appVersion: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RuntimeStatus {
|
|
15
|
+
healthOK: boolean;
|
|
16
|
+
startTime: string;
|
|
17
|
+
uptime: number;
|
|
18
|
+
ver: string;
|
|
19
|
+
branch: string;
|
|
20
|
+
commitHash: string;
|
|
21
|
+
checks: RuntimeChecks;
|
|
22
|
+
}
|
|
23
|
+
export interface RuntimeChecks {
|
|
24
|
+
}
|
|
25
|
+
export interface SequenceContext {
|
|
26
|
+
factory: string;
|
|
27
|
+
mainModule: string;
|
|
28
|
+
mainModuleUpgradable: string;
|
|
29
|
+
guestModule: string;
|
|
30
|
+
utils: string;
|
|
31
|
+
}
|
|
32
|
+
export interface User {
|
|
33
|
+
address: string;
|
|
34
|
+
username: string;
|
|
35
|
+
avatar: string;
|
|
36
|
+
bio: string;
|
|
37
|
+
location: string;
|
|
38
|
+
locale: string;
|
|
39
|
+
backup?: boolean;
|
|
40
|
+
backupConfirmed?: boolean;
|
|
41
|
+
maxInvites?: number;
|
|
42
|
+
updatedAt?: string;
|
|
43
|
+
createdAt?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface WalletBackup {
|
|
46
|
+
accountAddress: string;
|
|
47
|
+
secretHash: string;
|
|
48
|
+
encryptedWallet: string;
|
|
49
|
+
userConfirmed: boolean;
|
|
50
|
+
updatedAt?: string;
|
|
51
|
+
createdAt?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface Friend {
|
|
54
|
+
id: number;
|
|
55
|
+
userAddress: string;
|
|
56
|
+
friendAddress: string;
|
|
57
|
+
nickname: string;
|
|
58
|
+
user?: User;
|
|
59
|
+
createdAt?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface InviteCode {
|
|
62
|
+
usesLeft: number;
|
|
63
|
+
ownerAccount: string;
|
|
64
|
+
email?: string;
|
|
65
|
+
url: string;
|
|
66
|
+
createdAt?: string;
|
|
67
|
+
expiresAt?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface InviteCodeAccount {
|
|
70
|
+
claimedByUserAddress: string;
|
|
71
|
+
claimedAt?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface InviteInfo {
|
|
74
|
+
expiryInHours: number;
|
|
75
|
+
max: number;
|
|
76
|
+
invites: Array<InviteCode>;
|
|
77
|
+
}
|
|
78
|
+
export interface ContractCall {
|
|
79
|
+
signature: string;
|
|
80
|
+
function: string;
|
|
81
|
+
args: Array<ContractCallArg>;
|
|
82
|
+
}
|
|
83
|
+
export interface ContractCallArg {
|
|
84
|
+
name?: string;
|
|
85
|
+
type: string;
|
|
86
|
+
value: any;
|
|
87
|
+
}
|
|
88
|
+
export interface Transaction {
|
|
89
|
+
delegateCall: boolean;
|
|
90
|
+
revertOnError: boolean;
|
|
91
|
+
gasLimit: string;
|
|
92
|
+
target: string;
|
|
93
|
+
value: string;
|
|
94
|
+
data: string;
|
|
95
|
+
call?: ContractCall;
|
|
96
|
+
}
|
|
97
|
+
export interface UserStorage {
|
|
98
|
+
userAddress: string;
|
|
99
|
+
key: string;
|
|
100
|
+
value: any;
|
|
101
|
+
}
|
|
102
|
+
export interface Page {
|
|
103
|
+
pageSize?: number;
|
|
104
|
+
page?: number;
|
|
105
|
+
totalRecords?: number;
|
|
106
|
+
column?: string;
|
|
107
|
+
before?: any;
|
|
108
|
+
after?: any;
|
|
109
|
+
sort?: Array<SortBy>;
|
|
110
|
+
}
|
|
111
|
+
export interface SortBy {
|
|
112
|
+
column: string;
|
|
113
|
+
order: SortOrder;
|
|
114
|
+
}
|
|
115
|
+
export interface API {
|
|
116
|
+
ping(headers?: object): Promise<PingReturn>;
|
|
117
|
+
version(headers?: object): Promise<VersionReturn>;
|
|
118
|
+
runtimeStatus(headers?: object): Promise<RuntimeStatusReturn>;
|
|
119
|
+
getSequenceContext(headers?: object): Promise<GetSequenceContextReturn>;
|
|
120
|
+
getAuthToken(args: GetAuthTokenArgs, headers?: object): Promise<GetAuthTokenReturn>;
|
|
121
|
+
sendPasswordlessLink(args: SendPasswordlessLinkArgs, headers?: object): Promise<SendPasswordlessLinkReturn>;
|
|
122
|
+
friendList(args: FriendListArgs, headers?: object): Promise<FriendListReturn>;
|
|
123
|
+
getFriendByAddress(args: GetFriendByAddressArgs, headers?: object): Promise<GetFriendByAddressReturn>;
|
|
124
|
+
searchFriends(args: SearchFriendsArgs, headers?: object): Promise<SearchFriendsReturn>;
|
|
125
|
+
addFriend(args: AddFriendArgs, headers?: object): Promise<AddFriendReturn>;
|
|
126
|
+
updateFriendNickname(args: UpdateFriendNicknameArgs, headers?: object): Promise<UpdateFriendNicknameReturn>;
|
|
127
|
+
removeFriend(args: RemoveFriendArgs, headers?: object): Promise<RemoveFriendReturn>;
|
|
128
|
+
contractCall(args: ContractCallArgs, headers?: object): Promise<ContractCallReturn>;
|
|
129
|
+
decodeContractCall(args: DecodeContractCallArgs, headers?: object): Promise<DecodeContractCallReturn>;
|
|
130
|
+
lookupContractCallSelectors(args: LookupContractCallSelectorsArgs, headers?: object): Promise<LookupContractCallSelectorsReturn>;
|
|
131
|
+
userStorageFetch(args: UserStorageFetchArgs, headers?: object): Promise<UserStorageFetchReturn>;
|
|
132
|
+
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>;
|
|
133
|
+
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>;
|
|
134
|
+
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
135
|
+
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
136
|
+
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
137
|
+
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
138
|
+
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
139
|
+
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
140
|
+
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
|
|
141
|
+
}
|
|
142
|
+
export interface PingArgs {
|
|
143
|
+
}
|
|
144
|
+
export interface PingReturn {
|
|
145
|
+
status: boolean;
|
|
146
|
+
}
|
|
147
|
+
export interface VersionArgs {
|
|
148
|
+
}
|
|
149
|
+
export interface VersionReturn {
|
|
150
|
+
version: Version;
|
|
151
|
+
}
|
|
152
|
+
export interface RuntimeStatusArgs {
|
|
153
|
+
}
|
|
154
|
+
export interface RuntimeStatusReturn {
|
|
155
|
+
status: RuntimeStatus;
|
|
156
|
+
}
|
|
157
|
+
export interface GetSequenceContextArgs {
|
|
158
|
+
}
|
|
159
|
+
export interface GetSequenceContextReturn {
|
|
160
|
+
data: SequenceContext;
|
|
161
|
+
}
|
|
162
|
+
export interface GetAuthTokenArgs {
|
|
163
|
+
ewtString: string;
|
|
164
|
+
testnetMode?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface GetAuthTokenReturn {
|
|
167
|
+
status: boolean;
|
|
168
|
+
jwtToken: string;
|
|
169
|
+
address: string;
|
|
170
|
+
user?: User;
|
|
171
|
+
}
|
|
172
|
+
export interface SendPasswordlessLinkArgs {
|
|
173
|
+
email: string;
|
|
174
|
+
redirectUri: string;
|
|
175
|
+
intent: string;
|
|
176
|
+
}
|
|
177
|
+
export interface SendPasswordlessLinkReturn {
|
|
178
|
+
status: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface FriendListArgs {
|
|
181
|
+
page?: Page;
|
|
182
|
+
}
|
|
183
|
+
export interface FriendListReturn {
|
|
184
|
+
page: Page;
|
|
185
|
+
friends: Array<Friend>;
|
|
186
|
+
}
|
|
187
|
+
export interface GetFriendByAddressArgs {
|
|
188
|
+
friendAddress: string;
|
|
189
|
+
}
|
|
190
|
+
export interface GetFriendByAddressReturn {
|
|
191
|
+
status: boolean;
|
|
192
|
+
friend: Friend;
|
|
193
|
+
}
|
|
194
|
+
export interface SearchFriendsArgs {
|
|
195
|
+
filterUsername: string;
|
|
196
|
+
}
|
|
197
|
+
export interface SearchFriendsReturn {
|
|
198
|
+
friends: Array<Friend>;
|
|
199
|
+
}
|
|
200
|
+
export interface AddFriendArgs {
|
|
201
|
+
friendAddress: string;
|
|
202
|
+
optionalNickname?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface AddFriendReturn {
|
|
205
|
+
status: boolean;
|
|
206
|
+
friend?: Friend;
|
|
207
|
+
}
|
|
208
|
+
export interface UpdateFriendNicknameArgs {
|
|
209
|
+
friendAddress: string;
|
|
210
|
+
nickname: string;
|
|
211
|
+
}
|
|
212
|
+
export interface UpdateFriendNicknameReturn {
|
|
213
|
+
status: boolean;
|
|
214
|
+
friend?: Friend;
|
|
215
|
+
}
|
|
216
|
+
export interface RemoveFriendArgs {
|
|
217
|
+
friendAddress: string;
|
|
218
|
+
}
|
|
219
|
+
export interface RemoveFriendReturn {
|
|
220
|
+
status: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface ContractCallArgs {
|
|
223
|
+
chainID: string;
|
|
224
|
+
contract: string;
|
|
225
|
+
inputExpr: string;
|
|
226
|
+
outputExpr: string;
|
|
227
|
+
args: Array<string>;
|
|
228
|
+
}
|
|
229
|
+
export interface ContractCallReturn {
|
|
230
|
+
returns: Array<string>;
|
|
231
|
+
}
|
|
232
|
+
export interface DecodeContractCallArgs {
|
|
233
|
+
callData: string;
|
|
234
|
+
}
|
|
235
|
+
export interface DecodeContractCallReturn {
|
|
236
|
+
call: ContractCall;
|
|
237
|
+
}
|
|
238
|
+
export interface LookupContractCallSelectorsArgs {
|
|
239
|
+
selectors: Array<string>;
|
|
240
|
+
}
|
|
241
|
+
export interface LookupContractCallSelectorsReturn {
|
|
242
|
+
signatures: Array<Array<string>>;
|
|
243
|
+
}
|
|
244
|
+
export interface UserStorageFetchArgs {
|
|
245
|
+
key: string;
|
|
246
|
+
}
|
|
247
|
+
export interface UserStorageFetchReturn {
|
|
248
|
+
object: any;
|
|
249
|
+
}
|
|
250
|
+
export interface UserStorageSaveArgs {
|
|
251
|
+
key: string;
|
|
252
|
+
object: any;
|
|
253
|
+
}
|
|
254
|
+
export interface UserStorageSaveReturn {
|
|
255
|
+
ok: boolean;
|
|
256
|
+
}
|
|
257
|
+
export interface UserStorageDeleteArgs {
|
|
258
|
+
key: string;
|
|
259
|
+
}
|
|
260
|
+
export interface UserStorageDeleteReturn {
|
|
261
|
+
ok: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface UserStorageFetchAllArgs {
|
|
264
|
+
keys?: Array<string>;
|
|
265
|
+
}
|
|
266
|
+
export interface UserStorageFetchAllReturn {
|
|
267
|
+
objects: {
|
|
268
|
+
[key: string]: any;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export interface GetMoonpayLinkArgs {
|
|
272
|
+
url: string;
|
|
273
|
+
}
|
|
274
|
+
export interface GetMoonpayLinkReturn {
|
|
275
|
+
signedUrl: string;
|
|
276
|
+
}
|
|
277
|
+
export interface IsUsingGoogleMailArgs {
|
|
278
|
+
domain: string;
|
|
279
|
+
}
|
|
280
|
+
export interface IsUsingGoogleMailReturn {
|
|
281
|
+
yes: boolean;
|
|
282
|
+
}
|
|
283
|
+
export interface GetInviteInfoArgs {
|
|
284
|
+
}
|
|
285
|
+
export interface GetInviteInfoReturn {
|
|
286
|
+
inviteInfo: InviteInfo;
|
|
287
|
+
}
|
|
288
|
+
export interface IsValidAccessCodeArgs {
|
|
289
|
+
accessCode: string;
|
|
290
|
+
}
|
|
291
|
+
export interface IsValidAccessCodeReturn {
|
|
292
|
+
status: boolean;
|
|
293
|
+
}
|
|
294
|
+
export interface InternalClaimAccessCodeArgs {
|
|
295
|
+
address: string;
|
|
296
|
+
accessCode: string;
|
|
297
|
+
}
|
|
298
|
+
export interface InternalClaimAccessCodeReturn {
|
|
299
|
+
status: boolean;
|
|
300
|
+
}
|
|
301
|
+
export interface WalletRecoverArgs {
|
|
302
|
+
username: string;
|
|
303
|
+
secretHash: string;
|
|
304
|
+
}
|
|
305
|
+
export interface WalletRecoverReturn {
|
|
306
|
+
encryptedWallet: string;
|
|
307
|
+
}
|
|
308
|
+
export declare class API implements API {
|
|
309
|
+
protected hostname: string;
|
|
310
|
+
protected fetch: Fetch;
|
|
311
|
+
protected path: string;
|
|
312
|
+
constructor(hostname: string, fetch: Fetch);
|
|
313
|
+
private url;
|
|
314
|
+
ping: (headers?: object | undefined) => Promise<PingReturn>;
|
|
315
|
+
version: (headers?: object | undefined) => Promise<VersionReturn>;
|
|
316
|
+
runtimeStatus: (headers?: object | undefined) => Promise<RuntimeStatusReturn>;
|
|
317
|
+
getSequenceContext: (headers?: object | undefined) => Promise<GetSequenceContextReturn>;
|
|
318
|
+
getAuthToken: (args: GetAuthTokenArgs, headers?: object | undefined) => Promise<GetAuthTokenReturn>;
|
|
319
|
+
sendPasswordlessLink: (args: SendPasswordlessLinkArgs, headers?: object | undefined) => Promise<SendPasswordlessLinkReturn>;
|
|
320
|
+
friendList: (args: FriendListArgs, headers?: object | undefined) => Promise<FriendListReturn>;
|
|
321
|
+
getFriendByAddress: (args: GetFriendByAddressArgs, headers?: object | undefined) => Promise<GetFriendByAddressReturn>;
|
|
322
|
+
searchFriends: (args: SearchFriendsArgs, headers?: object | undefined) => Promise<SearchFriendsReturn>;
|
|
323
|
+
addFriend: (args: AddFriendArgs, headers?: object | undefined) => Promise<AddFriendReturn>;
|
|
324
|
+
updateFriendNickname: (args: UpdateFriendNicknameArgs, headers?: object | undefined) => Promise<UpdateFriendNicknameReturn>;
|
|
325
|
+
removeFriend: (args: RemoveFriendArgs, headers?: object | undefined) => Promise<RemoveFriendReturn>;
|
|
326
|
+
contractCall: (args: ContractCallArgs, headers?: object | undefined) => Promise<ContractCallReturn>;
|
|
327
|
+
decodeContractCall: (args: DecodeContractCallArgs, headers?: object | undefined) => Promise<DecodeContractCallReturn>;
|
|
328
|
+
lookupContractCallSelectors: (args: LookupContractCallSelectorsArgs, headers?: object | undefined) => Promise<LookupContractCallSelectorsReturn>;
|
|
329
|
+
userStorageFetch: (args: UserStorageFetchArgs, headers?: object | undefined) => Promise<UserStorageFetchReturn>;
|
|
330
|
+
userStorageSave: (args: UserStorageSaveArgs, headers?: object | undefined) => Promise<UserStorageSaveReturn>;
|
|
331
|
+
userStorageDelete: (args: UserStorageDeleteArgs, headers?: object | undefined) => Promise<UserStorageDeleteReturn>;
|
|
332
|
+
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
333
|
+
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
334
|
+
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
335
|
+
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
336
|
+
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
337
|
+
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
|
338
|
+
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
|
|
339
|
+
}
|
|
340
|
+
export interface WebRPCError extends Error {
|
|
341
|
+
code: string;
|
|
342
|
+
msg: string;
|
|
343
|
+
status: number;
|
|
344
|
+
}
|
|
345
|
+
export declare type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './api.gen';
|
|
2
|
-
import { API as BaseSequenceAPI } from './api.gen';
|
|
3
|
-
export declare class SequenceAPIClient extends BaseSequenceAPI {
|
|
4
|
-
jwtAuth?: string | undefined;
|
|
5
|
-
constructor(hostname: string, jwtAuth?: string | undefined);
|
|
6
|
-
_fetch: (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
7
|
-
}
|
|
1
|
+
export * from './api.gen';
|
|
2
|
+
import { API as BaseSequenceAPI } from './api.gen';
|
|
3
|
+
export declare class SequenceAPIClient extends BaseSequenceAPI {
|
|
4
|
+
jwtAuth?: string | undefined;
|
|
5
|
+
constructor(hostname: string, jwtAuth?: string | undefined);
|
|
6
|
+
_fetch: (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/api",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20220425195445",
|
|
4
4
|
"description": "api sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"cross-fetch": "^3.
|
|
16
|
+
"cross-fetch": "^3.1.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {},
|
|
19
19
|
"devDependencies": {},
|