@bitcredit/bcr-ebill-wasm 0.5.0 → 0.5.1-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/index.d.ts +878 -881
- package/index.js +1650 -1620
- package/index_bg.wasm +0 -0
- package/package.json +5 -1
package/index.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
job_runner_check_interval_seconds: number;
|
|
12
|
-
transport_initial_subscription_delay_seconds: number | undefined;
|
|
13
|
-
default_mint_url: string;
|
|
14
|
-
default_mint_node_id: string;
|
|
15
|
-
num_confirmations_for_payment: number;
|
|
16
|
-
dev_mode: boolean;
|
|
17
|
-
disable_mandatory_email_confirmations: boolean;
|
|
18
|
-
default_court_url: string;
|
|
3
|
+
/**
|
|
4
|
+
* Response for a private key seeed backup
|
|
5
|
+
*/
|
|
6
|
+
export interface SeedPhrase {
|
|
7
|
+
/**
|
|
8
|
+
* The seed phrase of the current private key
|
|
9
|
+
*/
|
|
10
|
+
seed_phrase: string;
|
|
19
11
|
}
|
|
20
12
|
|
|
21
13
|
/**
|
|
@@ -26,55 +18,23 @@ export interface Config {
|
|
|
26
18
|
*/
|
|
27
19
|
export type TSResult<T> = { Success: T } | { Error: JsErrorData };
|
|
28
20
|
|
|
29
|
-
export interface
|
|
30
|
-
|
|
31
|
-
active: boolean;
|
|
21
|
+
export interface AcceptBitcreditBillPayload {
|
|
22
|
+
bill_id: string;
|
|
32
23
|
}
|
|
33
24
|
|
|
34
|
-
export interface
|
|
25
|
+
export interface AcceptCompanyInvitePayload {
|
|
35
26
|
id: string;
|
|
36
|
-
|
|
37
|
-
notification_type: NotificationTypeWeb;
|
|
38
|
-
reference_id: string | undefined;
|
|
39
|
-
description: string;
|
|
40
|
-
datetime: string;
|
|
41
|
-
active: boolean;
|
|
42
|
-
payload: any | undefined;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type NotificationTypeWeb = "General" | "Company" | "Bill" | "Contact";
|
|
46
|
-
|
|
47
|
-
export interface CurrencyResponse {
|
|
48
|
-
code: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface CurrenciesResponse {
|
|
52
|
-
currencies: CurrencyResponse[];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface OptionalPostalAddressWeb {
|
|
56
|
-
country: string | undefined;
|
|
57
|
-
city: string | undefined;
|
|
58
|
-
zip: string | undefined;
|
|
59
|
-
address: string | undefined;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface OverviewResponse {
|
|
63
|
-
currency: string;
|
|
64
|
-
balances: OverviewBalanceResponse;
|
|
27
|
+
email: string;
|
|
65
28
|
}
|
|
66
29
|
|
|
67
|
-
export interface
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
address: string;
|
|
30
|
+
export interface ApproveContactSharePayload {
|
|
31
|
+
pending_share_id: string;
|
|
32
|
+
add_to_contacts: boolean;
|
|
33
|
+
share_back: boolean;
|
|
72
34
|
}
|
|
73
35
|
|
|
74
|
-
export interface
|
|
75
|
-
|
|
76
|
-
currency: string;
|
|
77
|
-
item_types: GeneralSearchFilterItemTypeWeb[];
|
|
36
|
+
export interface BalanceResponse {
|
|
37
|
+
sum: string;
|
|
78
38
|
}
|
|
79
39
|
|
|
80
40
|
export interface Base64FileResponse {
|
|
@@ -83,111 +43,137 @@ export interface Base64FileResponse {
|
|
|
83
43
|
content_type: string;
|
|
84
44
|
}
|
|
85
45
|
|
|
86
|
-
export interface
|
|
87
|
-
|
|
46
|
+
export interface BillAcceptanceStatusWeb {
|
|
47
|
+
time_of_request_to_accept: number | undefined;
|
|
48
|
+
requested_to_accept: boolean;
|
|
49
|
+
accepted: boolean;
|
|
50
|
+
request_to_accept_timed_out: boolean;
|
|
51
|
+
rejected_to_accept: boolean;
|
|
52
|
+
acceptance_deadline_timestamp: number | undefined;
|
|
88
53
|
}
|
|
89
54
|
|
|
90
|
-
export interface
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
content_type: string;
|
|
55
|
+
export interface BillAnonParticipantWeb {
|
|
56
|
+
node_id: string;
|
|
57
|
+
nostr_relays: string[];
|
|
94
58
|
}
|
|
95
59
|
|
|
96
|
-
export interface
|
|
97
|
-
|
|
98
|
-
contacts: ContactWeb[];
|
|
99
|
-
companies: CompanyWeb[];
|
|
60
|
+
export interface BillCallerActionsWeb {
|
|
61
|
+
bill_actions: BillCallerBillActionWeb[];
|
|
100
62
|
}
|
|
101
63
|
|
|
102
|
-
export interface
|
|
103
|
-
|
|
104
|
-
extension: string | undefined;
|
|
105
|
-
name: string;
|
|
64
|
+
export interface BillCombinedBitcoinKeyWeb {
|
|
65
|
+
private_descriptor: string;
|
|
106
66
|
}
|
|
107
67
|
|
|
108
|
-
export interface
|
|
109
|
-
|
|
110
|
-
|
|
68
|
+
export interface BillDataWeb {
|
|
69
|
+
time_of_drawing: number;
|
|
70
|
+
issue_date: string;
|
|
71
|
+
time_of_maturity: number;
|
|
72
|
+
maturity_date: string;
|
|
73
|
+
country_of_issuing: string;
|
|
74
|
+
city_of_issuing: string;
|
|
75
|
+
country_of_payment: string;
|
|
76
|
+
city_of_payment: string;
|
|
77
|
+
currency: string;
|
|
78
|
+
sum: string;
|
|
79
|
+
files: FileWeb[];
|
|
80
|
+
active_notification: NotificationWeb | undefined;
|
|
111
81
|
}
|
|
112
82
|
|
|
113
|
-
export interface
|
|
114
|
-
|
|
83
|
+
export interface BillHistoryBlockWeb {
|
|
84
|
+
block_id: number;
|
|
85
|
+
block_type: BillOpCodeWeb;
|
|
86
|
+
pay_to_the_order_of: LightBillParticipantWeb | undefined;
|
|
87
|
+
request_deadline: number | undefined;
|
|
88
|
+
signed: LightSignedByWeb;
|
|
89
|
+
signing_timestamp: number;
|
|
90
|
+
signing_address: PostalAddressWeb | undefined;
|
|
115
91
|
}
|
|
116
92
|
|
|
117
|
-
export interface
|
|
118
|
-
|
|
119
|
-
city: string;
|
|
120
|
-
zip: string | undefined;
|
|
121
|
-
address: string;
|
|
93
|
+
export interface BillHistoryResponse {
|
|
94
|
+
blocks: BillHistoryBlockWeb[];
|
|
122
95
|
}
|
|
123
96
|
|
|
124
|
-
export interface
|
|
125
|
-
|
|
126
|
-
city: string | undefined;
|
|
127
|
-
zip: string | undefined;
|
|
128
|
-
address: string | undefined;
|
|
97
|
+
export interface BillIdResponse {
|
|
98
|
+
id: string;
|
|
129
99
|
}
|
|
130
100
|
|
|
131
|
-
export interface
|
|
101
|
+
export interface BillIdentParticipantWeb {
|
|
102
|
+
t: ContactTypeWeb;
|
|
103
|
+
node_id: string;
|
|
132
104
|
name: string;
|
|
133
|
-
|
|
134
|
-
|
|
105
|
+
postal_address: PostalAddressWeb;
|
|
106
|
+
email: string | undefined;
|
|
107
|
+
nostr_relays: string[];
|
|
135
108
|
}
|
|
136
109
|
|
|
137
|
-
export interface
|
|
138
|
-
|
|
139
|
-
reference_id: string | undefined;
|
|
140
|
-
notification_type: string | undefined;
|
|
141
|
-
node_ids: string[] | undefined;
|
|
142
|
-
limit: number | undefined;
|
|
143
|
-
offset: number | undefined;
|
|
110
|
+
export interface BillMintStatusWeb {
|
|
111
|
+
has_mint_requests: boolean;
|
|
144
112
|
}
|
|
145
113
|
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
114
|
+
export interface BillParticipantsWeb {
|
|
115
|
+
drawee: BillIdentParticipantWeb;
|
|
116
|
+
drawer: BillIdentParticipantWeb;
|
|
117
|
+
payee: BillParticipantWeb;
|
|
118
|
+
endorsee: BillParticipantWeb | undefined;
|
|
119
|
+
endorsements_count: number;
|
|
120
|
+
all_participant_node_ids: string[];
|
|
150
121
|
}
|
|
151
122
|
|
|
152
|
-
export interface
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
123
|
+
export interface BillPaymentStatusWeb {
|
|
124
|
+
time_of_request_to_pay: number | undefined;
|
|
125
|
+
requested_to_pay: boolean;
|
|
126
|
+
paid: boolean;
|
|
127
|
+
request_to_pay_timed_out: boolean;
|
|
128
|
+
rejected_to_pay: boolean;
|
|
129
|
+
payment_deadline_timestamp: number | undefined;
|
|
156
130
|
}
|
|
157
131
|
|
|
158
|
-
export interface
|
|
159
|
-
|
|
132
|
+
export interface BillRecourseStatusWeb {
|
|
133
|
+
time_of_last_request_to_recourse: number | undefined;
|
|
134
|
+
recoursed: boolean;
|
|
135
|
+
requested_to_recourse: boolean;
|
|
136
|
+
request_to_recourse_timed_out: boolean;
|
|
137
|
+
rejected_request_to_recourse: boolean;
|
|
138
|
+
recourse_deadline_timestamp: number | undefined;
|
|
160
139
|
}
|
|
161
140
|
|
|
162
|
-
export
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
141
|
+
export interface BillSellStatusWeb {
|
|
142
|
+
time_of_last_offer_to_sell: number | undefined;
|
|
143
|
+
sold: boolean;
|
|
144
|
+
offered_to_sell: boolean;
|
|
145
|
+
offer_to_sell_timed_out: boolean;
|
|
146
|
+
rejected_offer_to_sell: boolean;
|
|
147
|
+
buying_deadline_timestamp: number | undefined;
|
|
168
148
|
}
|
|
169
149
|
|
|
170
|
-
export
|
|
150
|
+
export interface BillStatusWeb {
|
|
151
|
+
acceptance: BillAcceptanceStatusWeb;
|
|
152
|
+
payment: BillPaymentStatusWeb;
|
|
153
|
+
sell: BillSellStatusWeb;
|
|
154
|
+
recourse: BillRecourseStatusWeb;
|
|
155
|
+
mint: BillMintStatusWeb;
|
|
156
|
+
redeemed_funds_available: boolean;
|
|
157
|
+
has_requested_funds: boolean;
|
|
158
|
+
last_block_time: number;
|
|
159
|
+
}
|
|
171
160
|
|
|
172
|
-
export interface
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
request_deadline: number | undefined;
|
|
177
|
-
signed: LightSignedByWeb;
|
|
178
|
-
signing_timestamp: number;
|
|
179
|
-
signing_address: PostalAddressWeb | undefined;
|
|
161
|
+
export interface BillWaitingForPaymentStateWeb {
|
|
162
|
+
payer: BillIdentParticipantWeb;
|
|
163
|
+
payee: BillParticipantWeb;
|
|
164
|
+
payment_data: BillWaitingStatePaymentDataWeb;
|
|
180
165
|
}
|
|
181
166
|
|
|
182
|
-
export interface
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
signing_address: PostalAddressWeb | undefined;
|
|
167
|
+
export interface BillWaitingForRecourseStateWeb {
|
|
168
|
+
recourser: BillParticipantWeb;
|
|
169
|
+
recoursee: BillIdentParticipantWeb;
|
|
170
|
+
payment_data: BillWaitingStatePaymentDataWeb;
|
|
187
171
|
}
|
|
188
172
|
|
|
189
|
-
export interface
|
|
190
|
-
|
|
173
|
+
export interface BillWaitingForSellStateWeb {
|
|
174
|
+
buyer: BillParticipantWeb;
|
|
175
|
+
seller: BillParticipantWeb;
|
|
176
|
+
payment_data: BillWaitingStatePaymentDataWeb;
|
|
191
177
|
}
|
|
192
178
|
|
|
193
179
|
export interface BillWaitingStatePaymentDataWeb {
|
|
@@ -203,318 +189,309 @@ export interface BillWaitingStatePaymentDataWeb {
|
|
|
203
189
|
payment_deadline: number | undefined;
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
export interface BillAcceptanceStatusWeb {
|
|
207
|
-
time_of_request_to_accept: number | undefined;
|
|
208
|
-
requested_to_accept: boolean;
|
|
209
|
-
accepted: boolean;
|
|
210
|
-
request_to_accept_timed_out: boolean;
|
|
211
|
-
rejected_to_accept: boolean;
|
|
212
|
-
acceptance_deadline_timestamp: number | undefined;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
192
|
export interface BillsResponse {
|
|
216
193
|
bills: BitcreditBillWeb[];
|
|
217
194
|
}
|
|
218
195
|
|
|
219
|
-
export interface
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
export interface LightSignedByWeb {
|
|
224
|
-
data: LightBillParticipantWeb;
|
|
225
|
-
signatory: LightBillIdentParticipantWeb | undefined;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface RequestToPayBitcreditBillPayload {
|
|
229
|
-
bill_id: string;
|
|
196
|
+
export interface BillsSearchFilter {
|
|
197
|
+
search_term: string | undefined;
|
|
198
|
+
date_range: DateRange | undefined;
|
|
199
|
+
role: BillsFilterRoleWeb;
|
|
230
200
|
currency: string;
|
|
231
|
-
payment_deadline: string;
|
|
232
201
|
}
|
|
233
202
|
|
|
234
|
-
export
|
|
235
|
-
|
|
236
|
-
export interface ResyncBillPayload {
|
|
237
|
-
bill_id: string;
|
|
203
|
+
export interface BillsSearchFilterPayload {
|
|
204
|
+
filter: BillsSearchFilter;
|
|
238
205
|
}
|
|
239
206
|
|
|
240
|
-
export interface
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
207
|
+
export interface BinaryFileResponse {
|
|
208
|
+
data: number[];
|
|
209
|
+
name: string;
|
|
210
|
+
content_type: string;
|
|
244
211
|
}
|
|
245
212
|
|
|
246
|
-
export
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
213
|
+
export interface BitcreditBillPayload {
|
|
214
|
+
t: number;
|
|
215
|
+
country_of_issuing: string;
|
|
216
|
+
city_of_issuing: string;
|
|
217
|
+
issue_date: string;
|
|
218
|
+
maturity_date: string;
|
|
219
|
+
payee: string;
|
|
220
|
+
drawee: string;
|
|
253
221
|
sum: string;
|
|
254
|
-
link_to_pay: string;
|
|
255
|
-
address_to_pay: string;
|
|
256
|
-
private_descriptor_to_spend: string;
|
|
257
|
-
mempool_link_for_address_to_pay: string;
|
|
258
|
-
status: PastPaymentStatusWeb;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
|
|
262
|
-
|
|
263
|
-
export interface ShareBillWithCourtPayload {
|
|
264
|
-
bill_id: string;
|
|
265
|
-
court_node_id: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface RequestRecourseForAcceptancePayload {
|
|
269
|
-
bill_id: string;
|
|
270
|
-
recoursee: string;
|
|
271
|
-
recourse_deadline: string;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface RejectActionBillPayload {
|
|
275
|
-
bill_id: string;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export interface PastPaymentDataPaymentWeb {
|
|
279
|
-
time_of_request: number;
|
|
280
|
-
payer: BillIdentParticipantWeb;
|
|
281
|
-
payee: BillParticipantWeb;
|
|
282
222
|
currency: string;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
private_descriptor_to_spend: string;
|
|
287
|
-
mempool_link_for_address_to_pay: string;
|
|
288
|
-
status: PastPaymentStatusWeb;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export interface EndorseBitcreditBillPayload {
|
|
292
|
-
endorsee: string;
|
|
293
|
-
bill_id: string;
|
|
223
|
+
country_of_payment: string;
|
|
224
|
+
city_of_payment: string;
|
|
225
|
+
file_upload_ids: string[];
|
|
294
226
|
}
|
|
295
227
|
|
|
296
|
-
export interface
|
|
297
|
-
|
|
228
|
+
export interface BitcreditBillWeb {
|
|
229
|
+
id: string;
|
|
230
|
+
participants: BillParticipantsWeb;
|
|
231
|
+
data: BillDataWeb;
|
|
232
|
+
status: BillStatusWeb;
|
|
233
|
+
current_waiting_state: BillCurrentWaitingStateWeb | undefined;
|
|
234
|
+
actions: BillCallerActionsWeb;
|
|
298
235
|
}
|
|
299
236
|
|
|
300
|
-
export interface
|
|
301
|
-
|
|
302
|
-
payee: BillParticipantWeb;
|
|
303
|
-
payment_data: BillWaitingStatePaymentDataWeb;
|
|
237
|
+
export interface ChangeIdentityEmailPayload {
|
|
238
|
+
email: string;
|
|
304
239
|
}
|
|
305
240
|
|
|
306
|
-
export interface
|
|
307
|
-
|
|
241
|
+
export interface ChangeIdentityPayload {
|
|
242
|
+
name: string | undefined;
|
|
243
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
244
|
+
date_of_birth: string | undefined;
|
|
245
|
+
country_of_birth: string | undefined;
|
|
246
|
+
city_of_birth: string | undefined;
|
|
247
|
+
identification_number: string | undefined;
|
|
248
|
+
profile_picture_file_upload_id: string | undefined;
|
|
249
|
+
identity_document_file_upload_id: string | undefined;
|
|
308
250
|
}
|
|
309
251
|
|
|
310
|
-
export interface
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
requested_to_recourse: boolean;
|
|
314
|
-
request_to_recourse_timed_out: boolean;
|
|
315
|
-
rejected_request_to_recourse: boolean;
|
|
316
|
-
recourse_deadline_timestamp: number | undefined;
|
|
252
|
+
export interface ChangeSignatoryEmailPayload {
|
|
253
|
+
id: string;
|
|
254
|
+
email: string;
|
|
317
255
|
}
|
|
318
256
|
|
|
319
|
-
export interface
|
|
320
|
-
|
|
257
|
+
export interface CompaniesResponse {
|
|
258
|
+
companies: CompanyWeb[];
|
|
321
259
|
}
|
|
322
260
|
|
|
323
|
-
export interface
|
|
324
|
-
|
|
325
|
-
issue_date: string;
|
|
326
|
-
time_of_maturity: number;
|
|
327
|
-
maturity_date: string;
|
|
328
|
-
country_of_issuing: string;
|
|
329
|
-
city_of_issuing: string;
|
|
330
|
-
country_of_payment: string;
|
|
331
|
-
city_of_payment: string;
|
|
332
|
-
currency: string;
|
|
333
|
-
sum: string;
|
|
334
|
-
files: FileWeb[];
|
|
335
|
-
active_notification: NotificationWeb | undefined;
|
|
261
|
+
export interface CompanyKeysWeb {
|
|
262
|
+
id: string;
|
|
336
263
|
}
|
|
337
264
|
|
|
338
|
-
export
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
bill_id: string;
|
|
342
|
-
acceptance_deadline: string;
|
|
265
|
+
export interface CompanySignatoryWeb {
|
|
266
|
+
node_id: string;
|
|
267
|
+
status: CompanySignatoryStatusWeb;
|
|
343
268
|
}
|
|
344
269
|
|
|
345
|
-
export interface
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
270
|
+
export interface CompanyWeb {
|
|
271
|
+
id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
country_of_registration: string | undefined;
|
|
274
|
+
city_of_registration: string | undefined;
|
|
275
|
+
postal_address: PostalAddressWeb;
|
|
276
|
+
email: string;
|
|
277
|
+
registration_number: string | undefined;
|
|
278
|
+
registration_date: string | undefined;
|
|
279
|
+
proof_of_registration_file: FileWeb | undefined;
|
|
280
|
+
logo_file: FileWeb | undefined;
|
|
281
|
+
signatories: CompanySignatoryWeb[];
|
|
282
|
+
creation_time: number;
|
|
283
|
+
status: CompanyStatusWeb;
|
|
354
284
|
}
|
|
355
285
|
|
|
356
|
-
export interface
|
|
357
|
-
|
|
358
|
-
|
|
286
|
+
export interface Config {
|
|
287
|
+
log_level: string | undefined;
|
|
288
|
+
app_url: string;
|
|
289
|
+
bitcoin_network: string;
|
|
290
|
+
esplora_base_urls: string[];
|
|
291
|
+
nostr_relays: string[];
|
|
292
|
+
nostr_only_known_contacts: boolean | undefined;
|
|
293
|
+
nostr_max_relays: number | undefined;
|
|
294
|
+
job_runner_initial_delay_seconds: number;
|
|
295
|
+
job_runner_check_interval_seconds: number;
|
|
296
|
+
transport_initial_subscription_delay_seconds: number | undefined;
|
|
297
|
+
default_mint_url: string;
|
|
298
|
+
default_mint_node_id: string;
|
|
299
|
+
num_confirmations_for_payment: number;
|
|
300
|
+
dev_mode: boolean;
|
|
301
|
+
disable_mandatory_email_confirmations: boolean;
|
|
302
|
+
default_court_url: string;
|
|
359
303
|
}
|
|
360
304
|
|
|
361
|
-
export interface
|
|
362
|
-
|
|
363
|
-
date_range: DateRange | undefined;
|
|
364
|
-
role: BillsFilterRoleWeb;
|
|
365
|
-
currency: string;
|
|
305
|
+
export interface ConfirmEmailPayload {
|
|
306
|
+
email: string;
|
|
366
307
|
}
|
|
367
308
|
|
|
368
|
-
export interface
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
recoursee: BillIdentParticipantWeb;
|
|
372
|
-
currency: string;
|
|
373
|
-
sum: string;
|
|
374
|
-
link_to_pay: string;
|
|
375
|
-
address_to_pay: string;
|
|
376
|
-
private_descriptor_to_spend: string;
|
|
377
|
-
mempool_link_for_address_to_pay: string;
|
|
378
|
-
status: PastPaymentStatusWeb;
|
|
309
|
+
export interface ConfirmEmailPayload {
|
|
310
|
+
id: string;
|
|
311
|
+
email: string;
|
|
379
312
|
}
|
|
380
313
|
|
|
381
|
-
export interface
|
|
314
|
+
export interface ContactWeb {
|
|
382
315
|
t: ContactTypeWeb;
|
|
383
316
|
node_id: string;
|
|
384
317
|
name: string;
|
|
385
|
-
postal_address: PostalAddressWeb;
|
|
386
318
|
email: string | undefined;
|
|
319
|
+
postal_address: PostalAddressWeb | undefined;
|
|
320
|
+
date_of_birth_or_registration: string;
|
|
321
|
+
country_of_birth_or_registration: string | undefined;
|
|
322
|
+
city_of_birth_or_registration: string | undefined;
|
|
323
|
+
identification_number: string | undefined;
|
|
324
|
+
avatar_file: FileWeb | undefined;
|
|
325
|
+
proof_document_file: FileWeb | undefined;
|
|
387
326
|
nostr_relays: string[];
|
|
327
|
+
is_logical: boolean;
|
|
388
328
|
}
|
|
389
329
|
|
|
390
|
-
export interface
|
|
391
|
-
|
|
330
|
+
export interface ContactsResponse {
|
|
331
|
+
contacts: ContactWeb[];
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export interface CreateCompanyPayload {
|
|
335
|
+
id: string;
|
|
392
336
|
name: string;
|
|
393
|
-
|
|
394
|
-
|
|
337
|
+
country_of_registration: string | undefined;
|
|
338
|
+
city_of_registration: string | undefined;
|
|
339
|
+
postal_address: CreatePostalAddressWeb;
|
|
340
|
+
email: string;
|
|
341
|
+
registration_number: string | undefined;
|
|
342
|
+
registration_date: string | undefined;
|
|
343
|
+
proof_of_registration_file_upload_id: string | undefined;
|
|
344
|
+
logo_file_upload_id: string | undefined;
|
|
345
|
+
creator_email: string;
|
|
395
346
|
}
|
|
396
347
|
|
|
397
|
-
export interface
|
|
398
|
-
|
|
348
|
+
export interface CreateOptionalPostalAddressWeb {
|
|
349
|
+
country: string | undefined;
|
|
350
|
+
city: string | undefined;
|
|
351
|
+
zip: string | undefined;
|
|
352
|
+
address: string | undefined;
|
|
399
353
|
}
|
|
400
354
|
|
|
401
|
-
export interface
|
|
402
|
-
|
|
355
|
+
export interface CreatePostalAddressWeb {
|
|
356
|
+
country: string;
|
|
357
|
+
city: string;
|
|
358
|
+
zip: string | undefined;
|
|
359
|
+
address: string;
|
|
403
360
|
}
|
|
404
361
|
|
|
405
|
-
export interface
|
|
406
|
-
|
|
407
|
-
bill_id: string;
|
|
408
|
-
sum: string;
|
|
409
|
-
currency: string;
|
|
410
|
-
buying_deadline: string;
|
|
362
|
+
export interface CurrenciesResponse {
|
|
363
|
+
currencies: CurrencyResponse[];
|
|
411
364
|
}
|
|
412
365
|
|
|
413
|
-
export interface
|
|
414
|
-
|
|
415
|
-
drawer: BillIdentParticipantWeb;
|
|
416
|
-
payee: BillParticipantWeb;
|
|
417
|
-
endorsee: BillParticipantWeb | undefined;
|
|
418
|
-
endorsements_count: number;
|
|
419
|
-
all_participant_node_ids: string[];
|
|
366
|
+
export interface CurrencyResponse {
|
|
367
|
+
code: string;
|
|
420
368
|
}
|
|
421
369
|
|
|
422
|
-
export interface
|
|
370
|
+
export interface DateRange {
|
|
371
|
+
from: string;
|
|
372
|
+
to: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface EditCompanyPayload {
|
|
423
376
|
id: string;
|
|
377
|
+
name: string | undefined;
|
|
378
|
+
email: string | undefined;
|
|
379
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
380
|
+
country_of_registration: string | undefined;
|
|
381
|
+
city_of_registration: string | undefined;
|
|
382
|
+
registration_number: string | undefined;
|
|
383
|
+
registration_date: string | undefined;
|
|
384
|
+
logo_file_upload_id: string | undefined;
|
|
385
|
+
proof_of_registration_file_upload_id: string | undefined;
|
|
424
386
|
}
|
|
425
387
|
|
|
426
|
-
export interface
|
|
427
|
-
|
|
388
|
+
export interface EditContactPayload {
|
|
389
|
+
node_id: string;
|
|
390
|
+
name: string | undefined;
|
|
391
|
+
email: string | undefined;
|
|
392
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
393
|
+
date_of_birth_or_registration: string | undefined;
|
|
394
|
+
country_of_birth_or_registration: string | undefined;
|
|
395
|
+
city_of_birth_or_registration: string | undefined;
|
|
396
|
+
identification_number: string | undefined;
|
|
397
|
+
avatar_file_upload_id: string | undefined;
|
|
398
|
+
proof_document_file_upload_id: string | undefined;
|
|
428
399
|
}
|
|
429
400
|
|
|
430
|
-
export interface
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
city_of_issuing: string;
|
|
434
|
-
issue_date: string;
|
|
435
|
-
maturity_date: string;
|
|
436
|
-
payee: string;
|
|
437
|
-
drawee: string;
|
|
438
|
-
sum: string;
|
|
439
|
-
currency: string;
|
|
440
|
-
country_of_payment: string;
|
|
441
|
-
city_of_payment: string;
|
|
442
|
-
file_upload_ids: string[];
|
|
401
|
+
export interface EndorseBitcreditBillPayload {
|
|
402
|
+
endorsee: string;
|
|
403
|
+
bill_id: string;
|
|
443
404
|
}
|
|
444
405
|
|
|
445
|
-
export interface
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
current_waiting_state: BillCurrentWaitingStateWeb | undefined;
|
|
451
|
-
actions: BillCallerActionsWeb;
|
|
406
|
+
export interface EndorsementWeb {
|
|
407
|
+
pay_to_the_order_of: LightBillParticipantWeb;
|
|
408
|
+
signed: LightSignedByWeb;
|
|
409
|
+
signing_timestamp: number;
|
|
410
|
+
signing_address: PostalAddressWeb | undefined;
|
|
452
411
|
}
|
|
453
412
|
|
|
454
|
-
export interface
|
|
455
|
-
|
|
456
|
-
recoursee: BillIdentParticipantWeb;
|
|
457
|
-
payment_data: BillWaitingStatePaymentDataWeb;
|
|
413
|
+
export interface EndorsementsResponse {
|
|
414
|
+
endorsements: EndorsementWeb[];
|
|
458
415
|
}
|
|
459
416
|
|
|
460
|
-
export interface
|
|
461
|
-
|
|
417
|
+
export interface FileWeb {
|
|
418
|
+
name: string;
|
|
419
|
+
hash: string;
|
|
420
|
+
nostr_hash: string;
|
|
462
421
|
}
|
|
463
422
|
|
|
464
|
-
export interface
|
|
465
|
-
|
|
423
|
+
export interface GeneralSearchFilter {
|
|
424
|
+
search_term: string;
|
|
425
|
+
currency: string;
|
|
426
|
+
item_types: GeneralSearchFilterItemTypeWeb[];
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface GeneralSearchFilterPayload {
|
|
430
|
+
filter: GeneralSearchFilter;
|
|
466
431
|
}
|
|
467
432
|
|
|
468
|
-
export interface
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
offer_to_sell_timed_out: boolean;
|
|
473
|
-
rejected_offer_to_sell: boolean;
|
|
474
|
-
buying_deadline_timestamp: number | undefined;
|
|
433
|
+
export interface GeneralSearchResponse {
|
|
434
|
+
bills: LightBitcreditBillWeb[];
|
|
435
|
+
contacts: ContactWeb[];
|
|
436
|
+
companies: CompanyWeb[];
|
|
475
437
|
}
|
|
476
438
|
|
|
477
|
-
export interface
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
439
|
+
export interface IdentityEmailConfirmationWeb {
|
|
440
|
+
signature: string;
|
|
441
|
+
witness: string;
|
|
442
|
+
node_id: string;
|
|
443
|
+
company_node_id: string | undefined;
|
|
444
|
+
email: string;
|
|
445
|
+
created_at: number;
|
|
482
446
|
}
|
|
483
447
|
|
|
484
|
-
export interface
|
|
448
|
+
export interface IdentityWeb {
|
|
449
|
+
t: IdentityTypeWeb;
|
|
485
450
|
node_id: string;
|
|
451
|
+
name: string;
|
|
452
|
+
email: string | undefined;
|
|
453
|
+
bitcoin_public_key: string;
|
|
454
|
+
npub: string;
|
|
455
|
+
postal_address: OptionalPostalAddressWeb;
|
|
456
|
+
date_of_birth: string | undefined;
|
|
457
|
+
country_of_birth: string | undefined;
|
|
458
|
+
city_of_birth: string | undefined;
|
|
459
|
+
identification_number: string | undefined;
|
|
460
|
+
profile_picture_file: FileWeb | undefined;
|
|
461
|
+
identity_document_file: FileWeb | undefined;
|
|
486
462
|
nostr_relays: string[];
|
|
487
463
|
}
|
|
488
464
|
|
|
489
|
-
export
|
|
465
|
+
export interface InviteSignatoryPayload {
|
|
466
|
+
id: string;
|
|
467
|
+
signatory_node_id: string;
|
|
468
|
+
}
|
|
490
469
|
|
|
491
|
-
export interface
|
|
492
|
-
|
|
493
|
-
|
|
470
|
+
export interface JsErrorData {
|
|
471
|
+
error: JsErrorType;
|
|
472
|
+
message: string;
|
|
473
|
+
code: number;
|
|
494
474
|
}
|
|
495
475
|
|
|
496
|
-
export
|
|
476
|
+
export interface LightBillAnonParticipantWeb {
|
|
477
|
+
node_id: string;
|
|
478
|
+
}
|
|
497
479
|
|
|
498
|
-
export interface
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
sum: string;
|
|
503
|
-
recourse_deadline: string;
|
|
480
|
+
export interface LightBillIdentParticipantWeb {
|
|
481
|
+
t: ContactTypeWeb;
|
|
482
|
+
name: string;
|
|
483
|
+
node_id: string;
|
|
504
484
|
}
|
|
505
485
|
|
|
506
|
-
export interface
|
|
507
|
-
|
|
508
|
-
|
|
486
|
+
export interface LightBillIdentParticipantWithAddressWeb {
|
|
487
|
+
t: ContactTypeWeb;
|
|
488
|
+
name: string;
|
|
489
|
+
node_id: string;
|
|
490
|
+
postal_address: PostalAddressWeb;
|
|
509
491
|
}
|
|
510
492
|
|
|
511
|
-
export interface
|
|
512
|
-
|
|
513
|
-
requested_to_pay: boolean;
|
|
514
|
-
paid: boolean;
|
|
515
|
-
request_to_pay_timed_out: boolean;
|
|
516
|
-
rejected_to_pay: boolean;
|
|
517
|
-
payment_deadline_timestamp: number | undefined;
|
|
493
|
+
export interface LightBillsResponse {
|
|
494
|
+
bills: LightBitcreditBillWeb[];
|
|
518
495
|
}
|
|
519
496
|
|
|
520
497
|
export interface LightBitcreditBillWeb {
|
|
@@ -532,11 +509,25 @@ export interface LightBitcreditBillWeb {
|
|
|
532
509
|
last_block_time: number;
|
|
533
510
|
}
|
|
534
511
|
|
|
512
|
+
export interface LightSignedByWeb {
|
|
513
|
+
data: LightBillParticipantWeb;
|
|
514
|
+
signatory: LightBillIdentParticipantWeb | undefined;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export interface ListSignatoriesResponse {
|
|
518
|
+
signatories: SignatoryResponse[];
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export interface LocallyHideSignatoryPayload {
|
|
522
|
+
id: string;
|
|
523
|
+
signatory_node_id: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
535
526
|
export interface MintOfferWeb {
|
|
536
527
|
mint_request_id: string;
|
|
537
528
|
keyset_id: string;
|
|
538
529
|
expiration_timestamp: number;
|
|
539
|
-
discounted_sum:
|
|
530
|
+
discounted_sum: string;
|
|
540
531
|
proofs: string | undefined;
|
|
541
532
|
proofs_spent: boolean;
|
|
542
533
|
}
|
|
@@ -545,6 +536,11 @@ export interface MintRequestStateResponse {
|
|
|
545
536
|
request_states: MintRequestStateWeb[];
|
|
546
537
|
}
|
|
547
538
|
|
|
539
|
+
export interface MintRequestStateWeb {
|
|
540
|
+
request: MintRequestWeb;
|
|
541
|
+
offer: MintOfferWeb | undefined;
|
|
542
|
+
}
|
|
543
|
+
|
|
548
544
|
export interface MintRequestWeb {
|
|
549
545
|
requester_node_id: string;
|
|
550
546
|
bill_id: string;
|
|
@@ -554,124 +550,136 @@ export interface MintRequestWeb {
|
|
|
554
550
|
status: MintRequestStatusWeb;
|
|
555
551
|
}
|
|
556
552
|
|
|
557
|
-
export
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
553
|
+
export interface NewContactPayload {
|
|
554
|
+
t: number;
|
|
555
|
+
node_id: string;
|
|
556
|
+
name: string;
|
|
557
|
+
email: string | undefined;
|
|
558
|
+
postal_address: CreatePostalAddressWeb | undefined;
|
|
559
|
+
date_of_birth_or_registration: string | undefined;
|
|
560
|
+
country_of_birth_or_registration: string | undefined;
|
|
561
|
+
city_of_birth_or_registration: string | undefined;
|
|
562
|
+
identification_number: string | undefined;
|
|
563
|
+
avatar_file_upload_id: string | undefined;
|
|
564
|
+
proof_document_file_upload_id: string | undefined;
|
|
566
565
|
}
|
|
567
566
|
|
|
568
|
-
export interface
|
|
569
|
-
|
|
567
|
+
export interface NewIdentityPayload {
|
|
568
|
+
t: number;
|
|
569
|
+
name: string;
|
|
570
|
+
email: string | undefined;
|
|
571
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
572
|
+
date_of_birth: string | undefined;
|
|
573
|
+
country_of_birth: string | undefined;
|
|
574
|
+
city_of_birth: string | undefined;
|
|
575
|
+
identification_number: string | undefined;
|
|
576
|
+
profile_picture_file_upload_id: string | undefined;
|
|
577
|
+
identity_document_file_upload_id: string | undefined;
|
|
570
578
|
}
|
|
571
579
|
|
|
572
|
-
export interface
|
|
573
|
-
|
|
574
|
-
|
|
580
|
+
export interface NotificationFilters {
|
|
581
|
+
active: boolean | undefined;
|
|
582
|
+
reference_id: string | undefined;
|
|
583
|
+
notification_type: string | undefined;
|
|
584
|
+
node_ids: string[] | undefined;
|
|
585
|
+
limit: number | undefined;
|
|
586
|
+
offset: number | undefined;
|
|
575
587
|
}
|
|
576
588
|
|
|
577
|
-
export interface
|
|
589
|
+
export interface NotificationStatusWeb {
|
|
578
590
|
node_id: string;
|
|
591
|
+
active: boolean;
|
|
579
592
|
}
|
|
580
593
|
|
|
581
|
-
export interface
|
|
582
|
-
id: string;
|
|
583
|
-
name: string;
|
|
584
|
-
country_of_registration: string | undefined;
|
|
585
|
-
city_of_registration: string | undefined;
|
|
586
|
-
postal_address: CreatePostalAddressWeb;
|
|
587
|
-
email: string;
|
|
588
|
-
registration_number: string | undefined;
|
|
589
|
-
registration_date: string | undefined;
|
|
590
|
-
proof_of_registration_file_upload_id: string | undefined;
|
|
591
|
-
logo_file_upload_id: string | undefined;
|
|
592
|
-
creator_email: string;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export interface ChangeSignatoryEmailPayload {
|
|
594
|
+
export interface NotificationWeb {
|
|
596
595
|
id: string;
|
|
597
|
-
|
|
596
|
+
node_id: string;
|
|
597
|
+
notification_type: NotificationTypeWeb;
|
|
598
|
+
reference_id: string | undefined;
|
|
599
|
+
description: string;
|
|
600
|
+
datetime: string;
|
|
601
|
+
active: boolean;
|
|
602
|
+
payload: any | undefined;
|
|
598
603
|
}
|
|
599
604
|
|
|
600
|
-
export interface
|
|
601
|
-
|
|
602
|
-
|
|
605
|
+
export interface OfferToSellBitcreditBillPayload {
|
|
606
|
+
buyer: string;
|
|
607
|
+
bill_id: string;
|
|
608
|
+
sum: string;
|
|
609
|
+
currency: string;
|
|
610
|
+
buying_deadline: string;
|
|
603
611
|
}
|
|
604
612
|
|
|
605
|
-
export interface
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
avatar_file: FileWeb | undefined;
|
|
611
|
-
is_logical: boolean;
|
|
612
|
-
signatory: CompanySignatoryWeb;
|
|
613
|
+
export interface OptionalPostalAddressWeb {
|
|
614
|
+
country: string | undefined;
|
|
615
|
+
city: string | undefined;
|
|
616
|
+
zip: string | undefined;
|
|
617
|
+
address: string | undefined;
|
|
613
618
|
}
|
|
614
619
|
|
|
615
|
-
export interface
|
|
616
|
-
|
|
617
|
-
|
|
620
|
+
export interface OverviewBalanceResponse {
|
|
621
|
+
payee: BalanceResponse;
|
|
622
|
+
payer: BalanceResponse;
|
|
623
|
+
contingent: BalanceResponse;
|
|
618
624
|
}
|
|
619
625
|
|
|
620
|
-
export
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
signatories: SignatoryResponse[];
|
|
626
|
+
export interface OverviewResponse {
|
|
627
|
+
currency: string;
|
|
628
|
+
balances: OverviewBalanceResponse;
|
|
624
629
|
}
|
|
625
630
|
|
|
626
|
-
export interface
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
country_of_registration: string | undefined;
|
|
632
|
-
city_of_registration: string | undefined;
|
|
633
|
-
registration_number: string | undefined;
|
|
634
|
-
registration_date: string | undefined;
|
|
635
|
-
logo_file_upload_id: string | undefined;
|
|
636
|
-
proof_of_registration_file_upload_id: string | undefined;
|
|
631
|
+
export interface PastEndorseeWeb {
|
|
632
|
+
pay_to_the_order_of: LightBillIdentParticipantWeb;
|
|
633
|
+
signed: LightSignedByWeb;
|
|
634
|
+
signing_timestamp: number;
|
|
635
|
+
signing_address: PostalAddressWeb | undefined;
|
|
637
636
|
}
|
|
638
637
|
|
|
639
|
-
export
|
|
640
|
-
|
|
641
|
-
export interface RemoveSignatoryPayload {
|
|
642
|
-
id: string;
|
|
643
|
-
signatory_node_id: string;
|
|
638
|
+
export interface PastEndorseesResponse {
|
|
639
|
+
past_endorsees: PastEndorseeWeb[];
|
|
644
640
|
}
|
|
645
641
|
|
|
646
|
-
export interface
|
|
647
|
-
|
|
648
|
-
|
|
642
|
+
export interface PastPaymentDataPaymentWeb {
|
|
643
|
+
time_of_request: number;
|
|
644
|
+
payer: BillIdentParticipantWeb;
|
|
645
|
+
payee: BillParticipantWeb;
|
|
646
|
+
currency: string;
|
|
647
|
+
sum: string;
|
|
648
|
+
link_to_pay: string;
|
|
649
|
+
address_to_pay: string;
|
|
650
|
+
private_descriptor_to_spend: string;
|
|
651
|
+
mempool_link_for_address_to_pay: string;
|
|
652
|
+
status: PastPaymentStatusWeb;
|
|
649
653
|
}
|
|
650
654
|
|
|
651
|
-
export interface
|
|
652
|
-
|
|
653
|
-
|
|
655
|
+
export interface PastPaymentDataRecourseWeb {
|
|
656
|
+
time_of_request: number;
|
|
657
|
+
recourser: BillParticipantWeb;
|
|
658
|
+
recoursee: BillIdentParticipantWeb;
|
|
659
|
+
currency: string;
|
|
660
|
+
sum: string;
|
|
661
|
+
link_to_pay: string;
|
|
662
|
+
address_to_pay: string;
|
|
663
|
+
private_descriptor_to_spend: string;
|
|
664
|
+
mempool_link_for_address_to_pay: string;
|
|
665
|
+
status: PastPaymentStatusWeb;
|
|
654
666
|
}
|
|
655
667
|
|
|
656
|
-
export interface
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
signatories: CompanySignatoryWeb[];
|
|
668
|
-
creation_time: number;
|
|
669
|
-
status: CompanyStatusWeb;
|
|
668
|
+
export interface PastPaymentDataSellWeb {
|
|
669
|
+
time_of_request: number;
|
|
670
|
+
buyer: BillParticipantWeb;
|
|
671
|
+
seller: BillParticipantWeb;
|
|
672
|
+
currency: string;
|
|
673
|
+
sum: string;
|
|
674
|
+
link_to_pay: string;
|
|
675
|
+
address_to_pay: string;
|
|
676
|
+
private_descriptor_to_spend: string;
|
|
677
|
+
mempool_link_for_address_to_pay: string;
|
|
678
|
+
status: PastPaymentStatusWeb;
|
|
670
679
|
}
|
|
671
680
|
|
|
672
|
-
export interface
|
|
673
|
-
|
|
674
|
-
email: string;
|
|
681
|
+
export interface PastPaymentsResponse {
|
|
682
|
+
past_payments: PastPaymentResultWeb[];
|
|
675
683
|
}
|
|
676
684
|
|
|
677
685
|
export interface PendingContactShareWeb {
|
|
@@ -683,107 +691,73 @@ export interface PendingContactShareWeb {
|
|
|
683
691
|
received_at: number;
|
|
684
692
|
}
|
|
685
693
|
|
|
686
|
-
export interface
|
|
687
|
-
|
|
688
|
-
node_id: string;
|
|
689
|
-
name: string;
|
|
690
|
-
email: string | undefined;
|
|
691
|
-
postal_address: PostalAddressWeb | undefined;
|
|
692
|
-
date_of_birth_or_registration: string;
|
|
693
|
-
country_of_birth_or_registration: string | undefined;
|
|
694
|
-
city_of_birth_or_registration: string | undefined;
|
|
695
|
-
identification_number: string | undefined;
|
|
696
|
-
avatar_file: FileWeb | undefined;
|
|
697
|
-
proof_document_file: FileWeb | undefined;
|
|
698
|
-
nostr_relays: string[];
|
|
699
|
-
is_logical: boolean;
|
|
694
|
+
export interface PendingContactSharesResponse {
|
|
695
|
+
pending_shares: PendingContactShareWeb[];
|
|
700
696
|
}
|
|
701
697
|
|
|
702
|
-
export interface
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
698
|
+
export interface PostalAddressWeb {
|
|
699
|
+
country: string;
|
|
700
|
+
city: string;
|
|
701
|
+
zip: string | undefined;
|
|
702
|
+
address: string;
|
|
706
703
|
}
|
|
707
704
|
|
|
708
|
-
export interface
|
|
709
|
-
|
|
710
|
-
node_id: string;
|
|
711
|
-
name: string;
|
|
712
|
-
email: string | undefined;
|
|
713
|
-
postal_address: CreatePostalAddressWeb | undefined;
|
|
714
|
-
date_of_birth_or_registration: string | undefined;
|
|
715
|
-
country_of_birth_or_registration: string | undefined;
|
|
716
|
-
city_of_birth_or_registration: string | undefined;
|
|
717
|
-
identification_number: string | undefined;
|
|
718
|
-
avatar_file_upload_id: string | undefined;
|
|
719
|
-
proof_document_file_upload_id: string | undefined;
|
|
705
|
+
export interface RejectActionBillPayload {
|
|
706
|
+
bill_id: string;
|
|
720
707
|
}
|
|
721
708
|
|
|
722
|
-
export interface
|
|
723
|
-
|
|
709
|
+
export interface RemoveSignatoryPayload {
|
|
710
|
+
id: string;
|
|
711
|
+
signatory_node_id: string;
|
|
724
712
|
}
|
|
725
713
|
|
|
726
|
-
export interface
|
|
727
|
-
|
|
728
|
-
|
|
714
|
+
export interface RequestRecourseForAcceptancePayload {
|
|
715
|
+
bill_id: string;
|
|
716
|
+
recoursee: string;
|
|
717
|
+
recourse_deadline: string;
|
|
729
718
|
}
|
|
730
719
|
|
|
731
|
-
export interface
|
|
732
|
-
|
|
720
|
+
export interface RequestRecourseForPaymentPayload {
|
|
721
|
+
bill_id: string;
|
|
722
|
+
recoursee: string;
|
|
723
|
+
currency: string;
|
|
724
|
+
sum: string;
|
|
725
|
+
recourse_deadline: string;
|
|
733
726
|
}
|
|
734
727
|
|
|
735
|
-
export interface
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
email: string | undefined;
|
|
739
|
-
postal_address: CreateOptionalPostalAddressWeb;
|
|
740
|
-
date_of_birth_or_registration: string | undefined;
|
|
741
|
-
country_of_birth_or_registration: string | undefined;
|
|
742
|
-
city_of_birth_or_registration: string | undefined;
|
|
743
|
-
identification_number: string | undefined;
|
|
744
|
-
avatar_file_upload_id: string | undefined;
|
|
745
|
-
proof_document_file_upload_id: string | undefined;
|
|
728
|
+
export interface RequestToAcceptBitcreditBillPayload {
|
|
729
|
+
bill_id: string;
|
|
730
|
+
acceptance_deadline: string;
|
|
746
731
|
}
|
|
747
732
|
|
|
748
|
-
export interface
|
|
749
|
-
|
|
733
|
+
export interface RequestToMintBitcreditBillPayload {
|
|
734
|
+
mint_node: string;
|
|
735
|
+
bill_id: string;
|
|
750
736
|
}
|
|
751
737
|
|
|
752
|
-
export interface
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
recipient: string;
|
|
738
|
+
export interface RequestToPayBitcreditBillPayload {
|
|
739
|
+
bill_id: string;
|
|
740
|
+
currency: string;
|
|
741
|
+
payment_deadline: string;
|
|
757
742
|
}
|
|
758
743
|
|
|
759
|
-
export interface
|
|
760
|
-
|
|
744
|
+
export interface ResyncBillPayload {
|
|
745
|
+
bill_id: string;
|
|
761
746
|
}
|
|
762
747
|
|
|
763
|
-
export interface
|
|
764
|
-
t: SwitchIdentityTypeWeb | undefined;
|
|
748
|
+
export interface ResyncCompanyPayload {
|
|
765
749
|
node_id: string;
|
|
766
750
|
}
|
|
767
751
|
|
|
768
|
-
export interface
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
country_of_birth: string | undefined;
|
|
773
|
-
city_of_birth: string | undefined;
|
|
774
|
-
identification_number: string | undefined;
|
|
775
|
-
profile_picture_file_upload_id: string | undefined;
|
|
776
|
-
identity_document_file_upload_id: string | undefined;
|
|
752
|
+
export interface SearchContactsPayload {
|
|
753
|
+
search_term: string;
|
|
754
|
+
include_logical: boolean | undefined;
|
|
755
|
+
include_contact: boolean | undefined;
|
|
777
756
|
}
|
|
778
757
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
export interface SeedPhrase {
|
|
783
|
-
/**
|
|
784
|
-
* The seed phrase of the current private key
|
|
785
|
-
*/
|
|
786
|
-
seed_phrase: string;
|
|
758
|
+
export interface ShareBillWithCourtPayload {
|
|
759
|
+
bill_id: string;
|
|
760
|
+
court_node_id: string;
|
|
787
761
|
}
|
|
788
762
|
|
|
789
763
|
export interface ShareCompanyContactTo {
|
|
@@ -797,249 +771,271 @@ export interface ShareCompanyContactTo {
|
|
|
797
771
|
company_id: string;
|
|
798
772
|
}
|
|
799
773
|
|
|
800
|
-
export interface
|
|
801
|
-
|
|
774
|
+
export interface ShareContactTo {
|
|
775
|
+
/**
|
|
776
|
+
* The node id of the identity to share the contact details to
|
|
777
|
+
*/
|
|
778
|
+
recipient: string;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export interface SignatoryResponse {
|
|
782
|
+
t: ContactTypeWeb;
|
|
802
783
|
node_id: string;
|
|
803
784
|
name: string;
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
date_of_birth: string | undefined;
|
|
809
|
-
country_of_birth: string | undefined;
|
|
810
|
-
city_of_birth: string | undefined;
|
|
811
|
-
identification_number: string | undefined;
|
|
812
|
-
profile_picture_file: FileWeb | undefined;
|
|
813
|
-
identity_document_file: FileWeb | undefined;
|
|
814
|
-
nostr_relays: string[];
|
|
785
|
+
postal_address: PostalAddressWeb | undefined;
|
|
786
|
+
avatar_file: FileWeb | undefined;
|
|
787
|
+
is_logical: boolean;
|
|
788
|
+
signatory: CompanySignatoryWeb;
|
|
815
789
|
}
|
|
816
790
|
|
|
817
|
-
export interface
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
node_id: string;
|
|
821
|
-
company_node_id: string | undefined;
|
|
822
|
-
email: string;
|
|
823
|
-
created_at: number;
|
|
791
|
+
export interface StatusResponse {
|
|
792
|
+
bitcoin_network: string;
|
|
793
|
+
app_version: string;
|
|
824
794
|
}
|
|
825
795
|
|
|
826
|
-
export interface
|
|
827
|
-
|
|
796
|
+
export interface SwitchIdentity {
|
|
797
|
+
t: SwitchIdentityTypeWeb | undefined;
|
|
798
|
+
node_id: string;
|
|
828
799
|
}
|
|
829
800
|
|
|
830
|
-
export interface
|
|
831
|
-
|
|
801
|
+
export interface UploadFile {
|
|
802
|
+
data: number[];
|
|
803
|
+
extension: string | undefined;
|
|
832
804
|
name: string;
|
|
833
|
-
email: string | undefined;
|
|
834
|
-
postal_address: CreateOptionalPostalAddressWeb;
|
|
835
|
-
date_of_birth: string | undefined;
|
|
836
|
-
country_of_birth: string | undefined;
|
|
837
|
-
city_of_birth: string | undefined;
|
|
838
|
-
identification_number: string | undefined;
|
|
839
|
-
profile_picture_file_upload_id: string | undefined;
|
|
840
|
-
identity_document_file_upload_id: string | undefined;
|
|
841
805
|
}
|
|
842
806
|
|
|
843
|
-
export interface
|
|
844
|
-
|
|
845
|
-
message: string;
|
|
846
|
-
code: number;
|
|
807
|
+
export interface UploadFileResponse {
|
|
808
|
+
file_upload_id: string;
|
|
847
809
|
}
|
|
848
810
|
|
|
811
|
+
export interface VerifyEmailPayload {
|
|
812
|
+
confirmation_code: string;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export interface VerifyEmailPayload {
|
|
816
|
+
id: string;
|
|
817
|
+
confirmation_code: string;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
|
|
821
|
+
|
|
822
|
+
export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
|
|
823
|
+
|
|
824
|
+
export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
|
|
825
|
+
|
|
826
|
+
export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: BillIdentParticipantWeb };
|
|
827
|
+
|
|
828
|
+
export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
|
|
829
|
+
|
|
830
|
+
export type CompanySignatoryStatusWeb = { Invited: { ts: number; inviter: string } } | { InviteAccepted: { ts: number } } | { InviteRejected: { ts: number } } | { InviteAcceptedIdentityProven: { ts: number; confirmation: IdentityEmailConfirmationWeb } } | { Removed: { ts: number; remover: string } };
|
|
831
|
+
|
|
832
|
+
export type CompanyStatusWeb = "Invited" | "Active" | "None";
|
|
833
|
+
|
|
834
|
+
export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
|
|
835
|
+
|
|
849
836
|
export type JsErrorType = "FieldEmpty" | "FieldInvalid" | "InvalidSum" | "InvalidCurrency" | "InvalidContentType" | "IdentityCantBeAnon" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "InvalidCountry" | "InvalidTimestamp" | "DeadlineBeforeMinimum" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoConfirmedEmailForIdentIdentity" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Crypto" | "Persistence" | "Blockchain" | "Protocol" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "NotARemovedOrRejectedSignatory" | "NotInvitedAsSignatory" | "NoSignerIdentityProof" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "CallerMustBeSignatory" | "InvalidSignature" | "InvalidHash" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json" | "InvalidBillAction" | "InvalidMintRequestId";
|
|
850
837
|
|
|
838
|
+
export type LightBillParticipantWeb = { Anon: LightBillAnonParticipantWeb } | { Ident: LightBillIdentParticipantWithAddressWeb };
|
|
839
|
+
|
|
840
|
+
export type MintRequestStatusWeb = "Pending" | { Denied: { timestamp: number } } | "Offered" | "Accepted" | "MintingEnabled" | { Rejected: { timestamp: number } } | { Cancelled: { timestamp: number } } | { Expired: { timestamp: number } };
|
|
841
|
+
|
|
842
|
+
export type NotificationTypeWeb = "General" | "Company" | "Bill" | "Contact";
|
|
843
|
+
|
|
844
|
+
export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
|
|
845
|
+
|
|
846
|
+
export type PastPaymentStatusWeb = { Paid: number } | { Rejected: number } | { Expired: number };
|
|
847
|
+
|
|
851
848
|
|
|
852
849
|
export class Api {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
850
|
+
private constructor();
|
|
851
|
+
free(): void;
|
|
852
|
+
[Symbol.dispose](): void;
|
|
853
|
+
static bill(): Bill;
|
|
854
|
+
static company(): Company;
|
|
855
|
+
static contact(): Contact;
|
|
856
|
+
static general(): General;
|
|
857
|
+
static identity(): Identity;
|
|
858
|
+
static notification(): Notification;
|
|
862
859
|
}
|
|
863
860
|
|
|
864
861
|
export class Bill {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
|
|
862
|
+
private constructor();
|
|
863
|
+
free(): void;
|
|
864
|
+
[Symbol.dispose](): void;
|
|
865
|
+
accept(payload: AcceptBitcreditBillPayload): Promise<TSResult<void>>;
|
|
866
|
+
accept_mint_offer(mint_request_id: string): Promise<TSResult<void>>;
|
|
867
|
+
attachment(bill_id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
|
|
868
|
+
attachment_base64(bill_id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
|
|
869
|
+
bill_history(bill_id: string): Promise<TSResult<BillHistoryResponse>>;
|
|
870
|
+
bitcoin_key(id: string): Promise<TSResult<BillCombinedBitcoinKeyWeb>>;
|
|
871
|
+
cancel_request_to_mint(mint_request_id: string): Promise<TSResult<void>>;
|
|
872
|
+
check_mint_state(id: string): Promise<TSResult<void>>;
|
|
873
|
+
check_payment(): Promise<TSResult<void>>;
|
|
874
|
+
check_payment_for_bill(id: string): Promise<TSResult<void>>;
|
|
875
|
+
clear_bill_cache(): Promise<TSResult<void>>;
|
|
876
|
+
detail(id: string): Promise<TSResult<BitcreditBillWeb>>;
|
|
877
|
+
dev_mode_get_full_bill_chain(bill_id: string): Promise<TSResult<string[]>>;
|
|
878
|
+
endorse_bill(payload: EndorseBitcreditBillPayload): Promise<TSResult<void>>;
|
|
879
|
+
/**
|
|
880
|
+
* Blank endorsement - the contact doesn't have to be an anonymous contact
|
|
881
|
+
*/
|
|
882
|
+
endorse_bill_blank(payload: EndorseBitcreditBillPayload): Promise<TSResult<void>>;
|
|
883
|
+
endorsements(id: string): Promise<TSResult<EndorsementsResponse>>;
|
|
884
|
+
issue(payload: BitcreditBillPayload): Promise<TSResult<BillIdResponse>>;
|
|
885
|
+
issue_blank(payload: BitcreditBillPayload): Promise<TSResult<BillIdResponse>>;
|
|
886
|
+
list(): Promise<TSResult<BillsResponse>>;
|
|
887
|
+
list_light(): Promise<TSResult<LightBillsResponse>>;
|
|
888
|
+
mint_state(id: string): Promise<TSResult<MintRequestStateResponse>>;
|
|
889
|
+
static new(): Bill;
|
|
890
|
+
offer_to_sell(payload: OfferToSellBitcreditBillPayload): Promise<TSResult<void>>;
|
|
891
|
+
/**
|
|
892
|
+
* Blank offer to sell - the contact doesn't have to be an anonymous contact
|
|
893
|
+
*/
|
|
894
|
+
offer_to_sell_blank(payload: OfferToSellBitcreditBillPayload): Promise<TSResult<void>>;
|
|
895
|
+
past_endorsees(id: string): Promise<TSResult<PastEndorseesResponse>>;
|
|
896
|
+
past_payments(id: string): Promise<TSResult<PastPaymentsResponse>>;
|
|
897
|
+
reject_mint_offer(mint_request_id: string): Promise<TSResult<void>>;
|
|
898
|
+
reject_to_accept(payload: RejectActionBillPayload): Promise<TSResult<void>>;
|
|
899
|
+
reject_to_buy(payload: RejectActionBillPayload): Promise<TSResult<void>>;
|
|
900
|
+
reject_to_pay(payload: RejectActionBillPayload): Promise<TSResult<void>>;
|
|
901
|
+
reject_to_pay_recourse(payload: RejectActionBillPayload): Promise<TSResult<void>>;
|
|
902
|
+
request_to_accept(payload: RequestToAcceptBitcreditBillPayload): Promise<TSResult<void>>;
|
|
903
|
+
request_to_mint(payload: RequestToMintBitcreditBillPayload): Promise<TSResult<void>>;
|
|
904
|
+
request_to_pay(payload: RequestToPayBitcreditBillPayload): Promise<TSResult<void>>;
|
|
905
|
+
request_to_recourse_bill_acceptance(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
|
|
906
|
+
request_to_recourse_bill_payment(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
|
|
907
|
+
search(payload: BillsSearchFilterPayload): Promise<TSResult<LightBillsResponse>>;
|
|
908
|
+
share_bill_with_court(payload: ShareBillWithCourtPayload): Promise<TSResult<void>>;
|
|
909
|
+
/**
|
|
910
|
+
* Given a bill id, resync the chain via block transport
|
|
911
|
+
*/
|
|
912
|
+
sync_bill_chain(payload: ResyncBillPayload): Promise<TSResult<void>>;
|
|
913
|
+
upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
|
|
918
914
|
}
|
|
919
915
|
|
|
920
916
|
export class Company {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
917
|
+
private constructor();
|
|
918
|
+
free(): void;
|
|
919
|
+
[Symbol.dispose](): void;
|
|
920
|
+
accept_invite(payload: AcceptCompanyInvitePayload): Promise<TSResult<void>>;
|
|
921
|
+
change_signatory_email(payload: ChangeSignatoryEmailPayload): Promise<TSResult<void>>;
|
|
922
|
+
confirm_email(payload: ConfirmEmailPayload): Promise<TSResult<void>>;
|
|
923
|
+
create(payload: CreateCompanyPayload): Promise<TSResult<CompanyWeb>>;
|
|
924
|
+
create_keys(): Promise<TSResult<CompanyKeysWeb>>;
|
|
925
|
+
detail(id: string): Promise<TSResult<CompanyWeb>>;
|
|
926
|
+
dev_mode_get_full_company_chain(company_id: string): Promise<TSResult<string[]>>;
|
|
927
|
+
edit(payload: EditCompanyPayload): Promise<TSResult<void>>;
|
|
928
|
+
file(id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
|
|
929
|
+
file_base64(id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
|
|
930
|
+
get_email_confirmations(company_id: string): Promise<TSResult<IdentityEmailConfirmationWeb[]>>;
|
|
931
|
+
invite_signatory(payload: InviteSignatoryPayload): Promise<TSResult<void>>;
|
|
932
|
+
list(): Promise<TSResult<CompaniesResponse>>;
|
|
933
|
+
list_invites(): Promise<TSResult<CompaniesResponse>>;
|
|
934
|
+
list_signatories(id: string): Promise<TSResult<ListSignatoriesResponse>>;
|
|
935
|
+
locally_hide_signatory(payload: LocallyHideSignatoryPayload): Promise<TSResult<void>>;
|
|
936
|
+
static new(): Company;
|
|
937
|
+
reject_invite(company_id: string): Promise<TSResult<void>>;
|
|
938
|
+
remove_signatory(payload: RemoveSignatoryPayload): Promise<TSResult<void>>;
|
|
939
|
+
share_contact_details(payload: ShareCompanyContactTo): Promise<TSResult<void>>;
|
|
940
|
+
/**
|
|
941
|
+
* Given a node id, resync the company chain via block transport
|
|
942
|
+
*/
|
|
943
|
+
sync_company_chain(payload: ResyncCompanyPayload): Promise<TSResult<void>>;
|
|
944
|
+
upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
|
|
945
|
+
verify_email(payload: VerifyEmailPayload): Promise<TSResult<void>>;
|
|
950
946
|
}
|
|
951
947
|
|
|
952
948
|
export class Contact {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
949
|
+
private constructor();
|
|
950
|
+
free(): void;
|
|
951
|
+
[Symbol.dispose](): void;
|
|
952
|
+
approve_contact_share(payload: ApproveContactSharePayload): Promise<TSResult<void>>;
|
|
953
|
+
create(payload: NewContactPayload): Promise<TSResult<ContactWeb>>;
|
|
954
|
+
deanonymize(payload: NewContactPayload): Promise<TSResult<ContactWeb>>;
|
|
955
|
+
detail(node_id: string): Promise<TSResult<ContactWeb>>;
|
|
956
|
+
edit(payload: EditContactPayload): Promise<TSResult<void>>;
|
|
957
|
+
file(node_id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
|
|
958
|
+
file_base64(node_id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
|
|
959
|
+
get_pending_contact_share(id: string): Promise<TSResult<PendingContactShareWeb | undefined>>;
|
|
960
|
+
list(): Promise<TSResult<ContactsResponse>>;
|
|
961
|
+
list_pending_contact_shares(receiver_node_id: string): Promise<TSResult<PendingContactSharesResponse>>;
|
|
962
|
+
static new(): Contact;
|
|
963
|
+
reject_contact_share(pending_share_id: string): Promise<TSResult<void>>;
|
|
964
|
+
remove(node_id: string): Promise<TSResult<void>>;
|
|
965
|
+
search(payload: SearchContactsPayload): Promise<TSResult<ContactsResponse>>;
|
|
966
|
+
upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
|
|
971
967
|
}
|
|
972
968
|
|
|
973
969
|
export enum ContactTypeWeb {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
970
|
+
Person = 0,
|
|
971
|
+
Company = 1,
|
|
972
|
+
Anon = 2,
|
|
977
973
|
}
|
|
978
974
|
|
|
979
975
|
export class General {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
976
|
+
private constructor();
|
|
977
|
+
free(): void;
|
|
978
|
+
[Symbol.dispose](): void;
|
|
979
|
+
currencies(): Promise<TSResult<CurrenciesResponse>>;
|
|
980
|
+
static new(): General;
|
|
981
|
+
overview(currency: string): Promise<TSResult<OverviewResponse>>;
|
|
982
|
+
search(payload: GeneralSearchFilterPayload): Promise<TSResult<GeneralSearchResponse>>;
|
|
983
|
+
status(): Promise<TSResult<StatusResponse>>;
|
|
984
|
+
temp_file(file_upload_id: string): Promise<TSResult<BinaryFileResponse>>;
|
|
989
985
|
}
|
|
990
986
|
|
|
991
987
|
export class Identity {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
988
|
+
private constructor();
|
|
989
|
+
free(): void;
|
|
990
|
+
[Symbol.dispose](): void;
|
|
991
|
+
active(): Promise<TSResult<SwitchIdentity>>;
|
|
992
|
+
change(payload: ChangeIdentityPayload): Promise<TSResult<void>>;
|
|
993
|
+
change_email(payload: ChangeIdentityEmailPayload): Promise<TSResult<void>>;
|
|
994
|
+
confirm_email(payload: ConfirmEmailPayload): Promise<TSResult<void>>;
|
|
995
|
+
create(payload: NewIdentityPayload): Promise<TSResult<IdentityWeb>>;
|
|
996
|
+
deanonymize(payload: NewIdentityPayload): Promise<TSResult<IdentityWeb>>;
|
|
997
|
+
detail(): Promise<TSResult<IdentityWeb>>;
|
|
998
|
+
dev_mode_get_full_identity_chain(): Promise<TSResult<string[]>>;
|
|
999
|
+
file(file_name: string): Promise<TSResult<BinaryFileResponse>>;
|
|
1000
|
+
file_base64(file_name: string): Promise<TSResult<Base64FileResponse>>;
|
|
1001
|
+
get_email_confirmations(): Promise<TSResult<IdentityEmailConfirmationWeb[]>>;
|
|
1002
|
+
static new(): Identity;
|
|
1003
|
+
seed_backup(): Promise<TSResult<SeedPhrase>>;
|
|
1004
|
+
seed_recover(payload: SeedPhrase): Promise<TSResult<void>>;
|
|
1005
|
+
share_contact_details(payload: ShareContactTo): Promise<TSResult<void>>;
|
|
1006
|
+
switch(switch_identity_payload: SwitchIdentity): Promise<TSResult<void>>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Resync the identity chain via block transport
|
|
1009
|
+
*/
|
|
1010
|
+
sync_identity_chain(): Promise<TSResult<void>>;
|
|
1011
|
+
upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
|
|
1012
|
+
verify_email(payload: VerifyEmailPayload): Promise<TSResult<void>>;
|
|
1017
1013
|
}
|
|
1018
1014
|
|
|
1019
1015
|
export enum IdentityTypeWeb {
|
|
1020
|
-
|
|
1021
|
-
|
|
1016
|
+
Ident = 0,
|
|
1017
|
+
Anon = 1,
|
|
1022
1018
|
}
|
|
1023
1019
|
|
|
1024
1020
|
export class Notification {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1021
|
+
private constructor();
|
|
1022
|
+
free(): void;
|
|
1023
|
+
[Symbol.dispose](): void;
|
|
1024
|
+
active_notifications_for_node_ids(node_ids: string[]): Promise<TSResult<NotificationStatusWeb[]>>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Fetch email notifications preferences link for the currently selected identity
|
|
1027
|
+
*/
|
|
1028
|
+
get_email_notifications_preferences_link(): Promise<TSResult<String>>;
|
|
1029
|
+
list(filters: NotificationFilters): Promise<TSResult<NotificationWeb[]>>;
|
|
1030
|
+
mark_as_done(notification_id: string): Promise<TSResult<void>>;
|
|
1031
|
+
static new(): Notification;
|
|
1032
|
+
subscribe(callback: Function): Promise<void>;
|
|
1033
|
+
trigger_test_msg(payload: any): Promise<TSResult<void>>;
|
|
1038
1034
|
}
|
|
1039
1035
|
|
|
1040
1036
|
export enum SwitchIdentityTypeWeb {
|
|
1041
|
-
|
|
1042
|
-
|
|
1037
|
+
Person = 0,
|
|
1038
|
+
Company = 1,
|
|
1043
1039
|
}
|
|
1044
1040
|
|
|
1045
1041
|
export function initialize_api(cfg: Config): Promise<void>;
|
|
@@ -1052,174 +1048,175 @@ export function task_worker_entry_point(ptr: number): void;
|
|
|
1052
1048
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1053
1049
|
|
|
1054
1050
|
export interface InitOutput {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1051
|
+
readonly memory: WebAssembly.Memory;
|
|
1052
|
+
readonly __wbg_api_free: (a: number, b: number) => void;
|
|
1053
|
+
readonly api_bill: () => number;
|
|
1054
|
+
readonly bill_accept: (a: number, b: any) => any;
|
|
1055
|
+
readonly bill_accept_mint_offer: (a: number, b: number, c: number) => any;
|
|
1056
|
+
readonly bill_attachment: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1057
|
+
readonly bill_attachment_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1058
|
+
readonly bill_bill_history: (a: number, b: number, c: number) => any;
|
|
1059
|
+
readonly bill_bitcoin_key: (a: number, b: number, c: number) => any;
|
|
1060
|
+
readonly bill_cancel_request_to_mint: (a: number, b: number, c: number) => any;
|
|
1061
|
+
readonly bill_check_mint_state: (a: number, b: number, c: number) => any;
|
|
1062
|
+
readonly bill_check_payment: (a: number) => any;
|
|
1063
|
+
readonly bill_check_payment_for_bill: (a: number, b: number, c: number) => any;
|
|
1064
|
+
readonly bill_clear_bill_cache: (a: number) => any;
|
|
1065
|
+
readonly bill_detail: (a: number, b: number, c: number) => any;
|
|
1066
|
+
readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
|
|
1067
|
+
readonly bill_endorse_bill: (a: number, b: any) => any;
|
|
1068
|
+
readonly bill_endorse_bill_blank: (a: number, b: any) => any;
|
|
1069
|
+
readonly bill_endorsements: (a: number, b: number, c: number) => any;
|
|
1070
|
+
readonly bill_issue: (a: number, b: any) => any;
|
|
1071
|
+
readonly bill_issue_blank: (a: number, b: any) => any;
|
|
1072
|
+
readonly bill_list: (a: number) => any;
|
|
1073
|
+
readonly bill_list_light: (a: number) => any;
|
|
1074
|
+
readonly bill_mint_state: (a: number, b: number, c: number) => any;
|
|
1075
|
+
readonly bill_offer_to_sell: (a: number, b: any) => any;
|
|
1076
|
+
readonly bill_offer_to_sell_blank: (a: number, b: any) => any;
|
|
1077
|
+
readonly bill_past_endorsees: (a: number, b: number, c: number) => any;
|
|
1078
|
+
readonly bill_past_payments: (a: number, b: number, c: number) => any;
|
|
1079
|
+
readonly bill_reject_mint_offer: (a: number, b: number, c: number) => any;
|
|
1080
|
+
readonly bill_reject_to_accept: (a: number, b: any) => any;
|
|
1081
|
+
readonly bill_reject_to_buy: (a: number, b: any) => any;
|
|
1082
|
+
readonly bill_reject_to_pay: (a: number, b: any) => any;
|
|
1083
|
+
readonly bill_reject_to_pay_recourse: (a: number, b: any) => any;
|
|
1084
|
+
readonly bill_request_to_accept: (a: number, b: any) => any;
|
|
1085
|
+
readonly bill_request_to_mint: (a: number, b: any) => any;
|
|
1086
|
+
readonly bill_request_to_pay: (a: number, b: any) => any;
|
|
1087
|
+
readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
|
|
1088
|
+
readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
|
|
1089
|
+
readonly bill_search: (a: number, b: any) => any;
|
|
1090
|
+
readonly bill_share_bill_with_court: (a: number, b: any) => any;
|
|
1091
|
+
readonly bill_sync_bill_chain: (a: number, b: any) => any;
|
|
1092
|
+
readonly bill_upload: (a: number, b: any) => any;
|
|
1093
|
+
readonly company_accept_invite: (a: number, b: any) => any;
|
|
1094
|
+
readonly company_change_signatory_email: (a: number, b: any) => any;
|
|
1095
|
+
readonly company_confirm_email: (a: number, b: any) => any;
|
|
1096
|
+
readonly company_create: (a: number, b: any) => any;
|
|
1097
|
+
readonly company_create_keys: (a: number) => any;
|
|
1098
|
+
readonly company_detail: (a: number, b: number, c: number) => any;
|
|
1099
|
+
readonly company_dev_mode_get_full_company_chain: (a: number, b: number, c: number) => any;
|
|
1100
|
+
readonly company_edit: (a: number, b: any) => any;
|
|
1101
|
+
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1102
|
+
readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1103
|
+
readonly company_get_email_confirmations: (a: number, b: number, c: number) => any;
|
|
1104
|
+
readonly company_invite_signatory: (a: number, b: any) => any;
|
|
1105
|
+
readonly company_list: (a: number) => any;
|
|
1106
|
+
readonly company_list_invites: (a: number) => any;
|
|
1107
|
+
readonly company_list_signatories: (a: number, b: number, c: number) => any;
|
|
1108
|
+
readonly company_locally_hide_signatory: (a: number, b: any) => any;
|
|
1109
|
+
readonly company_reject_invite: (a: number, b: number, c: number) => any;
|
|
1110
|
+
readonly company_remove_signatory: (a: number, b: any) => any;
|
|
1111
|
+
readonly company_share_contact_details: (a: number, b: any) => any;
|
|
1112
|
+
readonly company_sync_company_chain: (a: number, b: any) => any;
|
|
1113
|
+
readonly company_upload: (a: number, b: any) => any;
|
|
1114
|
+
readonly company_verify_email: (a: number, b: any) => any;
|
|
1115
|
+
readonly contact_approve_contact_share: (a: number, b: any) => any;
|
|
1116
|
+
readonly contact_create: (a: number, b: any) => any;
|
|
1117
|
+
readonly contact_deanonymize: (a: number, b: any) => any;
|
|
1118
|
+
readonly contact_detail: (a: number, b: number, c: number) => any;
|
|
1119
|
+
readonly contact_edit: (a: number, b: any) => any;
|
|
1120
|
+
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1121
|
+
readonly contact_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1122
|
+
readonly contact_get_pending_contact_share: (a: number, b: number, c: number) => any;
|
|
1123
|
+
readonly contact_list: (a: number) => any;
|
|
1124
|
+
readonly contact_list_pending_contact_shares: (a: number, b: number, c: number) => any;
|
|
1125
|
+
readonly contact_reject_contact_share: (a: number, b: number, c: number) => any;
|
|
1126
|
+
readonly contact_remove: (a: number, b: number, c: number) => any;
|
|
1127
|
+
readonly contact_search: (a: number, b: any) => any;
|
|
1128
|
+
readonly contact_upload: (a: number, b: any) => any;
|
|
1129
|
+
readonly general_currencies: (a: number) => any;
|
|
1130
|
+
readonly general_overview: (a: number, b: number, c: number) => any;
|
|
1131
|
+
readonly general_search: (a: number, b: any) => any;
|
|
1132
|
+
readonly general_status: (a: number) => any;
|
|
1133
|
+
readonly general_temp_file: (a: number, b: number, c: number) => any;
|
|
1134
|
+
readonly identity_active: (a: number) => any;
|
|
1135
|
+
readonly identity_change: (a: number, b: any) => any;
|
|
1136
|
+
readonly identity_change_email: (a: number, b: any) => any;
|
|
1137
|
+
readonly identity_confirm_email: (a: number, b: any) => any;
|
|
1138
|
+
readonly identity_create: (a: number, b: any) => any;
|
|
1139
|
+
readonly identity_deanonymize: (a: number, b: any) => any;
|
|
1140
|
+
readonly identity_detail: (a: number) => any;
|
|
1141
|
+
readonly identity_dev_mode_get_full_identity_chain: (a: number) => any;
|
|
1142
|
+
readonly identity_file: (a: number, b: number, c: number) => any;
|
|
1143
|
+
readonly identity_file_base64: (a: number, b: number, c: number) => any;
|
|
1144
|
+
readonly identity_get_email_confirmations: (a: number) => any;
|
|
1145
|
+
readonly identity_seed_backup: (a: number) => any;
|
|
1146
|
+
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
1147
|
+
readonly identity_share_contact_details: (a: number, b: any) => any;
|
|
1148
|
+
readonly identity_switch: (a: number, b: any) => any;
|
|
1149
|
+
readonly identity_sync_identity_chain: (a: number) => any;
|
|
1150
|
+
readonly identity_upload: (a: number, b: any) => any;
|
|
1151
|
+
readonly identity_verify_email: (a: number, b: any) => any;
|
|
1152
|
+
readonly initialize_api: (a: any) => any;
|
|
1153
|
+
readonly notification_active_notifications_for_node_ids: (a: number, b: any) => any;
|
|
1154
|
+
readonly notification_get_email_notifications_preferences_link: (a: number) => any;
|
|
1155
|
+
readonly notification_list: (a: number, b: any) => any;
|
|
1156
|
+
readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
|
|
1157
|
+
readonly notification_subscribe: (a: number, b: any) => any;
|
|
1158
|
+
readonly notification_trigger_test_msg: (a: number, b: any) => any;
|
|
1159
|
+
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1160
|
+
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1161
|
+
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1162
|
+
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
1163
|
+
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
1164
|
+
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
1165
|
+
readonly api_company: () => number;
|
|
1166
|
+
readonly api_contact: () => number;
|
|
1167
|
+
readonly api_general: () => number;
|
|
1168
|
+
readonly api_identity: () => number;
|
|
1169
|
+
readonly api_notification: () => number;
|
|
1170
|
+
readonly bill_new: () => number;
|
|
1171
|
+
readonly company_new: () => number;
|
|
1172
|
+
readonly contact_new: () => number;
|
|
1173
|
+
readonly general_new: () => number;
|
|
1174
|
+
readonly identity_new: () => number;
|
|
1175
|
+
readonly notification_new: () => number;
|
|
1176
|
+
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1177
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1178
|
+
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
1179
|
+
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
1180
|
+
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1181
|
+
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
1182
|
+
readonly wasm_bindgen__closure__destroy__h176913725ed7ac58: (a: number, b: number) => void;
|
|
1183
|
+
readonly wasm_bindgen__closure__destroy__h076c05c701ca818f: (a: number, b: number) => void;
|
|
1184
|
+
readonly wasm_bindgen__closure__destroy__hd2f0f9bc9317fd65: (a: number, b: number) => void;
|
|
1185
|
+
readonly wasm_bindgen__convert__closures_____invoke__h81031f8edfdff6b2: (a: number, b: number, c: any) => [number, number];
|
|
1186
|
+
readonly wasm_bindgen__convert__closures_____invoke__hae19b576439d8a20: (a: number, b: number, c: any) => [number, number];
|
|
1187
|
+
readonly wasm_bindgen__convert__closures_____invoke__h6c26d96cff2f627b: (a: number, b: number, c: any, d: any) => void;
|
|
1188
|
+
readonly wasm_bindgen__convert__closures_____invoke__h366622914eb7c1d5: (a: number, b: number, c: any) => void;
|
|
1189
|
+
readonly wasm_bindgen__convert__closures_____invoke__h366622914eb7c1d5_3: (a: number, b: number, c: any) => void;
|
|
1190
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7d9d95c9b12febcd: (a: number, b: number) => void;
|
|
1191
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9b6019079178c700: (a: number, b: number) => void;
|
|
1192
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1193
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1194
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1195
|
+
readonly __externref_table_alloc: () => number;
|
|
1196
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1197
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1198
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
1199
|
+
readonly __wbindgen_start: () => void;
|
|
1203
1200
|
}
|
|
1204
1201
|
|
|
1205
1202
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1206
1203
|
|
|
1207
1204
|
/**
|
|
1208
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
1209
|
-
* a precompiled `WebAssembly.Module`.
|
|
1210
|
-
*
|
|
1211
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1212
|
-
*
|
|
1213
|
-
* @returns {InitOutput}
|
|
1214
|
-
*/
|
|
1205
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
1206
|
+
* a precompiled `WebAssembly.Module`.
|
|
1207
|
+
*
|
|
1208
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1209
|
+
*
|
|
1210
|
+
* @returns {InitOutput}
|
|
1211
|
+
*/
|
|
1215
1212
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1216
1213
|
|
|
1217
1214
|
/**
|
|
1218
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1219
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1220
|
-
*
|
|
1221
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1222
|
-
*
|
|
1223
|
-
* @returns {Promise<InitOutput>}
|
|
1224
|
-
*/
|
|
1215
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1216
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1217
|
+
*
|
|
1218
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1219
|
+
*
|
|
1220
|
+
* @returns {Promise<InitOutput>}
|
|
1221
|
+
*/
|
|
1225
1222
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|