triqai 0.1.0

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.
@@ -0,0 +1,1206 @@
1
+ type components = {
2
+ schemas: {
3
+ ApiInfoResponse: {
4
+ data: {
5
+ endpoints: {
6
+ /** @example /v1/categories */
7
+ categories: string;
8
+ /** @example /v1/intermediaries/{id} */
9
+ intermediaries: string;
10
+ /** @example /v1/locations/{id} */
11
+ locations: string;
12
+ /** @example /v1/merchants/{id} */
13
+ merchants: string;
14
+ /** @example /v1/report-issue */
15
+ reportIssue: string;
16
+ /** @example /v1/transactions */
17
+ transactions: string;
18
+ };
19
+ /** @enum {string} */
20
+ version: "v1";
21
+ };
22
+ meta: components["schemas"]["ResponseMeta"];
23
+ /** @enum {boolean} */
24
+ success: true;
25
+ };
26
+ Category: {
27
+ code: components["schemas"]["CategoryCode"];
28
+ name: string;
29
+ };
30
+ CategoryCode: {
31
+ mcc: number;
32
+ naics: number;
33
+ sic: number;
34
+ };
35
+ CategoryInfo: {
36
+ description: string;
37
+ /** @enum {integer} */
38
+ level: 1 | 2 | 3;
39
+ mcc?: number;
40
+ naics?: number;
41
+ name: string;
42
+ parent: string | null;
43
+ sic?: number;
44
+ /** @enum {string} */
45
+ type: "income" | "expense" | "transfer";
46
+ };
47
+ CategoryListMeta: components["schemas"]["ResponseMeta"] & {
48
+ categoryVersion: string;
49
+ };
50
+ CategoryListResponse: {
51
+ data: {
52
+ categories: components["schemas"]["CategoryInfo"][];
53
+ total: number;
54
+ };
55
+ meta: components["schemas"]["CategoryListMeta"];
56
+ /** @enum {boolean} */
57
+ success: true;
58
+ };
59
+ CategoryStructure: {
60
+ confidence: components["schemas"]["ConfidenceWithReasons"];
61
+ primary: components["schemas"]["Category"];
62
+ secondary: components["schemas"]["Category"] | null;
63
+ tertiary: components["schemas"]["Category"] | null;
64
+ };
65
+ ClientDisconnectedErrorResponse: {
66
+ error: {
67
+ /** @enum {string} */
68
+ code: "CLIENT_DISCONNECTED";
69
+ message: string;
70
+ };
71
+ /** @enum {boolean} */
72
+ success: false;
73
+ };
74
+ ConfidenceWithReasons: {
75
+ reasons: string[];
76
+ value: number;
77
+ };
78
+ Coordinates: {
79
+ /** Format: double */
80
+ latitude: number;
81
+ /** Format: double */
82
+ longitude: number;
83
+ };
84
+ DeleteTransactionResponse: {
85
+ data: {
86
+ /** @enum {boolean} */
87
+ deleted: true;
88
+ /** Format: uuid */
89
+ transactionId: string;
90
+ };
91
+ meta: components["schemas"]["ResponseMeta"];
92
+ /** @enum {boolean} */
93
+ success: true;
94
+ };
95
+ DuplicateRequestErrorResponse: {
96
+ error: {
97
+ /** @enum {string} */
98
+ code: "DUPLICATE_REQUEST";
99
+ details: {
100
+ requestId: string;
101
+ retryAfterSeconds?: number;
102
+ /** @enum {string} */
103
+ state?: "in_progress" | "completed";
104
+ };
105
+ message: string;
106
+ };
107
+ /** @enum {boolean} */
108
+ success: false;
109
+ };
110
+ EnrichedTransaction: components["schemas"]["TransactionRecord"] & {
111
+ entities?: components["schemas"]["EntityResult"][];
112
+ transaction?: components["schemas"]["TransactionData"];
113
+ };
114
+ EnrichmentData: {
115
+ entities: components["schemas"]["EntityResult"][];
116
+ transaction: components["schemas"]["TransactionData"];
117
+ };
118
+ /** @enum {string} */
119
+ EnrichmentErrorCode: "location_timeout" | "merchant_scrape_failed" | "processor_lookup_failed" | "rate_limited" | "internal_error" | "title_dissection_failed";
120
+ /** @enum {string} */
121
+ EnrichmentFieldPath: "transaction" | "transaction.category" | "transaction.category.primary" | "transaction.category.primary.name" | "transaction.category.primary.code" | "transaction.category.primary.code.mcc" | "transaction.category.primary.code.sic" | "transaction.category.primary.code.naics" | "transaction.category.secondary" | "transaction.category.secondary.name" | "transaction.category.secondary.code" | "transaction.category.secondary.code.mcc" | "transaction.category.secondary.code.sic" | "transaction.category.secondary.code.naics" | "transaction.category.tertiary" | "transaction.category.tertiary.name" | "transaction.category.tertiary.code" | "transaction.category.tertiary.code.mcc" | "transaction.category.tertiary.code.sic" | "transaction.category.tertiary.code.naics" | "transaction.category.confidence" | "transaction.subscription" | "transaction.subscription.recurring" | "transaction.subscription.type" | "transaction.channel" | "transaction.confidence" | "entities" | "entities.merchant" | "entities.merchant.data" | "entities.merchant.data.name" | "entities.merchant.data.icon" | "entities.merchant.data.website" | "entities.merchant.data.description" | "entities.location" | "entities.location.data" | "entities.location.data.name" | "entities.location.data.formatted" | "entities.location.data.structured" | "entities.location.data.structured.city" | "entities.location.data.structured.country" | "entities.intermediary" | "entities.intermediary.data" | "entities.intermediary.data.name" | "entities.intermediary.data.icon" | "entities.person" | "entities.person.data" | "entities.person.data.displayName";
122
+ /** @description Disable extraction of specific entity types from the transaction title. */
123
+ EnrichmentFilterOptions: {
124
+ /** @description When `true`, intermediary (payment processor) extraction is skipped. */
125
+ noIntermediary?: boolean;
126
+ /** @description When `true`, location extraction is skipped. */
127
+ noLocation?: boolean;
128
+ /** @description When `true`, merchant extraction is skipped entirely. */
129
+ noMerchant?: boolean;
130
+ };
131
+ EnrichMeta: components["schemas"]["ResponseMeta"] & {
132
+ categoryVersion: string;
133
+ errors?: components["schemas"]["EnrichmentErrorCode"][];
134
+ /**
135
+ * Format: uuid
136
+ * @description Stable transaction row ID for this enrichment request (when persisted).
137
+ */
138
+ transactionId?: string;
139
+ };
140
+ EnrichRequest: {
141
+ /**
142
+ * @description ISO 3166-1 alpha-2 country code (e.g., US, GB, DE).
143
+ * Both upper and lowercase are accepted; the API normalizes to uppercase.
144
+ */
145
+ country: string;
146
+ options?: components["schemas"]["EnrichRequestOptions"];
147
+ /** @description Raw transaction description from the bank statement. */
148
+ title: string;
149
+ type: components["schemas"]["TransactionType"];
150
+ };
151
+ /**
152
+ * @description Optional enrichment controls. Use `filters` to skip specific entity types,
153
+ * or pre-fill known entity data to improve accuracy and reduce latency.
154
+ *
155
+ * **Mutual exclusivity:** a filter flag (e.g. `noMerchant`) cannot be combined with
156
+ * pre-filled data for the same entity type.
157
+ */
158
+ EnrichRequestOptions: {
159
+ filters?: components["schemas"]["EnrichmentFilterOptions"];
160
+ /** @description Up to 5 pre-filled intermediary entries. */
161
+ intermediaries?: components["schemas"]["PrefilledIntermediary"][];
162
+ location?: components["schemas"]["PrefilledLocation"];
163
+ merchant?: components["schemas"]["PrefilledMerchant"];
164
+ } & (unknown & unknown & unknown);
165
+ EnrichSuccessResponse: {
166
+ data: components["schemas"]["EnrichmentData"];
167
+ meta: components["schemas"]["EnrichMeta"];
168
+ partial: boolean;
169
+ /** @enum {boolean} */
170
+ success: true;
171
+ };
172
+ EntityResult: {
173
+ confidence: components["schemas"]["ConfidenceWithReasons"];
174
+ data: components["schemas"]["MerchantData"] | components["schemas"]["LocationData"] | components["schemas"]["IntermediaryData"] | components["schemas"]["PersonData"];
175
+ role: string;
176
+ /** @enum {string} */
177
+ type: "merchant" | "location" | "intermediary" | "person";
178
+ };
179
+ ErrorDetails: {
180
+ fieldErrors?: {
181
+ [key: string]: string[];
182
+ };
183
+ } & {
184
+ [key: string]: unknown;
185
+ };
186
+ ErrorObject: {
187
+ code: string;
188
+ details?: components["schemas"]["ErrorDetails"];
189
+ message: string;
190
+ };
191
+ ErrorResponse: {
192
+ error: components["schemas"]["ErrorObject"];
193
+ meta: components["schemas"]["ResponseMeta"];
194
+ /** @enum {boolean} */
195
+ success: false;
196
+ };
197
+ HealthResponse: {
198
+ data: {
199
+ service: string;
200
+ /** @enum {string} */
201
+ status: "healthy";
202
+ version: string;
203
+ };
204
+ meta: components["schemas"]["ResponseMeta"];
205
+ /** @enum {boolean} */
206
+ success: true;
207
+ };
208
+ IntermediaryData: {
209
+ color: string | null;
210
+ description: string | null;
211
+ domain: string | null;
212
+ icon: string | null;
213
+ /** Format: uuid */
214
+ id: string;
215
+ name: string;
216
+ website: string | null;
217
+ };
218
+ IntermediaryRecord: components["schemas"]["IntermediaryData"] & {
219
+ role: string;
220
+ };
221
+ IntermediaryResponse: {
222
+ data: {
223
+ intermediary: components["schemas"]["IntermediaryData"];
224
+ };
225
+ meta: components["schemas"]["ResponseMeta"];
226
+ /** @enum {boolean} */
227
+ success: true;
228
+ };
229
+ IssueReport: {
230
+ /** Format: date-time */
231
+ createdAt: string;
232
+ description: string;
233
+ fields: string[];
234
+ /** Format: uuid */
235
+ id: string;
236
+ status: components["schemas"]["IssueReportStatus"];
237
+ statusMessage: string | null;
238
+ /** Format: uuid */
239
+ transactionId: string;
240
+ /** Format: date-time */
241
+ updatedAt: string;
242
+ };
243
+ IssueReportListResponse: {
244
+ data: components["schemas"]["IssueReport"][];
245
+ meta: components["schemas"]["PaginationMeta"];
246
+ /** @enum {boolean} */
247
+ success: true;
248
+ };
249
+ IssueReportResponse: {
250
+ data: {
251
+ issueReport: components["schemas"]["IssueReport"];
252
+ };
253
+ meta: components["schemas"]["ResponseMeta"];
254
+ /** @enum {boolean} */
255
+ success: true;
256
+ };
257
+ /** @enum {string} */
258
+ IssueReportStatus: "pending" | "reviewing" | "resolved" | "dismissed";
259
+ LocationData: {
260
+ /** @description Human-readable formatted address string. */
261
+ formatted: string;
262
+ /** Format: uuid */
263
+ id: string;
264
+ /** @description Location display name (store/branch name). */
265
+ name: string;
266
+ /** @description Phone number if available. */
267
+ phoneNumber: string | null;
268
+ /** @description Price range indicator (e.g. "$", "$$"). May be absent. */
269
+ priceRange?: string | null;
270
+ /** @description User rating data from external sources. May be absent. */
271
+ rating?: components["schemas"]["LocationRating"] | null;
272
+ structured: components["schemas"]["StructuredAddress"];
273
+ /** @description Location-specific website URL. May be absent. */
274
+ website?: string | null;
275
+ };
276
+ LocationRating: {
277
+ average: number;
278
+ count: number;
279
+ source: string;
280
+ };
281
+ LocationResponse: {
282
+ data: {
283
+ location: components["schemas"]["LocationData"];
284
+ };
285
+ meta: components["schemas"]["ResponseMeta"];
286
+ /** @enum {boolean} */
287
+ success: true;
288
+ };
289
+ MerchantData: {
290
+ alias: string[];
291
+ color: string | null;
292
+ /** @description Brief description of the merchant. May be absent. */
293
+ description?: string;
294
+ domain: string | null;
295
+ icon: string | null;
296
+ /** Format: uuid */
297
+ id: string;
298
+ /** @description Search keywords associated with this merchant. May be absent. */
299
+ keywords?: string[];
300
+ name: string;
301
+ website: string | null;
302
+ };
303
+ MerchantResponse: {
304
+ data: {
305
+ merchant: components["schemas"]["MerchantData"];
306
+ };
307
+ meta: components["schemas"]["ResponseMeta"];
308
+ /** @enum {boolean} */
309
+ success: true;
310
+ };
311
+ PaginationMeta: components["schemas"]["ResponseMeta"] & {
312
+ page: number;
313
+ size: number;
314
+ total: number;
315
+ totalPages: number;
316
+ };
317
+ PersonData: {
318
+ displayName: string;
319
+ };
320
+ /**
321
+ * @description Supply known intermediary (payment processor) data.
322
+ * When `id` is provided, the intermediary is resolved by primary key (returns 422 if not found).
323
+ * `name` and `domain` perform best-effort lookups.
324
+ */
325
+ PrefilledIntermediary: {
326
+ /** @description Intermediary domain (e.g. `paypal.com`). */
327
+ domain?: string;
328
+ /**
329
+ * Format: uuid
330
+ * @description Existing Triqai intermediary UUID.
331
+ */
332
+ id?: string;
333
+ /** @description Intermediary display name for lookup. */
334
+ name?: string;
335
+ } | unknown | unknown | unknown;
336
+ /** @description Supply known location context to improve enrichment accuracy. */
337
+ PrefilledLocation: {
338
+ /** @description City name where the transaction occurred. */
339
+ cityName?: string;
340
+ /** @description GPS coordinates of the transaction. */
341
+ coordinates?: {
342
+ lat: number;
343
+ lng: number;
344
+ };
345
+ /** @description Whether the transaction happened at a physical location. */
346
+ physicalLocation?: boolean;
347
+ /** @description Store or branch number. */
348
+ storeNumber?: string;
349
+ /** @description Street name of the transaction location. */
350
+ streetName?: string;
351
+ };
352
+ /**
353
+ * @description Supply known merchant data to bypass or augment merchant extraction.
354
+ * When `id` is provided, the merchant is resolved by primary key (returns 422 if not found).
355
+ * `name` and `domain` perform best-effort lookups and fall through gracefully.
356
+ */
357
+ PrefilledMerchant: {
358
+ /** @description Merchant domain (e.g. `starbucks.com`). */
359
+ domain?: string;
360
+ /**
361
+ * Format: uuid
362
+ * @description Existing Triqai merchant UUID.
363
+ */
364
+ id?: string;
365
+ /** @description Merchant display name for lookup. */
366
+ name?: string;
367
+ };
368
+ ReportIssueRequest: {
369
+ description: string;
370
+ fields: components["schemas"]["EnrichmentFieldPath"][];
371
+ /** Format: uuid */
372
+ transaction_id: string;
373
+ };
374
+ ResponseMeta: {
375
+ /** Format: date-time */
376
+ generatedAt: string;
377
+ requestId: string;
378
+ version: string;
379
+ } & {
380
+ [key: string]: unknown;
381
+ };
382
+ StructuredAddress: {
383
+ city: string;
384
+ coordinates: components["schemas"]["Coordinates"];
385
+ country: string;
386
+ countryName: string;
387
+ postalCode: string;
388
+ state: string;
389
+ street: string;
390
+ timezone: string;
391
+ };
392
+ Subscription: {
393
+ recurring: boolean;
394
+ type: components["schemas"]["SubscriptionType"] | null;
395
+ };
396
+ /** @enum {string} */
397
+ SubscriptionType: "streaming" | "software" | "news" | "fitness" | "mobile" | "gaming" | "utilities" | "other";
398
+ /** @enum {string} */
399
+ TransactionChannel: "in_store" | "online" | "mobile_app" | "atm" | "bank_transfer" | "unknown";
400
+ TransactionData: {
401
+ category: components["schemas"]["CategoryStructure"];
402
+ channel: components["schemas"]["TransactionChannel"];
403
+ confidence: components["schemas"]["ConfidenceWithReasons"];
404
+ subscription: components["schemas"]["Subscription"];
405
+ };
406
+ TransactionDetailResponse: {
407
+ data: {
408
+ transaction: components["schemas"]["EnrichedTransaction"];
409
+ };
410
+ meta: components["schemas"]["ResponseMeta"];
411
+ /** @enum {boolean} */
412
+ success: true;
413
+ };
414
+ TransactionListResponse: {
415
+ data: {
416
+ pagination: components["schemas"]["TransactionPagination"];
417
+ transactions: components["schemas"]["EnrichedTransaction"][];
418
+ };
419
+ meta: components["schemas"]["ResponseMeta"];
420
+ /** @enum {boolean} */
421
+ success: true;
422
+ };
423
+ TransactionPagination: {
424
+ page: number;
425
+ size: number;
426
+ total: number;
427
+ totalPages: number;
428
+ };
429
+ TransactionRecord: {
430
+ country: string | null;
431
+ /** Format: date-time */
432
+ createdAt: string;
433
+ direction: components["schemas"]["TransactionType"];
434
+ errors: string[];
435
+ /** Format: uuid */
436
+ id: string;
437
+ partial: boolean;
438
+ processingTimeMs: number | null;
439
+ raw: string;
440
+ /** @enum {string} */
441
+ status: "pending" | "success" | "partial" | "error";
442
+ };
443
+ /** @enum {string} */
444
+ TransactionType: "expense" | "income";
445
+ };
446
+ responses: {
447
+ /** @description Client closed request before completion */
448
+ ClientDisconnected: {
449
+ headers: {
450
+ [name: string]: unknown;
451
+ };
452
+ content: {
453
+ "application/json": components["schemas"]["ClientDisconnectedErrorResponse"];
454
+ };
455
+ };
456
+ /** @description Duplicate idempotent request (completed or in-progress) */
457
+ DuplicateRequest: {
458
+ headers: {
459
+ /** @description Present when `details.state=in_progress`; value is in seconds. */
460
+ "Retry-After"?: number;
461
+ [name: string]: unknown;
462
+ };
463
+ content: {
464
+ "application/json": components["schemas"]["DuplicateRequestErrorResponse"];
465
+ };
466
+ };
467
+ /** @description Authenticated but not authorized */
468
+ Forbidden: {
469
+ headers: {
470
+ [name: string]: unknown;
471
+ };
472
+ content: {
473
+ /**
474
+ * @example {
475
+ * "success": false,
476
+ * "error": {
477
+ * "code": "authorization_error",
478
+ * "message": "Access denied"
479
+ * },
480
+ * "meta": {
481
+ * "generatedAt": "2026-02-16T00:00:00Z",
482
+ * "requestId": "f353ca91-4fc5-49f2-9b9e-304f83d11914",
483
+ * "version": "1.1.2"
484
+ * }
485
+ * }
486
+ */
487
+ "application/json": components["schemas"]["ErrorResponse"];
488
+ };
489
+ };
490
+ /** @description Upstream timeout */
491
+ GatewayTimeout: {
492
+ headers: {
493
+ [name: string]: unknown;
494
+ };
495
+ content: {
496
+ "application/json": components["schemas"]["ErrorResponse"];
497
+ };
498
+ };
499
+ /** @description Insufficient credits */
500
+ InsufficientCredits: {
501
+ headers: {
502
+ [name: string]: unknown;
503
+ };
504
+ content: {
505
+ /**
506
+ * @example {
507
+ * "success": false,
508
+ * "error": {
509
+ * "code": "insufficient_credits",
510
+ * "message": "Insufficient credits"
511
+ * },
512
+ * "meta": {
513
+ * "generatedAt": "2026-02-16T00:00:00Z",
514
+ * "requestId": "f353ca91-4fc5-49f2-9b9e-304f83d11914",
515
+ * "version": "1.1.2"
516
+ * }
517
+ * }
518
+ */
519
+ "application/json": components["schemas"]["ErrorResponse"];
520
+ };
521
+ };
522
+ /** @description Internal server error */
523
+ InternalError: {
524
+ headers: {
525
+ [name: string]: unknown;
526
+ };
527
+ content: {
528
+ "application/json": components["schemas"]["ErrorResponse"];
529
+ };
530
+ };
531
+ /** @description Resource not found */
532
+ NotFound: {
533
+ headers: {
534
+ [name: string]: unknown;
535
+ };
536
+ content: {
537
+ "application/json": components["schemas"]["ErrorResponse"];
538
+ };
539
+ };
540
+ /** @description Rate limit exceeded */
541
+ RateLimited: {
542
+ headers: {
543
+ /** @description Seconds until retry is allowed */
544
+ "Retry-After"?: number;
545
+ /** @description Max concurrent requests for the org */
546
+ "X-RateLimit-Concurrency-Limit"?: number;
547
+ /** @description Remaining concurrent request slots */
548
+ "X-RateLimit-Concurrency-Remaining"?: number;
549
+ /** @description Requests per second (sustained rate) */
550
+ "X-RateLimit-Limit"?: number;
551
+ /** @description Current token-bucket capacity available */
552
+ "X-RateLimit-Remaining"?: number;
553
+ /** @description Timestamp when token bucket refills */
554
+ "X-RateLimit-Reset"?: string;
555
+ /** @description Active limiting dimension */
556
+ "X-RateLimit-Scope"?: "rps" | "concurrency";
557
+ [name: string]: unknown;
558
+ };
559
+ content: {
560
+ /**
561
+ * @example {
562
+ * "success": false,
563
+ * "error": {
564
+ * "code": "rate_limited",
565
+ * "message": "Rate limit exceeded"
566
+ * },
567
+ * "meta": {
568
+ * "generatedAt": "2026-02-16T00:00:00Z",
569
+ * "requestId": "f353ca91-4fc5-49f2-9b9e-304f83d11914",
570
+ * "version": "1.1.2"
571
+ * }
572
+ * }
573
+ */
574
+ "application/json": components["schemas"]["ErrorResponse"];
575
+ };
576
+ };
577
+ /** @description Service temporarily unavailable */
578
+ ServiceUnavailable: {
579
+ headers: {
580
+ /** @description Seconds until retry is allowed */
581
+ "Retry-After"?: number;
582
+ [name: string]: unknown;
583
+ };
584
+ content: {
585
+ "application/json": components["schemas"]["ErrorResponse"];
586
+ };
587
+ };
588
+ /** @description Authentication failed or missing credentials */
589
+ Unauthorized: {
590
+ headers: {
591
+ [name: string]: unknown;
592
+ };
593
+ content: {
594
+ /**
595
+ * @example {
596
+ * "success": false,
597
+ * "error": {
598
+ * "code": "authentication_error",
599
+ * "message": "API key is required"
600
+ * },
601
+ * "meta": {
602
+ * "generatedAt": "2026-02-16T00:00:00Z",
603
+ * "requestId": "f353ca91-4fc5-49f2-9b9e-304f83d11914",
604
+ * "version": "1.1.2"
605
+ * }
606
+ * }
607
+ */
608
+ "application/json": components["schemas"]["ErrorResponse"];
609
+ };
610
+ };
611
+ /** @description Request validation failed */
612
+ ValidationError: {
613
+ headers: {
614
+ [name: string]: unknown;
615
+ };
616
+ content: {
617
+ /**
618
+ * @example {
619
+ * "success": false,
620
+ * "error": {
621
+ * "code": "validation_error",
622
+ * "message": "Validation failed",
623
+ * "details": {
624
+ * "fieldErrors": {
625
+ * "title": [
626
+ * "Title is required"
627
+ * ]
628
+ * }
629
+ * }
630
+ * },
631
+ * "meta": {
632
+ * "generatedAt": "2026-02-16T00:00:00Z",
633
+ * "requestId": "f353ca91-4fc5-49f2-9b9e-304f83d11914",
634
+ * "version": "1.1.2"
635
+ * }
636
+ * }
637
+ */
638
+ "application/json": components["schemas"]["ErrorResponse"];
639
+ };
640
+ };
641
+ };
642
+ parameters: {
643
+ IdPath: string;
644
+ };
645
+ requestBodies: never;
646
+ headers: never;
647
+ pathItems: never;
648
+ };
649
+
650
+ /**
651
+ * Re-exports from the auto-generated OpenAPI types, plus hand-crafted
652
+ * convenience aliases for the most common shapes users interact with.
653
+ */
654
+
655
+ type EnrichRequest = components["schemas"]["EnrichRequest"];
656
+ type EnrichRequestOptions = components["schemas"]["EnrichRequestOptions"];
657
+ type EnrichmentFilterOptions = components["schemas"]["EnrichmentFilterOptions"];
658
+ type PrefilledMerchant = components["schemas"]["PrefilledMerchant"];
659
+ type PrefilledLocation = components["schemas"]["PrefilledLocation"];
660
+ type PrefilledIntermediary = {
661
+ id?: string;
662
+ name?: string;
663
+ domain?: string;
664
+ } & ({
665
+ id: string;
666
+ } | {
667
+ name: string;
668
+ } | {
669
+ domain: string;
670
+ });
671
+ type EnrichSuccessResponse = components["schemas"]["EnrichSuccessResponse"];
672
+ type EnrichmentData = components["schemas"]["EnrichmentData"];
673
+ type EnrichMeta = components["schemas"]["EnrichMeta"];
674
+ type TransactionData = components["schemas"]["TransactionData"];
675
+ type TransactionType = components["schemas"]["TransactionType"];
676
+ type TransactionChannel = components["schemas"]["TransactionChannel"];
677
+ type TransactionRecord = components["schemas"]["TransactionRecord"];
678
+ type EnrichedTransaction = components["schemas"]["EnrichedTransaction"];
679
+ type TransactionPagination = components["schemas"]["TransactionPagination"];
680
+ type TransactionListResponse = components["schemas"]["TransactionListResponse"];
681
+ type TransactionDetailResponse = components["schemas"]["TransactionDetailResponse"];
682
+ type DeleteTransactionResponse = components["schemas"]["DeleteTransactionResponse"];
683
+ type CategoryStructure = components["schemas"]["CategoryStructure"];
684
+ type Category = components["schemas"]["Category"];
685
+ type CategoryCode = components["schemas"]["CategoryCode"];
686
+ type CategoryInfo = components["schemas"]["CategoryInfo"];
687
+ type CategoryListResponse = components["schemas"]["CategoryListResponse"];
688
+ type ConfidenceWithReasons = components["schemas"]["ConfidenceWithReasons"];
689
+ type Subscription = components["schemas"]["Subscription"];
690
+ type SubscriptionType = components["schemas"]["SubscriptionType"];
691
+ type EntityResult = components["schemas"]["EntityResult"];
692
+ type MerchantData = components["schemas"]["MerchantData"];
693
+ type LocationData = components["schemas"]["LocationData"];
694
+ type IntermediaryData = components["schemas"]["IntermediaryData"];
695
+ type PersonData = components["schemas"]["PersonData"];
696
+ type Coordinates = components["schemas"]["Coordinates"];
697
+ type StructuredAddress = components["schemas"]["StructuredAddress"];
698
+ type LocationRating = components["schemas"]["LocationRating"];
699
+ type IntermediaryRecord = components["schemas"]["IntermediaryRecord"];
700
+ type MerchantResponse = components["schemas"]["MerchantResponse"];
701
+ type LocationResponse = components["schemas"]["LocationResponse"];
702
+ type IntermediaryResponse = components["schemas"]["IntermediaryResponse"];
703
+ type DuplicateRequestErrorResponse = components["schemas"]["DuplicateRequestErrorResponse"];
704
+ type ClientDisconnectedErrorResponse = components["schemas"]["ClientDisconnectedErrorResponse"];
705
+ type IssueReport = components["schemas"]["IssueReport"];
706
+ type IssueReportStatus = components["schemas"]["IssueReportStatus"];
707
+ type ReportIssueRequest = components["schemas"]["ReportIssueRequest"];
708
+ type IssueReportResponse = components["schemas"]["IssueReportResponse"];
709
+ type IssueReportListResponse = components["schemas"]["IssueReportListResponse"];
710
+ type EnrichmentFieldPath = components["schemas"]["EnrichmentFieldPath"];
711
+ type EnrichmentErrorCode = components["schemas"]["EnrichmentErrorCode"];
712
+ type ErrorResponse = components["schemas"]["ErrorResponse"];
713
+ type ErrorObject = components["schemas"]["ErrorObject"];
714
+ type ResponseMeta = components["schemas"]["ResponseMeta"];
715
+ type PaginationMeta = components["schemas"]["PaginationMeta"];
716
+ type HealthResponse = components["schemas"]["HealthResponse"];
717
+ type ApiInfoResponse = components["schemas"]["ApiInfoResponse"];
718
+ interface TriqaiConfig {
719
+ /** Base URL for the Triqai API. Defaults to https://api.triqai.com */
720
+ baseUrl?: string;
721
+ /** Maximum number of automatic retries on retryable errors. Defaults to 3. */
722
+ maxRetries?: number;
723
+ /** Base delay in milliseconds for exponential backoff. Defaults to 500. */
724
+ retryDelay?: number;
725
+ /** Maximum delay in milliseconds for exponential backoff. Defaults to 30000. */
726
+ maxRetryDelay?: number;
727
+ /** Request timeout in milliseconds. Defaults to 60000. */
728
+ timeout?: number;
729
+ /** Additional default headers to include in every request. */
730
+ defaultHeaders?: Record<string, string>;
731
+ /** Called before every HTTP request. Useful for logging/debugging. */
732
+ onRequest?: (request: RequestInfo) => void;
733
+ /** Called after every HTTP response. Useful for logging/debugging. */
734
+ onResponse?: (response: ResponseInfo) => void;
735
+ }
736
+ interface RequestInfo {
737
+ method: string;
738
+ url: string;
739
+ headers: Record<string, string>;
740
+ body?: unknown;
741
+ }
742
+ interface ResponseInfo {
743
+ status: number;
744
+ headers: Record<string, string>;
745
+ body: unknown;
746
+ durationMs: number;
747
+ retryCount: number;
748
+ }
749
+ interface RateLimitInfo {
750
+ limit?: number;
751
+ remaining?: number;
752
+ reset?: string;
753
+ scope?: "rps" | "concurrency";
754
+ concurrencyLimit?: number;
755
+ concurrencyRemaining?: number;
756
+ retryAfter?: number;
757
+ }
758
+ interface EnrichOptions {
759
+ /** Bypass cached result. */
760
+ force?: boolean;
761
+ /** Idempotency key for safe retries. Must match ^[a-zA-Z0-9_-]{1,64}$. */
762
+ idempotencyKey?: string;
763
+ }
764
+ interface ListTransactionsParams {
765
+ page?: number;
766
+ size?: number;
767
+ /** Inclusive lower bound (ISO 8601 timestamp or Date). */
768
+ startDate?: string | Date;
769
+ /** Inclusive upper bound (ISO 8601 timestamp or Date). */
770
+ endDate?: string | Date;
771
+ }
772
+ interface ListIssueReportsParams {
773
+ page?: number;
774
+ size?: number;
775
+ status?: IssueReportStatus;
776
+ transactionId?: string;
777
+ }
778
+
779
+ interface HttpResponse<T> {
780
+ data: T;
781
+ status: number;
782
+ headers: Record<string, string>;
783
+ rateLimitInfo: RateLimitInfo;
784
+ }
785
+ declare class HttpClient {
786
+ private readonly apiKey;
787
+ private readonly baseUrl;
788
+ private readonly maxRetries;
789
+ private readonly retryDelay;
790
+ private readonly maxRetryDelay;
791
+ private readonly timeout;
792
+ private readonly defaultHeaders;
793
+ private readonly onRequest?;
794
+ private readonly onResponse?;
795
+ constructor(apiKey: string, config?: TriqaiConfig);
796
+ get<T>(path: string, query?: Record<string, unknown>): Promise<HttpResponse<T>>;
797
+ post<T>(path: string, body?: unknown): Promise<HttpResponse<T>>;
798
+ delete<T>(path: string): Promise<HttpResponse<T>>;
799
+ private request;
800
+ /**
801
+ * Variant that injects custom headers (used by resources for Idempotency-Key etc.).
802
+ */
803
+ postWithHeaders<T>(path: string, body: unknown, headers: Record<string, string>, query?: Record<string, unknown>): Promise<HttpResponse<T>>;
804
+ private buildUrl;
805
+ private calculateDelay;
806
+ private canRetry;
807
+ private mapError;
808
+ }
809
+
810
+ declare class Categories {
811
+ private readonly http;
812
+ constructor(http: HttpClient);
813
+ /**
814
+ * List all available transaction categories.
815
+ *
816
+ * Returns the full category tree used for transaction classification,
817
+ * including MCC, SIC, and NAICS codes.
818
+ *
819
+ * @returns Array of category info objects and the total count.
820
+ *
821
+ * @example
822
+ * ```ts
823
+ * const { categories, total } = await triqai.categories.list();
824
+ * console.log(`${total} categories available`);
825
+ * ```
826
+ */
827
+ list(): Promise<{
828
+ categories: CategoryInfo[];
829
+ total: number;
830
+ categoryVersion: string;
831
+ }>;
832
+ }
833
+
834
+ declare class Intermediaries {
835
+ private readonly http;
836
+ constructor(http: HttpClient);
837
+ /**
838
+ * Get an intermediary (payment processor / platform) by ID.
839
+ *
840
+ * @param id - Intermediary UUID.
841
+ * @returns The intermediary data (name, icon, description, website, domain, etc.).
842
+ *
843
+ * @example
844
+ * ```ts
845
+ * const intermediary = await triqai.intermediaries.get("550e8400-...");
846
+ * console.log(intermediary.name); // "PayPal", "Square", etc.
847
+ * ```
848
+ */
849
+ get(id: string): Promise<IntermediaryData>;
850
+ }
851
+
852
+ /**
853
+ * Pagination helpers for list endpoints.
854
+ *
855
+ * Provides a `Page<T>` type with metadata and an `autoPaginate()` method
856
+ * that returns an async iterator walking through all pages automatically.
857
+ */
858
+ interface PageInfo {
859
+ page: number;
860
+ size: number;
861
+ total: number;
862
+ totalPages: number;
863
+ }
864
+ declare class Page<T> {
865
+ readonly data: T[];
866
+ readonly pageInfo: PageInfo;
867
+ private readonly _fetchPage;
868
+ constructor(data: T[], pageInfo: PageInfo, fetchPage: (page: number, size: number) => Promise<Page<T>>);
869
+ get hasNextPage(): boolean;
870
+ get hasPreviousPage(): boolean;
871
+ nextPage(): Promise<Page<T>>;
872
+ previousPage(): Promise<Page<T>>;
873
+ /**
874
+ * Returns an async iterator that yields every item across all pages,
875
+ * starting from the current page.
876
+ *
877
+ * ```ts
878
+ * for await (const item of page.autoPaginate()) {
879
+ * console.log(item);
880
+ * }
881
+ * ```
882
+ */
883
+ autoPaginate(): AsyncGenerator<T, void, unknown>;
884
+ /**
885
+ * Symbol.asyncIterator so `Page` itself can be used in `for await...of`.
886
+ */
887
+ [Symbol.asyncIterator](): AsyncIterableIterator<T>;
888
+ }
889
+
890
+ interface CreateIssueReportParams {
891
+ /** The transaction ID to report an issue for. */
892
+ transactionId: string;
893
+ /** A description of what is wrong with the enrichment result. */
894
+ description: string;
895
+ /** Which enrichment fields are incorrect. */
896
+ fields: EnrichmentFieldPath[];
897
+ }
898
+ declare class IssueReports {
899
+ private readonly http;
900
+ constructor(http: HttpClient);
901
+ /**
902
+ * Report an issue with an enrichment result.
903
+ *
904
+ * @param params - The issue report details.
905
+ * @returns The created issue report.
906
+ *
907
+ * @example
908
+ * ```ts
909
+ * const report = await triqai.issueReports.create({
910
+ * transactionId: "tx-uuid",
911
+ * description: "Merchant was identified incorrectly",
912
+ * fields: ["entities.merchant.data.name"],
913
+ * });
914
+ * console.log(report.id, report.status);
915
+ * ```
916
+ */
917
+ create(params: CreateIssueReportParams): Promise<IssueReport>;
918
+ /**
919
+ * List issue reports with pagination.
920
+ *
921
+ * @returns A `Page` of issue reports. Use `.autoPaginate()` or
922
+ * `for await...of` to iterate through all pages automatically.
923
+ *
924
+ * @example
925
+ * ```ts
926
+ * const page = await triqai.issueReports.list({ status: "pending" });
927
+ * for (const report of page.data) {
928
+ * console.log(report.id, report.status);
929
+ * }
930
+ * ```
931
+ */
932
+ list(params?: ListIssueReportsParams): Promise<Page<IssueReport>>;
933
+ /**
934
+ * Get a single issue report by ID.
935
+ *
936
+ * @param id - Issue report UUID.
937
+ * @returns The issue report details.
938
+ */
939
+ get(id: string): Promise<IssueReport>;
940
+ }
941
+
942
+ declare class Locations {
943
+ private readonly http;
944
+ constructor(http: HttpClient);
945
+ /**
946
+ * Get a location by ID.
947
+ *
948
+ * @param id - Location UUID.
949
+ * @returns The location data (name, formatted address, coordinates, phone, rating, etc.).
950
+ *
951
+ * @example
952
+ * ```ts
953
+ * const location = await triqai.locations.get("550e8400-e29b-41d4-a716-446655440000");
954
+ * console.log(location.formatted, location.structured.city);
955
+ * ```
956
+ */
957
+ get(id: string): Promise<LocationData>;
958
+ }
959
+
960
+ declare class Merchants {
961
+ private readonly http;
962
+ constructor(http: HttpClient);
963
+ /**
964
+ * Get a merchant by ID.
965
+ *
966
+ * @param id - Merchant UUID.
967
+ * @returns The merchant data (name, icon, website, domain, aliases, etc.).
968
+ *
969
+ * @example
970
+ * ```ts
971
+ * const merchant = await triqai.merchants.get("550e8400-e29b-41d4-a716-446655440000");
972
+ * console.log(merchant.name, merchant.website);
973
+ * ```
974
+ */
975
+ get(id: string): Promise<MerchantData>;
976
+ }
977
+
978
+ declare class Transactions {
979
+ private readonly http;
980
+ constructor(http: HttpClient);
981
+ /**
982
+ * Enrich a transaction with merchant, category, location, and entity data.
983
+ *
984
+ * @param request - The transaction to enrich (title, country, type, and optional options).
985
+ * @param options - Optional enrichment controls (force bypass cache, idempotency key).
986
+ * @returns The enriched transaction data.
987
+ *
988
+ * @example
989
+ * ```ts
990
+ * const result = await triqai.transactions.enrich({
991
+ * title: "STARBUCKS SEATTLE WA",
992
+ * country: "US",
993
+ * type: "expense",
994
+ * });
995
+ * console.log(result.data.entities);
996
+ * ```
997
+ */
998
+ enrich(request: EnrichRequest, options?: EnrichOptions): Promise<EnrichSuccessResponse>;
999
+ /**
1000
+ * List enriched transactions with pagination.
1001
+ *
1002
+ * @returns A `Page` of enriched transactions. Use `.autoPaginate()` or
1003
+ * `for await...of` to iterate through all pages automatically.
1004
+ *
1005
+ * @example
1006
+ * ```ts
1007
+ * const page = await triqai.transactions.list({ size: 10 });
1008
+ * console.log(page.data); // first 10 transactions
1009
+ *
1010
+ * // Auto-paginate through all:
1011
+ * for await (const tx of page) {
1012
+ * console.log(tx.id, tx.raw);
1013
+ * }
1014
+ * ```
1015
+ */
1016
+ list(params?: ListTransactionsParams): Promise<Page<EnrichedTransaction>>;
1017
+ /**
1018
+ * Get a single transaction by ID.
1019
+ *
1020
+ * @param id - Transaction UUID.
1021
+ * @returns The enriched transaction record.
1022
+ */
1023
+ get(id: string): Promise<EnrichedTransaction>;
1024
+ /**
1025
+ * Delete a transaction by ID.
1026
+ *
1027
+ * @param id - Transaction UUID.
1028
+ * @returns Confirmation with the deleted transaction ID.
1029
+ */
1030
+ delete(id: string): Promise<{
1031
+ deleted: true;
1032
+ transactionId: string;
1033
+ }>;
1034
+ }
1035
+
1036
+ /**
1037
+ * The Triqai SDK client.
1038
+ *
1039
+ * @example
1040
+ * ```ts
1041
+ * import Triqai from "triqai";
1042
+ *
1043
+ * const triqai = new Triqai("triq_your_api_key");
1044
+ *
1045
+ * const result = await triqai.transactions.enrich({
1046
+ * title: "STARBUCKS SEATTLE WA",
1047
+ * country: "US",
1048
+ * type: "expense",
1049
+ * });
1050
+ * ```
1051
+ */
1052
+ declare class Triqai {
1053
+ /** Enrich, list, get, and delete transactions. */
1054
+ readonly transactions: Transactions;
1055
+ /** List the full category taxonomy. */
1056
+ readonly categories: Categories;
1057
+ /** Look up merchant details by ID. */
1058
+ readonly merchants: Merchants;
1059
+ /** Look up location details by ID. */
1060
+ readonly locations: Locations;
1061
+ /** Look up intermediary (payment processor) details by ID. */
1062
+ readonly intermediaries: Intermediaries;
1063
+ /** Create and manage enrichment issue reports. */
1064
+ readonly issueReports: IssueReports;
1065
+ private readonly http;
1066
+ /**
1067
+ * Create a new Triqai SDK client.
1068
+ *
1069
+ * @param apiKey - Your Triqai API key (starts with `triq_`). Get one at https://triqai.com/dashboard
1070
+ * @param config - Optional configuration (base URL, retry settings, hooks).
1071
+ */
1072
+ constructor(apiKey: string, config?: TriqaiConfig);
1073
+ /**
1074
+ * Check the API health status.
1075
+ *
1076
+ * @returns Health status including service name and version.
1077
+ *
1078
+ * @example
1079
+ * ```ts
1080
+ * const health = await triqai.health();
1081
+ * console.log(health.data.status); // "healthy"
1082
+ * console.log(health.data.version); // "1.1.9"
1083
+ * ```
1084
+ */
1085
+ health(): Promise<HealthResponse>;
1086
+ /**
1087
+ * Get API version and endpoint directory.
1088
+ *
1089
+ * @returns API version info and available endpoint paths.
1090
+ *
1091
+ * @example
1092
+ * ```ts
1093
+ * const info = await triqai.apiInfo();
1094
+ * console.log(info.data.version); // "v1"
1095
+ * console.log(info.data.endpoints);
1096
+ * ```
1097
+ */
1098
+ apiInfo(): Promise<ApiInfoResponse>;
1099
+ /**
1100
+ * Make a raw GET request to any API path.
1101
+ * Useful for accessing endpoints not yet covered by a resource class.
1102
+ *
1103
+ * @param path - API path (e.g. "/v1/some-endpoint").
1104
+ * @param query - Optional query parameters.
1105
+ * @returns The full HTTP response including headers and rate limit info.
1106
+ */
1107
+ rawGet<T = unknown>(path: string, query?: Record<string, unknown>): Promise<HttpResponse<T>>;
1108
+ /**
1109
+ * Make a raw POST request to any API path.
1110
+ * Useful for accessing endpoints not yet covered by a resource class.
1111
+ *
1112
+ * @param path - API path (e.g. "/v1/some-endpoint").
1113
+ * @param body - Request body.
1114
+ * @returns The full HTTP response including headers and rate limit info.
1115
+ */
1116
+ rawPost<T = unknown>(path: string, body?: unknown): Promise<HttpResponse<T>>;
1117
+ /**
1118
+ * Make a raw DELETE request to any API path.
1119
+ * Useful for accessing endpoints not yet covered by a resource class.
1120
+ *
1121
+ * @param path - API path (e.g. "/v1/some-resource/uuid").
1122
+ * @returns The full HTTP response including headers and rate limit info.
1123
+ */
1124
+ rawDelete<T = unknown>(path: string): Promise<HttpResponse<T>>;
1125
+ }
1126
+
1127
+ interface RawErrorObject {
1128
+ code: string;
1129
+ message: string;
1130
+ details?: Record<string, unknown>;
1131
+ }
1132
+ interface RawResponseMeta {
1133
+ generatedAt: string;
1134
+ requestId: string;
1135
+ version: string;
1136
+ [key: string]: unknown;
1137
+ }
1138
+ declare class TriqaiError extends Error {
1139
+ /** HTTP status code from the API response. */
1140
+ readonly statusCode: number;
1141
+ /** Machine-readable error code from the API (e.g. "validation_error"). */
1142
+ readonly code: string;
1143
+ /** Correlation ID for support inquiries. */
1144
+ readonly requestId: string | undefined;
1145
+ /** The raw error body returned by the API. */
1146
+ readonly rawError: RawErrorObject | undefined;
1147
+ /** Response metadata. */
1148
+ readonly meta: RawResponseMeta | undefined;
1149
+ constructor(message: string, statusCode: number, opts?: {
1150
+ code?: string;
1151
+ requestId?: string;
1152
+ rawError?: RawErrorObject;
1153
+ meta?: RawResponseMeta;
1154
+ });
1155
+ }
1156
+ declare class AuthenticationError extends TriqaiError {
1157
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1158
+ }
1159
+ declare class AuthorizationError extends TriqaiError {
1160
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1161
+ }
1162
+ declare class InsufficientCreditsError extends TriqaiError {
1163
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1164
+ }
1165
+ declare class NotFoundError extends TriqaiError {
1166
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1167
+ }
1168
+ declare class ValidationError extends TriqaiError {
1169
+ readonly fieldErrors: Record<string, string[]>;
1170
+ constructor(message: string, fieldErrors?: Record<string, string[]>, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1171
+ }
1172
+ declare class ClientDisconnectedError extends TriqaiError {
1173
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1174
+ }
1175
+ declare class DuplicateRequestError extends TriqaiError {
1176
+ readonly state: "in_progress" | "completed" | undefined;
1177
+ readonly duplicateRequestId: string | undefined;
1178
+ readonly retryAfter: number | undefined;
1179
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2] & {
1180
+ state?: "in_progress" | "completed";
1181
+ duplicateRequestId?: string;
1182
+ retryAfter?: number;
1183
+ });
1184
+ }
1185
+ declare class RateLimitError extends TriqaiError {
1186
+ readonly rateLimitInfo: RateLimitInfo;
1187
+ constructor(message: string, rateLimitInfo: RateLimitInfo, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1188
+ }
1189
+ declare class InternalServerError extends TriqaiError {
1190
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1191
+ }
1192
+ declare class ServiceUnavailableError extends TriqaiError {
1193
+ readonly retryAfter: number | undefined;
1194
+ constructor(message: string, retryAfter?: number, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1195
+ }
1196
+ declare class GatewayTimeoutError extends TriqaiError {
1197
+ constructor(message: string, opts?: ConstructorParameters<typeof TriqaiError>[2]);
1198
+ }
1199
+ declare class ConnectionError extends TriqaiError {
1200
+ constructor(message: string);
1201
+ }
1202
+ declare class TimeoutError extends TriqaiError {
1203
+ constructor(message: string);
1204
+ }
1205
+
1206
+ export { type ApiInfoResponse, AuthenticationError, AuthorizationError, type Category, type CategoryCode, type CategoryInfo, type CategoryListResponse, type CategoryStructure, ClientDisconnectedError, type ClientDisconnectedErrorResponse, type ConfidenceWithReasons, ConnectionError, type Coordinates, type CreateIssueReportParams, type DeleteTransactionResponse, DuplicateRequestError, type DuplicateRequestErrorResponse, type EnrichMeta, type EnrichOptions, type EnrichRequest, type EnrichRequestOptions, type EnrichSuccessResponse, type EnrichedTransaction, type EnrichmentData, type EnrichmentErrorCode, type EnrichmentFieldPath, type EnrichmentFilterOptions, type EntityResult, type ErrorObject, type ErrorResponse, GatewayTimeoutError, type HealthResponse, type HttpResponse, InsufficientCreditsError, type IntermediaryData, type IntermediaryRecord, type IntermediaryResponse, InternalServerError, type IssueReport, type IssueReportListResponse, type IssueReportResponse, type IssueReportStatus, type ListIssueReportsParams, type ListTransactionsParams, type LocationData, type LocationRating, type LocationResponse, type MerchantData, type MerchantResponse, NotFoundError, Page, type PageInfo, type PaginationMeta, type PersonData, type PrefilledIntermediary, type PrefilledLocation, type PrefilledMerchant, RateLimitError, type RateLimitInfo, type RawErrorObject, type RawResponseMeta, type ReportIssueRequest, type RequestInfo, type ResponseInfo, type ResponseMeta, ServiceUnavailableError, type StructuredAddress, type Subscription, type SubscriptionType, TimeoutError, type TransactionChannel, type TransactionData, type TransactionDetailResponse, type TransactionListResponse, type TransactionPagination, type TransactionRecord, type TransactionType, Triqai, type TriqaiConfig, TriqaiError, ValidationError, Triqai as default };