@secrecy/lib 1.85.0 → 1.85.1-fix-billing.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.
Files changed (2) hide show
  1. package/dist/types/client.d.ts +176 -126
  2. package/package.json +2 -2
@@ -58,29 +58,29 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
58
58
  limits: import("@trpc/server").TRPCQueryProcedure<{
59
59
  input: Record<string, never> | undefined;
60
60
  output: {
61
- cloud: {
62
- count: bigint;
63
- maxCount: bigint | null;
64
- size: bigint;
65
- maxSize: bigint | null;
61
+ metrics: {
62
+ devsCount: bigint;
63
+ usersCount: bigint;
64
+ storageCount: bigint;
65
+ storageSize: bigint;
66
66
  downloadBandwidth: bigint;
67
- maxDownloadBandwidth: bigint | null;
68
67
  uploadBandwidth: bigint;
69
- maxUploadBandwidth: bigint | null;
70
68
  downloadCount: bigint;
71
- maxDownloadCount: bigint | null;
72
69
  uploadCount: bigint;
73
- maxUploadCount: bigint | null;
74
- };
75
- mail: {
76
- sent: {
77
- count: bigint;
78
- maxCount: bigint | null;
79
- dataCount: bigint;
80
- maxDataCount: bigint | null;
81
- dataSize: bigint;
82
- maxDataSize: bigint | null;
83
- };
70
+ sentMailCount: bigint;
71
+ sentMailDataCount: bigint;
72
+ sentMailDataSize: bigint;
73
+ };
74
+ quotas: {
75
+ devsCount: bigint | null;
76
+ usersCount: bigint | null;
77
+ bandwidth: bigint | null;
78
+ storageSize: bigint | null;
79
+ storageCount: bigint | null;
80
+ perDataSize: bigint | null;
81
+ sentMailsCount: bigint | null;
82
+ sentMailsDataSize: bigint | null;
83
+ sentMailsDataCount: bigint | null;
84
84
  };
85
85
  };
86
86
  meta: any;
@@ -91,11 +91,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
91
91
  };
92
92
  output: {
93
93
  hasDatabase: boolean;
94
- developers: number;
95
- users: number;
96
- storageUsage: number;
97
- downloadBandwidthUsage: number;
98
- uploadBandwidthUsage: number;
94
+ developers: bigint;
95
+ users: bigint;
96
+ storageUsage: bigint;
97
+ downloadBandwidthUsage: bigint;
98
+ uploadBandwidthUsage: bigint;
99
99
  };
100
100
  meta: any;
101
101
  }>;
@@ -164,7 +164,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
164
164
  } & {
165
165
  quotas: {
166
166
  users: bigint | null;
167
- totalStorageSize: bigint | null;
167
+ bandwidth: bigint | null;
168
168
  perDataSize: bigint | null;
169
169
  devs: bigint | null;
170
170
  devsBase: bigint | null;
@@ -176,10 +176,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
176
176
  perDataSizeBase: bigint | null;
177
177
  perDataSizeUnit: bigint | null;
178
178
  perDataSizePrice: number | null;
179
- bandwidth: bigint | null;
180
179
  bandwidthBase: bigint | null;
181
180
  bandwidthUnit: bigint | null;
182
181
  bandwidthPrice: number | null;
182
+ totalStorageSize: bigint | null;
183
183
  totalStorageSizeBase: bigint | null;
184
184
  totalStorageSizeUnit: bigint | null;
185
185
  totalStorageSizePrice: number | null;
@@ -190,9 +190,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
190
190
  uploadBandwidth: bigint | null;
191
191
  downloadCount: bigint | null;
192
192
  uploadCount: bigint | null;
193
- totalDataCount: bigint | null;
194
- totalStorageSize: bigint | null;
195
193
  perDataSize: bigint | null;
194
+ totalStorageSize: bigint | null;
195
+ totalDataCount: bigint | null;
196
196
  sentMailsId: string;
197
197
  };
198
198
  };
@@ -216,8 +216,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
216
216
  updateNotification: import("@trpc/server").TRPCMutationProcedure<{
217
217
  input: {
218
218
  mail?: boolean | undefined;
219
- cloud?: boolean | undefined;
220
219
  enableAll?: boolean | undefined;
220
+ cloud?: boolean | undefined;
221
221
  disableAllUntil?: Date | null | undefined;
222
222
  };
223
223
  output: {
@@ -461,14 +461,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
461
461
  id: string;
462
462
  name: string;
463
463
  createdAt: Date;
464
+ deletedAt: Date | null;
464
465
  ownerId: string;
465
466
  planId: string;
466
467
  quotasId: string;
467
468
  stripeSubId: string | null;
468
469
  stripeSubPaidUntil: Date | null;
470
+ stripeLastMetricReport: Date;
469
471
  billingProfileStripeCustomerId: string | null;
470
- status: "active" | "inactive" | "pending_for_payment";
472
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
471
473
  minMembersToReport: number;
474
+ lastMetricsReset: Date;
472
475
  };
473
476
  meta: any;
474
477
  }>;
@@ -1053,8 +1056,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1053
1056
  };
1054
1057
  output: {
1055
1058
  id: string;
1056
- size: bigint;
1057
1059
  md5: string;
1060
+ size: bigint;
1058
1061
  sizeEncrypted: bigint | null;
1059
1062
  md5Encrypted: string | null;
1060
1063
  mime: string | null;
@@ -1072,8 +1075,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1072
1075
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1073
1076
  } | {
1074
1077
  id: string;
1075
- size: bigint;
1076
1078
  md5: string;
1079
+ size: bigint;
1077
1080
  sizeEncrypted: bigint | null;
1078
1081
  md5Encrypted: string | null;
1079
1082
  mime: string | null;
@@ -1090,8 +1093,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1090
1093
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1091
1094
  } | {
1092
1095
  id: string;
1093
- size: bigint;
1094
1096
  md5: string;
1097
+ size: bigint;
1095
1098
  sizeEncrypted: bigint | null;
1096
1099
  md5Encrypted: string | null;
1097
1100
  mime: string | null;
@@ -1108,8 +1111,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1108
1111
  }[];
1109
1112
  } | {
1110
1113
  id: string;
1111
- size: bigint;
1112
1114
  md5: string;
1115
+ size: bigint;
1113
1116
  sizeEncrypted: bigint | null;
1114
1117
  md5Encrypted: string | null;
1115
1118
  mime: string | null;
@@ -1131,8 +1134,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1131
1134
  };
1132
1135
  output: ({
1133
1136
  id: string;
1134
- size: bigint;
1135
1137
  md5: string;
1138
+ size: bigint;
1136
1139
  sizeEncrypted: bigint | null;
1137
1140
  md5Encrypted: string | null;
1138
1141
  mime: string | null;
@@ -1150,8 +1153,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1150
1153
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1151
1154
  } | {
1152
1155
  id: string;
1153
- size: bigint;
1154
1156
  md5: string;
1157
+ size: bigint;
1155
1158
  sizeEncrypted: bigint | null;
1156
1159
  md5Encrypted: string | null;
1157
1160
  mime: string | null;
@@ -1168,8 +1171,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1168
1171
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1169
1172
  } | {
1170
1173
  id: string;
1171
- size: bigint;
1172
1174
  md5: string;
1175
+ size: bigint;
1173
1176
  sizeEncrypted: bigint | null;
1174
1177
  md5Encrypted: string | null;
1175
1178
  mime: string | null;
@@ -1186,8 +1189,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1186
1189
  }[];
1187
1190
  } | {
1188
1191
  id: string;
1189
- size: bigint;
1190
1192
  md5: string;
1193
+ size: bigint;
1191
1194
  sizeEncrypted: bigint | null;
1192
1195
  md5Encrypted: string | null;
1193
1196
  mime: string | null;
@@ -1629,7 +1632,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1629
1632
  sizeEncrypted: bigint;
1630
1633
  md5Encrypted: string;
1631
1634
  type: "encrypted";
1632
- content: Uint8Array<ArrayBuffer>;
1635
+ content: Buffer<ArrayBufferLike>;
1633
1636
  mime?: string | undefined;
1634
1637
  ext?: string | undefined;
1635
1638
  fromIdentityPubKey?: string | null | undefined;
@@ -1638,7 +1641,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1638
1641
  size: bigint;
1639
1642
  md5: string;
1640
1643
  type: "unencrypted";
1641
- content: Uint8Array<ArrayBuffer>;
1644
+ content: Buffer<ArrayBufferLike>;
1642
1645
  mime?: string | undefined;
1643
1646
  ext?: string | undefined;
1644
1647
  fromIdentityPubKey?: string | null | undefined;
@@ -4860,14 +4863,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4860
4863
  id: string;
4861
4864
  name: string;
4862
4865
  createdAt: Date;
4866
+ deletedAt: Date | null;
4863
4867
  ownerId: string;
4864
4868
  planId: string;
4865
4869
  quotasId: string;
4866
4870
  stripeSubId: string | null;
4867
4871
  stripeSubPaidUntil: Date | null;
4872
+ stripeLastMetricReport: Date;
4868
4873
  billingProfileStripeCustomerId: string | null;
4869
- status: "active" | "inactive" | "pending_for_payment";
4874
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
4870
4875
  minMembersToReport: number;
4876
+ lastMetricsReset: Date;
4871
4877
  } & {
4872
4878
  plan: {
4873
4879
  id: string;
@@ -4930,14 +4936,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4930
4936
  id: string;
4931
4937
  name: string;
4932
4938
  createdAt: Date;
4939
+ deletedAt: Date | null;
4933
4940
  ownerId: string;
4934
4941
  planId: string;
4935
4942
  quotasId: string;
4936
4943
  stripeSubId: string | null;
4937
4944
  stripeSubPaidUntil: Date | null;
4945
+ stripeLastMetricReport: Date;
4938
4946
  billingProfileStripeCustomerId: string | null;
4939
- status: "active" | "inactive" | "pending_for_payment";
4947
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
4940
4948
  minMembersToReport: number;
4949
+ lastMetricsReset: Date;
4941
4950
  };
4942
4951
  } | {
4943
4952
  type: "checkout";
@@ -4946,14 +4955,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4946
4955
  id: string;
4947
4956
  name: string;
4948
4957
  createdAt: Date;
4958
+ deletedAt: Date | null;
4949
4959
  ownerId: string;
4950
4960
  planId: string;
4951
4961
  quotasId: string;
4952
4962
  stripeSubId: string | null;
4953
4963
  stripeSubPaidUntil: Date | null;
4964
+ stripeLastMetricReport: Date;
4954
4965
  billingProfileStripeCustomerId: string | null;
4955
- status: "active" | "inactive" | "pending_for_payment";
4966
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
4956
4967
  minMembersToReport: number;
4968
+ lastMetricsReset: Date;
4957
4969
  };
4958
4970
  };
4959
4971
  meta: any;
@@ -4966,14 +4978,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4966
4978
  id: string;
4967
4979
  name: string;
4968
4980
  createdAt: Date;
4981
+ deletedAt: Date | null;
4969
4982
  ownerId: string;
4970
4983
  planId: string;
4971
4984
  quotasId: string;
4972
4985
  stripeSubId: string | null;
4973
4986
  stripeSubPaidUntil: Date | null;
4987
+ stripeLastMetricReport: Date;
4974
4988
  billingProfileStripeCustomerId: string | null;
4975
- status: "active" | "inactive" | "pending_for_payment";
4989
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
4976
4990
  minMembersToReport: number;
4991
+ lastMetricsReset: Date;
4977
4992
  };
4978
4993
  meta: any;
4979
4994
  }>;
@@ -5011,14 +5026,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5011
5026
  id: string;
5012
5027
  name: string;
5013
5028
  createdAt: Date;
5029
+ deletedAt: Date | null;
5014
5030
  ownerId: string;
5015
5031
  planId: string;
5016
5032
  quotasId: string;
5017
5033
  stripeSubId: string | null;
5018
5034
  stripeSubPaidUntil: Date | null;
5035
+ stripeLastMetricReport: Date;
5019
5036
  billingProfileStripeCustomerId: string | null;
5020
- status: "active" | "inactive" | "pending_for_payment";
5037
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5021
5038
  minMembersToReport: number;
5039
+ lastMetricsReset: Date;
5022
5040
  }[];
5023
5041
  meta: any;
5024
5042
  }>;
@@ -5072,17 +5090,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5072
5090
  uploadBandwidth: bigint | null;
5073
5091
  downloadCount: bigint | null;
5074
5092
  uploadCount: bigint | null;
5075
- totalDataCount: bigint | null;
5076
- totalStorageSize: bigint | null;
5077
5093
  perDataSize: bigint | null;
5094
+ totalStorageSize: bigint | null;
5095
+ totalDataCount: bigint | null;
5078
5096
  sentMails: {
5079
5097
  count: bigint | null;
5080
- dataCount: bigint | null;
5081
- dataSize: bigint | null;
5082
- totalDataCount: bigint | null;
5083
- totalStorageSize: bigint | null;
5084
5098
  perDataSize: bigint | null;
5099
+ totalStorageSize: bigint | null;
5100
+ totalDataCount: bigint | null;
5085
5101
  totalCount: bigint | null;
5102
+ dataCount: bigint | null;
5103
+ dataSize: bigint | null;
5086
5104
  };
5087
5105
  };
5088
5106
  price: number;
@@ -5113,14 +5131,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5113
5131
  id: string;
5114
5132
  name: string;
5115
5133
  createdAt: Date;
5134
+ deletedAt: Date | null;
5116
5135
  ownerId: string;
5117
5136
  planId: string;
5118
5137
  quotasId: string;
5119
5138
  stripeSubId: string | null;
5120
5139
  stripeSubPaidUntil: Date | null;
5140
+ stripeLastMetricReport: Date;
5121
5141
  billingProfileStripeCustomerId: string | null;
5122
- status: "active" | "inactive" | "pending_for_payment";
5142
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5123
5143
  minMembersToReport: number;
5144
+ lastMetricsReset: Date;
5124
5145
  };
5125
5146
  meta: any;
5126
5147
  }>;
@@ -5148,14 +5169,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5148
5169
  id: string;
5149
5170
  name: string;
5150
5171
  createdAt: Date;
5172
+ deletedAt: Date | null;
5151
5173
  ownerId: string;
5152
5174
  planId: string;
5153
5175
  quotasId: string;
5154
5176
  stripeSubId: string | null;
5155
5177
  stripeSubPaidUntil: Date | null;
5178
+ stripeLastMetricReport: Date;
5156
5179
  billingProfileStripeCustomerId: string | null;
5157
- status: "active" | "inactive" | "pending_for_payment";
5180
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5158
5181
  minMembersToReport: number;
5182
+ lastMetricsReset: Date;
5159
5183
  };
5160
5184
  meta: any;
5161
5185
  }>;
@@ -5169,7 +5193,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5169
5193
  appId: string;
5170
5194
  orgId: string;
5171
5195
  settings: {
5172
- payForUsers: boolean;
5196
+ paidByApp: boolean;
5173
5197
  bandwidthLimit: bigint | null;
5174
5198
  perDataSizeLimit: bigint | null;
5175
5199
  totalStorageSizeLimit: bigint | null;
@@ -5193,7 +5217,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5193
5217
  appId: string;
5194
5218
  orgId: string;
5195
5219
  settings: {
5196
- payForUsers: boolean;
5220
+ paidByApp: boolean;
5197
5221
  bandwidthLimit: bigint | null;
5198
5222
  perDataSizeLimit: bigint | null;
5199
5223
  totalStorageSizeLimit: bigint | null;
@@ -5652,7 +5676,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5652
5676
  } & {
5653
5677
  quotas: {
5654
5678
  users: bigint | null;
5655
- totalStorageSize: bigint | null;
5679
+ bandwidth: bigint | null;
5656
5680
  perDataSize: bigint | null;
5657
5681
  devs: bigint | null;
5658
5682
  devsBase: bigint | null;
@@ -5664,10 +5688,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5664
5688
  perDataSizeBase: bigint | null;
5665
5689
  perDataSizeUnit: bigint | null;
5666
5690
  perDataSizePrice: number | null;
5667
- bandwidth: bigint | null;
5668
5691
  bandwidthBase: bigint | null;
5669
5692
  bandwidthUnit: bigint | null;
5670
5693
  bandwidthPrice: number | null;
5694
+ totalStorageSize: bigint | null;
5671
5695
  totalStorageSizeBase: bigint | null;
5672
5696
  totalStorageSizeUnit: bigint | null;
5673
5697
  totalStorageSizePrice: number | null;
@@ -5678,9 +5702,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5678
5702
  uploadBandwidth: bigint | null;
5679
5703
  downloadCount: bigint | null;
5680
5704
  uploadCount: bigint | null;
5681
- totalDataCount: bigint | null;
5682
- totalStorageSize: bigint | null;
5683
5705
  perDataSize: bigint | null;
5706
+ totalStorageSize: bigint | null;
5707
+ totalDataCount: bigint | null;
5684
5708
  sentMailsId: string;
5685
5709
  };
5686
5710
  };
@@ -5730,7 +5754,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5730
5754
  } & {
5731
5755
  quotas: {
5732
5756
  users: bigint | null;
5733
- totalStorageSize: bigint | null;
5757
+ bandwidth: bigint | null;
5734
5758
  perDataSize: bigint | null;
5735
5759
  devs: bigint | null;
5736
5760
  devsBase: bigint | null;
@@ -5742,10 +5766,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5742
5766
  perDataSizeBase: bigint | null;
5743
5767
  perDataSizeUnit: bigint | null;
5744
5768
  perDataSizePrice: number | null;
5745
- bandwidth: bigint | null;
5746
5769
  bandwidthBase: bigint | null;
5747
5770
  bandwidthUnit: bigint | null;
5748
5771
  bandwidthPrice: number | null;
5772
+ totalStorageSize: bigint | null;
5749
5773
  totalStorageSizeBase: bigint | null;
5750
5774
  totalStorageSizeUnit: bigint | null;
5751
5775
  totalStorageSizePrice: number | null;
@@ -5756,9 +5780,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5756
5780
  uploadBandwidth: bigint | null;
5757
5781
  downloadCount: bigint | null;
5758
5782
  uploadCount: bigint | null;
5759
- totalDataCount: bigint | null;
5760
- totalStorageSize: bigint | null;
5761
5783
  perDataSize: bigint | null;
5784
+ totalStorageSize: bigint | null;
5785
+ totalDataCount: bigint | null;
5762
5786
  sentMailsId: string;
5763
5787
  };
5764
5788
  };
@@ -5787,6 +5811,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5787
5811
  updatedAt: Date;
5788
5812
  deletedAt: Date | null;
5789
5813
  lastMetricsReset: Date;
5814
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5790
5815
  origin: string[];
5791
5816
  isCare: boolean;
5792
5817
  stripeInvoices: string[];
@@ -6435,29 +6460,29 @@ export declare const getTrpcGuestClient: ({ url }?: {
6435
6460
  limits: import("@trpc/server").TRPCQueryProcedure<{
6436
6461
  input: Record<string, never> | undefined;
6437
6462
  output: {
6438
- cloud: {
6439
- count: bigint;
6440
- maxCount: bigint | null;
6441
- size: bigint;
6442
- maxSize: bigint | null;
6463
+ metrics: {
6464
+ devsCount: bigint;
6465
+ usersCount: bigint;
6466
+ storageCount: bigint;
6467
+ storageSize: bigint;
6443
6468
  downloadBandwidth: bigint;
6444
- maxDownloadBandwidth: bigint | null;
6445
6469
  uploadBandwidth: bigint;
6446
- maxUploadBandwidth: bigint | null;
6447
6470
  downloadCount: bigint;
6448
- maxDownloadCount: bigint | null;
6449
6471
  uploadCount: bigint;
6450
- maxUploadCount: bigint | null;
6451
- };
6452
- mail: {
6453
- sent: {
6454
- count: bigint;
6455
- maxCount: bigint | null;
6456
- dataCount: bigint;
6457
- maxDataCount: bigint | null;
6458
- dataSize: bigint;
6459
- maxDataSize: bigint | null;
6460
- };
6472
+ sentMailCount: bigint;
6473
+ sentMailDataCount: bigint;
6474
+ sentMailDataSize: bigint;
6475
+ };
6476
+ quotas: {
6477
+ devsCount: bigint | null;
6478
+ usersCount: bigint | null;
6479
+ bandwidth: bigint | null;
6480
+ storageSize: bigint | null;
6481
+ storageCount: bigint | null;
6482
+ perDataSize: bigint | null;
6483
+ sentMailsCount: bigint | null;
6484
+ sentMailsDataSize: bigint | null;
6485
+ sentMailsDataCount: bigint | null;
6461
6486
  };
6462
6487
  };
6463
6488
  meta: any;
@@ -6468,11 +6493,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
6468
6493
  };
6469
6494
  output: {
6470
6495
  hasDatabase: boolean;
6471
- developers: number;
6472
- users: number;
6473
- storageUsage: number;
6474
- downloadBandwidthUsage: number;
6475
- uploadBandwidthUsage: number;
6496
+ developers: bigint;
6497
+ users: bigint;
6498
+ storageUsage: bigint;
6499
+ downloadBandwidthUsage: bigint;
6500
+ uploadBandwidthUsage: bigint;
6476
6501
  };
6477
6502
  meta: any;
6478
6503
  }>;
@@ -6541,7 +6566,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6541
6566
  } & {
6542
6567
  quotas: {
6543
6568
  users: bigint | null;
6544
- totalStorageSize: bigint | null;
6569
+ bandwidth: bigint | null;
6545
6570
  perDataSize: bigint | null;
6546
6571
  devs: bigint | null;
6547
6572
  devsBase: bigint | null;
@@ -6553,10 +6578,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
6553
6578
  perDataSizeBase: bigint | null;
6554
6579
  perDataSizeUnit: bigint | null;
6555
6580
  perDataSizePrice: number | null;
6556
- bandwidth: bigint | null;
6557
6581
  bandwidthBase: bigint | null;
6558
6582
  bandwidthUnit: bigint | null;
6559
6583
  bandwidthPrice: number | null;
6584
+ totalStorageSize: bigint | null;
6560
6585
  totalStorageSizeBase: bigint | null;
6561
6586
  totalStorageSizeUnit: bigint | null;
6562
6587
  totalStorageSizePrice: number | null;
@@ -6567,9 +6592,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
6567
6592
  uploadBandwidth: bigint | null;
6568
6593
  downloadCount: bigint | null;
6569
6594
  uploadCount: bigint | null;
6570
- totalDataCount: bigint | null;
6571
- totalStorageSize: bigint | null;
6572
6595
  perDataSize: bigint | null;
6596
+ totalStorageSize: bigint | null;
6597
+ totalDataCount: bigint | null;
6573
6598
  sentMailsId: string;
6574
6599
  };
6575
6600
  };
@@ -6593,8 +6618,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
6593
6618
  updateNotification: import("@trpc/server").TRPCMutationProcedure<{
6594
6619
  input: {
6595
6620
  mail?: boolean | undefined;
6596
- cloud?: boolean | undefined;
6597
6621
  enableAll?: boolean | undefined;
6622
+ cloud?: boolean | undefined;
6598
6623
  disableAllUntil?: Date | null | undefined;
6599
6624
  };
6600
6625
  output: {
@@ -6838,14 +6863,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
6838
6863
  id: string;
6839
6864
  name: string;
6840
6865
  createdAt: Date;
6866
+ deletedAt: Date | null;
6841
6867
  ownerId: string;
6842
6868
  planId: string;
6843
6869
  quotasId: string;
6844
6870
  stripeSubId: string | null;
6845
6871
  stripeSubPaidUntil: Date | null;
6872
+ stripeLastMetricReport: Date;
6846
6873
  billingProfileStripeCustomerId: string | null;
6847
- status: "active" | "inactive" | "pending_for_payment";
6874
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
6848
6875
  minMembersToReport: number;
6876
+ lastMetricsReset: Date;
6849
6877
  };
6850
6878
  meta: any;
6851
6879
  }>;
@@ -7430,8 +7458,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7430
7458
  };
7431
7459
  output: {
7432
7460
  id: string;
7433
- size: bigint;
7434
7461
  md5: string;
7462
+ size: bigint;
7435
7463
  sizeEncrypted: bigint | null;
7436
7464
  md5Encrypted: string | null;
7437
7465
  mime: string | null;
@@ -7449,8 +7477,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7449
7477
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7450
7478
  } | {
7451
7479
  id: string;
7452
- size: bigint;
7453
7480
  md5: string;
7481
+ size: bigint;
7454
7482
  sizeEncrypted: bigint | null;
7455
7483
  md5Encrypted: string | null;
7456
7484
  mime: string | null;
@@ -7467,8 +7495,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7467
7495
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7468
7496
  } | {
7469
7497
  id: string;
7470
- size: bigint;
7471
7498
  md5: string;
7499
+ size: bigint;
7472
7500
  sizeEncrypted: bigint | null;
7473
7501
  md5Encrypted: string | null;
7474
7502
  mime: string | null;
@@ -7485,8 +7513,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7485
7513
  }[];
7486
7514
  } | {
7487
7515
  id: string;
7488
- size: bigint;
7489
7516
  md5: string;
7517
+ size: bigint;
7490
7518
  sizeEncrypted: bigint | null;
7491
7519
  md5Encrypted: string | null;
7492
7520
  mime: string | null;
@@ -7508,8 +7536,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7508
7536
  };
7509
7537
  output: ({
7510
7538
  id: string;
7511
- size: bigint;
7512
7539
  md5: string;
7540
+ size: bigint;
7513
7541
  sizeEncrypted: bigint | null;
7514
7542
  md5Encrypted: string | null;
7515
7543
  mime: string | null;
@@ -7527,8 +7555,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7527
7555
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7528
7556
  } | {
7529
7557
  id: string;
7530
- size: bigint;
7531
7558
  md5: string;
7559
+ size: bigint;
7532
7560
  sizeEncrypted: bigint | null;
7533
7561
  md5Encrypted: string | null;
7534
7562
  mime: string | null;
@@ -7545,8 +7573,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7545
7573
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7546
7574
  } | {
7547
7575
  id: string;
7548
- size: bigint;
7549
7576
  md5: string;
7577
+ size: bigint;
7550
7578
  sizeEncrypted: bigint | null;
7551
7579
  md5Encrypted: string | null;
7552
7580
  mime: string | null;
@@ -7563,8 +7591,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
7563
7591
  }[];
7564
7592
  } | {
7565
7593
  id: string;
7566
- size: bigint;
7567
7594
  md5: string;
7595
+ size: bigint;
7568
7596
  sizeEncrypted: bigint | null;
7569
7597
  md5Encrypted: string | null;
7570
7598
  mime: string | null;
@@ -8006,7 +8034,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8006
8034
  sizeEncrypted: bigint;
8007
8035
  md5Encrypted: string;
8008
8036
  type: "encrypted";
8009
- content: Uint8Array<ArrayBuffer>;
8037
+ content: Buffer<ArrayBufferLike>;
8010
8038
  mime?: string | undefined;
8011
8039
  ext?: string | undefined;
8012
8040
  fromIdentityPubKey?: string | null | undefined;
@@ -8015,7 +8043,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8015
8043
  size: bigint;
8016
8044
  md5: string;
8017
8045
  type: "unencrypted";
8018
- content: Uint8Array<ArrayBuffer>;
8046
+ content: Buffer<ArrayBufferLike>;
8019
8047
  mime?: string | undefined;
8020
8048
  ext?: string | undefined;
8021
8049
  fromIdentityPubKey?: string | null | undefined;
@@ -11237,14 +11265,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11237
11265
  id: string;
11238
11266
  name: string;
11239
11267
  createdAt: Date;
11268
+ deletedAt: Date | null;
11240
11269
  ownerId: string;
11241
11270
  planId: string;
11242
11271
  quotasId: string;
11243
11272
  stripeSubId: string | null;
11244
11273
  stripeSubPaidUntil: Date | null;
11274
+ stripeLastMetricReport: Date;
11245
11275
  billingProfileStripeCustomerId: string | null;
11246
- status: "active" | "inactive" | "pending_for_payment";
11276
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11247
11277
  minMembersToReport: number;
11278
+ lastMetricsReset: Date;
11248
11279
  } & {
11249
11280
  plan: {
11250
11281
  id: string;
@@ -11307,14 +11338,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11307
11338
  id: string;
11308
11339
  name: string;
11309
11340
  createdAt: Date;
11341
+ deletedAt: Date | null;
11310
11342
  ownerId: string;
11311
11343
  planId: string;
11312
11344
  quotasId: string;
11313
11345
  stripeSubId: string | null;
11314
11346
  stripeSubPaidUntil: Date | null;
11347
+ stripeLastMetricReport: Date;
11315
11348
  billingProfileStripeCustomerId: string | null;
11316
- status: "active" | "inactive" | "pending_for_payment";
11349
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11317
11350
  minMembersToReport: number;
11351
+ lastMetricsReset: Date;
11318
11352
  };
11319
11353
  } | {
11320
11354
  type: "checkout";
@@ -11323,14 +11357,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11323
11357
  id: string;
11324
11358
  name: string;
11325
11359
  createdAt: Date;
11360
+ deletedAt: Date | null;
11326
11361
  ownerId: string;
11327
11362
  planId: string;
11328
11363
  quotasId: string;
11329
11364
  stripeSubId: string | null;
11330
11365
  stripeSubPaidUntil: Date | null;
11366
+ stripeLastMetricReport: Date;
11331
11367
  billingProfileStripeCustomerId: string | null;
11332
- status: "active" | "inactive" | "pending_for_payment";
11368
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11333
11369
  minMembersToReport: number;
11370
+ lastMetricsReset: Date;
11334
11371
  };
11335
11372
  };
11336
11373
  meta: any;
@@ -11343,14 +11380,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11343
11380
  id: string;
11344
11381
  name: string;
11345
11382
  createdAt: Date;
11383
+ deletedAt: Date | null;
11346
11384
  ownerId: string;
11347
11385
  planId: string;
11348
11386
  quotasId: string;
11349
11387
  stripeSubId: string | null;
11350
11388
  stripeSubPaidUntil: Date | null;
11389
+ stripeLastMetricReport: Date;
11351
11390
  billingProfileStripeCustomerId: string | null;
11352
- status: "active" | "inactive" | "pending_for_payment";
11391
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11353
11392
  minMembersToReport: number;
11393
+ lastMetricsReset: Date;
11354
11394
  };
11355
11395
  meta: any;
11356
11396
  }>;
@@ -11388,14 +11428,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11388
11428
  id: string;
11389
11429
  name: string;
11390
11430
  createdAt: Date;
11431
+ deletedAt: Date | null;
11391
11432
  ownerId: string;
11392
11433
  planId: string;
11393
11434
  quotasId: string;
11394
11435
  stripeSubId: string | null;
11395
11436
  stripeSubPaidUntil: Date | null;
11437
+ stripeLastMetricReport: Date;
11396
11438
  billingProfileStripeCustomerId: string | null;
11397
- status: "active" | "inactive" | "pending_for_payment";
11439
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11398
11440
  minMembersToReport: number;
11441
+ lastMetricsReset: Date;
11399
11442
  }[];
11400
11443
  meta: any;
11401
11444
  }>;
@@ -11449,17 +11492,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11449
11492
  uploadBandwidth: bigint | null;
11450
11493
  downloadCount: bigint | null;
11451
11494
  uploadCount: bigint | null;
11452
- totalDataCount: bigint | null;
11453
- totalStorageSize: bigint | null;
11454
11495
  perDataSize: bigint | null;
11496
+ totalStorageSize: bigint | null;
11497
+ totalDataCount: bigint | null;
11455
11498
  sentMails: {
11456
11499
  count: bigint | null;
11457
- dataCount: bigint | null;
11458
- dataSize: bigint | null;
11459
- totalDataCount: bigint | null;
11460
- totalStorageSize: bigint | null;
11461
11500
  perDataSize: bigint | null;
11501
+ totalStorageSize: bigint | null;
11502
+ totalDataCount: bigint | null;
11462
11503
  totalCount: bigint | null;
11504
+ dataCount: bigint | null;
11505
+ dataSize: bigint | null;
11463
11506
  };
11464
11507
  };
11465
11508
  price: number;
@@ -11490,14 +11533,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11490
11533
  id: string;
11491
11534
  name: string;
11492
11535
  createdAt: Date;
11536
+ deletedAt: Date | null;
11493
11537
  ownerId: string;
11494
11538
  planId: string;
11495
11539
  quotasId: string;
11496
11540
  stripeSubId: string | null;
11497
11541
  stripeSubPaidUntil: Date | null;
11542
+ stripeLastMetricReport: Date;
11498
11543
  billingProfileStripeCustomerId: string | null;
11499
- status: "active" | "inactive" | "pending_for_payment";
11544
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11500
11545
  minMembersToReport: number;
11546
+ lastMetricsReset: Date;
11501
11547
  };
11502
11548
  meta: any;
11503
11549
  }>;
@@ -11525,14 +11571,17 @@ export declare const getTrpcGuestClient: ({ url }?: {
11525
11571
  id: string;
11526
11572
  name: string;
11527
11573
  createdAt: Date;
11574
+ deletedAt: Date | null;
11528
11575
  ownerId: string;
11529
11576
  planId: string;
11530
11577
  quotasId: string;
11531
11578
  stripeSubId: string | null;
11532
11579
  stripeSubPaidUntil: Date | null;
11580
+ stripeLastMetricReport: Date;
11533
11581
  billingProfileStripeCustomerId: string | null;
11534
- status: "active" | "inactive" | "pending_for_payment";
11582
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
11535
11583
  minMembersToReport: number;
11584
+ lastMetricsReset: Date;
11536
11585
  };
11537
11586
  meta: any;
11538
11587
  }>;
@@ -11546,7 +11595,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11546
11595
  appId: string;
11547
11596
  orgId: string;
11548
11597
  settings: {
11549
- payForUsers: boolean;
11598
+ paidByApp: boolean;
11550
11599
  bandwidthLimit: bigint | null;
11551
11600
  perDataSizeLimit: bigint | null;
11552
11601
  totalStorageSizeLimit: bigint | null;
@@ -11570,7 +11619,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
11570
11619
  appId: string;
11571
11620
  orgId: string;
11572
11621
  settings: {
11573
- payForUsers: boolean;
11622
+ paidByApp: boolean;
11574
11623
  bandwidthLimit: bigint | null;
11575
11624
  perDataSizeLimit: bigint | null;
11576
11625
  totalStorageSizeLimit: bigint | null;
@@ -12029,7 +12078,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12029
12078
  } & {
12030
12079
  quotas: {
12031
12080
  users: bigint | null;
12032
- totalStorageSize: bigint | null;
12081
+ bandwidth: bigint | null;
12033
12082
  perDataSize: bigint | null;
12034
12083
  devs: bigint | null;
12035
12084
  devsBase: bigint | null;
@@ -12041,10 +12090,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
12041
12090
  perDataSizeBase: bigint | null;
12042
12091
  perDataSizeUnit: bigint | null;
12043
12092
  perDataSizePrice: number | null;
12044
- bandwidth: bigint | null;
12045
12093
  bandwidthBase: bigint | null;
12046
12094
  bandwidthUnit: bigint | null;
12047
12095
  bandwidthPrice: number | null;
12096
+ totalStorageSize: bigint | null;
12048
12097
  totalStorageSizeBase: bigint | null;
12049
12098
  totalStorageSizeUnit: bigint | null;
12050
12099
  totalStorageSizePrice: number | null;
@@ -12055,9 +12104,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
12055
12104
  uploadBandwidth: bigint | null;
12056
12105
  downloadCount: bigint | null;
12057
12106
  uploadCount: bigint | null;
12058
- totalDataCount: bigint | null;
12059
- totalStorageSize: bigint | null;
12060
12107
  perDataSize: bigint | null;
12108
+ totalStorageSize: bigint | null;
12109
+ totalDataCount: bigint | null;
12061
12110
  sentMailsId: string;
12062
12111
  };
12063
12112
  };
@@ -12107,7 +12156,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12107
12156
  } & {
12108
12157
  quotas: {
12109
12158
  users: bigint | null;
12110
- totalStorageSize: bigint | null;
12159
+ bandwidth: bigint | null;
12111
12160
  perDataSize: bigint | null;
12112
12161
  devs: bigint | null;
12113
12162
  devsBase: bigint | null;
@@ -12119,10 +12168,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
12119
12168
  perDataSizeBase: bigint | null;
12120
12169
  perDataSizeUnit: bigint | null;
12121
12170
  perDataSizePrice: number | null;
12122
- bandwidth: bigint | null;
12123
12171
  bandwidthBase: bigint | null;
12124
12172
  bandwidthUnit: bigint | null;
12125
12173
  bandwidthPrice: number | null;
12174
+ totalStorageSize: bigint | null;
12126
12175
  totalStorageSizeBase: bigint | null;
12127
12176
  totalStorageSizeUnit: bigint | null;
12128
12177
  totalStorageSizePrice: number | null;
@@ -12133,9 +12182,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
12133
12182
  uploadBandwidth: bigint | null;
12134
12183
  downloadCount: bigint | null;
12135
12184
  uploadCount: bigint | null;
12136
- totalDataCount: bigint | null;
12137
- totalStorageSize: bigint | null;
12138
12185
  perDataSize: bigint | null;
12186
+ totalStorageSize: bigint | null;
12187
+ totalDataCount: bigint | null;
12139
12188
  sentMailsId: string;
12140
12189
  };
12141
12190
  };
@@ -12164,6 +12213,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12164
12213
  updatedAt: Date;
12165
12214
  deletedAt: Date | null;
12166
12215
  lastMetricsReset: Date;
12216
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
12167
12217
  origin: string[];
12168
12218
  isCare: boolean;
12169
12219
  stripeInvoices: string[];
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.85.0",
5
+ "version": "1.85.1-fix-billing.2",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@js-temporal/polyfill": "^0.5.1",
79
- "@secrecy/trpc-api-types": "1.40.1",
79
+ "@secrecy/trpc-api-types": "1.41.0-fix-reset-billing.10",
80
80
  "@trpc/client": "11.6.0",
81
81
  "@trpc/server": "^11.6.0",
82
82
  "@types/libsodium-wrappers-sumo": "^0.7.8",