@secrecy/trpc-api-types 1.33.0-feat-orgs.11 → 1.33.0-feat-orgs.13

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/index.d.cts +39 -138
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -146,23 +146,33 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
146
146
  _input_in: {};
147
147
  _input_out: {};
148
148
  _output_in: {
149
- users: {
149
+ users: ({
150
150
  id: string;
151
151
  lastname: string;
152
152
  firstname: string;
153
153
  avatar: string | null;
154
154
  isSearchable: boolean;
155
- }[];
155
+ } & {
156
+ orgs: {
157
+ name: string;
158
+ id: string;
159
+ }[];
160
+ })[];
156
161
  currentUserId: string;
157
162
  };
158
163
  _output_out: {
159
- users: {
164
+ users: ({
160
165
  id: string;
161
166
  lastname: string;
162
167
  firstname: string;
163
168
  avatar: string | null;
164
169
  isSearchable: boolean;
165
- }[];
170
+ } & {
171
+ orgs: {
172
+ name: string;
173
+ id: string;
174
+ }[];
175
+ })[];
166
176
  currentUserId: string;
167
177
  };
168
178
  }, unknown>;
@@ -1593,24 +1603,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1593
1603
  to: string;
1594
1604
  };
1595
1605
  _output_in: {
1596
- users: {
1597
- id: string;
1598
- lastname: string;
1599
- firstname: string;
1600
- avatar: string | null;
1601
- isSearchable: boolean;
1602
- }[];
1603
- loginToken: string;
1606
+ session: string;
1607
+ masterKeySalt: string;
1608
+ context: {
1609
+ userId: string;
1610
+ orgId: string;
1611
+ };
1604
1612
  };
1605
1613
  _output_out: {
1606
- users: {
1607
- id: string;
1608
- lastname: string;
1609
- firstname: string;
1610
- avatar: string | null;
1611
- isSearchable: boolean;
1612
- }[];
1613
- loginToken: string;
1614
+ session: string;
1615
+ masterKeySalt: string;
1616
+ context: {
1617
+ userId: string;
1618
+ orgId: string;
1619
+ };
1614
1620
  };
1615
1621
  }, unknown>;
1616
1622
  logout: _trpc_server.BuildProcedure<"mutation", {
@@ -1863,46 +1869,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1863
1869
  proof: string;
1864
1870
  };
1865
1871
  }, unknown>;
1866
- loginUser: _trpc_server.BuildProcedure<"mutation", {
1867
- _config: _trpc_server.RootConfig<{
1868
- ctx: {};
1869
- meta: object;
1870
- errorShape: {
1871
- message: string;
1872
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1873
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
1874
- } | {
1875
- data: {
1876
- zodError: zod.typeToFlattenedError<any, string> | null;
1877
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1878
- httpStatus: number;
1879
- path?: string;
1880
- stack?: string;
1881
- };
1882
- message: string;
1883
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1884
- };
1885
- transformer: typeof superjson.default;
1886
- }>;
1887
- _meta: object;
1888
- _ctx_out: {};
1889
- _input_in: {
1890
- userId: string;
1891
- loginToken: string;
1892
- };
1893
- _input_out: {
1894
- userId: string;
1895
- loginToken: string;
1896
- };
1897
- _output_in: {
1898
- session: string;
1899
- masterKeySalt: string;
1900
- };
1901
- _output_out: {
1902
- session: string;
1903
- masterKeySalt: string;
1904
- };
1905
- }, unknown>;
1906
1872
  signup: _trpc_server.BuildProcedure<"mutation", {
1907
1873
  _config: _trpc_server.RootConfig<{
1908
1874
  ctx: {};
@@ -1983,7 +1949,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1983
1949
  _output_in: {};
1984
1950
  _output_out: {};
1985
1951
  }, {}>;
1986
- changeUser: _trpc_server.BuildProcedure<"mutation", {
1952
+ changeContext: _trpc_server.BuildProcedure<"mutation", {
1987
1953
  _config: _trpc_server.RootConfig<{
1988
1954
  ctx: {};
1989
1955
  meta: object;
@@ -2017,16 +1983,26 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2017
1983
  ls: TranslationFunctions;
2018
1984
  };
2019
1985
  _input_in: {
2020
- userId: string;
1986
+ userId?: string | undefined;
1987
+ orgId?: string | undefined;
2021
1988
  };
2022
1989
  _input_out: {
2023
- userId: string;
1990
+ userId?: string | undefined;
1991
+ orgId?: string | undefined;
2024
1992
  };
2025
1993
  _output_in: {
2026
1994
  sessionId: string;
1995
+ context: {
1996
+ userId: string;
1997
+ orgId: string;
1998
+ };
2027
1999
  };
2028
2000
  _output_out: {
2029
2001
  sessionId: string;
2002
+ context: {
2003
+ userId: string;
2004
+ orgId: string;
2005
+ };
2030
2006
  };
2031
2007
  }, unknown>;
2032
2008
  }>;
@@ -16230,81 +16206,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
16230
16206
  isUpdated: boolean;
16231
16207
  };
16232
16208
  }, unknown>;
16233
- switchPlan: _trpc_server.BuildProcedure<"mutation", {
16234
- _config: _trpc_server.RootConfig<{
16235
- ctx: {};
16236
- meta: object;
16237
- errorShape: {
16238
- message: string;
16239
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16240
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
16241
- } | {
16242
- data: {
16243
- zodError: zod.typeToFlattenedError<any, string> | null;
16244
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
16245
- httpStatus: number;
16246
- path?: string;
16247
- stack?: string;
16248
- };
16249
- message: string;
16250
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
16251
- };
16252
- transformer: typeof superjson.default;
16253
- }>;
16254
- _meta: object;
16255
- _ctx_out: {
16256
- session: {
16257
- app: {
16258
- id: string;
16259
- planId: string;
16260
- fakeUserId: string | undefined;
16261
- settings: {
16262
- id: string;
16263
- devsLimit: bigint | null;
16264
- usersLimit: bigint | null;
16265
- perDataSizeLimit: bigint | null;
16266
- bandwidthLimit: bigint | null;
16267
- totalStorageSizeLimit: bigint | null;
16268
- payForUsers: boolean;
16269
- };
16270
- };
16271
- sessionId: string;
16272
- accountId: string;
16273
- accountInfosId: string;
16274
- accountRole: _prisma_client.AccountRole;
16275
- userId: string;
16276
- userRole: _prisma_client.UserRole;
16277
- org: {
16278
- id: string;
16279
- name: string;
16280
- plan: _prisma_client.OrganizationPlanKind;
16281
- role: _prisma_client.OrganizationRole;
16282
- };
16283
- };
16284
- req: {
16285
- headers: Headers;
16286
- };
16287
- res: {
16288
- headers: Headers;
16289
- };
16290
- locale: Locales;
16291
- ls: TranslationFunctions;
16292
- };
16293
- _input_in: {
16294
- appId: string;
16295
- planName: string;
16296
- };
16297
- _input_out: {
16298
- appId: string;
16299
- planName: string;
16300
- };
16301
- _output_in: {
16302
- url: string | null;
16303
- };
16304
- _output_out: {
16305
- url: string | null;
16306
- };
16307
- }, unknown>;
16308
16209
  }>;
16309
16210
  user: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
16310
16211
  ctx: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.33.0-feat-orgs.11",
3
+ "version": "1.33.0-feat-orgs.13",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"