@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.
Files changed (4) hide show
  1. package/index.d.ts +878 -881
  2. package/index.js +1650 -1620
  3. package/index_bg.wasm +0 -0
  4. package/package.json +5 -1
package/index.d.ts CHANGED
@@ -1,21 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export interface Config {
4
- log_level: string | undefined;
5
- app_url: string;
6
- bitcoin_network: string;
7
- esplora_base_url: string;
8
- nostr_relays: string[];
9
- nostr_only_known_contacts: boolean | undefined;
10
- job_runner_initial_delay_seconds: number;
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 NotificationStatusWeb {
30
- node_id: string;
31
- active: boolean;
21
+ export interface AcceptBitcreditBillPayload {
22
+ bill_id: string;
32
23
  }
33
24
 
34
- export interface NotificationWeb {
25
+ export interface AcceptCompanyInvitePayload {
35
26
  id: string;
36
- node_id: string;
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 CreatePostalAddressWeb {
68
- country: string;
69
- city: string;
70
- zip: string | undefined;
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 GeneralSearchFilter {
75
- search_term: string;
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 GeneralSearchFilterPayload {
87
- filter: GeneralSearchFilter;
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 BinaryFileResponse {
91
- data: number[];
92
- name: string;
93
- content_type: string;
55
+ export interface BillAnonParticipantWeb {
56
+ node_id: string;
57
+ nostr_relays: string[];
94
58
  }
95
59
 
96
- export interface GeneralSearchResponse {
97
- bills: LightBitcreditBillWeb[];
98
- contacts: ContactWeb[];
99
- companies: CompanyWeb[];
60
+ export interface BillCallerActionsWeb {
61
+ bill_actions: BillCallerBillActionWeb[];
100
62
  }
101
63
 
102
- export interface UploadFile {
103
- data: number[];
104
- extension: string | undefined;
105
- name: string;
64
+ export interface BillCombinedBitcoinKeyWeb {
65
+ private_descriptor: string;
106
66
  }
107
67
 
108
- export interface StatusResponse {
109
- bitcoin_network: string;
110
- app_version: string;
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 BalanceResponse {
114
- sum: string;
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 PostalAddressWeb {
118
- country: string;
119
- city: string;
120
- zip: string | undefined;
121
- address: string;
93
+ export interface BillHistoryResponse {
94
+ blocks: BillHistoryBlockWeb[];
122
95
  }
123
96
 
124
- export interface CreateOptionalPostalAddressWeb {
125
- country: string | undefined;
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 FileWeb {
101
+ export interface BillIdentParticipantWeb {
102
+ t: ContactTypeWeb;
103
+ node_id: string;
132
104
  name: string;
133
- hash: string;
134
- nostr_hash: string;
105
+ postal_address: PostalAddressWeb;
106
+ email: string | undefined;
107
+ nostr_relays: string[];
135
108
  }
136
109
 
137
- export interface NotificationFilters {
138
- active: boolean | undefined;
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 type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
147
-
148
- export interface UploadFileResponse {
149
- file_upload_id: string;
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 OverviewBalanceResponse {
153
- payee: BalanceResponse;
154
- payer: BalanceResponse;
155
- contingent: BalanceResponse;
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 LightBillAnonParticipantWeb {
159
- node_id: string;
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 type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
163
-
164
- export interface LightBillIdentParticipantWeb {
165
- t: ContactTypeWeb;
166
- name: string;
167
- node_id: string;
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 type LightBillParticipantWeb = { Anon: LightBillAnonParticipantWeb } | { Ident: LightBillIdentParticipantWithAddressWeb };
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 BillHistoryBlockWeb {
173
- block_id: number;
174
- block_type: BillOpCodeWeb;
175
- pay_to_the_order_of: LightBillParticipantWeb | undefined;
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 EndorsementWeb {
183
- pay_to_the_order_of: LightBillParticipantWeb;
184
- signed: LightSignedByWeb;
185
- signing_timestamp: number;
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 AcceptBitcreditBillPayload {
190
- bill_id: string;
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 BillMintStatusWeb {
220
- has_mint_requests: boolean;
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 type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
235
-
236
- export interface ResyncBillPayload {
237
- bill_id: string;
203
+ export interface BillsSearchFilterPayload {
204
+ filter: BillsSearchFilter;
238
205
  }
239
206
 
240
- export interface BillWaitingForSellStateWeb {
241
- buyer: BillParticipantWeb;
242
- seller: BillParticipantWeb;
243
- payment_data: BillWaitingStatePaymentDataWeb;
207
+ export interface BinaryFileResponse {
208
+ data: number[];
209
+ name: string;
210
+ content_type: string;
244
211
  }
245
212
 
246
- export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
247
-
248
- export interface PastPaymentDataSellWeb {
249
- time_of_request: number;
250
- buyer: BillParticipantWeb;
251
- seller: BillParticipantWeb;
252
- currency: string;
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
- sum: string;
284
- link_to_pay: string;
285
- address_to_pay: string;
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 PastPaymentsResponse {
297
- past_payments: PastPaymentResultWeb[];
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 BillWaitingForPaymentStateWeb {
301
- payer: BillIdentParticipantWeb;
302
- payee: BillParticipantWeb;
303
- payment_data: BillWaitingStatePaymentDataWeb;
237
+ export interface ChangeIdentityEmailPayload {
238
+ email: string;
304
239
  }
305
240
 
306
- export interface PastEndorseesResponse {
307
- past_endorsees: PastEndorseeWeb[];
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 BillRecourseStatusWeb {
311
- time_of_last_request_to_recourse: number | undefined;
312
- recoursed: boolean;
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 BillsSearchFilterPayload {
320
- filter: BillsSearchFilter;
257
+ export interface CompaniesResponse {
258
+ companies: CompanyWeb[];
321
259
  }
322
260
 
323
- export interface BillDataWeb {
324
- time_of_drawing: number;
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 type PastPaymentStatusWeb = { Paid: number } | { Rejected: number } | { Expired: number };
339
-
340
- export interface RequestToAcceptBitcreditBillPayload {
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 BillStatusWeb {
346
- acceptance: BillAcceptanceStatusWeb;
347
- payment: BillPaymentStatusWeb;
348
- sell: BillSellStatusWeb;
349
- recourse: BillRecourseStatusWeb;
350
- mint: BillMintStatusWeb;
351
- redeemed_funds_available: boolean;
352
- has_requested_funds: boolean;
353
- last_block_time: number;
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 BillNumbersToWordsForSum {
357
- sum: number;
358
- sum_as_words: string;
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 BillsSearchFilter {
362
- search_term: string | undefined;
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 PastPaymentDataRecourseWeb {
369
- time_of_request: number;
370
- recourser: BillParticipantWeb;
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 BillIdentParticipantWeb {
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 LightBillIdentParticipantWithAddressWeb {
391
- t: ContactTypeWeb;
330
+ export interface ContactsResponse {
331
+ contacts: ContactWeb[];
332
+ }
333
+
334
+ export interface CreateCompanyPayload {
335
+ id: string;
392
336
  name: string;
393
- node_id: string;
394
- postal_address: PostalAddressWeb;
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 EndorsementsResponse {
398
- endorsements: EndorsementWeb[];
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 BillCombinedBitcoinKeyWeb {
402
- private_descriptor: string;
355
+ export interface CreatePostalAddressWeb {
356
+ country: string;
357
+ city: string;
358
+ zip: string | undefined;
359
+ address: string;
403
360
  }
404
361
 
405
- export interface OfferToSellBitcreditBillPayload {
406
- buyer: string;
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 BillParticipantsWeb {
414
- drawee: BillIdentParticipantWeb;
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 BillIdResponse {
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 BillHistoryResponse {
427
- blocks: BillHistoryBlockWeb[];
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 BitcreditBillPayload {
431
- t: number;
432
- country_of_issuing: string;
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 BitcreditBillWeb {
446
- id: string;
447
- participants: BillParticipantsWeb;
448
- data: BillDataWeb;
449
- status: BillStatusWeb;
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 BillWaitingForRecourseStateWeb {
455
- recourser: BillParticipantWeb;
456
- recoursee: BillIdentParticipantWeb;
457
- payment_data: BillWaitingStatePaymentDataWeb;
413
+ export interface EndorsementsResponse {
414
+ endorsements: EndorsementWeb[];
458
415
  }
459
416
 
460
- export interface BillCallerActionsWeb {
461
- bill_actions: BillCallerBillActionWeb[];
417
+ export interface FileWeb {
418
+ name: string;
419
+ hash: string;
420
+ nostr_hash: string;
462
421
  }
463
422
 
464
- export interface LightBillsResponse {
465
- bills: LightBitcreditBillWeb[];
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 BillSellStatusWeb {
469
- time_of_last_offer_to_sell: number | undefined;
470
- sold: boolean;
471
- offered_to_sell: boolean;
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 PastEndorseeWeb {
478
- pay_to_the_order_of: LightBillIdentParticipantWeb;
479
- signed: LightSignedByWeb;
480
- signing_timestamp: number;
481
- signing_address: PostalAddressWeb | undefined;
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 BillAnonParticipantWeb {
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 type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: BillIdentParticipantWeb };
465
+ export interface InviteSignatoryPayload {
466
+ id: string;
467
+ signatory_node_id: string;
468
+ }
490
469
 
491
- export interface RequestToMintBitcreditBillPayload {
492
- mint_node: string;
493
- bill_id: string;
470
+ export interface JsErrorData {
471
+ error: JsErrorType;
472
+ message: string;
473
+ code: number;
494
474
  }
495
475
 
496
- export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
476
+ export interface LightBillAnonParticipantWeb {
477
+ node_id: string;
478
+ }
497
479
 
498
- export interface RequestRecourseForPaymentPayload {
499
- bill_id: string;
500
- recoursee: string;
501
- currency: string;
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 DateRange {
507
- from: string;
508
- to: string;
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 BillPaymentStatusWeb {
512
- time_of_request_to_pay: number | undefined;
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: number;
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 type MintRequestStatusWeb = "Pending" | { Denied: { timestamp: number } } | "Offered" | "Accepted" | { Rejected: { timestamp: number } } | { Cancelled: { timestamp: number } } | { Expired: { timestamp: number } };
558
-
559
- export interface MintRequestStateWeb {
560
- request: MintRequestWeb;
561
- offer: MintOfferWeb | undefined;
562
- }
563
-
564
- export interface CompanyKeysWeb {
565
- id: string;
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 CompaniesResponse {
569
- companies: CompanyWeb[];
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 AcceptCompanyInvitePayload {
573
- id: string;
574
- email: string;
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 ResyncCompanyPayload {
589
+ export interface NotificationStatusWeb {
578
590
  node_id: string;
591
+ active: boolean;
579
592
  }
580
593
 
581
- export interface CreateCompanyPayload {
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
- email: string;
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 InviteSignatoryPayload {
601
- id: string;
602
- signatory_node_id: string;
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 SignatoryResponse {
606
- t: ContactTypeWeb;
607
- node_id: string;
608
- name: string;
609
- postal_address: PostalAddressWeb | undefined;
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 VerifyEmailPayload {
616
- id: string;
617
- confirmation_code: string;
620
+ export interface OverviewBalanceResponse {
621
+ payee: BalanceResponse;
622
+ payer: BalanceResponse;
623
+ contingent: BalanceResponse;
618
624
  }
619
625
 
620
- export type CompanySignatoryStatusWeb = { Invited: { ts: number; inviter: string } } | { InviteAccepted: { ts: number } } | { InviteRejected: { ts: number } } | { InviteAcceptedIdentityProven: { ts: number; confirmation: IdentityEmailConfirmationWeb } } | { Removed: { ts: number; remover: string } };
621
-
622
- export interface ListSignatoriesResponse {
623
- signatories: SignatoryResponse[];
626
+ export interface OverviewResponse {
627
+ currency: string;
628
+ balances: OverviewBalanceResponse;
624
629
  }
625
630
 
626
- export interface EditCompanyPayload {
627
- id: string;
628
- name: string | undefined;
629
- email: string | undefined;
630
- postal_address: CreateOptionalPostalAddressWeb;
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 type CompanyStatusWeb = "Invited" | "Active" | "None";
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 LocallyHideSignatoryPayload {
647
- id: string;
648
- signatory_node_id: string;
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 CompanySignatoryWeb {
652
- node_id: string;
653
- status: CompanySignatoryStatusWeb;
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 CompanyWeb {
657
- id: string;
658
- name: string;
659
- country_of_registration: string | undefined;
660
- city_of_registration: string | undefined;
661
- postal_address: PostalAddressWeb;
662
- email: string;
663
- registration_number: string | undefined;
664
- registration_date: string | undefined;
665
- proof_of_registration_file: FileWeb | undefined;
666
- logo_file: FileWeb | undefined;
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 ConfirmEmailPayload {
673
- id: string;
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 ContactWeb {
687
- t: ContactTypeWeb;
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 SearchContactsPayload {
703
- search_term: string;
704
- include_logical: boolean | undefined;
705
- include_contact: boolean | undefined;
698
+ export interface PostalAddressWeb {
699
+ country: string;
700
+ city: string;
701
+ zip: string | undefined;
702
+ address: string;
706
703
  }
707
704
 
708
- export interface NewContactPayload {
709
- t: number;
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 PendingContactSharesResponse {
723
- pending_shares: PendingContactShareWeb[];
709
+ export interface RemoveSignatoryPayload {
710
+ id: string;
711
+ signatory_node_id: string;
724
712
  }
725
713
 
726
- export interface ApproveContactSharePayload {
727
- pending_share_id: string;
728
- share_back: boolean;
714
+ export interface RequestRecourseForAcceptancePayload {
715
+ bill_id: string;
716
+ recoursee: string;
717
+ recourse_deadline: string;
729
718
  }
730
719
 
731
- export interface ContactsResponse {
732
- contacts: ContactWeb[];
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 EditContactPayload {
736
- node_id: string;
737
- name: string | undefined;
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 ConfirmEmailPayload {
749
- email: string;
733
+ export interface RequestToMintBitcreditBillPayload {
734
+ mint_node: string;
735
+ bill_id: string;
750
736
  }
751
737
 
752
- export interface ShareContactTo {
753
- /**
754
- * The node id of the identity to share the contact details to
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 VerifyEmailPayload {
760
- confirmation_code: string;
744
+ export interface ResyncBillPayload {
745
+ bill_id: string;
761
746
  }
762
747
 
763
- export interface SwitchIdentity {
764
- t: SwitchIdentityTypeWeb | undefined;
748
+ export interface ResyncCompanyPayload {
765
749
  node_id: string;
766
750
  }
767
751
 
768
- export interface ChangeIdentityPayload {
769
- name: string | undefined;
770
- postal_address: CreateOptionalPostalAddressWeb;
771
- date_of_birth: string | undefined;
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
- * Response for a private key seeed backup
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 IdentityWeb {
801
- t: IdentityTypeWeb;
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
- email: string | undefined;
805
- bitcoin_public_key: string;
806
- npub: string;
807
- postal_address: OptionalPostalAddressWeb;
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 IdentityEmailConfirmationWeb {
818
- signature: string;
819
- witness: string;
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 ChangeIdentityEmailPayload {
827
- email: string;
796
+ export interface SwitchIdentity {
797
+ t: SwitchIdentityTypeWeb | undefined;
798
+ node_id: string;
828
799
  }
829
800
 
830
- export interface NewIdentityPayload {
831
- t: number;
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 JsErrorData {
844
- error: JsErrorType;
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
- private constructor();
854
- free(): void;
855
- [Symbol.dispose](): void;
856
- static notification(): Notification;
857
- static bill(): Bill;
858
- static company(): Company;
859
- static contact(): Contact;
860
- static general(): General;
861
- static identity(): Identity;
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
- private constructor();
866
- free(): void;
867
- [Symbol.dispose](): void;
868
- attachment(bill_id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
869
- list_light(): Promise<TSResult<LightBillsResponse>>;
870
- mint_state(id: string): Promise<TSResult<MintRequestStateResponse>>;
871
- bitcoin_key(id: string): Promise<TSResult<BillCombinedBitcoinKeyWeb>>;
872
- issue_blank(payload: BitcreditBillPayload): Promise<TSResult<BillIdResponse>>;
873
- bill_history(bill_id: string): Promise<TSResult<BillHistoryResponse>>;
874
- endorse_bill(payload: EndorseBitcreditBillPayload): Promise<TSResult<void>>;
875
- endorsements(id: string): Promise<TSResult<EndorsementsResponse>>;
876
- check_payment(): Promise<TSResult<void>>;
877
- offer_to_sell(payload: OfferToSellBitcreditBillPayload): Promise<TSResult<void>>;
878
- past_payments(id: string): Promise<TSResult<PastPaymentsResponse>>;
879
- reject_to_buy(payload: RejectActionBillPayload): Promise<TSResult<void>>;
880
- reject_to_pay(payload: RejectActionBillPayload): Promise<TSResult<void>>;
881
- past_endorsees(id: string): Promise<TSResult<PastEndorseesResponse>>;
882
- request_to_pay(payload: RequestToPayBitcreditBillPayload): Promise<TSResult<void>>;
883
- request_to_mint(payload: RequestToMintBitcreditBillPayload): Promise<TSResult<void>>;
884
- /**
885
- * Given a bill id, resync the chain via block transport
886
- */
887
- sync_bill_chain(payload: ResyncBillPayload): Promise<TSResult<void>>;
888
- check_mint_state(id: string): Promise<TSResult<void>>;
889
- clear_bill_cache(): Promise<TSResult<void>>;
890
- reject_to_accept(payload: RejectActionBillPayload): Promise<TSResult<void>>;
891
- accept_mint_offer(mint_request_id: string): Promise<TSResult<void>>;
892
- attachment_base64(bill_id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
893
- reject_mint_offer(mint_request_id: string): Promise<TSResult<void>>;
894
- request_to_accept(payload: RequestToAcceptBitcreditBillPayload): Promise<TSResult<void>>;
895
- /**
896
- * Blank endorsement - the contact doesn't have to be an anonymous contact
897
- */
898
- endorse_bill_blank(payload: EndorseBitcreditBillPayload): Promise<TSResult<void>>;
899
- /**
900
- * Blank offer to sell - the contact doesn't have to be an anonymous contact
901
- */
902
- offer_to_sell_blank(payload: OfferToSellBitcreditBillPayload): Promise<TSResult<void>>;
903
- share_bill_with_court(payload: ShareBillWithCourtPayload): Promise<TSResult<void>>;
904
- cancel_request_to_mint(mint_request_id: string): Promise<TSResult<void>>;
905
- check_payment_for_bill(id: string): Promise<TSResult<void>>;
906
- reject_to_pay_recourse(payload: RejectActionBillPayload): Promise<TSResult<void>>;
907
- numbers_to_words_for_sum(id: string): Promise<TSResult<BillNumbersToWordsForSum>>;
908
- dev_mode_get_full_bill_chain(bill_id: string): Promise<TSResult<string[]>>;
909
- request_to_recourse_bill_payment(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
910
- request_to_recourse_bill_acceptance(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
911
- static new(): Bill;
912
- list(): Promise<TSResult<BillsResponse>>;
913
- issue(payload: BitcreditBillPayload): Promise<TSResult<BillIdResponse>>;
914
- accept(payload: AcceptBitcreditBillPayload): Promise<TSResult<void>>;
915
- detail(id: string): Promise<TSResult<BitcreditBillWeb>>;
916
- search(payload: BillsSearchFilterPayload): Promise<TSResult<LightBillsResponse>>;
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
- private constructor();
922
- free(): void;
923
- [Symbol.dispose](): void;
924
- create_keys(): Promise<TSResult<CompanyKeysWeb>>;
925
- file_base64(id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
926
- list_invites(): Promise<TSResult<CompaniesResponse>>;
927
- verify_email(payload: VerifyEmailPayload): Promise<TSResult<void>>;
928
- accept_invite(payload: AcceptCompanyInvitePayload): Promise<TSResult<void>>;
929
- confirm_email(payload: ConfirmEmailPayload): Promise<TSResult<void>>;
930
- reject_invite(company_id: string): Promise<TSResult<void>>;
931
- invite_signatory(payload: InviteSignatoryPayload): Promise<TSResult<void>>;
932
- list_signatories(id: string): Promise<TSResult<ListSignatoriesResponse>>;
933
- remove_signatory(payload: RemoveSignatoryPayload): Promise<TSResult<void>>;
934
- /**
935
- * Given a node id, resync the company chain via block transport
936
- */
937
- sync_company_chain(payload: ResyncCompanyPayload): Promise<TSResult<void>>;
938
- share_contact_details(payload: ShareCompanyContactTo): Promise<TSResult<void>>;
939
- change_signatory_email(payload: ChangeSignatoryEmailPayload): Promise<TSResult<void>>;
940
- locally_hide_signatory(payload: LocallyHideSignatoryPayload): Promise<TSResult<void>>;
941
- get_email_confirmations(company_id: string): Promise<TSResult<IdentityEmailConfirmationWeb[]>>;
942
- dev_mode_get_full_company_chain(company_id: string): Promise<TSResult<string[]>>;
943
- static new(): Company;
944
- edit(payload: EditCompanyPayload): Promise<TSResult<void>>;
945
- file(id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
946
- list(): Promise<TSResult<CompaniesResponse>>;
947
- create(payload: CreateCompanyPayload): Promise<TSResult<CompanyWeb>>;
948
- detail(id: string): Promise<TSResult<CompanyWeb>>;
949
- upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
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
- private constructor();
954
- free(): void;
955
- [Symbol.dispose](): void;
956
- deanonymize(payload: NewContactPayload): Promise<TSResult<ContactWeb>>;
957
- file_base64(node_id: string, file_name: string): Promise<TSResult<Base64FileResponse>>;
958
- reject_contact_share(pending_share_id: string): Promise<TSResult<void>>;
959
- approve_contact_share(payload: ApproveContactSharePayload): Promise<TSResult<void>>;
960
- get_pending_contact_share(id: string): Promise<TSResult<PendingContactShareWeb | undefined>>;
961
- list_pending_contact_shares(receiver_node_id: string): Promise<TSResult<PendingContactSharesResponse>>;
962
- static new(): Contact;
963
- edit(payload: EditContactPayload): Promise<TSResult<void>>;
964
- file(node_id: string, file_name: string): Promise<TSResult<BinaryFileResponse>>;
965
- list(): Promise<TSResult<ContactsResponse>>;
966
- create(payload: NewContactPayload): Promise<TSResult<ContactWeb>>;
967
- detail(node_id: string): Promise<TSResult<ContactWeb>>;
968
- remove(node_id: string): Promise<TSResult<void>>;
969
- search(payload: SearchContactsPayload): Promise<TSResult<ContactsResponse>>;
970
- upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
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
- Person = 0,
975
- Company = 1,
976
- Anon = 2,
970
+ Person = 0,
971
+ Company = 1,
972
+ Anon = 2,
977
973
  }
978
974
 
979
975
  export class General {
980
- private constructor();
981
- free(): void;
982
- [Symbol.dispose](): void;
983
- currencies(): Promise<TSResult<CurrenciesResponse>>;
984
- static new(): General;
985
- search(payload: GeneralSearchFilterPayload): Promise<TSResult<GeneralSearchResponse>>;
986
- status(): Promise<TSResult<StatusResponse>>;
987
- overview(currency: string): Promise<TSResult<OverviewResponse>>;
988
- temp_file(file_upload_id: string): Promise<TSResult<BinaryFileResponse>>;
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
- private constructor();
993
- free(): void;
994
- [Symbol.dispose](): void;
995
- deanonymize(payload: NewIdentityPayload): Promise<TSResult<IdentityWeb>>;
996
- file_base64(file_name: string): Promise<TSResult<Base64FileResponse>>;
997
- seed_backup(): Promise<TSResult<SeedPhrase>>;
998
- change_email(payload: ChangeIdentityEmailPayload): Promise<TSResult<void>>;
999
- seed_recover(payload: SeedPhrase): Promise<TSResult<void>>;
1000
- verify_email(payload: VerifyEmailPayload): Promise<TSResult<void>>;
1001
- confirm_email(payload: ConfirmEmailPayload): Promise<TSResult<void>>;
1002
- /**
1003
- * Resync the identity chain via block transport
1004
- */
1005
- sync_identity_chain(): Promise<TSResult<void>>;
1006
- share_contact_details(payload: ShareContactTo): Promise<TSResult<void>>;
1007
- get_email_confirmations(): Promise<TSResult<IdentityEmailConfirmationWeb[]>>;
1008
- dev_mode_get_full_identity_chain(): Promise<TSResult<string[]>>;
1009
- static new(): Identity;
1010
- file(file_name: string): Promise<TSResult<BinaryFileResponse>>;
1011
- active(): Promise<TSResult<SwitchIdentity>>;
1012
- change(payload: ChangeIdentityPayload): Promise<TSResult<void>>;
1013
- create(payload: NewIdentityPayload): Promise<TSResult<IdentityWeb>>;
1014
- detail(): Promise<TSResult<IdentityWeb>>;
1015
- switch(switch_identity_payload: SwitchIdentity): Promise<TSResult<void>>;
1016
- upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
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
- Ident = 0,
1021
- Anon = 1,
1016
+ Ident = 0,
1017
+ Anon = 1,
1022
1018
  }
1023
1019
 
1024
1020
  export class Notification {
1025
- private constructor();
1026
- free(): void;
1027
- [Symbol.dispose](): void;
1028
- mark_as_done(notification_id: string): Promise<TSResult<void>>;
1029
- trigger_test_msg(payload: any): Promise<TSResult<void>>;
1030
- active_notifications_for_node_ids(node_ids: string[]): Promise<TSResult<NotificationStatusWeb[]>>;
1031
- static new(): Notification;
1032
- /**
1033
- * Fetch email notifications preferences link for the currently selected identity
1034
- */
1035
- get_email_notifications_preferences_link(): Promise<TSResult<String>>;
1036
- list(filters: NotificationFilters): Promise<TSResult<NotificationWeb[]>>;
1037
- subscribe(callback: Function): Promise<void>;
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
- Person = 0,
1042
- Company = 1,
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
- readonly memory: WebAssembly.Memory;
1056
- readonly __wbg_api_free: (a: number, b: number) => void;
1057
- readonly api_bill: () => number;
1058
- readonly bill_accept: (a: number, b: any) => any;
1059
- readonly bill_accept_mint_offer: (a: number, b: number, c: number) => any;
1060
- readonly bill_attachment: (a: number, b: number, c: number, d: number, e: number) => any;
1061
- readonly bill_attachment_base64: (a: number, b: number, c: number, d: number, e: number) => any;
1062
- readonly bill_bill_history: (a: number, b: number, c: number) => any;
1063
- readonly bill_bitcoin_key: (a: number, b: number, c: number) => any;
1064
- readonly bill_cancel_request_to_mint: (a: number, b: number, c: number) => any;
1065
- readonly bill_check_mint_state: (a: number, b: number, c: number) => any;
1066
- readonly bill_check_payment: (a: number) => any;
1067
- readonly bill_check_payment_for_bill: (a: number, b: number, c: number) => any;
1068
- readonly bill_clear_bill_cache: (a: number) => any;
1069
- readonly bill_detail: (a: number, b: number, c: number) => any;
1070
- readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
1071
- readonly bill_endorse_bill: (a: number, b: any) => any;
1072
- readonly bill_endorse_bill_blank: (a: number, b: any) => any;
1073
- readonly bill_endorsements: (a: number, b: number, c: number) => any;
1074
- readonly bill_issue: (a: number, b: any) => any;
1075
- readonly bill_issue_blank: (a: number, b: any) => any;
1076
- readonly bill_list: (a: number) => any;
1077
- readonly bill_list_light: (a: number) => any;
1078
- readonly bill_mint_state: (a: number, b: number, c: number) => any;
1079
- readonly bill_numbers_to_words_for_sum: (a: number, b: number, c: number) => any;
1080
- readonly bill_offer_to_sell: (a: number, b: any) => any;
1081
- readonly bill_offer_to_sell_blank: (a: number, b: any) => any;
1082
- readonly bill_past_endorsees: (a: number, b: number, c: number) => any;
1083
- readonly bill_past_payments: (a: number, b: number, c: number) => any;
1084
- readonly bill_reject_mint_offer: (a: number, b: number, c: number) => any;
1085
- readonly bill_reject_to_accept: (a: number, b: any) => any;
1086
- readonly bill_reject_to_buy: (a: number, b: any) => any;
1087
- readonly bill_reject_to_pay: (a: number, b: any) => any;
1088
- readonly bill_reject_to_pay_recourse: (a: number, b: any) => any;
1089
- readonly bill_request_to_accept: (a: number, b: any) => any;
1090
- readonly bill_request_to_mint: (a: number, b: any) => any;
1091
- readonly bill_request_to_pay: (a: number, b: any) => any;
1092
- readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
1093
- readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
1094
- readonly bill_search: (a: number, b: any) => any;
1095
- readonly bill_share_bill_with_court: (a: number, b: any) => any;
1096
- readonly bill_sync_bill_chain: (a: number, b: any) => any;
1097
- readonly bill_upload: (a: number, b: any) => any;
1098
- readonly company_accept_invite: (a: number, b: any) => any;
1099
- readonly company_change_signatory_email: (a: number, b: any) => any;
1100
- readonly company_confirm_email: (a: number, b: any) => any;
1101
- readonly company_create: (a: number, b: any) => any;
1102
- readonly company_create_keys: (a: number) => any;
1103
- readonly company_detail: (a: number, b: number, c: number) => any;
1104
- readonly company_dev_mode_get_full_company_chain: (a: number, b: number, c: number) => any;
1105
- readonly company_edit: (a: number, b: any) => any;
1106
- readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
1107
- readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
1108
- readonly company_get_email_confirmations: (a: number, b: number, c: number) => any;
1109
- readonly company_invite_signatory: (a: number, b: any) => any;
1110
- readonly company_list: (a: number) => any;
1111
- readonly company_list_invites: (a: number) => any;
1112
- readonly company_list_signatories: (a: number, b: number, c: number) => any;
1113
- readonly company_locally_hide_signatory: (a: number, b: any) => any;
1114
- readonly company_reject_invite: (a: number, b: number, c: number) => any;
1115
- readonly company_remove_signatory: (a: number, b: any) => any;
1116
- readonly company_share_contact_details: (a: number, b: any) => any;
1117
- readonly company_sync_company_chain: (a: number, b: any) => any;
1118
- readonly company_upload: (a: number, b: any) => any;
1119
- readonly company_verify_email: (a: number, b: any) => any;
1120
- readonly contact_approve_contact_share: (a: number, b: any) => any;
1121
- readonly contact_create: (a: number, b: any) => any;
1122
- readonly contact_deanonymize: (a: number, b: any) => any;
1123
- readonly contact_detail: (a: number, b: number, c: number) => any;
1124
- readonly contact_edit: (a: number, b: any) => any;
1125
- readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
1126
- readonly contact_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
1127
- readonly contact_get_pending_contact_share: (a: number, b: number, c: number) => any;
1128
- readonly contact_list: (a: number) => any;
1129
- readonly contact_list_pending_contact_shares: (a: number, b: number, c: number) => any;
1130
- readonly contact_reject_contact_share: (a: number, b: number, c: number) => any;
1131
- readonly contact_remove: (a: number, b: number, c: number) => any;
1132
- readonly contact_search: (a: number, b: any) => any;
1133
- readonly contact_upload: (a: number, b: any) => any;
1134
- readonly general_currencies: (a: number) => any;
1135
- readonly general_overview: (a: number, b: number, c: number) => any;
1136
- readonly general_search: (a: number, b: any) => any;
1137
- readonly general_status: (a: number) => any;
1138
- readonly general_temp_file: (a: number, b: number, c: number) => any;
1139
- readonly identity_active: (a: number) => any;
1140
- readonly identity_change: (a: number, b: any) => any;
1141
- readonly identity_change_email: (a: number, b: any) => any;
1142
- readonly identity_confirm_email: (a: number, b: any) => any;
1143
- readonly identity_create: (a: number, b: any) => any;
1144
- readonly identity_deanonymize: (a: number, b: any) => any;
1145
- readonly identity_detail: (a: number) => any;
1146
- readonly identity_dev_mode_get_full_identity_chain: (a: number) => any;
1147
- readonly identity_file: (a: number, b: number, c: number) => any;
1148
- readonly identity_file_base64: (a: number, b: number, c: number) => any;
1149
- readonly identity_get_email_confirmations: (a: number) => any;
1150
- readonly identity_seed_backup: (a: number) => any;
1151
- readonly identity_seed_recover: (a: number, b: any) => any;
1152
- readonly identity_share_contact_details: (a: number, b: any) => any;
1153
- readonly identity_switch: (a: number, b: any) => any;
1154
- readonly identity_sync_identity_chain: (a: number) => any;
1155
- readonly identity_upload: (a: number, b: any) => any;
1156
- readonly identity_verify_email: (a: number, b: any) => any;
1157
- readonly initialize_api: (a: any) => any;
1158
- readonly notification_active_notifications_for_node_ids: (a: number, b: any) => any;
1159
- readonly notification_get_email_notifications_preferences_link: (a: number) => any;
1160
- readonly notification_list: (a: number, b: any) => any;
1161
- readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
1162
- readonly notification_subscribe: (a: number, b: any) => any;
1163
- readonly notification_trigger_test_msg: (a: number, b: any) => any;
1164
- readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1165
- readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
1166
- readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
1167
- readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
1168
- readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
1169
- readonly task_worker_entry_point: (a: number) => [number, number];
1170
- readonly api_company: () => number;
1171
- readonly api_contact: () => number;
1172
- readonly api_general: () => number;
1173
- readonly api_identity: () => number;
1174
- readonly api_notification: () => number;
1175
- readonly bill_new: () => number;
1176
- readonly company_new: () => number;
1177
- readonly contact_new: () => number;
1178
- readonly general_new: () => number;
1179
- readonly identity_new: () => number;
1180
- readonly notification_new: () => number;
1181
- readonly __wbg_identity_free: (a: number, b: number) => void;
1182
- readonly __wbg_general_free: (a: number, b: number) => void;
1183
- readonly __wbg_company_free: (a: number, b: number) => void;
1184
- readonly __wbg_bill_free: (a: number, b: number) => void;
1185
- readonly __wbg_notification_free: (a: number, b: number) => void;
1186
- readonly __wbg_contact_free: (a: number, b: number) => void;
1187
- readonly wasm_bindgen__convert__closures_____invoke__h0ca8d5cbec1408a5: (a: number, b: number) => void;
1188
- readonly wasm_bindgen__closure__destroy__h192e95482c726bd9: (a: number, b: number) => void;
1189
- readonly wasm_bindgen__closure__destroy__h2779723cb848264c: (a: number, b: number) => void;
1190
- readonly wasm_bindgen__convert__closures_____invoke__h81816996ad0cef11: (a: number, b: number, c: any) => void;
1191
- readonly wasm_bindgen__convert__closures_____invoke__hd5998c5271805815: (a: number, b: number, c: any) => [number, number];
1192
- readonly wasm_bindgen__closure__destroy__hfb3b78a8c9ef7360: (a: number, b: number) => void;
1193
- readonly wasm_bindgen__convert__closures_____invoke__he5b470d34baeaaa5: (a: number, b: number) => void;
1194
- readonly wasm_bindgen__convert__closures_____invoke__h17913a0979187f06: (a: number, b: number, c: any, d: any) => void;
1195
- readonly __wbindgen_malloc: (a: number, b: number) => number;
1196
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1197
- readonly __wbindgen_exn_store: (a: number) => void;
1198
- readonly __externref_table_alloc: () => number;
1199
- readonly __wbindgen_externrefs: WebAssembly.Table;
1200
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1201
- readonly __externref_table_dealloc: (a: number) => void;
1202
- readonly __wbindgen_start: () => void;
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>;