@secrecy/lib 1.69.2 → 1.70.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.
@@ -456,6 +456,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
456
456
  stripeSubId: string | null;
457
457
  stripeSubPaidUntil: Date | null;
458
458
  billingProfileStripeCustomerId: string | null;
459
+ status: "active" | "inactive" | "pending_for_payment";
459
460
  };
460
461
  meta: any;
461
462
  }>;
@@ -1494,7 +1495,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1494
1495
  output: {
1495
1496
  type: "authed";
1496
1497
  id: string;
1497
- storageType: "s3" | "cold";
1498
+ storageType: "s3" | "cold" | "lite";
1498
1499
  parts: {
1499
1500
  url: string;
1500
1501
  order: number;
@@ -1539,7 +1540,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1539
1540
  output: {
1540
1541
  type: "authed";
1541
1542
  id: string;
1542
- storageType: "s3" | "cold";
1543
+ storageType: "s3" | "cold" | "lite";
1543
1544
  parts: {
1544
1545
  url: string;
1545
1546
  order: number;
@@ -1586,6 +1587,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1586
1587
  output: {
1587
1588
  type: "authed";
1588
1589
  id: string;
1590
+ storageType: "s3" | "cold" | "lite";
1589
1591
  key: string | null;
1590
1592
  keyPair: {
1591
1593
  pub: string;
@@ -1594,6 +1596,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1594
1596
  } | {
1595
1597
  type: "guest";
1596
1598
  id: string;
1599
+ storageType: "s3" | "cold" | "lite";
1597
1600
  };
1598
1601
  meta: any;
1599
1602
  }>;
@@ -4441,6 +4444,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4441
4444
  stripeSubId: string | null;
4442
4445
  stripeSubPaidUntil: Date | null;
4443
4446
  billingProfileStripeCustomerId: string | null;
4447
+ status: "active" | "inactive" | "pending_for_payment";
4444
4448
  } & {
4445
4449
  plan: {
4446
4450
  id: string;
@@ -4476,6 +4480,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4476
4480
  createSubscription: import("@trpc/server").TRPCMutationProcedure<{
4477
4481
  input: {
4478
4482
  planKind: "free" | "basic" | "advanced" | "pro";
4483
+ orgId?: string | undefined;
4484
+ returnUrl?: string | undefined;
4479
4485
  billingProfileId?: string | undefined;
4480
4486
  };
4481
4487
  output: {
@@ -4486,17 +4492,39 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4486
4492
  create: import("@trpc/server").TRPCMutationProcedure<{
4487
4493
  input: {
4488
4494
  name: string;
4495
+ billingProfileId?: string | undefined;
4496
+ planKind?: "free" | "basic" | "advanced" | "pro" | undefined;
4497
+ returnUrl?: string | undefined;
4489
4498
  };
4490
4499
  output: {
4491
- id: string;
4492
- name: string;
4493
- createdAt: Date;
4494
- ownerId: string;
4495
- planId: string;
4496
- quotasId: string;
4497
- stripeSubId: string | null;
4498
- stripeSubPaidUntil: Date | null;
4499
- billingProfileStripeCustomerId: string | null;
4500
+ type: "immediate";
4501
+ organization: {
4502
+ id: string;
4503
+ name: string;
4504
+ createdAt: Date;
4505
+ ownerId: string;
4506
+ planId: string;
4507
+ quotasId: string;
4508
+ stripeSubId: string | null;
4509
+ stripeSubPaidUntil: Date | null;
4510
+ billingProfileStripeCustomerId: string | null;
4511
+ status: "active" | "inactive" | "pending_for_payment";
4512
+ };
4513
+ } | {
4514
+ type: "checkout";
4515
+ url: string;
4516
+ organization: {
4517
+ id: string;
4518
+ name: string;
4519
+ createdAt: Date;
4520
+ ownerId: string;
4521
+ planId: string;
4522
+ quotasId: string;
4523
+ stripeSubId: string | null;
4524
+ stripeSubPaidUntil: Date | null;
4525
+ billingProfileStripeCustomerId: string | null;
4526
+ status: "active" | "inactive" | "pending_for_payment";
4527
+ };
4500
4528
  };
4501
4529
  meta: any;
4502
4530
  }>;
@@ -4514,6 +4542,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4514
4542
  stripeSubId: string | null;
4515
4543
  stripeSubPaidUntil: Date | null;
4516
4544
  billingProfileStripeCustomerId: string | null;
4545
+ status: "active" | "inactive" | "pending_for_payment";
4517
4546
  };
4518
4547
  meta: any;
4519
4548
  }>;
@@ -4552,6 +4581,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4552
4581
  stripeSubId: string | null;
4553
4582
  stripeSubPaidUntil: Date | null;
4554
4583
  billingProfileStripeCustomerId: string | null;
4584
+ status: "active" | "inactive" | "pending_for_payment";
4555
4585
  }[];
4556
4586
  meta: any;
4557
4587
  }>;
@@ -4617,6 +4647,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4617
4647
  stripeSubId: string | null;
4618
4648
  stripeSubPaidUntil: Date | null;
4619
4649
  billingProfileStripeCustomerId: string | null;
4650
+ status: "active" | "inactive" | "pending_for_payment";
4620
4651
  };
4621
4652
  meta: any;
4622
4653
  }>;
@@ -4650,6 +4681,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4650
4681
  stripeSubId: string | null;
4651
4682
  stripeSubPaidUntil: Date | null;
4652
4683
  billingProfileStripeCustomerId: string | null;
4684
+ status: "active" | "inactive" | "pending_for_payment";
4653
4685
  };
4654
4686
  meta: any;
4655
4687
  }>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Anonymize <anonymize@gmail.com>",
4
4
  "description": "Anonymize Secrecy Library",
5
- "version": "1.69.2",
5
+ "version": "1.70.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -51,17 +51,17 @@
51
51
  "devDependencies": {
52
52
  "@commitlint/cli": "^19.8.1",
53
53
  "@commitlint/config-conventional": "^19.8.1",
54
- "@prisma/client": "6.16.1",
54
+ "@prisma/client": "6.16.2",
55
55
  "@types/bun": "^1.2.21",
56
56
  "@types/jsonwebtoken": "^9.0.10",
57
57
  "@types/spark-md5": "^3.0.5",
58
- "@typescript-eslint/eslint-plugin": "^8.43.0",
59
- "@typescript-eslint/parser": "^8.43.0",
58
+ "@typescript-eslint/eslint-plugin": "^8.44.0",
59
+ "@typescript-eslint/parser": "^8.44.0",
60
60
  "eslint": "^9.35.0",
61
61
  "eslint-config-love": "^125.0.0",
62
62
  "eslint-config-prettier": "^10.1.8",
63
63
  "eslint-plugin-import": "^2.32.0",
64
- "eslint-plugin-n": "^17.21.3",
64
+ "eslint-plugin-n": "^17.23.0",
65
65
  "eslint-plugin-promise": "^7.2.1",
66
66
  "husky": "^9.1.7",
67
67
  "npm-run-all": "^4.1.5",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@js-temporal/polyfill": "^0.5.1",
78
- "@secrecy/trpc-api-types": "1.33.0-fix-share-nodes-error.1",
78
+ "@secrecy/trpc-api-types": "1.33.0-feat-enhanced-create-org.2",
79
79
  "@trpc/client": "11.5.1",
80
80
  "@trpc/server": "^11.5.1",
81
81
  "@types/libsodium-wrappers-sumo": "^0.7.8",
@@ -89,6 +89,6 @@
89
89
  "lru-cache": "^11.2.1",
90
90
  "spark-md5": "^3.0.2",
91
91
  "superjson": "2.2.2",
92
- "zod": "4.1.8"
92
+ "zod": "4.1.9"
93
93
  }
94
94
  }