@secrecy/lib 1.39.0-fix-dashboard-lp-tech-fixes.1 → 1.39.0-fix-dashboard-lp-tech-fixes.2

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.
@@ -390,6 +390,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
390
390
  lastReset: Date;
391
391
  uploadBandwidth: bigint;
392
392
  downloadBandwidth: bigint;
393
+ hasDatabase: boolean;
394
+ storageUsage: number;
393
395
  };
394
396
  _output_out: {
395
397
  id: string;
@@ -398,6 +400,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
398
400
  lastReset: Date;
399
401
  uploadBandwidth: bigint;
400
402
  downloadBandwidth: bigint;
403
+ hasDatabase: boolean;
404
+ storageUsage: number;
401
405
  };
402
406
  }, unknown>>;
403
407
  };
@@ -626,18 +630,20 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
626
630
  _input_in: {} | undefined;
627
631
  _input_out: {} | undefined;
628
632
  _output_in: {
629
- codes: string[];
630
633
  id: string;
631
- kind: string;
632
- relatedTo: "secrecy" | "secrecy_tech";
634
+ name: string;
633
635
  descriptorId: string;
636
+ stripePricesId: string | null;
637
+ isCustomPlan?: boolean | undefined;
638
+ canHaveDatabase?: boolean | undefined;
634
639
  };
635
640
  _output_out: {
636
- codes: string[];
637
641
  id: string;
638
- kind: string;
639
- relatedTo: "secrecy" | "secrecy_tech";
642
+ name: string;
640
643
  descriptorId: string;
644
+ isCustomPlan: boolean;
645
+ canHaveDatabase: boolean;
646
+ stripePricesId: string | null;
641
647
  };
642
648
  }, unknown>>;
643
649
  };
@@ -676,7 +682,19 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
676
682
  }>;
677
683
  _meta: object;
678
684
  _ctx_out: {
679
- session: SecrecySession | null;
685
+ session: {
686
+ appId: string;
687
+ appPlanId: string;
688
+ appFakeUserId: string | undefined;
689
+ sessionId: string;
690
+ accountId: string;
691
+ accountInfosId: string;
692
+ accountRole: _prisma_client.AccountRole;
693
+ userId: string;
694
+ userRole: _prisma_client.UserRole;
695
+ userPlan: _prisma_client.PlanKind;
696
+ isCare?: boolean;
697
+ };
680
698
  req: {
681
699
  headers: Headers;
682
700
  body: ReadableStream<Uint8Array> | null;
@@ -687,14 +705,17 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
687
705
  locale: Locales;
688
706
  ls: TranslationFunctions;
689
707
  };
690
- _input_in: {} | undefined;
691
- _input_out: {} | undefined;
708
+ _input_in: {
709
+ appId?: string | undefined;
710
+ };
711
+ _input_out: {
712
+ appId?: string | undefined;
713
+ };
692
714
  _output_in: ({
693
- codes: string[];
694
715
  id: string;
695
- kind: string;
696
- relatedTo: "secrecy" | "secrecy_tech";
697
- descriptorId: string;
716
+ name: string;
717
+ isCustomPlan?: boolean | undefined;
718
+ canHaveDatabase?: boolean | undefined;
698
719
  } & {
699
720
  descriptor: {
700
721
  devsBase: bigint | null;
@@ -720,13 +741,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
720
741
  };
721
742
  } & {
722
743
  price: number;
744
+ } & {
745
+ isCurrent: boolean;
723
746
  })[];
724
747
  _output_out: ({
725
- codes: string[];
726
748
  id: string;
727
- kind: string;
728
- relatedTo: "secrecy" | "secrecy_tech";
729
- descriptorId: string;
749
+ name: string;
750
+ isCustomPlan: boolean;
751
+ canHaveDatabase: boolean;
730
752
  } & {
731
753
  descriptor: {
732
754
  devsBase: bigint | null;
@@ -752,6 +774,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
752
774
  };
753
775
  } & {
754
776
  price: number;
777
+ } & {
778
+ isCurrent: boolean;
755
779
  })[];
756
780
  }, unknown>>;
757
781
  };
@@ -2364,44 +2388,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
2364
2388
  }, unknown>>;
2365
2389
  };
2366
2390
  };
2367
- care: {
2368
- professional: {
2369
- register: {
2370
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2371
- _config: import("@trpc/server").RootConfig<{
2372
- ctx: {
2373
- req: {
2374
- headers: Headers;
2375
- body: ReadableStream<Uint8Array> | null;
2376
- };
2377
- res: {
2378
- headers: Headers;
2379
- };
2380
- session: SecrecySession | null;
2381
- locale: Locales;
2382
- ls: TranslationFunctions;
2383
- };
2384
- meta: object;
2385
- errorShape: {
2386
- message: string;
2387
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2388
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2389
- } | {
2390
- data: {
2391
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2392
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2393
- httpStatus: number;
2394
- path?: string;
2395
- stack?: string;
2396
- };
2397
- message: string;
2398
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2399
- };
2400
- transformer: typeof superjson;
2401
- }>;
2402
- _meta: object;
2403
- _ctx_out: {
2404
- session: SecrecySession;
2391
+ cloud: {
2392
+ addDataToHistory: {
2393
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2394
+ _config: import("@trpc/server").RootConfig<{
2395
+ ctx: {
2405
2396
  req: {
2406
2397
  headers: Headers;
2407
2398
  body: ReadableStream<Uint8Array> | null;
@@ -2409,555 +2400,180 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
2409
2400
  res: {
2410
2401
  headers: Headers;
2411
2402
  };
2403
+ session: SecrecySession | null;
2412
2404
  locale: Locales;
2413
2405
  ls: TranslationFunctions;
2414
2406
  };
2415
- _input_in: {
2416
- status: "active" | "inactive" | "retired" | "suspended";
2417
- job: string;
2418
- specialties: string[];
2419
- activePrescriber: boolean;
2420
- internationalPrescriberNumber: string | null;
2421
- institution: string | null;
2422
- rppsNumber: string;
2423
- adeliNumber: string;
2424
- ssNumber: string;
2407
+ meta: object;
2408
+ errorShape: {
2409
+ message: string;
2410
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2411
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
2412
+ } | {
2413
+ data: {
2414
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
2415
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2416
+ httpStatus: number;
2417
+ path?: string;
2418
+ stack?: string;
2419
+ };
2420
+ message: string;
2421
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2425
2422
  };
2426
- _input_out: {
2427
- status: "active" | "inactive" | "retired" | "suspended";
2428
- job: string;
2429
- specialties: string[];
2430
- activePrescriber: boolean;
2431
- internationalPrescriberNumber: string | null;
2432
- institution: string | null;
2433
- rppsNumber: string;
2434
- adeliNumber: string;
2435
- ssNumber: string;
2423
+ transformer: typeof superjson;
2424
+ }>;
2425
+ _meta: object;
2426
+ _ctx_out: {
2427
+ session: SecrecySessionWithApp;
2428
+ req: {
2429
+ headers: Headers;
2430
+ body: ReadableStream<Uint8Array> | null;
2436
2431
  };
2437
- _output_in: {
2438
- status: "active" | "inactive" | "retired" | "suspended";
2439
- job: string;
2440
- specialties: string[];
2432
+ res: {
2433
+ headers: Headers;
2434
+ };
2435
+ locale: Locales;
2436
+ ls: TranslationFunctions;
2437
+ };
2438
+ _input_in: {
2439
+ dataId: string;
2440
+ nodeId: string;
2441
+ };
2442
+ _input_out: {
2443
+ dataId: string;
2444
+ nodeId: string;
2445
+ };
2446
+ _output_in: {
2447
+ id: string;
2448
+ createdAt: Date;
2449
+ deletedAt: Date | null;
2450
+ name: string;
2451
+ updatedAt: Date;
2452
+ type: "FILE" | "FOLDER";
2453
+ parentId: string | null;
2454
+ isFavorite: boolean;
2455
+ currentDataId: string | null;
2456
+ } & {
2457
+ users: [{
2458
+ id: string;
2459
+ lastname: string;
2460
+ firstname: string;
2461
+ avatar: string | null;
2462
+ isSearchable: boolean;
2463
+ }, "admin" | "write" | "read"][];
2464
+ createdBy: {
2465
+ id: string;
2466
+ lastname: string;
2467
+ firstname: string;
2468
+ avatar: string | null;
2469
+ isSearchable: boolean;
2470
+ };
2471
+ access: {
2472
+ rights: "admin" | "write" | "read";
2473
+ nameKey: string | null;
2474
+ isRoot: boolean;
2475
+ sharedByPubKey: string;
2476
+ };
2477
+ } & {
2478
+ sizes: {
2479
+ size: bigint;
2480
+ sizeBefore: bigint;
2481
+ };
2482
+ } & {
2483
+ current: {
2484
+ id: string;
2485
+ createdAt: Date;
2486
+ size: bigint;
2487
+ md5: string;
2488
+ storageType: "s3" | "lite";
2489
+ sizeBefore: bigint;
2490
+ md5Encrypted: string;
2491
+ userAppUserId: string;
2492
+ userAppAppId: string;
2493
+ validatedAt: Date | null;
2494
+ access: {
2495
+ key: string;
2496
+ sharedByPubKey: string;
2497
+ };
2498
+ } | null;
2499
+ history: {
2500
+ id: string;
2501
+ createdAt: Date;
2502
+ size: bigint;
2503
+ md5: string;
2504
+ storageType: "s3" | "lite";
2505
+ sizeBefore: bigint;
2506
+ md5Encrypted: string;
2507
+ userAppUserId: string;
2508
+ userAppAppId: string;
2509
+ validatedAt: Date | null;
2510
+ access: {
2511
+ key: string;
2512
+ sharedByPubKey: string;
2513
+ };
2514
+ }[];
2515
+ parent: ({
2516
+ id: string;
2517
+ createdAt: Date;
2518
+ deletedAt: Date | null;
2519
+ name: string;
2520
+ updatedAt: Date;
2521
+ type: "FILE" | "FOLDER";
2522
+ parentId: string | null;
2523
+ isFavorite: boolean;
2524
+ currentDataId: string | null;
2441
2525
  } & {
2442
- user: {
2526
+ users: [{
2527
+ id: string;
2528
+ lastname: string;
2529
+ firstname: string;
2530
+ avatar: string | null;
2531
+ isSearchable: boolean;
2532
+ }, "admin" | "write" | "read"][];
2533
+ createdBy: {
2443
2534
  id: string;
2444
2535
  lastname: string;
2445
2536
  firstname: string;
2446
2537
  avatar: string | null;
2447
2538
  isSearchable: boolean;
2448
2539
  };
2449
- };
2450
- _output_out: {
2451
- status: "active" | "inactive" | "retired" | "suspended";
2452
- job: string;
2453
- specialties: string[];
2540
+ access: {
2541
+ rights: "admin" | "write" | "read";
2542
+ nameKey: string | null;
2543
+ isRoot: boolean;
2544
+ sharedByPubKey: string;
2545
+ };
2546
+ }) | null;
2547
+ children: ({
2548
+ id: string;
2549
+ createdAt: Date;
2550
+ deletedAt: Date | null;
2551
+ name: string;
2552
+ updatedAt: Date;
2553
+ type: "FILE" | "FOLDER";
2554
+ parentId: string | null;
2555
+ isFavorite: boolean;
2556
+ currentDataId: string | null;
2454
2557
  } & {
2455
- user: {
2558
+ users: [{
2559
+ id: string;
2560
+ lastname: string;
2561
+ firstname: string;
2562
+ avatar: string | null;
2563
+ isSearchable: boolean;
2564
+ }, "admin" | "write" | "read"][];
2565
+ createdBy: {
2456
2566
  id: string;
2457
2567
  lastname: string;
2458
2568
  firstname: string;
2459
2569
  avatar: string | null;
2460
2570
  isSearchable: boolean;
2461
2571
  };
2462
- };
2463
- }, unknown>>;
2464
- };
2465
- update: {
2466
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2467
- _config: import("@trpc/server").RootConfig<{
2468
- ctx: {
2469
- req: {
2470
- headers: Headers;
2471
- body: ReadableStream<Uint8Array> | null;
2472
- };
2473
- res: {
2474
- headers: Headers;
2475
- };
2476
- session: SecrecySession | null;
2477
- locale: Locales;
2478
- ls: TranslationFunctions;
2479
- };
2480
- meta: object;
2481
- errorShape: {
2482
- message: string;
2483
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2484
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2485
- } | {
2486
- data: {
2487
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2488
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2489
- httpStatus: number;
2490
- path?: string;
2491
- stack?: string;
2492
- };
2493
- message: string;
2494
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2495
- };
2496
- transformer: typeof superjson;
2497
- }>;
2498
- _meta: object;
2499
- _ctx_out: {
2500
- session: SecrecySession;
2501
- req: {
2502
- headers: Headers;
2503
- body: ReadableStream<Uint8Array> | null;
2504
- };
2505
- res: {
2506
- headers: Headers;
2507
- };
2508
- locale: Locales;
2509
- ls: TranslationFunctions;
2510
- };
2511
- _input_in: {
2512
- status: "active" | "inactive" | "retired" | "suspended";
2513
- job: string;
2514
- specialties: string[];
2515
- activePrescriber: boolean;
2516
- internationalPrescriberNumber: string | null;
2517
- institution: string | null;
2518
- rppsNumber: string;
2519
- adeliNumber: string;
2520
- ssNumber: string;
2521
- };
2522
- _input_out: {
2523
- status: "active" | "inactive" | "retired" | "suspended";
2524
- job: string;
2525
- specialties: string[];
2526
- activePrescriber: boolean;
2527
- internationalPrescriberNumber: string | null;
2528
- institution: string | null;
2529
- rppsNumber: string;
2530
- adeliNumber: string;
2531
- ssNumber: string;
2532
- };
2533
- _output_in: {
2534
- status: "active" | "inactive" | "retired" | "suspended";
2535
- job: string;
2536
- specialties: string[];
2537
- } & {
2538
- user: {
2539
- id: string;
2540
- lastname: string;
2541
- firstname: string;
2542
- avatar: string | null;
2543
- isSearchable: boolean;
2544
- };
2545
- };
2546
- _output_out: {
2547
- status: "active" | "inactive" | "retired" | "suspended";
2548
- job: string;
2549
- specialties: string[];
2550
- } & {
2551
- user: {
2552
- id: string;
2553
- lastname: string;
2554
- firstname: string;
2555
- avatar: string | null;
2556
- isSearchable: boolean;
2557
- };
2558
- };
2559
- }, unknown>>;
2560
- };
2561
- delete: {
2562
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2563
- _config: import("@trpc/server").RootConfig<{
2564
- ctx: {
2565
- req: {
2566
- headers: Headers;
2567
- body: ReadableStream<Uint8Array> | null;
2568
- };
2569
- res: {
2570
- headers: Headers;
2571
- };
2572
- session: SecrecySession | null;
2573
- locale: Locales;
2574
- ls: TranslationFunctions;
2575
- };
2576
- meta: object;
2577
- errorShape: {
2578
- message: string;
2579
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2580
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2581
- } | {
2582
- data: {
2583
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2584
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2585
- httpStatus: number;
2586
- path?: string;
2587
- stack?: string;
2588
- };
2589
- message: string;
2590
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2591
- };
2592
- transformer: typeof superjson;
2593
- }>;
2594
- _meta: object;
2595
- _ctx_out: {
2596
- session: SecrecySession;
2597
- req: {
2598
- headers: Headers;
2599
- body: ReadableStream<Uint8Array> | null;
2600
- };
2601
- res: {
2602
- headers: Headers;
2603
- };
2604
- locale: Locales;
2605
- ls: TranslationFunctions;
2606
- };
2607
- _input_in: {};
2608
- _input_out: {};
2609
- _output_in: {
2610
- success: boolean;
2611
- };
2612
- _output_out: {
2613
- success: boolean;
2614
- };
2615
- }, unknown>>;
2616
- };
2617
- get: {
2618
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
2619
- _config: import("@trpc/server").RootConfig<{
2620
- ctx: {
2621
- req: {
2622
- headers: Headers;
2623
- body: ReadableStream<Uint8Array> | null;
2624
- };
2625
- res: {
2626
- headers: Headers;
2627
- };
2628
- session: SecrecySession | null;
2629
- locale: Locales;
2630
- ls: TranslationFunctions;
2631
- };
2632
- meta: object;
2633
- errorShape: {
2634
- message: string;
2635
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2636
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2637
- } | {
2638
- data: {
2639
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2640
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2641
- httpStatus: number;
2642
- path?: string;
2643
- stack?: string;
2644
- };
2645
- message: string;
2646
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2647
- };
2648
- transformer: typeof superjson;
2649
- }>;
2650
- _meta: object;
2651
- _ctx_out: {
2652
- session: SecrecySession;
2653
- req: {
2654
- headers: Headers;
2655
- body: ReadableStream<Uint8Array> | null;
2656
- };
2657
- res: {
2658
- headers: Headers;
2659
- };
2660
- locale: Locales;
2661
- ls: TranslationFunctions;
2662
- };
2663
- _input_in: {
2664
- id: string;
2665
- };
2666
- _input_out: {
2667
- id: string;
2668
- };
2669
- _output_in: {
2670
- status: "active" | "inactive" | "retired" | "suspended";
2671
- job: string;
2672
- specialties: string[];
2673
- } & {
2674
- user: {
2675
- id: string;
2676
- lastname: string;
2677
- firstname: string;
2678
- avatar: string | null;
2679
- isSearchable: boolean;
2680
- };
2681
- };
2682
- _output_out: {
2683
- status: "active" | "inactive" | "retired" | "suspended";
2684
- job: string;
2685
- specialties: string[];
2686
- } & {
2687
- user: {
2688
- id: string;
2689
- lastname: string;
2690
- firstname: string;
2691
- avatar: string | null;
2692
- isSearchable: boolean;
2693
- };
2694
- };
2695
- }, unknown>>;
2696
- };
2697
- list: {
2698
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
2699
- _config: import("@trpc/server").RootConfig<{
2700
- ctx: {
2701
- req: {
2702
- headers: Headers;
2703
- body: ReadableStream<Uint8Array> | null;
2704
- };
2705
- res: {
2706
- headers: Headers;
2707
- };
2708
- session: SecrecySession | null;
2709
- locale: Locales;
2710
- ls: TranslationFunctions;
2711
- };
2712
- meta: object;
2713
- errorShape: {
2714
- message: string;
2715
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2716
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2717
- } | {
2718
- data: {
2719
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2720
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2721
- httpStatus: number;
2722
- path?: string;
2723
- stack?: string;
2724
- };
2725
- message: string;
2726
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2727
- };
2728
- transformer: typeof superjson;
2729
- }>;
2730
- _meta: object;
2731
- _ctx_out: {
2732
- session: SecrecySession;
2733
- req: {
2734
- headers: Headers;
2735
- body: ReadableStream<Uint8Array> | null;
2736
- };
2737
- res: {
2738
- headers: Headers;
2739
- };
2740
- locale: Locales;
2741
- ls: TranslationFunctions;
2742
- };
2743
- _input_in: {};
2744
- _input_out: {};
2745
- _output_in: ({
2746
- status: "active" | "inactive" | "retired" | "suspended";
2747
- job: string;
2748
- specialties: string[];
2749
- } & {
2750
- user: {
2751
- id: string;
2752
- lastname: string;
2753
- firstname: string;
2754
- avatar: string | null;
2755
- isSearchable: boolean;
2756
- };
2757
- })[];
2758
- _output_out: ({
2759
- status: "active" | "inactive" | "retired" | "suspended";
2760
- job: string;
2761
- specialties: string[];
2762
- } & {
2763
- user: {
2764
- id: string;
2765
- lastname: string;
2766
- firstname: string;
2767
- avatar: string | null;
2768
- isSearchable: boolean;
2769
- };
2770
- })[];
2771
- }, unknown>>;
2772
- };
2773
- };
2774
- };
2775
- cloud: {
2776
- addDataToHistory: {
2777
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2778
- _config: import("@trpc/server").RootConfig<{
2779
- ctx: {
2780
- req: {
2781
- headers: Headers;
2782
- body: ReadableStream<Uint8Array> | null;
2783
- };
2784
- res: {
2785
- headers: Headers;
2786
- };
2787
- session: SecrecySession | null;
2788
- locale: Locales;
2789
- ls: TranslationFunctions;
2790
- };
2791
- meta: object;
2792
- errorShape: {
2793
- message: string;
2794
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2795
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
2796
- } | {
2797
- data: {
2798
- zodError: import("zod").typeToFlattenedError<any, string> | null;
2799
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
2800
- httpStatus: number;
2801
- path?: string;
2802
- stack?: string;
2803
- };
2804
- message: string;
2805
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
2806
- };
2807
- transformer: typeof superjson;
2808
- }>;
2809
- _meta: object;
2810
- _ctx_out: {
2811
- session: SecrecySessionWithApp;
2812
- req: {
2813
- headers: Headers;
2814
- body: ReadableStream<Uint8Array> | null;
2815
- };
2816
- res: {
2817
- headers: Headers;
2818
- };
2819
- locale: Locales;
2820
- ls: TranslationFunctions;
2821
- };
2822
- _input_in: {
2823
- dataId: string;
2824
- nodeId: string;
2825
- };
2826
- _input_out: {
2827
- dataId: string;
2828
- nodeId: string;
2829
- };
2830
- _output_in: {
2831
- id: string;
2832
- createdAt: Date;
2833
- deletedAt: Date | null;
2834
- name: string;
2835
- updatedAt: Date;
2836
- type: "FILE" | "FOLDER";
2837
- parentId: string | null;
2838
- isFavorite: boolean;
2839
- currentDataId: string | null;
2840
- } & {
2841
- users: [{
2842
- id: string;
2843
- lastname: string;
2844
- firstname: string;
2845
- avatar: string | null;
2846
- isSearchable: boolean;
2847
- }, "admin" | "write" | "read"][];
2848
- createdBy: {
2849
- id: string;
2850
- lastname: string;
2851
- firstname: string;
2852
- avatar: string | null;
2853
- isSearchable: boolean;
2854
- };
2855
- access: {
2856
- rights: "admin" | "write" | "read";
2857
- nameKey: string | null;
2858
- isRoot: boolean;
2859
- sharedByPubKey: string;
2860
- };
2861
- } & {
2862
- sizes: {
2863
- size: bigint;
2864
- sizeBefore: bigint;
2865
- };
2866
- } & {
2867
- current: {
2868
- id: string;
2869
- createdAt: Date;
2870
- size: bigint;
2871
- md5: string;
2872
- storageType: "s3" | "lite";
2873
- sizeBefore: bigint;
2874
- md5Encrypted: string;
2875
- userAppUserId: string;
2876
- userAppAppId: string;
2877
- validatedAt: Date | null;
2878
- access: {
2879
- key: string;
2880
- sharedByPubKey: string;
2881
- };
2882
- } | null;
2883
- history: {
2884
- id: string;
2885
- createdAt: Date;
2886
- size: bigint;
2887
- md5: string;
2888
- storageType: "s3" | "lite";
2889
- sizeBefore: bigint;
2890
- md5Encrypted: string;
2891
- userAppUserId: string;
2892
- userAppAppId: string;
2893
- validatedAt: Date | null;
2894
- access: {
2895
- key: string;
2896
- sharedByPubKey: string;
2897
- };
2898
- }[];
2899
- parent: ({
2900
- id: string;
2901
- createdAt: Date;
2902
- deletedAt: Date | null;
2903
- name: string;
2904
- updatedAt: Date;
2905
- type: "FILE" | "FOLDER";
2906
- parentId: string | null;
2907
- isFavorite: boolean;
2908
- currentDataId: string | null;
2909
- } & {
2910
- users: [{
2911
- id: string;
2912
- lastname: string;
2913
- firstname: string;
2914
- avatar: string | null;
2915
- isSearchable: boolean;
2916
- }, "admin" | "write" | "read"][];
2917
- createdBy: {
2918
- id: string;
2919
- lastname: string;
2920
- firstname: string;
2921
- avatar: string | null;
2922
- isSearchable: boolean;
2923
- };
2924
- access: {
2925
- rights: "admin" | "write" | "read";
2926
- nameKey: string | null;
2927
- isRoot: boolean;
2928
- sharedByPubKey: string;
2929
- };
2930
- }) | null;
2931
- children: ({
2932
- id: string;
2933
- createdAt: Date;
2934
- deletedAt: Date | null;
2935
- name: string;
2936
- updatedAt: Date;
2937
- type: "FILE" | "FOLDER";
2938
- parentId: string | null;
2939
- isFavorite: boolean;
2940
- currentDataId: string | null;
2941
- } & {
2942
- users: [{
2943
- id: string;
2944
- lastname: string;
2945
- firstname: string;
2946
- avatar: string | null;
2947
- isSearchable: boolean;
2948
- }, "admin" | "write" | "read"][];
2949
- createdBy: {
2950
- id: string;
2951
- lastname: string;
2952
- firstname: string;
2953
- avatar: string | null;
2954
- isSearchable: boolean;
2955
- };
2956
- access: {
2957
- rights: "admin" | "write" | "read";
2958
- nameKey: string | null;
2959
- isRoot: boolean;
2960
- sharedByPubKey: string;
2572
+ access: {
2573
+ rights: "admin" | "write" | "read";
2574
+ nameKey: string | null;
2575
+ isRoot: boolean;
2576
+ sharedByPubKey: string;
2961
2577
  };
2962
2578
  } & {
2963
2579
  sizes: {
@@ -16123,11 +15739,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16123
15739
  };
16124
15740
  _output_in: {
16125
15741
  plan: {
16126
- codes: string[];
16127
15742
  id: string;
16128
- kind: string;
16129
- relatedTo: "secrecy" | "secrecy_tech";
16130
- descriptorId: string;
15743
+ name: string;
15744
+ isCustomPlan?: boolean | undefined;
15745
+ canHaveDatabase?: boolean | undefined;
16131
15746
  } & {
16132
15747
  descriptor: {
16133
15748
  devsBase: bigint | null;
@@ -16172,44 +15787,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16172
15787
  id: string;
16173
15788
  } | null;
16174
15789
  };
16175
- plans: ({
16176
- codes: string[];
16177
- id: string;
16178
- kind: string;
16179
- relatedTo: "secrecy" | "secrecy_tech";
16180
- descriptorId: string;
16181
- } & {
16182
- descriptor: {
16183
- devsBase: bigint | null;
16184
- devsUnit: bigint | null;
16185
- devsPrice: number | null;
16186
- usersBase: bigint | null;
16187
- usersUnit: bigint | null;
16188
- usersPrice: number | null;
16189
- perDataSizeBase: bigint | null;
16190
- perDataSizeUnit: bigint | null;
16191
- perDataSizePrice: number | null;
16192
- bandwidthBase: bigint | null;
16193
- bandwidthUnit: bigint | null;
16194
- bandwidthPrice: number | null;
16195
- totalStorageSizeBase: bigint | null;
16196
- totalStorageSizeUnit: bigint | null;
16197
- totalStorageSizePrice: number | null;
16198
- devsMax: bigint | null;
16199
- usersMax: bigint | null;
16200
- perDataSizeMax: bigint | null;
16201
- bandwidthMax: bigint | null;
16202
- totalStorageSizeMax: bigint | null;
16203
- };
16204
- })[];
16205
15790
  };
16206
15791
  _output_out: {
16207
15792
  plan: {
16208
- codes: string[];
16209
15793
  id: string;
16210
- kind: string;
16211
- relatedTo: "secrecy" | "secrecy_tech";
16212
- descriptorId: string;
15794
+ name: string;
15795
+ isCustomPlan: boolean;
15796
+ canHaveDatabase: boolean;
16213
15797
  } & {
16214
15798
  descriptor: {
16215
15799
  devsBase: bigint | null;
@@ -16254,36 +15838,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16254
15838
  id: string;
16255
15839
  } | null;
16256
15840
  };
16257
- plans: ({
16258
- codes: string[];
16259
- id: string;
16260
- kind: string;
16261
- relatedTo: "secrecy" | "secrecy_tech";
16262
- descriptorId: string;
16263
- } & {
16264
- descriptor: {
16265
- devsBase: bigint | null;
16266
- devsUnit: bigint | null;
16267
- devsPrice: number | null;
16268
- usersBase: bigint | null;
16269
- usersUnit: bigint | null;
16270
- usersPrice: number | null;
16271
- perDataSizeBase: bigint | null;
16272
- perDataSizeUnit: bigint | null;
16273
- perDataSizePrice: number | null;
16274
- bandwidthBase: bigint | null;
16275
- bandwidthUnit: bigint | null;
16276
- bandwidthPrice: number | null;
16277
- totalStorageSizeBase: bigint | null;
16278
- totalStorageSizeUnit: bigint | null;
16279
- totalStorageSizePrice: number | null;
16280
- devsMax: bigint | null;
16281
- usersMax: bigint | null;
16282
- perDataSizeMax: bigint | null;
16283
- bandwidthMax: bigint | null;
16284
- totalStorageSizeMax: bigint | null;
16285
- };
16286
- })[];
16287
15841
  };
16288
15842
  }, unknown>>;
16289
15843
  };
@@ -16324,110 +15878,27 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16324
15878
  _ctx_out: {
16325
15879
  session: SecrecySession;
16326
15880
  req: {
16327
- headers: Headers;
16328
- body: ReadableStream<Uint8Array> | null;
16329
- };
16330
- res: {
16331
- headers: Headers;
16332
- };
16333
- locale: Locales;
16334
- ls: TranslationFunctions;
16335
- };
16336
- _input_in: {
16337
- sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16338
- };
16339
- _input_out: {
16340
- sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
16341
- };
16342
- _output_in: {
16343
- plan: {
16344
- codes: string[];
16345
- id: string;
16346
- kind: string;
16347
- relatedTo: "secrecy" | "secrecy_tech";
16348
- descriptorId: string;
16349
- } & {
16350
- descriptor: {
16351
- devsBase: bigint | null;
16352
- devsUnit: bigint | null;
16353
- devsPrice: number | null;
16354
- usersBase: bigint | null;
16355
- usersUnit: bigint | null;
16356
- usersPrice: number | null;
16357
- perDataSizeBase: bigint | null;
16358
- perDataSizeUnit: bigint | null;
16359
- perDataSizePrice: number | null;
16360
- bandwidthBase: bigint | null;
16361
- bandwidthUnit: bigint | null;
16362
- bandwidthPrice: number | null;
16363
- totalStorageSizeBase: bigint | null;
16364
- totalStorageSizeUnit: bigint | null;
16365
- totalStorageSizePrice: number | null;
16366
- devsMax: bigint | null;
16367
- usersMax: bigint | null;
16368
- perDataSizeMax: bigint | null;
16369
- bandwidthMax: bigint | null;
16370
- totalStorageSizeMax: bigint | null;
16371
- };
16372
- };
16373
- id: string;
16374
- createdAt: Date;
16375
- users: {
16376
- userId: string;
16377
- }[];
16378
- ownerId: string;
16379
- blocked: boolean;
16380
- name: string;
16381
- color: string | null;
16382
- logo: string | null;
16383
- updatedAt: Date;
16384
- origin: string[];
16385
- planId: string | null;
16386
- quotasId: string;
16387
- metricsId: string;
16388
- owner: {
16389
- user: {
16390
- id: string;
16391
- } | null;
16392
- };
16393
- plans: ({
16394
- codes: string[];
16395
- id: string;
16396
- kind: string;
16397
- relatedTo: "secrecy" | "secrecy_tech";
16398
- descriptorId: string;
16399
- } & {
16400
- descriptor: {
16401
- devsBase: bigint | null;
16402
- devsUnit: bigint | null;
16403
- devsPrice: number | null;
16404
- usersBase: bigint | null;
16405
- usersUnit: bigint | null;
16406
- usersPrice: number | null;
16407
- perDataSizeBase: bigint | null;
16408
- perDataSizeUnit: bigint | null;
16409
- perDataSizePrice: number | null;
16410
- bandwidthBase: bigint | null;
16411
- bandwidthUnit: bigint | null;
16412
- bandwidthPrice: number | null;
16413
- totalStorageSizeBase: bigint | null;
16414
- totalStorageSizeUnit: bigint | null;
16415
- totalStorageSizePrice: number | null;
16416
- devsMax: bigint | null;
16417
- usersMax: bigint | null;
16418
- perDataSizeMax: bigint | null;
16419
- bandwidthMax: bigint | null;
16420
- totalStorageSizeMax: bigint | null;
16421
- };
16422
- })[];
16423
- }[];
16424
- _output_out: {
15881
+ headers: Headers;
15882
+ body: ReadableStream<Uint8Array> | null;
15883
+ };
15884
+ res: {
15885
+ headers: Headers;
15886
+ };
15887
+ locale: Locales;
15888
+ ls: TranslationFunctions;
15889
+ };
15890
+ _input_in: {
15891
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
15892
+ };
15893
+ _input_out: {
15894
+ sortBy: "users" | "updatedAt" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
15895
+ };
15896
+ _output_in: {
16425
15897
  plan: {
16426
- codes: string[];
16427
15898
  id: string;
16428
- kind: string;
16429
- relatedTo: "secrecy" | "secrecy_tech";
16430
- descriptorId: string;
15899
+ name: string;
15900
+ isCustomPlan?: boolean | undefined;
15901
+ canHaveDatabase?: boolean | undefined;
16431
15902
  } & {
16432
15903
  descriptor: {
16433
15904
  devsBase: bigint | null;
@@ -16472,12 +15943,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16472
15943
  id: string;
16473
15944
  } | null;
16474
15945
  };
16475
- plans: ({
16476
- codes: string[];
15946
+ }[];
15947
+ _output_out: {
15948
+ plan: {
16477
15949
  id: string;
16478
- kind: string;
16479
- relatedTo: "secrecy" | "secrecy_tech";
16480
- descriptorId: string;
15950
+ name: string;
15951
+ isCustomPlan: boolean;
15952
+ canHaveDatabase: boolean;
16481
15953
  } & {
16482
15954
  descriptor: {
16483
15955
  devsBase: bigint | null;
@@ -16501,82 +15973,28 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16501
15973
  bandwidthMax: bigint | null;
16502
15974
  totalStorageSizeMax: bigint | null;
16503
15975
  };
16504
- })[];
16505
- }[];
16506
- }, unknown>>;
16507
- };
16508
- cancelSubscription: {
16509
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16510
- _config: import("@trpc/server").RootConfig<{
16511
- ctx: {
16512
- req: {
16513
- headers: Headers;
16514
- body: ReadableStream<Uint8Array> | null;
16515
- };
16516
- res: {
16517
- headers: Headers;
16518
- };
16519
- session: SecrecySession | null;
16520
- locale: Locales;
16521
- ls: TranslationFunctions;
16522
- };
16523
- meta: object;
16524
- errorShape: {
16525
- message: string;
16526
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16527
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16528
- } | {
16529
- data: {
16530
- zodError: import("zod").typeToFlattenedError<any, string> | null;
16531
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
16532
- httpStatus: number;
16533
- path?: string;
16534
- stack?: string;
16535
- };
16536
- message: string;
16537
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16538
15976
  };
16539
- transformer: typeof superjson;
16540
- }>;
16541
- _meta: object;
16542
- _ctx_out: {
16543
- session: {
16544
- appId: string;
16545
- appPlanId: string;
16546
- appFakeUserId: string | undefined;
16547
- sessionId: string;
16548
- accountId: string;
16549
- accountInfosId: string;
16550
- accountRole: _prisma_client.AccountRole;
15977
+ id: string;
15978
+ createdAt: Date;
15979
+ users: {
16551
15980
  userId: string;
16552
- userRole: _prisma_client.UserRole;
16553
- userPlan: _prisma_client.PlanKind;
16554
- isCare?: boolean;
16555
- };
16556
- req: {
16557
- headers: Headers;
16558
- body: ReadableStream<Uint8Array> | null;
16559
- };
16560
- res: {
16561
- headers: Headers;
15981
+ }[];
15982
+ ownerId: string;
15983
+ blocked: boolean;
15984
+ name: string;
15985
+ color: string | null;
15986
+ logo: string | null;
15987
+ updatedAt: Date;
15988
+ origin: string[];
15989
+ planId: string | null;
15990
+ quotasId: string;
15991
+ metricsId: string;
15992
+ owner: {
15993
+ user: {
15994
+ id: string;
15995
+ } | null;
16562
15996
  };
16563
- locale: Locales;
16564
- ls: TranslationFunctions;
16565
- };
16566
- _input_in: {
16567
- appId: string;
16568
- prorate: boolean;
16569
- };
16570
- _input_out: {
16571
- appId: string;
16572
- prorate: boolean;
16573
- };
16574
- _output_in: {
16575
- isCancelled: boolean;
16576
- };
16577
- _output_out: {
16578
- isCancelled: boolean;
16579
- };
15997
+ }[];
16580
15998
  }, unknown>>;
16581
15999
  };
16582
16000
  createApplication: {
@@ -16653,80 +16071,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
16653
16071
  };
16654
16072
  }, unknown>>;
16655
16073
  };
16656
- createSubscription: {
16657
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16658
- _config: import("@trpc/server").RootConfig<{
16659
- ctx: {
16660
- req: {
16661
- headers: Headers;
16662
- body: ReadableStream<Uint8Array> | null;
16663
- };
16664
- res: {
16665
- headers: Headers;
16666
- };
16667
- session: SecrecySession | null;
16668
- locale: Locales;
16669
- ls: TranslationFunctions;
16670
- };
16671
- meta: object;
16672
- errorShape: {
16673
- message: string;
16674
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16675
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16676
- } | {
16677
- data: {
16678
- zodError: import("zod").typeToFlattenedError<any, string> | null;
16679
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
16680
- httpStatus: number;
16681
- path?: string;
16682
- stack?: string;
16683
- };
16684
- message: string;
16685
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16686
- };
16687
- transformer: typeof superjson;
16688
- }>;
16689
- _meta: object;
16690
- _ctx_out: {
16691
- session: {
16692
- appId: string;
16693
- appPlanId: string;
16694
- appFakeUserId: string | undefined;
16695
- sessionId: string;
16696
- accountId: string;
16697
- accountInfosId: string;
16698
- accountRole: _prisma_client.AccountRole;
16699
- userId: string;
16700
- userRole: _prisma_client.UserRole;
16701
- userPlan: _prisma_client.PlanKind;
16702
- isCare?: boolean;
16703
- };
16704
- req: {
16705
- headers: Headers;
16706
- body: ReadableStream<Uint8Array> | null;
16707
- };
16708
- res: {
16709
- headers: Headers;
16710
- };
16711
- locale: Locales;
16712
- ls: TranslationFunctions;
16713
- };
16714
- _input_in: {
16715
- appId: string;
16716
- planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
16717
- };
16718
- _input_out: {
16719
- appId: string;
16720
- planCode: "tech_solo_month" | "tech_pro_month" | "tech_premium_month";
16721
- };
16722
- _output_in: {
16723
- url: string | null;
16724
- };
16725
- _output_out: {
16726
- url: string | null;
16727
- };
16728
- }, unknown>>;
16729
- };
16730
16074
  deleteApplication: {
16731
16075
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16732
16076
  _config: import("@trpc/server").RootConfig<{
@@ -17471,6 +16815,80 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
17471
16815
  };
17472
16816
  }, unknown>>;
17473
16817
  };
16818
+ switchPlan: {
16819
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16820
+ _config: import("@trpc/server").RootConfig<{
16821
+ ctx: {
16822
+ req: {
16823
+ headers: Headers;
16824
+ body: ReadableStream<Uint8Array> | null;
16825
+ };
16826
+ res: {
16827
+ headers: Headers;
16828
+ };
16829
+ session: SecrecySession | null;
16830
+ locale: Locales;
16831
+ ls: TranslationFunctions;
16832
+ };
16833
+ meta: object;
16834
+ errorShape: {
16835
+ message: string;
16836
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16837
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
16838
+ } | {
16839
+ data: {
16840
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
16841
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
16842
+ httpStatus: number;
16843
+ path?: string;
16844
+ stack?: string;
16845
+ };
16846
+ message: string;
16847
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
16848
+ };
16849
+ transformer: typeof superjson;
16850
+ }>;
16851
+ _meta: object;
16852
+ _ctx_out: {
16853
+ session: {
16854
+ appId: string;
16855
+ appPlanId: string;
16856
+ appFakeUserId: string | undefined;
16857
+ sessionId: string;
16858
+ accountId: string;
16859
+ accountInfosId: string;
16860
+ accountRole: _prisma_client.AccountRole;
16861
+ userId: string;
16862
+ userRole: _prisma_client.UserRole;
16863
+ userPlan: _prisma_client.PlanKind;
16864
+ isCare?: boolean;
16865
+ };
16866
+ req: {
16867
+ headers: Headers;
16868
+ body: ReadableStream<Uint8Array> | null;
16869
+ };
16870
+ res: {
16871
+ headers: Headers;
16872
+ };
16873
+ locale: Locales;
16874
+ ls: TranslationFunctions;
16875
+ };
16876
+ _input_in: {
16877
+ appId: string;
16878
+ planName: string;
16879
+ };
16880
+ _input_out: {
16881
+ appId: string;
16882
+ planName: string;
16883
+ };
16884
+ _output_in: {
16885
+ url: string | null;
16886
+ };
16887
+ _output_out: {
16888
+ url: string | null;
16889
+ };
16890
+ }, unknown>>;
16891
+ };
17474
16892
  };
17475
16893
  user: {
17476
16894
  byId: {