@secrecy/lib 1.79.2 → 1.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,9 @@ export class SecrecyOrganizationClient {
|
|
|
6
6
|
async create(input) {
|
|
7
7
|
return this.#client.apiClient.org.create.mutate(input);
|
|
8
8
|
}
|
|
9
|
+
async byId(input) {
|
|
10
|
+
return this.#client.apiClient.org.byId.query(input);
|
|
11
|
+
}
|
|
9
12
|
async update(input) {
|
|
10
13
|
return this.#client.apiClient.org.update.mutate(input);
|
|
11
14
|
}
|
|
@@ -4,6 +4,7 @@ export declare class SecrecyOrganizationClient {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(client: SecrecyClient);
|
|
6
6
|
create(input: RouterInputs['org']['create']): Promise<RouterOutputs['org']['create']>;
|
|
7
|
+
byId(input: RouterInputs['org']['byId']): Promise<RouterOutputs['org']['byId']>;
|
|
7
8
|
update(input: Omit<RouterInputs['org']['update'], 'billingProfileStripeCustomerId'>): Promise<RouterOutputs['org']['update']>;
|
|
8
9
|
addMember(input: RouterInputs['org']['addMember']): Promise<RouterOutputs['org']['addMember']>;
|
|
9
10
|
removeMember(input: RouterInputs['org']['removeMember']): Promise<RouterOutputs['org']['removeMember']>;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -5003,7 +5003,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5003
5003
|
}>;
|
|
5004
5004
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
5005
5005
|
input: {
|
|
5006
|
-
[x: string]: never;
|
|
5007
5006
|
orgId?: string | null | undefined;
|
|
5008
5007
|
};
|
|
5009
5008
|
output: {
|
|
@@ -6279,6 +6278,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6279
6278
|
id: string;
|
|
6280
6279
|
identityPubKey: string;
|
|
6281
6280
|
name: string;
|
|
6281
|
+
members: {
|
|
6282
|
+
identityPubKey: string;
|
|
6283
|
+
role: "ADMIN" | "MEMBER";
|
|
6284
|
+
}[];
|
|
6282
6285
|
};
|
|
6283
6286
|
};
|
|
6284
6287
|
meta: any;
|
|
@@ -6292,6 +6295,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6292
6295
|
id: string;
|
|
6293
6296
|
identityPubKey: string;
|
|
6294
6297
|
name: string;
|
|
6298
|
+
members: {
|
|
6299
|
+
identityPubKey: string;
|
|
6300
|
+
role: "ADMIN" | "MEMBER";
|
|
6301
|
+
}[];
|
|
6295
6302
|
}[];
|
|
6296
6303
|
};
|
|
6297
6304
|
meta: any;
|
|
@@ -11358,7 +11365,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11358
11365
|
}>;
|
|
11359
11366
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
11360
11367
|
input: {
|
|
11361
|
-
[x: string]: never;
|
|
11362
11368
|
orgId?: string | null | undefined;
|
|
11363
11369
|
};
|
|
11364
11370
|
output: {
|
|
@@ -12634,6 +12640,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12634
12640
|
id: string;
|
|
12635
12641
|
identityPubKey: string;
|
|
12636
12642
|
name: string;
|
|
12643
|
+
members: {
|
|
12644
|
+
identityPubKey: string;
|
|
12645
|
+
role: "ADMIN" | "MEMBER";
|
|
12646
|
+
}[];
|
|
12637
12647
|
};
|
|
12638
12648
|
};
|
|
12639
12649
|
meta: any;
|
|
@@ -12647,6 +12657,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12647
12657
|
id: string;
|
|
12648
12658
|
identityPubKey: string;
|
|
12649
12659
|
name: string;
|
|
12660
|
+
members: {
|
|
12661
|
+
identityPubKey: string;
|
|
12662
|
+
role: "ADMIN" | "MEMBER";
|
|
12663
|
+
}[];
|
|
12650
12664
|
}[];
|
|
12651
12665
|
};
|
|
12652
12666
|
meta: any;
|
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.81.0",
|
|
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.
|
|
79
|
+
"@secrecy/trpc-api-types": "1.36.0",
|
|
80
80
|
"@trpc/client": "11.6.0",
|
|
81
81
|
"@trpc/server": "^11.6.0",
|
|
82
82
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|