@secrecy/lib 1.84.1 → 1.85.1-fix-billing.1
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.
|
@@ -5,7 +5,7 @@ export class SecrecyGroupClient {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.#client = client;
|
|
7
7
|
}
|
|
8
|
-
async addMember(input) {
|
|
8
|
+
async addMember(input, fromIdentityPubKey) {
|
|
9
9
|
const groupIdentity = this.#client.groupIdentities.find((g) => g.groupId === input.id);
|
|
10
10
|
if (!groupIdentity) {
|
|
11
11
|
throw new Error('Group identity not found');
|
|
@@ -18,11 +18,13 @@ export class SecrecyGroupClient {
|
|
|
18
18
|
pubKey: input.pubKey,
|
|
19
19
|
role: input.role,
|
|
20
20
|
id: input.id,
|
|
21
|
-
encPriv: sodium.to_hex(encryptCryptoBox(sodium.from_hex(groupPriv), input.pubKey,
|
|
21
|
+
encPriv: sodium.to_hex(encryptCryptoBox(sodium.from_hex(groupPriv), input.pubKey, fromIdentityPubKey
|
|
22
|
+
? this.#client.getPrivateKey(fromIdentityPubKey)
|
|
23
|
+
: this.#client.currentIdentityPrivateKey)),
|
|
22
24
|
};
|
|
23
25
|
return this.#client.apiClient.group.addMember.mutate({
|
|
24
26
|
...opts,
|
|
25
|
-
fromIdentityPubKey: this.#client.currentIdentity.identityPubKey,
|
|
27
|
+
fromIdentityPubKey: fromIdentityPubKey ?? this.#client.currentIdentity.identityPubKey,
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
async create(input) {
|
|
@@ -48,7 +48,7 @@ export function getSecrecyClient(opts = {}) {
|
|
|
48
48
|
}
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
export async function login({ appId, context, path, redirect, scopes, backPath, session, secrecyUrls, }) {
|
|
51
|
+
export async function login({ appId, context, path, redirect, scopes, backPath, session, secrecyUrls, forceLogin, }) {
|
|
52
52
|
return await new Promise(async (resolve, reject) => {
|
|
53
53
|
const appUrl = window.location.origin;
|
|
54
54
|
const client = getSecrecyClient({ session, secrecyUrls });
|
|
@@ -109,7 +109,7 @@ export async function login({ appId, context, path, redirect, scopes, backPath,
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
if (client === null) {
|
|
112
|
+
if (client === null || forceLogin === true) {
|
|
113
113
|
innerLogin();
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
@@ -3,7 +3,7 @@ import { type SecrecyClient } from '../index.js';
|
|
|
3
3
|
export declare class SecrecyGroupClient {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(client: SecrecyClient);
|
|
6
|
-
addMember(input: Pick<RouterInputs['group']['addMember'], 'pubKey' | 'role' | 'id'
|
|
6
|
+
addMember(input: Pick<RouterInputs['group']['addMember'], 'pubKey' | 'role' | 'id'>, fromIdentityPubKey?: string): Promise<RouterOutputs['group']['addMember']>;
|
|
7
7
|
create(input: Pick<RouterInputs['group']['create'], 'name'>): Promise<RouterOutputs['group']['create']>;
|
|
8
8
|
deleteMember(input: RouterInputs['group']['deleteMember']): Promise<RouterOutputs['group']['deleteMember']>;
|
|
9
9
|
delete(input: RouterInputs['group']['delete']): Promise<RouterOutputs['group']['delete']>;
|
|
@@ -19,6 +19,7 @@ export interface HashInfos {
|
|
|
19
19
|
export type UseSecrecyParams = Omit<HashInfos, 'appUrl'> & {
|
|
20
20
|
session?: boolean | undefined;
|
|
21
21
|
secrecyUrls?: Partial<SecrecyUrls>;
|
|
22
|
+
forceLogin?: boolean | undefined;
|
|
22
23
|
};
|
|
23
24
|
export declare function getSecrecyClient(opts?: {
|
|
24
25
|
session?: boolean;
|
|
@@ -27,5 +28,5 @@ export declare function getSecrecyClient(opts?: {
|
|
|
27
28
|
type LoginResponse<Params extends UseSecrecyParams> = Params extends {
|
|
28
29
|
redirect: true;
|
|
29
30
|
} ? SecrecyClient | null : SecrecyClient;
|
|
30
|
-
export declare function login<Params extends UseSecrecyParams>({ appId, context, path, redirect, scopes, backPath, session, secrecyUrls, }: Params): Promise<LoginResponse<Params>>;
|
|
31
|
+
export declare function login<Params extends UseSecrecyParams>({ appId, context, path, redirect, scopes, backPath, session, secrecyUrls, forceLogin, }: Params): Promise<LoginResponse<Params>>;
|
|
31
32
|
export {};
|
package/dist/types/client.d.ts
CHANGED
|
@@ -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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
sentMailCount: bigint;
|
|
71
|
+
sentMailDataCount: bigint;
|
|
72
|
+
sentMailDataSize: bigint;
|
|
73
|
+
};
|
|
74
|
+
quotas: {
|
|
75
|
+
bandwidth: bigint | null;
|
|
76
|
+
devsCount: bigint | null;
|
|
77
|
+
usersCount: bigint | null;
|
|
78
|
+
perDataSize: bigint | null;
|
|
79
|
+
totalStorageSize: bigint | null;
|
|
80
|
+
totalDataCount: 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:
|
|
95
|
-
users:
|
|
96
|
-
storageUsage:
|
|
97
|
-
downloadBandwidthUsage:
|
|
98
|
-
uploadBandwidthUsage:
|
|
94
|
+
developers: bigint;
|
|
95
|
+
users: bigint;
|
|
96
|
+
storageUsage: bigint;
|
|
97
|
+
downloadBandwidthUsage: bigint;
|
|
98
|
+
uploadBandwidthUsage: bigint;
|
|
99
99
|
};
|
|
100
100
|
meta: any;
|
|
101
101
|
}>;
|
|
@@ -164,8 +164,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
164
164
|
} & {
|
|
165
165
|
quotas: {
|
|
166
166
|
users: bigint | null;
|
|
167
|
-
|
|
167
|
+
bandwidth: bigint | null;
|
|
168
168
|
perDataSize: bigint | null;
|
|
169
|
+
totalStorageSize: bigint | null;
|
|
169
170
|
devs: bigint | null;
|
|
170
171
|
devsBase: bigint | null;
|
|
171
172
|
devsUnit: bigint | null;
|
|
@@ -176,7 +177,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
176
177
|
perDataSizeBase: bigint | null;
|
|
177
178
|
perDataSizeUnit: bigint | null;
|
|
178
179
|
perDataSizePrice: number | null;
|
|
179
|
-
bandwidth: bigint | null;
|
|
180
180
|
bandwidthBase: bigint | null;
|
|
181
181
|
bandwidthUnit: bigint | null;
|
|
182
182
|
bandwidthPrice: 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
|
}>;
|
|
@@ -764,7 +767,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
764
767
|
tags: string[];
|
|
765
768
|
lang: "en" | "fr";
|
|
766
769
|
blogId: string;
|
|
767
|
-
|
|
770
|
+
targets: string[];
|
|
768
771
|
} & {
|
|
769
772
|
blog: {
|
|
770
773
|
id: string;
|
|
@@ -789,7 +792,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
789
792
|
tags: string[];
|
|
790
793
|
lang: "en" | "fr";
|
|
791
794
|
blogId: string;
|
|
792
|
-
|
|
795
|
+
targets: string[];
|
|
793
796
|
} & {
|
|
794
797
|
blog: {
|
|
795
798
|
id: string;
|
|
@@ -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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
5220
|
+
paidByApp: boolean;
|
|
5197
5221
|
bandwidthLimit: bigint | null;
|
|
5198
5222
|
perDataSizeLimit: bigint | null;
|
|
5199
5223
|
totalStorageSizeLimit: bigint | null;
|
|
@@ -5652,8 +5676,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5652
5676
|
} & {
|
|
5653
5677
|
quotas: {
|
|
5654
5678
|
users: bigint | null;
|
|
5655
|
-
|
|
5679
|
+
bandwidth: bigint | null;
|
|
5656
5680
|
perDataSize: bigint | null;
|
|
5681
|
+
totalStorageSize: bigint | null;
|
|
5657
5682
|
devs: bigint | null;
|
|
5658
5683
|
devsBase: bigint | null;
|
|
5659
5684
|
devsUnit: bigint | null;
|
|
@@ -5664,7 +5689,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5664
5689
|
perDataSizeBase: bigint | null;
|
|
5665
5690
|
perDataSizeUnit: bigint | null;
|
|
5666
5691
|
perDataSizePrice: number | null;
|
|
5667
|
-
bandwidth: bigint | null;
|
|
5668
5692
|
bandwidthBase: bigint | null;
|
|
5669
5693
|
bandwidthUnit: bigint | null;
|
|
5670
5694
|
bandwidthPrice: 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,8 +5754,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5730
5754
|
} & {
|
|
5731
5755
|
quotas: {
|
|
5732
5756
|
users: bigint | null;
|
|
5733
|
-
|
|
5757
|
+
bandwidth: bigint | null;
|
|
5734
5758
|
perDataSize: bigint | null;
|
|
5759
|
+
totalStorageSize: bigint | null;
|
|
5735
5760
|
devs: bigint | null;
|
|
5736
5761
|
devsBase: bigint | null;
|
|
5737
5762
|
devsUnit: bigint | null;
|
|
@@ -5742,7 +5767,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5742
5767
|
perDataSizeBase: bigint | null;
|
|
5743
5768
|
perDataSizeUnit: bigint | null;
|
|
5744
5769
|
perDataSizePrice: number | null;
|
|
5745
|
-
bandwidth: bigint | null;
|
|
5746
5770
|
bandwidthBase: bigint | null;
|
|
5747
5771
|
bandwidthUnit: bigint | null;
|
|
5748
5772
|
bandwidthPrice: 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
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
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
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6472
|
+
sentMailCount: bigint;
|
|
6473
|
+
sentMailDataCount: bigint;
|
|
6474
|
+
sentMailDataSize: bigint;
|
|
6475
|
+
};
|
|
6476
|
+
quotas: {
|
|
6477
|
+
bandwidth: bigint | null;
|
|
6478
|
+
devsCount: bigint | null;
|
|
6479
|
+
usersCount: bigint | null;
|
|
6480
|
+
perDataSize: bigint | null;
|
|
6481
|
+
totalStorageSize: bigint | null;
|
|
6482
|
+
totalDataCount: 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:
|
|
6472
|
-
users:
|
|
6473
|
-
storageUsage:
|
|
6474
|
-
downloadBandwidthUsage:
|
|
6475
|
-
uploadBandwidthUsage:
|
|
6496
|
+
developers: bigint;
|
|
6497
|
+
users: bigint;
|
|
6498
|
+
storageUsage: bigint;
|
|
6499
|
+
downloadBandwidthUsage: bigint;
|
|
6500
|
+
uploadBandwidthUsage: bigint;
|
|
6476
6501
|
};
|
|
6477
6502
|
meta: any;
|
|
6478
6503
|
}>;
|
|
@@ -6541,8 +6566,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6541
6566
|
} & {
|
|
6542
6567
|
quotas: {
|
|
6543
6568
|
users: bigint | null;
|
|
6544
|
-
|
|
6569
|
+
bandwidth: bigint | null;
|
|
6545
6570
|
perDataSize: bigint | null;
|
|
6571
|
+
totalStorageSize: bigint | null;
|
|
6546
6572
|
devs: bigint | null;
|
|
6547
6573
|
devsBase: bigint | null;
|
|
6548
6574
|
devsUnit: bigint | null;
|
|
@@ -6553,7 +6579,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6553
6579
|
perDataSizeBase: bigint | null;
|
|
6554
6580
|
perDataSizeUnit: bigint | null;
|
|
6555
6581
|
perDataSizePrice: number | null;
|
|
6556
|
-
bandwidth: bigint | null;
|
|
6557
6582
|
bandwidthBase: bigint | null;
|
|
6558
6583
|
bandwidthUnit: bigint | null;
|
|
6559
6584
|
bandwidthPrice: 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
|
}>;
|
|
@@ -7141,7 +7169,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7141
7169
|
tags: string[];
|
|
7142
7170
|
lang: "en" | "fr";
|
|
7143
7171
|
blogId: string;
|
|
7144
|
-
|
|
7172
|
+
targets: string[];
|
|
7145
7173
|
} & {
|
|
7146
7174
|
blog: {
|
|
7147
7175
|
id: string;
|
|
@@ -7166,7 +7194,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
7166
7194
|
tags: string[];
|
|
7167
7195
|
lang: "en" | "fr";
|
|
7168
7196
|
blogId: string;
|
|
7169
|
-
|
|
7197
|
+
targets: string[];
|
|
7170
7198
|
} & {
|
|
7171
7199
|
blog: {
|
|
7172
7200
|
id: string;
|
|
@@ -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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
11622
|
+
paidByApp: boolean;
|
|
11574
11623
|
bandwidthLimit: bigint | null;
|
|
11575
11624
|
perDataSizeLimit: bigint | null;
|
|
11576
11625
|
totalStorageSizeLimit: bigint | null;
|
|
@@ -12029,8 +12078,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12029
12078
|
} & {
|
|
12030
12079
|
quotas: {
|
|
12031
12080
|
users: bigint | null;
|
|
12032
|
-
|
|
12081
|
+
bandwidth: bigint | null;
|
|
12033
12082
|
perDataSize: bigint | null;
|
|
12083
|
+
totalStorageSize: bigint | null;
|
|
12034
12084
|
devs: bigint | null;
|
|
12035
12085
|
devsBase: bigint | null;
|
|
12036
12086
|
devsUnit: bigint | null;
|
|
@@ -12041,7 +12091,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12041
12091
|
perDataSizeBase: bigint | null;
|
|
12042
12092
|
perDataSizeUnit: bigint | null;
|
|
12043
12093
|
perDataSizePrice: number | null;
|
|
12044
|
-
bandwidth: bigint | null;
|
|
12045
12094
|
bandwidthBase: bigint | null;
|
|
12046
12095
|
bandwidthUnit: bigint | null;
|
|
12047
12096
|
bandwidthPrice: 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,8 +12156,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12107
12156
|
} & {
|
|
12108
12157
|
quotas: {
|
|
12109
12158
|
users: bigint | null;
|
|
12110
|
-
|
|
12159
|
+
bandwidth: bigint | null;
|
|
12111
12160
|
perDataSize: bigint | null;
|
|
12161
|
+
totalStorageSize: bigint | null;
|
|
12112
12162
|
devs: bigint | null;
|
|
12113
12163
|
devsBase: bigint | null;
|
|
12114
12164
|
devsUnit: bigint | null;
|
|
@@ -12119,7 +12169,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12119
12169
|
perDataSizeBase: bigint | null;
|
|
12120
12170
|
perDataSizeUnit: bigint | null;
|
|
12121
12171
|
perDataSizePrice: number | null;
|
|
12122
|
-
bandwidth: bigint | null;
|
|
12123
12172
|
bandwidthBase: bigint | null;
|
|
12124
12173
|
bandwidthUnit: bigint | null;
|
|
12125
12174
|
bandwidthPrice: 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.
|
|
5
|
+
"version": "1.85.1-fix-billing.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -49,48 +49,48 @@
|
|
|
49
49
|
"semantic-release": "semantic-release"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@commitlint/cli": "^20.
|
|
53
|
-
"@commitlint/config-conventional": "^20.
|
|
52
|
+
"@commitlint/cli": "^20.3.0",
|
|
53
|
+
"@commitlint/config-conventional": "^20.3.0",
|
|
54
54
|
"@prisma/client": "6.17.1",
|
|
55
|
-
"@types/bun": "^1.3.
|
|
55
|
+
"@types/bun": "^1.3.5",
|
|
56
56
|
"@types/jsonwebtoken": "^9.0.10",
|
|
57
57
|
"@types/spark-md5": "^3.0.5",
|
|
58
58
|
"@types/streamsaver": "^2.0.5",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"eslint": "^9.
|
|
62
|
-
"eslint-config-love": "^
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.52.0",
|
|
60
|
+
"@typescript-eslint/parser": "^8.52.0",
|
|
61
|
+
"eslint": "^9.39.2",
|
|
62
|
+
"eslint-config-love": "^140.0.0",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-plugin-import": "^2.32.0",
|
|
65
65
|
"eslint-plugin-n": "^17.23.1",
|
|
66
66
|
"eslint-plugin-promise": "^7.2.1",
|
|
67
67
|
"husky": "^9.1.7",
|
|
68
68
|
"npm-run-all": "^4.1.5",
|
|
69
|
-
"prettier": "^3.
|
|
70
|
-
"rimraf": "^6.
|
|
69
|
+
"prettier": "^3.7.4",
|
|
70
|
+
"rimraf": "^6.1.2",
|
|
71
71
|
"semantic-release": "^25.0.2",
|
|
72
|
-
"typedoc": "^0.28.
|
|
72
|
+
"typedoc": "^0.28.15",
|
|
73
73
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
74
74
|
"typedoc-plugin-missing-exports": "^4.1.2",
|
|
75
75
|
"typescript": "^5.9.3"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@js-temporal/polyfill": "^0.5.1",
|
|
79
|
-
"@secrecy/trpc-api-types": "1.
|
|
79
|
+
"@secrecy/trpc-api-types": "1.41.0-fix-reset-billing.9",
|
|
80
80
|
"@trpc/client": "11.6.0",
|
|
81
81
|
"@trpc/server": "^11.6.0",
|
|
82
82
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|
|
83
|
-
"axios": "^1.
|
|
84
|
-
"bson": "^
|
|
85
|
-
"ethers": "^6.
|
|
86
|
-
"file-type": "^21.
|
|
87
|
-
"jsonwebtoken": "^9.0.
|
|
88
|
-
"ky": "^1.
|
|
89
|
-
"libsodium-wrappers-sumo": "^0.
|
|
90
|
-
"lru-cache": "^11.2.
|
|
83
|
+
"axios": "^1.13.2",
|
|
84
|
+
"bson": "^7.0.0",
|
|
85
|
+
"ethers": "^6.16.0",
|
|
86
|
+
"file-type": "^21.3.0",
|
|
87
|
+
"jsonwebtoken": "^9.0.3",
|
|
88
|
+
"ky": "^1.14.2",
|
|
89
|
+
"libsodium-wrappers-sumo": "^0.8.0",
|
|
90
|
+
"lru-cache": "^11.2.4",
|
|
91
91
|
"spark-md5": "^3.0.2",
|
|
92
92
|
"streamsaver": "^2.0.6",
|
|
93
|
-
"superjson": "2.2.
|
|
94
|
-
"zod": "4.
|
|
93
|
+
"superjson": "2.2.6",
|
|
94
|
+
"zod": "4.3.5"
|
|
95
95
|
}
|
|
96
96
|
}
|