@secrecy/lib 1.63.0-feat-orgs.2 → 1.63.0-feat-orgs.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/client.d.ts +12 -171
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -1515,24 +1515,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
1515
1515
|
to: string;
|
|
1516
1516
|
};
|
|
1517
1517
|
_output_in: {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
lastname: string;
|
|
1521
|
-
firstname: string;
|
|
1522
|
-
avatar: string | null;
|
|
1523
|
-
isSearchable: boolean;
|
|
1524
|
-
}[];
|
|
1525
|
-
loginToken: string;
|
|
1518
|
+
session: string;
|
|
1519
|
+
masterKeySalt: string;
|
|
1526
1520
|
};
|
|
1527
1521
|
_output_out: {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
lastname: string;
|
|
1531
|
-
firstname: string;
|
|
1532
|
-
avatar: string | null;
|
|
1533
|
-
isSearchable: boolean;
|
|
1534
|
-
}[];
|
|
1535
|
-
loginToken: string;
|
|
1522
|
+
session: string;
|
|
1523
|
+
masterKeySalt: string;
|
|
1536
1524
|
};
|
|
1537
1525
|
}, unknown>>;
|
|
1538
1526
|
};
|
|
@@ -1798,48 +1786,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
1798
1786
|
};
|
|
1799
1787
|
}, unknown>>;
|
|
1800
1788
|
};
|
|
1801
|
-
loginUser: {
|
|
1802
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
1803
|
-
_config: import("@trpc/server").RootConfig<{
|
|
1804
|
-
ctx: {};
|
|
1805
|
-
meta: object;
|
|
1806
|
-
errorShape: {
|
|
1807
|
-
message: string;
|
|
1808
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
1809
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1810
|
-
} | {
|
|
1811
|
-
data: {
|
|
1812
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
1813
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
1814
|
-
httpStatus: number;
|
|
1815
|
-
path?: string;
|
|
1816
|
-
stack?: string;
|
|
1817
|
-
};
|
|
1818
|
-
message: string;
|
|
1819
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
1820
|
-
};
|
|
1821
|
-
transformer: typeof superjson;
|
|
1822
|
-
}>;
|
|
1823
|
-
_meta: object;
|
|
1824
|
-
_ctx_out: {};
|
|
1825
|
-
_input_in: {
|
|
1826
|
-
userId: string;
|
|
1827
|
-
loginToken: string;
|
|
1828
|
-
};
|
|
1829
|
-
_input_out: {
|
|
1830
|
-
userId: string;
|
|
1831
|
-
loginToken: string;
|
|
1832
|
-
};
|
|
1833
|
-
_output_in: {
|
|
1834
|
-
session: string;
|
|
1835
|
-
masterKeySalt: string;
|
|
1836
|
-
};
|
|
1837
|
-
_output_out: {
|
|
1838
|
-
session: string;
|
|
1839
|
-
masterKeySalt: string;
|
|
1840
|
-
};
|
|
1841
|
-
}, unknown>>;
|
|
1842
|
-
};
|
|
1843
1789
|
signup: {
|
|
1844
1790
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
1845
1791
|
_config: import("@trpc/server").RootConfig<{
|
|
@@ -12599,10 +12545,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12599
12545
|
_meta: object;
|
|
12600
12546
|
_ctx_out: {};
|
|
12601
12547
|
_input_in: {
|
|
12602
|
-
|
|
12548
|
+
waitUntilPeriodEnd: boolean;
|
|
12603
12549
|
};
|
|
12604
12550
|
_input_out: {
|
|
12605
|
-
|
|
12551
|
+
waitUntilPeriodEnd: boolean;
|
|
12606
12552
|
};
|
|
12607
12553
|
_output_in: {
|
|
12608
12554
|
isCancelled: boolean;
|
|
@@ -12737,30 +12683,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12737
12683
|
description: string | null;
|
|
12738
12684
|
status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
|
|
12739
12685
|
metadata: Record<string, string>;
|
|
12740
|
-
startDate: number;
|
|
12741
|
-
canceledAt: number | null;
|
|
12742
|
-
created: number;
|
|
12743
12686
|
billingCycleAnchor: number;
|
|
12744
12687
|
cancelAt: number | null;
|
|
12745
12688
|
cancelAtPeriodEnd: boolean;
|
|
12689
|
+
canceledAt: number | null;
|
|
12690
|
+
created: number;
|
|
12746
12691
|
daysUntilDue: number | null;
|
|
12692
|
+
startDate: number;
|
|
12747
12693
|
endedAt: number | null;
|
|
12748
12694
|
trialEnd: number | null;
|
|
12749
12695
|
trialStart: number | null;
|
|
12750
|
-
schedule: {
|
|
12751
|
-
id: string;
|
|
12752
|
-
status: "canceled" | "active" | "completed" | "not_started" | "released";
|
|
12753
|
-
canceledAt: number | null;
|
|
12754
|
-
completedAt: number | null;
|
|
12755
|
-
created: number;
|
|
12756
|
-
currentPhase: {
|
|
12757
|
-
endDate: number;
|
|
12758
|
-
startDate: number;
|
|
12759
|
-
} | null;
|
|
12760
|
-
endBehavior: "cancel" | "none" | "release" | "renew";
|
|
12761
|
-
releasedAt: number | null;
|
|
12762
|
-
releasedSubscription: string | null;
|
|
12763
|
-
};
|
|
12764
12696
|
} | null;
|
|
12765
12697
|
};
|
|
12766
12698
|
_output_out: {
|
|
@@ -12770,30 +12702,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12770
12702
|
description: string | null;
|
|
12771
12703
|
status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
|
|
12772
12704
|
metadata: Record<string, string>;
|
|
12773
|
-
startDate: number;
|
|
12774
|
-
canceledAt: number | null;
|
|
12775
|
-
created: number;
|
|
12776
12705
|
billingCycleAnchor: number;
|
|
12777
12706
|
cancelAt: number | null;
|
|
12778
12707
|
cancelAtPeriodEnd: boolean;
|
|
12708
|
+
canceledAt: number | null;
|
|
12709
|
+
created: number;
|
|
12779
12710
|
daysUntilDue: number | null;
|
|
12711
|
+
startDate: number;
|
|
12780
12712
|
endedAt: number | null;
|
|
12781
12713
|
trialEnd: number | null;
|
|
12782
12714
|
trialStart: number | null;
|
|
12783
|
-
schedule: {
|
|
12784
|
-
id: string;
|
|
12785
|
-
status: "canceled" | "active" | "completed" | "not_started" | "released";
|
|
12786
|
-
canceledAt: number | null;
|
|
12787
|
-
completedAt: number | null;
|
|
12788
|
-
created: number;
|
|
12789
|
-
currentPhase: {
|
|
12790
|
-
endDate: number;
|
|
12791
|
-
startDate: number;
|
|
12792
|
-
} | null;
|
|
12793
|
-
endBehavior: "cancel" | "none" | "release" | "renew";
|
|
12794
|
-
releasedAt: number | null;
|
|
12795
|
-
releasedSubscription: string | null;
|
|
12796
|
-
};
|
|
12797
12715
|
} | null;
|
|
12798
12716
|
};
|
|
12799
12717
|
}, unknown>>;
|
|
@@ -16179,83 +16097,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
16179
16097
|
};
|
|
16180
16098
|
}, unknown>>;
|
|
16181
16099
|
};
|
|
16182
|
-
switchPlan: {
|
|
16183
|
-
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
16184
|
-
_config: import("@trpc/server").RootConfig<{
|
|
16185
|
-
ctx: {};
|
|
16186
|
-
meta: object;
|
|
16187
|
-
errorShape: {
|
|
16188
|
-
message: string;
|
|
16189
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16190
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
16191
|
-
} | {
|
|
16192
|
-
data: {
|
|
16193
|
-
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
16194
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
16195
|
-
httpStatus: number;
|
|
16196
|
-
path?: string;
|
|
16197
|
-
stack?: string;
|
|
16198
|
-
};
|
|
16199
|
-
message: string;
|
|
16200
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
16201
|
-
};
|
|
16202
|
-
transformer: typeof superjson;
|
|
16203
|
-
}>;
|
|
16204
|
-
_meta: object;
|
|
16205
|
-
_ctx_out: {
|
|
16206
|
-
session: {
|
|
16207
|
-
app: {
|
|
16208
|
-
id: string;
|
|
16209
|
-
planId: string;
|
|
16210
|
-
fakeUserId: string | undefined;
|
|
16211
|
-
settings: {
|
|
16212
|
-
id: string;
|
|
16213
|
-
devsLimit: bigint | null;
|
|
16214
|
-
usersLimit: bigint | null;
|
|
16215
|
-
perDataSizeLimit: bigint | null;
|
|
16216
|
-
bandwidthLimit: bigint | null;
|
|
16217
|
-
totalStorageSizeLimit: bigint | null;
|
|
16218
|
-
payForUsers: boolean;
|
|
16219
|
-
};
|
|
16220
|
-
};
|
|
16221
|
-
sessionId: string;
|
|
16222
|
-
accountId: string;
|
|
16223
|
-
accountInfosId: string;
|
|
16224
|
-
accountRole: _prisma_client.AccountRole;
|
|
16225
|
-
userId: string;
|
|
16226
|
-
userRole: _prisma_client.UserRole;
|
|
16227
|
-
org: {
|
|
16228
|
-
id: string;
|
|
16229
|
-
name: string;
|
|
16230
|
-
plan: _prisma_client.OrganizationPlanKind;
|
|
16231
|
-
role: _prisma_client.OrganizationRole;
|
|
16232
|
-
};
|
|
16233
|
-
};
|
|
16234
|
-
req: {
|
|
16235
|
-
headers: Headers;
|
|
16236
|
-
};
|
|
16237
|
-
res: {
|
|
16238
|
-
headers: Headers;
|
|
16239
|
-
};
|
|
16240
|
-
locale: Locales;
|
|
16241
|
-
ls: TranslationFunctions;
|
|
16242
|
-
};
|
|
16243
|
-
_input_in: {
|
|
16244
|
-
appId: string;
|
|
16245
|
-
planName: string;
|
|
16246
|
-
};
|
|
16247
|
-
_input_out: {
|
|
16248
|
-
appId: string;
|
|
16249
|
-
planName: string;
|
|
16250
|
-
};
|
|
16251
|
-
_output_in: {
|
|
16252
|
-
url: string | null;
|
|
16253
|
-
};
|
|
16254
|
-
_output_out: {
|
|
16255
|
-
url: string | null;
|
|
16256
|
-
};
|
|
16257
|
-
}, unknown>>;
|
|
16258
|
-
};
|
|
16259
16100
|
};
|
|
16260
16101
|
user: {
|
|
16261
16102
|
byId: {
|
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.63.0-feat-orgs.
|
|
5
|
+
"version": "1.63.0-feat-orgs.3",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.7.2"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0-feat-orgs.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-orgs.12",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|