@numen-crypto/contract 0.1.0 → 0.2.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.
- package/dist/index.cjs +101 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +687 -1
- package/dist/index.d.ts +687 -1
- package/dist/index.js +92 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -2379,6 +2379,685 @@ declare namespace UnlinkAccountCommand {
|
|
|
2379
2379
|
type Response = z.infer<typeof ResponseSchema>;
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
+
declare const TICKET_CATEGORIES: readonly ["account", "deposit", "withdrawal", "trading", "partners", "other"];
|
|
2383
|
+
declare const TicketCategorySchema: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2384
|
+
type TicketCategory = z.infer<typeof TicketCategorySchema>;
|
|
2385
|
+
declare const TicketStatusSchema: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2386
|
+
type TicketStatus = z.infer<typeof TicketStatusSchema>;
|
|
2387
|
+
declare const TicketAuthorTypeSchema: z.ZodEnum<["user", "support"]>;
|
|
2388
|
+
type TicketAuthorType = z.infer<typeof TicketAuthorTypeSchema>;
|
|
2389
|
+
/** Rich-text body (sanitized HTML), size-capped. */
|
|
2390
|
+
declare const TicketBodySchema: z.ZodString;
|
|
2391
|
+
declare const TicketAttachmentSchema: z.ZodObject<{
|
|
2392
|
+
id: z.ZodString;
|
|
2393
|
+
fileName: z.ZodString;
|
|
2394
|
+
contentType: z.ZodString;
|
|
2395
|
+
sizeBytes: z.ZodNumber;
|
|
2396
|
+
url: z.ZodString;
|
|
2397
|
+
}, "strip", z.ZodTypeAny, {
|
|
2398
|
+
id: string;
|
|
2399
|
+
contentType: string;
|
|
2400
|
+
fileName: string;
|
|
2401
|
+
sizeBytes: number;
|
|
2402
|
+
url: string;
|
|
2403
|
+
}, {
|
|
2404
|
+
id: string;
|
|
2405
|
+
contentType: string;
|
|
2406
|
+
fileName: string;
|
|
2407
|
+
sizeBytes: number;
|
|
2408
|
+
url: string;
|
|
2409
|
+
}>;
|
|
2410
|
+
type TicketAttachment = z.infer<typeof TicketAttachmentSchema>;
|
|
2411
|
+
declare const TicketMessageSchema: z.ZodObject<{
|
|
2412
|
+
id: z.ZodString;
|
|
2413
|
+
authorType: z.ZodEnum<["user", "support"]>;
|
|
2414
|
+
body: z.ZodString;
|
|
2415
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
2416
|
+
id: z.ZodString;
|
|
2417
|
+
fileName: z.ZodString;
|
|
2418
|
+
contentType: z.ZodString;
|
|
2419
|
+
sizeBytes: z.ZodNumber;
|
|
2420
|
+
url: z.ZodString;
|
|
2421
|
+
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
id: string;
|
|
2423
|
+
contentType: string;
|
|
2424
|
+
fileName: string;
|
|
2425
|
+
sizeBytes: number;
|
|
2426
|
+
url: string;
|
|
2427
|
+
}, {
|
|
2428
|
+
id: string;
|
|
2429
|
+
contentType: string;
|
|
2430
|
+
fileName: string;
|
|
2431
|
+
sizeBytes: number;
|
|
2432
|
+
url: string;
|
|
2433
|
+
}>, "many">;
|
|
2434
|
+
createdAt: z.ZodString;
|
|
2435
|
+
}, "strip", z.ZodTypeAny, {
|
|
2436
|
+
id: string;
|
|
2437
|
+
createdAt: string;
|
|
2438
|
+
body: string;
|
|
2439
|
+
authorType: "user" | "support";
|
|
2440
|
+
attachments: {
|
|
2441
|
+
id: string;
|
|
2442
|
+
contentType: string;
|
|
2443
|
+
fileName: string;
|
|
2444
|
+
sizeBytes: number;
|
|
2445
|
+
url: string;
|
|
2446
|
+
}[];
|
|
2447
|
+
}, {
|
|
2448
|
+
id: string;
|
|
2449
|
+
createdAt: string;
|
|
2450
|
+
body: string;
|
|
2451
|
+
authorType: "user" | "support";
|
|
2452
|
+
attachments: {
|
|
2453
|
+
id: string;
|
|
2454
|
+
contentType: string;
|
|
2455
|
+
fileName: string;
|
|
2456
|
+
sizeBytes: number;
|
|
2457
|
+
url: string;
|
|
2458
|
+
}[];
|
|
2459
|
+
}>;
|
|
2460
|
+
type TicketMessage = z.infer<typeof TicketMessageSchema>;
|
|
2461
|
+
declare const TicketSummarySchema: z.ZodObject<{
|
|
2462
|
+
id: z.ZodString;
|
|
2463
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2464
|
+
title: z.ZodString;
|
|
2465
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2466
|
+
lastMessageAt: z.ZodString;
|
|
2467
|
+
createdAt: z.ZodString;
|
|
2468
|
+
}, "strip", z.ZodTypeAny, {
|
|
2469
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2470
|
+
id: string;
|
|
2471
|
+
createdAt: string;
|
|
2472
|
+
title: string;
|
|
2473
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2474
|
+
lastMessageAt: string;
|
|
2475
|
+
}, {
|
|
2476
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2477
|
+
id: string;
|
|
2478
|
+
createdAt: string;
|
|
2479
|
+
title: string;
|
|
2480
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2481
|
+
lastMessageAt: string;
|
|
2482
|
+
}>;
|
|
2483
|
+
type TicketSummary = z.infer<typeof TicketSummarySchema>;
|
|
2484
|
+
declare const TicketDetailSchema: z.ZodObject<{
|
|
2485
|
+
id: z.ZodString;
|
|
2486
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2487
|
+
title: z.ZodString;
|
|
2488
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2489
|
+
lastMessageAt: z.ZodString;
|
|
2490
|
+
createdAt: z.ZodString;
|
|
2491
|
+
} & {
|
|
2492
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
2493
|
+
id: z.ZodString;
|
|
2494
|
+
authorType: z.ZodEnum<["user", "support"]>;
|
|
2495
|
+
body: z.ZodString;
|
|
2496
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
2497
|
+
id: z.ZodString;
|
|
2498
|
+
fileName: z.ZodString;
|
|
2499
|
+
contentType: z.ZodString;
|
|
2500
|
+
sizeBytes: z.ZodNumber;
|
|
2501
|
+
url: z.ZodString;
|
|
2502
|
+
}, "strip", z.ZodTypeAny, {
|
|
2503
|
+
id: string;
|
|
2504
|
+
contentType: string;
|
|
2505
|
+
fileName: string;
|
|
2506
|
+
sizeBytes: number;
|
|
2507
|
+
url: string;
|
|
2508
|
+
}, {
|
|
2509
|
+
id: string;
|
|
2510
|
+
contentType: string;
|
|
2511
|
+
fileName: string;
|
|
2512
|
+
sizeBytes: number;
|
|
2513
|
+
url: string;
|
|
2514
|
+
}>, "many">;
|
|
2515
|
+
createdAt: z.ZodString;
|
|
2516
|
+
}, "strip", z.ZodTypeAny, {
|
|
2517
|
+
id: string;
|
|
2518
|
+
createdAt: string;
|
|
2519
|
+
body: string;
|
|
2520
|
+
authorType: "user" | "support";
|
|
2521
|
+
attachments: {
|
|
2522
|
+
id: string;
|
|
2523
|
+
contentType: string;
|
|
2524
|
+
fileName: string;
|
|
2525
|
+
sizeBytes: number;
|
|
2526
|
+
url: string;
|
|
2527
|
+
}[];
|
|
2528
|
+
}, {
|
|
2529
|
+
id: string;
|
|
2530
|
+
createdAt: string;
|
|
2531
|
+
body: string;
|
|
2532
|
+
authorType: "user" | "support";
|
|
2533
|
+
attachments: {
|
|
2534
|
+
id: string;
|
|
2535
|
+
contentType: string;
|
|
2536
|
+
fileName: string;
|
|
2537
|
+
sizeBytes: number;
|
|
2538
|
+
url: string;
|
|
2539
|
+
}[];
|
|
2540
|
+
}>, "many">;
|
|
2541
|
+
}, "strip", z.ZodTypeAny, {
|
|
2542
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2543
|
+
id: string;
|
|
2544
|
+
createdAt: string;
|
|
2545
|
+
title: string;
|
|
2546
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2547
|
+
lastMessageAt: string;
|
|
2548
|
+
messages: {
|
|
2549
|
+
id: string;
|
|
2550
|
+
createdAt: string;
|
|
2551
|
+
body: string;
|
|
2552
|
+
authorType: "user" | "support";
|
|
2553
|
+
attachments: {
|
|
2554
|
+
id: string;
|
|
2555
|
+
contentType: string;
|
|
2556
|
+
fileName: string;
|
|
2557
|
+
sizeBytes: number;
|
|
2558
|
+
url: string;
|
|
2559
|
+
}[];
|
|
2560
|
+
}[];
|
|
2561
|
+
}, {
|
|
2562
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2563
|
+
id: string;
|
|
2564
|
+
createdAt: string;
|
|
2565
|
+
title: string;
|
|
2566
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2567
|
+
lastMessageAt: string;
|
|
2568
|
+
messages: {
|
|
2569
|
+
id: string;
|
|
2570
|
+
createdAt: string;
|
|
2571
|
+
body: string;
|
|
2572
|
+
authorType: "user" | "support";
|
|
2573
|
+
attachments: {
|
|
2574
|
+
id: string;
|
|
2575
|
+
contentType: string;
|
|
2576
|
+
fileName: string;
|
|
2577
|
+
sizeBytes: number;
|
|
2578
|
+
url: string;
|
|
2579
|
+
}[];
|
|
2580
|
+
}[];
|
|
2581
|
+
}>;
|
|
2582
|
+
type TicketDetail = z.infer<typeof TicketDetailSchema>;
|
|
2583
|
+
/** Attachment reference returned by the upload-url flow and sent when posting a message. */
|
|
2584
|
+
declare const TicketAttachmentInputSchema: z.ZodObject<{
|
|
2585
|
+
fileKey: z.ZodString;
|
|
2586
|
+
fileName: z.ZodString;
|
|
2587
|
+
contentType: z.ZodString;
|
|
2588
|
+
sizeBytes: z.ZodNumber;
|
|
2589
|
+
}, "strip", z.ZodTypeAny, {
|
|
2590
|
+
contentType: string;
|
|
2591
|
+
fileName: string;
|
|
2592
|
+
sizeBytes: number;
|
|
2593
|
+
fileKey: string;
|
|
2594
|
+
}, {
|
|
2595
|
+
contentType: string;
|
|
2596
|
+
fileName: string;
|
|
2597
|
+
sizeBytes: number;
|
|
2598
|
+
fileKey: string;
|
|
2599
|
+
}>;
|
|
2600
|
+
type TicketAttachmentInput = z.infer<typeof TicketAttachmentInputSchema>;
|
|
2601
|
+
|
|
2602
|
+
declare namespace ListTicketsCommand {
|
|
2603
|
+
const endpointDetails: EndpointDetails;
|
|
2604
|
+
const ResponseSchema: z.ZodObject<{
|
|
2605
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2606
|
+
id: z.ZodString;
|
|
2607
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2608
|
+
title: z.ZodString;
|
|
2609
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2610
|
+
lastMessageAt: z.ZodString;
|
|
2611
|
+
createdAt: z.ZodString;
|
|
2612
|
+
}, "strip", z.ZodTypeAny, {
|
|
2613
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2614
|
+
id: string;
|
|
2615
|
+
createdAt: string;
|
|
2616
|
+
title: string;
|
|
2617
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2618
|
+
lastMessageAt: string;
|
|
2619
|
+
}, {
|
|
2620
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2621
|
+
id: string;
|
|
2622
|
+
createdAt: string;
|
|
2623
|
+
title: string;
|
|
2624
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2625
|
+
lastMessageAt: string;
|
|
2626
|
+
}>, "many">;
|
|
2627
|
+
}, "strip", z.ZodTypeAny, {
|
|
2628
|
+
items: {
|
|
2629
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2630
|
+
id: string;
|
|
2631
|
+
createdAt: string;
|
|
2632
|
+
title: string;
|
|
2633
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2634
|
+
lastMessageAt: string;
|
|
2635
|
+
}[];
|
|
2636
|
+
}, {
|
|
2637
|
+
items: {
|
|
2638
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2639
|
+
id: string;
|
|
2640
|
+
createdAt: string;
|
|
2641
|
+
title: string;
|
|
2642
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2643
|
+
lastMessageAt: string;
|
|
2644
|
+
}[];
|
|
2645
|
+
}>;
|
|
2646
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2647
|
+
}
|
|
2648
|
+
declare namespace GetTicketCommand {
|
|
2649
|
+
const endpointDetails: EndpointDetails;
|
|
2650
|
+
const ResponseSchema: z.ZodObject<{
|
|
2651
|
+
id: z.ZodString;
|
|
2652
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2653
|
+
title: z.ZodString;
|
|
2654
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2655
|
+
lastMessageAt: z.ZodString;
|
|
2656
|
+
createdAt: z.ZodString;
|
|
2657
|
+
} & {
|
|
2658
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
2659
|
+
id: z.ZodString;
|
|
2660
|
+
authorType: z.ZodEnum<["user", "support"]>;
|
|
2661
|
+
body: z.ZodString;
|
|
2662
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
2663
|
+
id: z.ZodString;
|
|
2664
|
+
fileName: z.ZodString;
|
|
2665
|
+
contentType: z.ZodString;
|
|
2666
|
+
sizeBytes: z.ZodNumber;
|
|
2667
|
+
url: z.ZodString;
|
|
2668
|
+
}, "strip", z.ZodTypeAny, {
|
|
2669
|
+
id: string;
|
|
2670
|
+
contentType: string;
|
|
2671
|
+
fileName: string;
|
|
2672
|
+
sizeBytes: number;
|
|
2673
|
+
url: string;
|
|
2674
|
+
}, {
|
|
2675
|
+
id: string;
|
|
2676
|
+
contentType: string;
|
|
2677
|
+
fileName: string;
|
|
2678
|
+
sizeBytes: number;
|
|
2679
|
+
url: string;
|
|
2680
|
+
}>, "many">;
|
|
2681
|
+
createdAt: z.ZodString;
|
|
2682
|
+
}, "strip", z.ZodTypeAny, {
|
|
2683
|
+
id: string;
|
|
2684
|
+
createdAt: string;
|
|
2685
|
+
body: string;
|
|
2686
|
+
authorType: "user" | "support";
|
|
2687
|
+
attachments: {
|
|
2688
|
+
id: string;
|
|
2689
|
+
contentType: string;
|
|
2690
|
+
fileName: string;
|
|
2691
|
+
sizeBytes: number;
|
|
2692
|
+
url: string;
|
|
2693
|
+
}[];
|
|
2694
|
+
}, {
|
|
2695
|
+
id: string;
|
|
2696
|
+
createdAt: string;
|
|
2697
|
+
body: string;
|
|
2698
|
+
authorType: "user" | "support";
|
|
2699
|
+
attachments: {
|
|
2700
|
+
id: string;
|
|
2701
|
+
contentType: string;
|
|
2702
|
+
fileName: string;
|
|
2703
|
+
sizeBytes: number;
|
|
2704
|
+
url: string;
|
|
2705
|
+
}[];
|
|
2706
|
+
}>, "many">;
|
|
2707
|
+
}, "strip", z.ZodTypeAny, {
|
|
2708
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2709
|
+
id: string;
|
|
2710
|
+
createdAt: string;
|
|
2711
|
+
title: string;
|
|
2712
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2713
|
+
lastMessageAt: string;
|
|
2714
|
+
messages: {
|
|
2715
|
+
id: string;
|
|
2716
|
+
createdAt: string;
|
|
2717
|
+
body: string;
|
|
2718
|
+
authorType: "user" | "support";
|
|
2719
|
+
attachments: {
|
|
2720
|
+
id: string;
|
|
2721
|
+
contentType: string;
|
|
2722
|
+
fileName: string;
|
|
2723
|
+
sizeBytes: number;
|
|
2724
|
+
url: string;
|
|
2725
|
+
}[];
|
|
2726
|
+
}[];
|
|
2727
|
+
}, {
|
|
2728
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2729
|
+
id: string;
|
|
2730
|
+
createdAt: string;
|
|
2731
|
+
title: string;
|
|
2732
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2733
|
+
lastMessageAt: string;
|
|
2734
|
+
messages: {
|
|
2735
|
+
id: string;
|
|
2736
|
+
createdAt: string;
|
|
2737
|
+
body: string;
|
|
2738
|
+
authorType: "user" | "support";
|
|
2739
|
+
attachments: {
|
|
2740
|
+
id: string;
|
|
2741
|
+
contentType: string;
|
|
2742
|
+
fileName: string;
|
|
2743
|
+
sizeBytes: number;
|
|
2744
|
+
url: string;
|
|
2745
|
+
}[];
|
|
2746
|
+
}[];
|
|
2747
|
+
}>;
|
|
2748
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2749
|
+
}
|
|
2750
|
+
declare namespace CreateTicketCommand {
|
|
2751
|
+
const endpointDetails: EndpointDetails;
|
|
2752
|
+
const RequestSchema: z.ZodObject<{
|
|
2753
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2754
|
+
title: z.ZodString;
|
|
2755
|
+
body: z.ZodString;
|
|
2756
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2757
|
+
fileKey: z.ZodString;
|
|
2758
|
+
fileName: z.ZodString;
|
|
2759
|
+
contentType: z.ZodString;
|
|
2760
|
+
sizeBytes: z.ZodNumber;
|
|
2761
|
+
}, "strip", z.ZodTypeAny, {
|
|
2762
|
+
contentType: string;
|
|
2763
|
+
fileName: string;
|
|
2764
|
+
sizeBytes: number;
|
|
2765
|
+
fileKey: string;
|
|
2766
|
+
}, {
|
|
2767
|
+
contentType: string;
|
|
2768
|
+
fileName: string;
|
|
2769
|
+
sizeBytes: number;
|
|
2770
|
+
fileKey: string;
|
|
2771
|
+
}>, "many">>;
|
|
2772
|
+
}, "strip", z.ZodTypeAny, {
|
|
2773
|
+
title: string;
|
|
2774
|
+
body: string;
|
|
2775
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2776
|
+
attachments?: {
|
|
2777
|
+
contentType: string;
|
|
2778
|
+
fileName: string;
|
|
2779
|
+
sizeBytes: number;
|
|
2780
|
+
fileKey: string;
|
|
2781
|
+
}[] | undefined;
|
|
2782
|
+
}, {
|
|
2783
|
+
title: string;
|
|
2784
|
+
body: string;
|
|
2785
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2786
|
+
attachments?: {
|
|
2787
|
+
contentType: string;
|
|
2788
|
+
fileName: string;
|
|
2789
|
+
sizeBytes: number;
|
|
2790
|
+
fileKey: string;
|
|
2791
|
+
}[] | undefined;
|
|
2792
|
+
}>;
|
|
2793
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
2794
|
+
const ResponseSchema: z.ZodObject<{
|
|
2795
|
+
id: z.ZodString;
|
|
2796
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2797
|
+
title: z.ZodString;
|
|
2798
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2799
|
+
lastMessageAt: z.ZodString;
|
|
2800
|
+
createdAt: z.ZodString;
|
|
2801
|
+
} & {
|
|
2802
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
2803
|
+
id: z.ZodString;
|
|
2804
|
+
authorType: z.ZodEnum<["user", "support"]>;
|
|
2805
|
+
body: z.ZodString;
|
|
2806
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
2807
|
+
id: z.ZodString;
|
|
2808
|
+
fileName: z.ZodString;
|
|
2809
|
+
contentType: z.ZodString;
|
|
2810
|
+
sizeBytes: z.ZodNumber;
|
|
2811
|
+
url: z.ZodString;
|
|
2812
|
+
}, "strip", z.ZodTypeAny, {
|
|
2813
|
+
id: string;
|
|
2814
|
+
contentType: string;
|
|
2815
|
+
fileName: string;
|
|
2816
|
+
sizeBytes: number;
|
|
2817
|
+
url: string;
|
|
2818
|
+
}, {
|
|
2819
|
+
id: string;
|
|
2820
|
+
contentType: string;
|
|
2821
|
+
fileName: string;
|
|
2822
|
+
sizeBytes: number;
|
|
2823
|
+
url: string;
|
|
2824
|
+
}>, "many">;
|
|
2825
|
+
createdAt: z.ZodString;
|
|
2826
|
+
}, "strip", z.ZodTypeAny, {
|
|
2827
|
+
id: string;
|
|
2828
|
+
createdAt: string;
|
|
2829
|
+
body: string;
|
|
2830
|
+
authorType: "user" | "support";
|
|
2831
|
+
attachments: {
|
|
2832
|
+
id: string;
|
|
2833
|
+
contentType: string;
|
|
2834
|
+
fileName: string;
|
|
2835
|
+
sizeBytes: number;
|
|
2836
|
+
url: string;
|
|
2837
|
+
}[];
|
|
2838
|
+
}, {
|
|
2839
|
+
id: string;
|
|
2840
|
+
createdAt: string;
|
|
2841
|
+
body: string;
|
|
2842
|
+
authorType: "user" | "support";
|
|
2843
|
+
attachments: {
|
|
2844
|
+
id: string;
|
|
2845
|
+
contentType: string;
|
|
2846
|
+
fileName: string;
|
|
2847
|
+
sizeBytes: number;
|
|
2848
|
+
url: string;
|
|
2849
|
+
}[];
|
|
2850
|
+
}>, "many">;
|
|
2851
|
+
}, "strip", z.ZodTypeAny, {
|
|
2852
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2853
|
+
id: string;
|
|
2854
|
+
createdAt: string;
|
|
2855
|
+
title: string;
|
|
2856
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2857
|
+
lastMessageAt: string;
|
|
2858
|
+
messages: {
|
|
2859
|
+
id: string;
|
|
2860
|
+
createdAt: string;
|
|
2861
|
+
body: string;
|
|
2862
|
+
authorType: "user" | "support";
|
|
2863
|
+
attachments: {
|
|
2864
|
+
id: string;
|
|
2865
|
+
contentType: string;
|
|
2866
|
+
fileName: string;
|
|
2867
|
+
sizeBytes: number;
|
|
2868
|
+
url: string;
|
|
2869
|
+
}[];
|
|
2870
|
+
}[];
|
|
2871
|
+
}, {
|
|
2872
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2873
|
+
id: string;
|
|
2874
|
+
createdAt: string;
|
|
2875
|
+
title: string;
|
|
2876
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2877
|
+
lastMessageAt: string;
|
|
2878
|
+
messages: {
|
|
2879
|
+
id: string;
|
|
2880
|
+
createdAt: string;
|
|
2881
|
+
body: string;
|
|
2882
|
+
authorType: "user" | "support";
|
|
2883
|
+
attachments: {
|
|
2884
|
+
id: string;
|
|
2885
|
+
contentType: string;
|
|
2886
|
+
fileName: string;
|
|
2887
|
+
sizeBytes: number;
|
|
2888
|
+
url: string;
|
|
2889
|
+
}[];
|
|
2890
|
+
}[];
|
|
2891
|
+
}>;
|
|
2892
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2893
|
+
}
|
|
2894
|
+
declare namespace ReplyTicketCommand {
|
|
2895
|
+
const endpointDetails: EndpointDetails;
|
|
2896
|
+
const RequestSchema: z.ZodObject<{
|
|
2897
|
+
body: z.ZodString;
|
|
2898
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2899
|
+
fileKey: z.ZodString;
|
|
2900
|
+
fileName: z.ZodString;
|
|
2901
|
+
contentType: z.ZodString;
|
|
2902
|
+
sizeBytes: z.ZodNumber;
|
|
2903
|
+
}, "strip", z.ZodTypeAny, {
|
|
2904
|
+
contentType: string;
|
|
2905
|
+
fileName: string;
|
|
2906
|
+
sizeBytes: number;
|
|
2907
|
+
fileKey: string;
|
|
2908
|
+
}, {
|
|
2909
|
+
contentType: string;
|
|
2910
|
+
fileName: string;
|
|
2911
|
+
sizeBytes: number;
|
|
2912
|
+
fileKey: string;
|
|
2913
|
+
}>, "many">>;
|
|
2914
|
+
}, "strip", z.ZodTypeAny, {
|
|
2915
|
+
body: string;
|
|
2916
|
+
attachments?: {
|
|
2917
|
+
contentType: string;
|
|
2918
|
+
fileName: string;
|
|
2919
|
+
sizeBytes: number;
|
|
2920
|
+
fileKey: string;
|
|
2921
|
+
}[] | undefined;
|
|
2922
|
+
}, {
|
|
2923
|
+
body: string;
|
|
2924
|
+
attachments?: {
|
|
2925
|
+
contentType: string;
|
|
2926
|
+
fileName: string;
|
|
2927
|
+
sizeBytes: number;
|
|
2928
|
+
fileKey: string;
|
|
2929
|
+
}[] | undefined;
|
|
2930
|
+
}>;
|
|
2931
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
2932
|
+
const ResponseSchema: z.ZodObject<{
|
|
2933
|
+
id: z.ZodString;
|
|
2934
|
+
category: z.ZodEnum<["account", "deposit", "withdrawal", "trading", "partners", "other"]>;
|
|
2935
|
+
title: z.ZodString;
|
|
2936
|
+
status: z.ZodEnum<["open", "pending", "answered", "resolved"]>;
|
|
2937
|
+
lastMessageAt: z.ZodString;
|
|
2938
|
+
createdAt: z.ZodString;
|
|
2939
|
+
} & {
|
|
2940
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
2941
|
+
id: z.ZodString;
|
|
2942
|
+
authorType: z.ZodEnum<["user", "support"]>;
|
|
2943
|
+
body: z.ZodString;
|
|
2944
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
2945
|
+
id: z.ZodString;
|
|
2946
|
+
fileName: z.ZodString;
|
|
2947
|
+
contentType: z.ZodString;
|
|
2948
|
+
sizeBytes: z.ZodNumber;
|
|
2949
|
+
url: z.ZodString;
|
|
2950
|
+
}, "strip", z.ZodTypeAny, {
|
|
2951
|
+
id: string;
|
|
2952
|
+
contentType: string;
|
|
2953
|
+
fileName: string;
|
|
2954
|
+
sizeBytes: number;
|
|
2955
|
+
url: string;
|
|
2956
|
+
}, {
|
|
2957
|
+
id: string;
|
|
2958
|
+
contentType: string;
|
|
2959
|
+
fileName: string;
|
|
2960
|
+
sizeBytes: number;
|
|
2961
|
+
url: string;
|
|
2962
|
+
}>, "many">;
|
|
2963
|
+
createdAt: z.ZodString;
|
|
2964
|
+
}, "strip", z.ZodTypeAny, {
|
|
2965
|
+
id: string;
|
|
2966
|
+
createdAt: string;
|
|
2967
|
+
body: string;
|
|
2968
|
+
authorType: "user" | "support";
|
|
2969
|
+
attachments: {
|
|
2970
|
+
id: string;
|
|
2971
|
+
contentType: string;
|
|
2972
|
+
fileName: string;
|
|
2973
|
+
sizeBytes: number;
|
|
2974
|
+
url: string;
|
|
2975
|
+
}[];
|
|
2976
|
+
}, {
|
|
2977
|
+
id: string;
|
|
2978
|
+
createdAt: string;
|
|
2979
|
+
body: string;
|
|
2980
|
+
authorType: "user" | "support";
|
|
2981
|
+
attachments: {
|
|
2982
|
+
id: string;
|
|
2983
|
+
contentType: string;
|
|
2984
|
+
fileName: string;
|
|
2985
|
+
sizeBytes: number;
|
|
2986
|
+
url: string;
|
|
2987
|
+
}[];
|
|
2988
|
+
}>, "many">;
|
|
2989
|
+
}, "strip", z.ZodTypeAny, {
|
|
2990
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
2991
|
+
id: string;
|
|
2992
|
+
createdAt: string;
|
|
2993
|
+
title: string;
|
|
2994
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
2995
|
+
lastMessageAt: string;
|
|
2996
|
+
messages: {
|
|
2997
|
+
id: string;
|
|
2998
|
+
createdAt: string;
|
|
2999
|
+
body: string;
|
|
3000
|
+
authorType: "user" | "support";
|
|
3001
|
+
attachments: {
|
|
3002
|
+
id: string;
|
|
3003
|
+
contentType: string;
|
|
3004
|
+
fileName: string;
|
|
3005
|
+
sizeBytes: number;
|
|
3006
|
+
url: string;
|
|
3007
|
+
}[];
|
|
3008
|
+
}[];
|
|
3009
|
+
}, {
|
|
3010
|
+
status: "pending" | "open" | "answered" | "resolved";
|
|
3011
|
+
id: string;
|
|
3012
|
+
createdAt: string;
|
|
3013
|
+
title: string;
|
|
3014
|
+
category: "partners" | "account" | "deposit" | "withdrawal" | "trading" | "other";
|
|
3015
|
+
lastMessageAt: string;
|
|
3016
|
+
messages: {
|
|
3017
|
+
id: string;
|
|
3018
|
+
createdAt: string;
|
|
3019
|
+
body: string;
|
|
3020
|
+
authorType: "user" | "support";
|
|
3021
|
+
attachments: {
|
|
3022
|
+
id: string;
|
|
3023
|
+
contentType: string;
|
|
3024
|
+
fileName: string;
|
|
3025
|
+
sizeBytes: number;
|
|
3026
|
+
url: string;
|
|
3027
|
+
}[];
|
|
3028
|
+
}[];
|
|
3029
|
+
}>;
|
|
3030
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
3031
|
+
}
|
|
3032
|
+
declare namespace TicketAttachmentUploadCommand {
|
|
3033
|
+
const endpointDetails: EndpointDetails;
|
|
3034
|
+
const RequestSchema: z.ZodObject<{
|
|
3035
|
+
fileName: z.ZodString;
|
|
3036
|
+
contentType: z.ZodString;
|
|
3037
|
+
sizeBytes: z.ZodNumber;
|
|
3038
|
+
}, "strip", z.ZodTypeAny, {
|
|
3039
|
+
contentType: string;
|
|
3040
|
+
fileName: string;
|
|
3041
|
+
sizeBytes: number;
|
|
3042
|
+
}, {
|
|
3043
|
+
contentType: string;
|
|
3044
|
+
fileName: string;
|
|
3045
|
+
sizeBytes: number;
|
|
3046
|
+
}>;
|
|
3047
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
3048
|
+
const ResponseSchema: z.ZodObject<{
|
|
3049
|
+
uploadUrl: z.ZodString;
|
|
3050
|
+
fileKey: z.ZodString;
|
|
3051
|
+
}, "strip", z.ZodTypeAny, {
|
|
3052
|
+
uploadUrl: string;
|
|
3053
|
+
fileKey: string;
|
|
3054
|
+
}, {
|
|
3055
|
+
uploadUrl: string;
|
|
3056
|
+
fileKey: string;
|
|
3057
|
+
}>;
|
|
3058
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
3059
|
+
}
|
|
3060
|
+
|
|
2382
3061
|
declare const REST_API: {
|
|
2383
3062
|
readonly AUTH: {
|
|
2384
3063
|
readonly REGISTER: "/auth/register";
|
|
@@ -2441,8 +3120,15 @@ declare const REST_API: {
|
|
|
2441
3120
|
readonly LIST: "/notifications";
|
|
2442
3121
|
readonly READ: "/notifications/read";
|
|
2443
3122
|
};
|
|
3123
|
+
readonly TICKETS: {
|
|
3124
|
+
readonly LIST: "/tickets";
|
|
3125
|
+
readonly CREATE: "/tickets";
|
|
3126
|
+
readonly GET: "/tickets/:id";
|
|
3127
|
+
readonly REPLY: "/tickets/:id/messages";
|
|
3128
|
+
readonly ATTACHMENT_UPLOAD_URL: "/tickets/attachments/upload-url";
|
|
3129
|
+
};
|
|
2444
3130
|
};
|
|
2445
3131
|
declare const API_PREFIX = "/api";
|
|
2446
3132
|
declare const API_VERSION = "v1";
|
|
2447
3133
|
|
|
2448
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListNotificationsCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PositiveMoneyStringSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TOKEN_ASSET, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3134
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListNotificationsCommand, ListTicketsCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PositiveMoneyStringSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|