@secrecy/lib 1.31.0 → 1.32.0-feat-user-data-management.2

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,6 +185,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
185
185
  avatar: string | null;
186
186
  isSearchable: boolean;
187
187
  }[];
188
+ currentUserId: string;
188
189
  };
189
190
  _output_out: {
190
191
  users: {
@@ -194,6 +195,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
194
195
  avatar: string | null;
195
196
  isSearchable: boolean;
196
197
  }[];
198
+ currentUserId: string;
197
199
  };
198
200
  }, unknown>>;
199
201
  };
@@ -1945,11 +1947,13 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
1945
1947
  };
1946
1948
  _output_in: {
1947
1949
  sessionId: string;
1950
+ userId: string;
1948
1951
  } & {
1949
1952
  masterKeySalt: string;
1950
1953
  };
1951
1954
  _output_out: {
1952
1955
  sessionId: string;
1956
+ userId: string;
1953
1957
  } & {
1954
1958
  masterKeySalt: string;
1955
1959
  };
@@ -3150,7 +3154,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3150
3154
  }>;
3151
3155
  _meta: object;
3152
3156
  _ctx_out: {
3153
- session: SecrecySessionWithApp;
3157
+ session: SecrecySession;
3154
3158
  req: {
3155
3159
  headers: Headers;
3156
3160
  body: ReadableStream<Uint8Array> | null;
@@ -3164,10 +3168,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3164
3168
  _input_in: {
3165
3169
  dataId: string;
3166
3170
  nodeId: string;
3171
+ } & {
3172
+ appId?: string | null | undefined;
3167
3173
  };
3168
3174
  _input_out: {
3169
3175
  dataId: string;
3170
3176
  nodeId: string;
3177
+ } & {
3178
+ appId?: string | null | undefined;
3171
3179
  };
3172
3180
  _output_in: {
3173
3181
  isDeleted: boolean;
@@ -3571,7 +3579,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
3571
3579
  })[];
3572
3580
  }, unknown>>;
3573
3581
  };
3574
- fileSharedWithMe: {
3582
+ dataSharedWithMe: {
3575
3583
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
3576
3584
  _config: import("@trpc/server").RootConfig<{
3577
3585
  ctx: {
@@ -4042,8 +4050,8 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4042
4050
  min?: Date | undefined;
4043
4051
  } | undefined;
4044
4052
  size?: {
4045
- max?: bigint | undefined;
4046
- min?: bigint | undefined;
4053
+ max?: string | bigint | undefined;
4054
+ min?: string | bigint | undefined;
4047
4055
  } | undefined;
4048
4056
  appIds?: string[] | undefined;
4049
4057
  sharedCount?: {
@@ -4080,68 +4088,86 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
4080
4088
  } | undefined;
4081
4089
  };
4082
4090
  _output_in: {
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";
4099
- }[];
4100
- access: {
4091
+ data: {
4092
+ keyPairs: {
4101
4093
  appId: string;
4102
- nameKey: string;
4103
- };
4104
- totalSize: bigint;
4105
- breadcrumb: {
4094
+ pub: string;
4095
+ encPriv: string;
4096
+ }[];
4097
+ nodes: {
4106
4098
  id: string;
4099
+ createdAt: Date;
4100
+ deletedAt: Date | null;
4107
4101
  name: string;
4108
- nameKey: string | null;
4109
- pubKey: 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;
4110
4121
  }[];
4111
- sharedCount: number;
4112
- }[];
4122
+ };
4123
+ pagination: {
4124
+ next: number | null;
4125
+ prev: number | null;
4126
+ last: number;
4127
+ perPage: number;
4128
+ totalItems: number;
4129
+ };
4113
4130
  };
4114
4131
  _output_out: {
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";
4131
- }[];
4132
- access: {
4132
+ data: {
4133
+ keyPairs: {
4133
4134
  appId: string;
4134
- nameKey: string;
4135
- };
4136
- totalSize: bigint;
4137
- breadcrumb: {
4135
+ pub: string;
4136
+ encPriv: string;
4137
+ }[];
4138
+ nodes: {
4138
4139
  id: string;
4140
+ createdAt: Date;
4141
+ deletedAt: Date | null;
4139
4142
  name: string;
4140
- nameKey: string | null;
4141
- pubKey: 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;
4142
4162
  }[];
4143
- sharedCount: number;
4144
- }[];
4163
+ };
4164
+ pagination: {
4165
+ next: number | null;
4166
+ prev: number | null;
4167
+ last: number;
4168
+ perPage: number;
4169
+ totalItems: number;
4170
+ };
4145
4171
  };
4146
4172
  }, unknown>>;
4147
4173
  };
@@ -5014,7 +5040,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5014
5040
  }>;
5015
5041
  _meta: object;
5016
5042
  _ctx_out: {
5017
- session: SecrecySessionWithApp;
5043
+ session: SecrecySession;
5018
5044
  req: {
5019
5045
  headers: Headers;
5020
5046
  body: ReadableStream<Uint8Array> | null;
@@ -5027,9 +5053,17 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
5027
5053
  };
5028
5054
  _input_in: {
5029
5055
  id: string;
5056
+ } & {
5057
+ force?: boolean | undefined;
5058
+ } & {
5059
+ appId?: string | null | undefined;
5030
5060
  };
5031
5061
  _input_out: {
5032
5062
  id: string;
5063
+ } & {
5064
+ force?: boolean | undefined;
5065
+ } & {
5066
+ appId?: string | null | undefined;
5033
5067
  };
5034
5068
  _output_in: {
5035
5069
  isDeleted: boolean;
@@ -8688,10 +8722,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8688
8722
  regionId: string;
8689
8723
  storePasswords: boolean;
8690
8724
  settings?: {
8691
- allowedIps?: {
8692
- ips?: string[] | undefined;
8693
- primaryBranchOnly?: boolean | undefined;
8694
- } | undefined;
8695
8725
  quota?: {
8696
8726
  activeTimeSeconds?: number | undefined;
8697
8727
  computeTimeSeconds?: number | undefined;
@@ -8699,6 +8729,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8699
8729
  dataTransferBytes?: number | undefined;
8700
8730
  logicalSizeBytes?: number | undefined;
8701
8731
  } | undefined;
8732
+ allowedIps?: {
8733
+ ips?: string[] | undefined;
8734
+ primaryBranchOnly?: boolean | undefined;
8735
+ } | undefined;
8702
8736
  enableLogicalReplication?: boolean | undefined;
8703
8737
  } | undefined;
8704
8738
  owner?: {
@@ -8742,10 +8776,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8742
8776
  regionId: string;
8743
8777
  storePasswords: boolean;
8744
8778
  settings?: {
8745
- allowedIps?: {
8746
- ips?: string[] | undefined;
8747
- primaryBranchOnly?: boolean | undefined;
8748
- } | undefined;
8749
8779
  quota?: {
8750
8780
  activeTimeSeconds?: number | undefined;
8751
8781
  computeTimeSeconds?: number | undefined;
@@ -8753,6 +8783,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8753
8783
  dataTransferBytes?: number | undefined;
8754
8784
  logicalSizeBytes?: number | undefined;
8755
8785
  } | undefined;
8786
+ allowedIps?: {
8787
+ ips?: string[] | undefined;
8788
+ primaryBranchOnly?: boolean | undefined;
8789
+ } | undefined;
8756
8790
  enableLogicalReplication?: boolean | undefined;
8757
8791
  } | undefined;
8758
8792
  owner?: {
@@ -8915,10 +8949,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8915
8949
  appId?: string | undefined;
8916
8950
  } & {
8917
8951
  settings: {
8918
- allowedIps: {
8919
- ips?: string[] | undefined;
8920
- primaryBranchOnly?: boolean | undefined;
8921
- };
8922
8952
  quota: {
8923
8953
  activeTimeSeconds?: number | undefined;
8924
8954
  computeTimeSeconds?: number | undefined;
@@ -8926,6 +8956,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8926
8956
  dataTransferBytes?: number | undefined;
8927
8957
  logicalSizeBytes?: number | undefined;
8928
8958
  };
8959
+ allowedIps: {
8960
+ ips?: string[] | undefined;
8961
+ primaryBranchOnly?: boolean | undefined;
8962
+ };
8929
8963
  enableLogicalReplication: boolean;
8930
8964
  };
8931
8965
  defaultEndpointSettings?: {
@@ -8941,10 +8975,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8941
8975
  appId?: string | undefined;
8942
8976
  } & {
8943
8977
  settings: {
8944
- allowedIps: {
8945
- ips?: string[] | undefined;
8946
- primaryBranchOnly?: boolean | undefined;
8947
- };
8948
8978
  quota: {
8949
8979
  activeTimeSeconds?: number | undefined;
8950
8980
  computeTimeSeconds?: number | undefined;
@@ -8952,6 +8982,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8952
8982
  dataTransferBytes?: number | undefined;
8953
8983
  logicalSizeBytes?: number | undefined;
8954
8984
  };
8985
+ allowedIps: {
8986
+ ips?: string[] | undefined;
8987
+ primaryBranchOnly?: boolean | undefined;
8988
+ };
8955
8989
  enableLogicalReplication: boolean;
8956
8990
  };
8957
8991
  defaultEndpointSettings?: {
@@ -8988,10 +9022,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8988
9022
  regionId: string;
8989
9023
  storePasswords: boolean;
8990
9024
  settings?: {
8991
- allowedIps?: {
8992
- ips?: string[] | undefined;
8993
- primaryBranchOnly?: boolean | undefined;
8994
- } | undefined;
8995
9025
  quota?: {
8996
9026
  activeTimeSeconds?: number | undefined;
8997
9027
  computeTimeSeconds?: number | undefined;
@@ -8999,6 +9029,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
8999
9029
  dataTransferBytes?: number | undefined;
9000
9030
  logicalSizeBytes?: number | undefined;
9001
9031
  } | undefined;
9032
+ allowedIps?: {
9033
+ ips?: string[] | undefined;
9034
+ primaryBranchOnly?: boolean | undefined;
9035
+ } | undefined;
9002
9036
  enableLogicalReplication?: boolean | undefined;
9003
9037
  } | undefined;
9004
9038
  owner?: {
@@ -9042,10 +9076,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9042
9076
  regionId: string;
9043
9077
  storePasswords: boolean;
9044
9078
  settings?: {
9045
- allowedIps?: {
9046
- ips?: string[] | undefined;
9047
- primaryBranchOnly?: boolean | undefined;
9048
- } | undefined;
9049
9079
  quota?: {
9050
9080
  activeTimeSeconds?: number | undefined;
9051
9081
  computeTimeSeconds?: number | undefined;
@@ -9053,6 +9083,10 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
9053
9083
  dataTransferBytes?: number | undefined;
9054
9084
  logicalSizeBytes?: number | undefined;
9055
9085
  } | undefined;
9086
+ allowedIps?: {
9087
+ ips?: string[] | undefined;
9088
+ primaryBranchOnly?: boolean | undefined;
9089
+ } | undefined;
9056
9090
  enableLogicalReplication?: boolean | undefined;
9057
9091
  } | undefined;
9058
9092
  owner?: {
@@ -18226,12 +18260,14 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18226
18260
  _input_in: {
18227
18261
  lastname?: string | null | undefined;
18228
18262
  firstname?: string | null | undefined;
18263
+ avatar?: string | null | undefined;
18229
18264
  isSearchable?: boolean | undefined;
18230
18265
  lang?: "fr" | "en" | null | undefined;
18231
18266
  };
18232
18267
  _input_out: {
18233
18268
  lastname?: string | null | undefined;
18234
18269
  firstname?: string | null | undefined;
18270
+ avatar?: string | null | undefined;
18235
18271
  isSearchable?: boolean | undefined;
18236
18272
  lang?: "fr" | "en" | null | undefined;
18237
18273
  };
@@ -18267,6 +18303,68 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
18267
18303
  };
18268
18304
  }, unknown>>;
18269
18305
  };
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
+ };
18270
18368
  };
18271
18369
  };
18272
18370
  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.31.0",
5
+ "version": "1.32.0-feat-user-data-management.2",
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-file-upload-access.2",
77
+ "@secrecy/trpc-api-types": "1.27.0-feat-add-manage-user-data-and-profiles-latest.1",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",