@secrecy/lib 1.32.0-feat-user-data-management.1 → 1.32.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.
@@ -185,7 +185,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
185
185
  avatar: string | null;
186
186
  isSearchable: boolean;
187
187
  }[];
188
- currentUserId: string;
189
188
  };
190
189
  _output_out: {
191
190
  users: {
@@ -195,7 +194,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
195
194
  avatar: string | null;
196
195
  isSearchable: boolean;
197
196
  }[];
198
- currentUserId: string;
199
197
  };
200
198
  }, unknown>>;
201
199
  };
@@ -1947,13 +1945,11 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
1947
1945
  };
1948
1946
  _output_in: {
1949
1947
  sessionId: string;
1950
- userId: string;
1951
1948
  } & {
1952
1949
  masterKeySalt: string;
1953
1950
  };
1954
1951
  _output_out: {
1955
1952
  sessionId: string;
1956
- userId: string;
1957
1953
  } & {
1958
1954
  masterKeySalt: string;
1959
1955
  };
@@ -3154,7 +3150,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3154
3150
  }>;
3155
3151
  _meta: object;
3156
3152
  _ctx_out: {
3157
- session: SecrecySession;
3153
+ session: SecrecySessionWithApp;
3158
3154
  req: {
3159
3155
  headers: Headers;
3160
3156
  body: ReadableStream<Uint8Array> | null;
@@ -3168,14 +3164,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3168
3164
  _input_in: {
3169
3165
  dataId: string;
3170
3166
  nodeId: string;
3171
- } & {
3172
- appId?: string | null | undefined;
3173
3167
  };
3174
3168
  _input_out: {
3175
3169
  dataId: string;
3176
3170
  nodeId: string;
3177
- } & {
3178
- appId?: string | null | undefined;
3179
3171
  };
3180
3172
  _output_in: {
3181
3173
  isDeleted: boolean;
@@ -3579,7 +3571,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3579
3571
  })[];
3580
3572
  }, unknown>>;
3581
3573
  };
3582
- fileSharedWithMe: {
3574
+ dataSharedWithMe: {
3583
3575
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
3584
3576
  _config: import("@trpc/server").RootConfig<{
3585
3577
  ctx: {
@@ -4050,8 +4042,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4050
4042
  min?: Date | undefined;
4051
4043
  } | undefined;
4052
4044
  size?: {
4053
- max?: string | bigint | undefined;
4054
- min?: string | bigint | undefined;
4045
+ max?: bigint | undefined;
4046
+ min?: bigint | undefined;
4055
4047
  } | undefined;
4056
4048
  appIds?: string[] | undefined;
4057
4049
  sharedCount?: {
@@ -4088,86 +4080,68 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4088
4080
  } | undefined;
4089
4081
  };
4090
4082
  _output_in: {
4091
- data: {
4092
- keyPairs: {
4093
- appId: string;
4094
- pub: string;
4095
- encPriv: string;
4083
+ keyPairs: {
4084
+ appId: string;
4085
+ pub: string;
4086
+ encPriv: string;
4087
+ }[];
4088
+ nodes: {
4089
+ id: string;
4090
+ createdAt: Date;
4091
+ deletedAt: Date | null;
4092
+ name: string;
4093
+ updatedAt: Date;
4094
+ history: {
4095
+ createdAt: Date;
4096
+ dataId: string;
4097
+ size: bigint;
4098
+ storageType: "s3" | "lite";
4096
4099
  }[];
4097
- nodes: {
4100
+ access: {
4101
+ appId: string;
4102
+ nameKey: string;
4103
+ };
4104
+ totalSize: bigint;
4105
+ breadcrumb: {
4098
4106
  id: string;
4099
- createdAt: Date;
4100
- deletedAt: Date | null;
4101
4107
  name: string;
4102
- updatedAt: Date;
4103
- history: {
4104
- createdAt: Date;
4105
- dataId: string;
4106
- size: bigint;
4107
- storageType: "s3" | "lite";
4108
- }[];
4109
- access: {
4110
- appId: string;
4111
- nameKey: string;
4112
- };
4113
- totalSize: bigint;
4114
- breadcrumb: {
4115
- id: string;
4116
- name: string;
4117
- nameKey: string | null;
4118
- pubKey: string;
4119
- }[];
4120
- sharedCount: number;
4108
+ nameKey: string | null;
4109
+ pubKey: string;
4121
4110
  }[];
4122
- };
4123
- pagination: {
4124
- next: number | null;
4125
- prev: number | null;
4126
- last: number;
4127
- perPage: number;
4128
- totalItems: number;
4129
- };
4111
+ sharedCount: number;
4112
+ }[];
4130
4113
  };
4131
4114
  _output_out: {
4132
- data: {
4133
- keyPairs: {
4134
- appId: string;
4135
- pub: string;
4136
- encPriv: string;
4115
+ keyPairs: {
4116
+ appId: string;
4117
+ pub: string;
4118
+ encPriv: string;
4119
+ }[];
4120
+ nodes: {
4121
+ id: string;
4122
+ createdAt: Date;
4123
+ deletedAt: Date | null;
4124
+ name: string;
4125
+ updatedAt: Date;
4126
+ history: {
4127
+ createdAt: Date;
4128
+ dataId: string;
4129
+ size: bigint;
4130
+ storageType: "s3" | "lite";
4137
4131
  }[];
4138
- nodes: {
4132
+ access: {
4133
+ appId: string;
4134
+ nameKey: string;
4135
+ };
4136
+ totalSize: bigint;
4137
+ breadcrumb: {
4139
4138
  id: string;
4140
- createdAt: Date;
4141
- deletedAt: Date | null;
4142
4139
  name: string;
4143
- updatedAt: Date;
4144
- history: {
4145
- createdAt: Date;
4146
- dataId: string;
4147
- size: bigint;
4148
- storageType: "s3" | "lite";
4149
- }[];
4150
- access: {
4151
- appId: string;
4152
- nameKey: string;
4153
- };
4154
- totalSize: bigint;
4155
- breadcrumb: {
4156
- id: string;
4157
- name: string;
4158
- nameKey: string | null;
4159
- pubKey: string;
4160
- }[];
4161
- sharedCount: number;
4140
+ nameKey: string | null;
4141
+ pubKey: string;
4162
4142
  }[];
4163
- };
4164
- pagination: {
4165
- next: number | null;
4166
- prev: number | null;
4167
- last: number;
4168
- perPage: number;
4169
- totalItems: number;
4170
- };
4143
+ sharedCount: number;
4144
+ }[];
4171
4145
  };
4172
4146
  }, unknown>>;
4173
4147
  };
@@ -5040,7 +5014,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5040
5014
  }>;
5041
5015
  _meta: object;
5042
5016
  _ctx_out: {
5043
- session: SecrecySession;
5017
+ session: SecrecySessionWithApp;
5044
5018
  req: {
5045
5019
  headers: Headers;
5046
5020
  body: ReadableStream<Uint8Array> | null;
@@ -5053,17 +5027,9 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5053
5027
  };
5054
5028
  _input_in: {
5055
5029
  id: string;
5056
- } & {
5057
- force?: boolean | undefined;
5058
- } & {
5059
- appId?: string | null | undefined;
5060
5030
  };
5061
5031
  _input_out: {
5062
5032
  id: string;
5063
- } & {
5064
- force?: boolean | undefined;
5065
- } & {
5066
- appId?: string | null | undefined;
5067
5033
  };
5068
5034
  _output_in: {
5069
5035
  isDeleted: boolean;
@@ -8722,10 +8688,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8722
8688
  regionId: string;
8723
8689
  storePasswords: boolean;
8724
8690
  settings?: {
8725
- allowedIps?: {
8726
- ips?: string[] | undefined;
8727
- primaryBranchOnly?: boolean | undefined;
8728
- } | undefined;
8729
8691
  quota?: {
8730
8692
  activeTimeSeconds?: number | undefined;
8731
8693
  computeTimeSeconds?: number | undefined;
@@ -8733,6 +8695,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8733
8695
  dataTransferBytes?: number | undefined;
8734
8696
  logicalSizeBytes?: number | undefined;
8735
8697
  } | undefined;
8698
+ allowedIps?: {
8699
+ ips?: string[] | undefined;
8700
+ primaryBranchOnly?: boolean | undefined;
8701
+ } | undefined;
8736
8702
  enableLogicalReplication?: boolean | undefined;
8737
8703
  } | undefined;
8738
8704
  owner?: {
@@ -8776,10 +8742,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8776
8742
  regionId: string;
8777
8743
  storePasswords: boolean;
8778
8744
  settings?: {
8779
- allowedIps?: {
8780
- ips?: string[] | undefined;
8781
- primaryBranchOnly?: boolean | undefined;
8782
- } | undefined;
8783
8745
  quota?: {
8784
8746
  activeTimeSeconds?: number | undefined;
8785
8747
  computeTimeSeconds?: number | undefined;
@@ -8787,6 +8749,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8787
8749
  dataTransferBytes?: number | undefined;
8788
8750
  logicalSizeBytes?: number | undefined;
8789
8751
  } | undefined;
8752
+ allowedIps?: {
8753
+ ips?: string[] | undefined;
8754
+ primaryBranchOnly?: boolean | undefined;
8755
+ } | undefined;
8790
8756
  enableLogicalReplication?: boolean | undefined;
8791
8757
  } | undefined;
8792
8758
  owner?: {
@@ -8949,10 +8915,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8949
8915
  appId?: string | undefined;
8950
8916
  } & {
8951
8917
  settings: {
8952
- allowedIps: {
8953
- ips?: string[] | undefined;
8954
- primaryBranchOnly?: boolean | undefined;
8955
- };
8956
8918
  quota: {
8957
8919
  activeTimeSeconds?: number | undefined;
8958
8920
  computeTimeSeconds?: number | undefined;
@@ -8960,6 +8922,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8960
8922
  dataTransferBytes?: number | undefined;
8961
8923
  logicalSizeBytes?: number | undefined;
8962
8924
  };
8925
+ allowedIps: {
8926
+ ips?: string[] | undefined;
8927
+ primaryBranchOnly?: boolean | undefined;
8928
+ };
8963
8929
  enableLogicalReplication: boolean;
8964
8930
  };
8965
8931
  defaultEndpointSettings?: {
@@ -8975,10 +8941,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8975
8941
  appId?: string | undefined;
8976
8942
  } & {
8977
8943
  settings: {
8978
- allowedIps: {
8979
- ips?: string[] | undefined;
8980
- primaryBranchOnly?: boolean | undefined;
8981
- };
8982
8944
  quota: {
8983
8945
  activeTimeSeconds?: number | undefined;
8984
8946
  computeTimeSeconds?: number | undefined;
@@ -8986,6 +8948,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8986
8948
  dataTransferBytes?: number | undefined;
8987
8949
  logicalSizeBytes?: number | undefined;
8988
8950
  };
8951
+ allowedIps: {
8952
+ ips?: string[] | undefined;
8953
+ primaryBranchOnly?: boolean | undefined;
8954
+ };
8989
8955
  enableLogicalReplication: boolean;
8990
8956
  };
8991
8957
  defaultEndpointSettings?: {
@@ -9022,10 +8988,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9022
8988
  regionId: string;
9023
8989
  storePasswords: boolean;
9024
8990
  settings?: {
9025
- allowedIps?: {
9026
- ips?: string[] | undefined;
9027
- primaryBranchOnly?: boolean | undefined;
9028
- } | undefined;
9029
8991
  quota?: {
9030
8992
  activeTimeSeconds?: number | undefined;
9031
8993
  computeTimeSeconds?: number | undefined;
@@ -9033,6 +8995,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9033
8995
  dataTransferBytes?: number | undefined;
9034
8996
  logicalSizeBytes?: number | undefined;
9035
8997
  } | undefined;
8998
+ allowedIps?: {
8999
+ ips?: string[] | undefined;
9000
+ primaryBranchOnly?: boolean | undefined;
9001
+ } | undefined;
9036
9002
  enableLogicalReplication?: boolean | undefined;
9037
9003
  } | undefined;
9038
9004
  owner?: {
@@ -9076,10 +9042,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9076
9042
  regionId: string;
9077
9043
  storePasswords: boolean;
9078
9044
  settings?: {
9079
- allowedIps?: {
9080
- ips?: string[] | undefined;
9081
- primaryBranchOnly?: boolean | undefined;
9082
- } | undefined;
9083
9045
  quota?: {
9084
9046
  activeTimeSeconds?: number | undefined;
9085
9047
  computeTimeSeconds?: number | undefined;
@@ -9087,6 +9049,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9087
9049
  dataTransferBytes?: number | undefined;
9088
9050
  logicalSizeBytes?: number | undefined;
9089
9051
  } | undefined;
9052
+ allowedIps?: {
9053
+ ips?: string[] | undefined;
9054
+ primaryBranchOnly?: boolean | undefined;
9055
+ } | undefined;
9090
9056
  enableLogicalReplication?: boolean | undefined;
9091
9057
  } | undefined;
9092
9058
  owner?: {
@@ -18260,14 +18226,12 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18260
18226
  _input_in: {
18261
18227
  lastname?: string | null | undefined;
18262
18228
  firstname?: string | null | undefined;
18263
- avatar?: string | null | undefined;
18264
18229
  isSearchable?: boolean | undefined;
18265
18230
  lang?: "fr" | "en" | null | undefined;
18266
18231
  };
18267
18232
  _input_out: {
18268
18233
  lastname?: string | null | undefined;
18269
18234
  firstname?: string | null | undefined;
18270
- avatar?: string | null | undefined;
18271
18235
  isSearchable?: boolean | undefined;
18272
18236
  lang?: "fr" | "en" | null | undefined;
18273
18237
  };
@@ -18303,68 +18267,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18303
18267
  };
18304
18268
  }, unknown>>;
18305
18269
  };
18306
- myApps: {
18307
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
18308
- _config: import("@trpc/server").RootConfig<{
18309
- ctx: {
18310
- req: {
18311
- headers: Headers;
18312
- body: ReadableStream<Uint8Array> | null;
18313
- };
18314
- res: {
18315
- headers: Headers;
18316
- };
18317
- session: SecrecySession | null;
18318
- locale: Locales;
18319
- ls: TranslationFunctions;
18320
- };
18321
- meta: object;
18322
- errorShape: {
18323
- message: string;
18324
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
18325
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
18326
- } | {
18327
- data: {
18328
- zodError: import("zod").typeToFlattenedError<any, string> | null;
18329
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
18330
- httpStatus: number;
18331
- path?: string;
18332
- stack?: string;
18333
- };
18334
- message: string;
18335
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
18336
- };
18337
- transformer: typeof superjson;
18338
- }>;
18339
- _meta: object;
18340
- _ctx_out: {
18341
- session: SecrecySession;
18342
- req: {
18343
- headers: Headers;
18344
- body: ReadableStream<Uint8Array> | null;
18345
- };
18346
- res: {
18347
- headers: Headers;
18348
- };
18349
- locale: Locales;
18350
- ls: TranslationFunctions;
18351
- };
18352
- _input_in: {};
18353
- _input_out: {};
18354
- _output_in: {
18355
- apps: Record<string, {
18356
- name: string;
18357
- logo: string | null;
18358
- }>;
18359
- };
18360
- _output_out: {
18361
- apps: Record<string, {
18362
- name: string;
18363
- logo: string | null;
18364
- }>;
18365
- };
18366
- }, unknown>>;
18367
- };
18368
18270
  };
18369
18271
  };
18370
18272
  export type ApiClient = ReturnType<typeof createTRPCClient>;
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.32.0-feat-user-data-management.1",
5
+ "version": "1.32.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@secrecy/lib-utils": "^1.0.18",
77
- "@secrecy/trpc-api-types": "1.27.0-feat-add-manage-user-data-and-profiles.1",
77
+ "@secrecy/trpc-api-types": "1.27.0-feat-error-msg-translations.3",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",