@secrecy/trpc-api-types 1.27.0-dev.10 → 1.27.0-dev.12

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 +177 -81
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -241,6 +241,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
241
241
  avatar: string | null;
242
242
  isSearchable: boolean;
243
243
  }[];
244
+ currentUserId: string;
244
245
  };
245
246
  _output_out: {
246
247
  users: {
@@ -250,6 +251,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
250
251
  avatar: string | null;
251
252
  isSearchable: boolean;
252
253
  }[];
254
+ currentUserId: string;
253
255
  };
254
256
  }, unknown>;
255
257
  }>;
@@ -2073,11 +2075,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2073
2075
  };
2074
2076
  _output_in: {
2075
2077
  sessionId: string;
2078
+ userId: string;
2076
2079
  } & {
2077
2080
  masterKeySalt: string;
2078
2081
  };
2079
2082
  _output_out: {
2080
2083
  sessionId: string;
2084
+ userId: string;
2081
2085
  } & {
2082
2086
  masterKeySalt: string;
2083
2087
  };
@@ -3372,7 +3376,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3372
3376
  }>;
3373
3377
  _meta: object;
3374
3378
  _ctx_out: {
3375
- session: SecrecySessionWithApp;
3379
+ session: SecrecySession;
3376
3380
  req: {
3377
3381
  headers: Headers;
3378
3382
  body: ReadableStream<Uint8Array> | null;
@@ -3386,10 +3390,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3386
3390
  _input_in: {
3387
3391
  dataId: string;
3388
3392
  nodeId: string;
3393
+ } & {
3394
+ appId?: string | null | undefined;
3389
3395
  };
3390
3396
  _input_out: {
3391
3397
  dataId: string;
3392
3398
  nodeId: string;
3399
+ } & {
3400
+ appId?: string | null | undefined;
3393
3401
  };
3394
3402
  _output_in: {
3395
3403
  isDeleted: boolean;
@@ -3786,7 +3794,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3786
3794
  totalSize: bigint;
3787
3795
  })[];
3788
3796
  }, unknown>;
3789
- fileSharedWithMe: _trpc_server.BuildProcedure<"query", {
3797
+ dataSharedWithMe: _trpc_server.BuildProcedure<"query", {
3790
3798
  _config: _trpc_server.RootConfig<{
3791
3799
  ctx: {
3792
3800
  req: {
@@ -4252,8 +4260,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4252
4260
  min?: Date | undefined;
4253
4261
  } | undefined;
4254
4262
  size?: {
4255
- max?: bigint | undefined;
4256
- min?: bigint | undefined;
4263
+ max?: string | bigint | undefined;
4264
+ min?: string | bigint | undefined;
4257
4265
  } | undefined;
4258
4266
  appIds?: string[] | undefined;
4259
4267
  sharedCount?: {
@@ -4290,68 +4298,86 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4290
4298
  } | undefined;
4291
4299
  };
4292
4300
  _output_in: {
4293
- keyPairs: {
4294
- appId: string;
4295
- pub: string;
4296
- encPriv: string;
4297
- }[];
4298
- nodes: {
4299
- id: string;
4300
- createdAt: Date;
4301
- deletedAt: Date | null;
4302
- name: string;
4303
- updatedAt: Date;
4304
- history: {
4305
- createdAt: Date;
4306
- dataId: string;
4307
- size: bigint;
4308
- storageType: "s3" | "lite";
4309
- }[];
4310
- access: {
4301
+ data: {
4302
+ keyPairs: {
4311
4303
  appId: string;
4312
- nameKey: string;
4313
- };
4314
- totalSize: bigint;
4315
- breadcrumb: {
4304
+ pub: string;
4305
+ encPriv: string;
4306
+ }[];
4307
+ nodes: {
4316
4308
  id: string;
4309
+ createdAt: Date;
4310
+ deletedAt: Date | null;
4317
4311
  name: string;
4318
- nameKey: string | null;
4319
- pubKey: string;
4312
+ updatedAt: Date;
4313
+ history: {
4314
+ createdAt: Date;
4315
+ dataId: string;
4316
+ size: bigint;
4317
+ storageType: "s3" | "lite";
4318
+ }[];
4319
+ access: {
4320
+ appId: string;
4321
+ nameKey: string;
4322
+ };
4323
+ totalSize: bigint;
4324
+ breadcrumb: {
4325
+ id: string;
4326
+ name: string;
4327
+ nameKey: string | null;
4328
+ pubKey: string;
4329
+ }[];
4330
+ sharedCount: number;
4320
4331
  }[];
4321
- sharedCount: number;
4322
- }[];
4332
+ };
4333
+ pagination: {
4334
+ next: number | null;
4335
+ prev: number | null;
4336
+ last: number;
4337
+ perPage: number;
4338
+ totalItems: number;
4339
+ };
4323
4340
  };
4324
4341
  _output_out: {
4325
- keyPairs: {
4326
- appId: string;
4327
- pub: string;
4328
- encPriv: string;
4329
- }[];
4330
- nodes: {
4331
- id: string;
4332
- createdAt: Date;
4333
- deletedAt: Date | null;
4334
- name: string;
4335
- updatedAt: Date;
4336
- history: {
4337
- createdAt: Date;
4338
- dataId: string;
4339
- size: bigint;
4340
- storageType: "s3" | "lite";
4341
- }[];
4342
- access: {
4342
+ data: {
4343
+ keyPairs: {
4343
4344
  appId: string;
4344
- nameKey: string;
4345
- };
4346
- totalSize: bigint;
4347
- breadcrumb: {
4345
+ pub: string;
4346
+ encPriv: string;
4347
+ }[];
4348
+ nodes: {
4348
4349
  id: string;
4350
+ createdAt: Date;
4351
+ deletedAt: Date | null;
4349
4352
  name: string;
4350
- nameKey: string | null;
4351
- pubKey: string;
4353
+ updatedAt: Date;
4354
+ history: {
4355
+ createdAt: Date;
4356
+ dataId: string;
4357
+ size: bigint;
4358
+ storageType: "s3" | "lite";
4359
+ }[];
4360
+ access: {
4361
+ appId: string;
4362
+ nameKey: string;
4363
+ };
4364
+ totalSize: bigint;
4365
+ breadcrumb: {
4366
+ id: string;
4367
+ name: string;
4368
+ nameKey: string | null;
4369
+ pubKey: string;
4370
+ }[];
4371
+ sharedCount: number;
4352
4372
  }[];
4353
- sharedCount: number;
4354
- }[];
4373
+ };
4374
+ pagination: {
4375
+ next: number | null;
4376
+ prev: number | null;
4377
+ last: number;
4378
+ perPage: number;
4379
+ totalItems: number;
4380
+ };
4355
4381
  };
4356
4382
  }, unknown>;
4357
4383
  shareDataInHistory: _trpc_server.BuildProcedure<"mutation", {
@@ -5206,7 +5232,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5206
5232
  }>;
5207
5233
  _meta: object;
5208
5234
  _ctx_out: {
5209
- session: SecrecySessionWithApp;
5235
+ session: SecrecySession;
5210
5236
  req: {
5211
5237
  headers: Headers;
5212
5238
  body: ReadableStream<Uint8Array> | null;
@@ -5219,9 +5245,17 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5219
5245
  };
5220
5246
  _input_in: {
5221
5247
  id: string;
5248
+ } & {
5249
+ force?: boolean | undefined;
5250
+ } & {
5251
+ appId?: string | null | undefined;
5222
5252
  };
5223
5253
  _input_out: {
5224
5254
  id: string;
5255
+ } & {
5256
+ force?: boolean | undefined;
5257
+ } & {
5258
+ appId?: string | null | undefined;
5225
5259
  };
5226
5260
  _output_in: {
5227
5261
  isDeleted: boolean;
@@ -8948,10 +8982,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8948
8982
  regionId: string;
8949
8983
  storePasswords: boolean;
8950
8984
  settings?: {
8951
- allowedIps?: {
8952
- ips?: string[] | undefined;
8953
- primaryBranchOnly?: boolean | undefined;
8954
- } | undefined;
8955
8985
  quota?: {
8956
8986
  activeTimeSeconds?: number | undefined;
8957
8987
  computeTimeSeconds?: number | undefined;
@@ -8959,6 +8989,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8959
8989
  dataTransferBytes?: number | undefined;
8960
8990
  logicalSizeBytes?: number | undefined;
8961
8991
  } | undefined;
8992
+ allowedIps?: {
8993
+ ips?: string[] | undefined;
8994
+ primaryBranchOnly?: boolean | undefined;
8995
+ } | undefined;
8962
8996
  enableLogicalReplication?: boolean | undefined;
8963
8997
  } | undefined;
8964
8998
  owner?: {
@@ -9002,10 +9036,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9002
9036
  regionId: string;
9003
9037
  storePasswords: boolean;
9004
9038
  settings?: {
9005
- allowedIps?: {
9006
- ips?: string[] | undefined;
9007
- primaryBranchOnly?: boolean | undefined;
9008
- } | undefined;
9009
9039
  quota?: {
9010
9040
  activeTimeSeconds?: number | undefined;
9011
9041
  computeTimeSeconds?: number | undefined;
@@ -9013,6 +9043,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9013
9043
  dataTransferBytes?: number | undefined;
9014
9044
  logicalSizeBytes?: number | undefined;
9015
9045
  } | undefined;
9046
+ allowedIps?: {
9047
+ ips?: string[] | undefined;
9048
+ primaryBranchOnly?: boolean | undefined;
9049
+ } | undefined;
9016
9050
  enableLogicalReplication?: boolean | undefined;
9017
9051
  } | undefined;
9018
9052
  owner?: {
@@ -9171,10 +9205,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9171
9205
  appId?: string | undefined;
9172
9206
  } & {
9173
9207
  settings: {
9174
- allowedIps: {
9175
- ips?: string[] | undefined;
9176
- primaryBranchOnly?: boolean | undefined;
9177
- };
9178
9208
  quota: {
9179
9209
  activeTimeSeconds?: number | undefined;
9180
9210
  computeTimeSeconds?: number | undefined;
@@ -9182,6 +9212,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9182
9212
  dataTransferBytes?: number | undefined;
9183
9213
  logicalSizeBytes?: number | undefined;
9184
9214
  };
9215
+ allowedIps: {
9216
+ ips?: string[] | undefined;
9217
+ primaryBranchOnly?: boolean | undefined;
9218
+ };
9185
9219
  enableLogicalReplication: boolean;
9186
9220
  };
9187
9221
  defaultEndpointSettings?: {
@@ -9197,10 +9231,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9197
9231
  appId?: string | undefined;
9198
9232
  } & {
9199
9233
  settings: {
9200
- allowedIps: {
9201
- ips?: string[] | undefined;
9202
- primaryBranchOnly?: boolean | undefined;
9203
- };
9204
9234
  quota: {
9205
9235
  activeTimeSeconds?: number | undefined;
9206
9236
  computeTimeSeconds?: number | undefined;
@@ -9208,6 +9238,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9208
9238
  dataTransferBytes?: number | undefined;
9209
9239
  logicalSizeBytes?: number | undefined;
9210
9240
  };
9241
+ allowedIps: {
9242
+ ips?: string[] | undefined;
9243
+ primaryBranchOnly?: boolean | undefined;
9244
+ };
9211
9245
  enableLogicalReplication: boolean;
9212
9246
  };
9213
9247
  defaultEndpointSettings?: {
@@ -9244,10 +9278,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9244
9278
  regionId: string;
9245
9279
  storePasswords: boolean;
9246
9280
  settings?: {
9247
- allowedIps?: {
9248
- ips?: string[] | undefined;
9249
- primaryBranchOnly?: boolean | undefined;
9250
- } | undefined;
9251
9281
  quota?: {
9252
9282
  activeTimeSeconds?: number | undefined;
9253
9283
  computeTimeSeconds?: number | undefined;
@@ -9255,6 +9285,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9255
9285
  dataTransferBytes?: number | undefined;
9256
9286
  logicalSizeBytes?: number | undefined;
9257
9287
  } | undefined;
9288
+ allowedIps?: {
9289
+ ips?: string[] | undefined;
9290
+ primaryBranchOnly?: boolean | undefined;
9291
+ } | undefined;
9258
9292
  enableLogicalReplication?: boolean | undefined;
9259
9293
  } | undefined;
9260
9294
  owner?: {
@@ -9298,10 +9332,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9298
9332
  regionId: string;
9299
9333
  storePasswords: boolean;
9300
9334
  settings?: {
9301
- allowedIps?: {
9302
- ips?: string[] | undefined;
9303
- primaryBranchOnly?: boolean | undefined;
9304
- } | undefined;
9305
9335
  quota?: {
9306
9336
  activeTimeSeconds?: number | undefined;
9307
9337
  computeTimeSeconds?: number | undefined;
@@ -9309,6 +9339,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9309
9339
  dataTransferBytes?: number | undefined;
9310
9340
  logicalSizeBytes?: number | undefined;
9311
9341
  } | undefined;
9342
+ allowedIps?: {
9343
+ ips?: string[] | undefined;
9344
+ primaryBranchOnly?: boolean | undefined;
9345
+ } | undefined;
9312
9346
  enableLogicalReplication?: boolean | undefined;
9313
9347
  } | undefined;
9314
9348
  owner?: {
@@ -18656,12 +18690,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
18656
18690
  _input_in: {
18657
18691
  lastname?: string | null | undefined;
18658
18692
  firstname?: string | null | undefined;
18693
+ avatar?: string | null | undefined;
18659
18694
  isSearchable?: boolean | undefined;
18660
18695
  lang?: "fr" | "en" | null | undefined;
18661
18696
  };
18662
18697
  _input_out: {
18663
18698
  lastname?: string | null | undefined;
18664
18699
  firstname?: string | null | undefined;
18700
+ avatar?: string | null | undefined;
18665
18701
  isSearchable?: boolean | undefined;
18666
18702
  lang?: "fr" | "en" | null | undefined;
18667
18703
  };
@@ -18696,6 +18732,66 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
18696
18732
  };
18697
18733
  };
18698
18734
  }, unknown>;
18735
+ myApps: _trpc_server.BuildProcedure<"query", {
18736
+ _config: _trpc_server.RootConfig<{
18737
+ ctx: {
18738
+ req: {
18739
+ headers: Headers;
18740
+ body: ReadableStream<Uint8Array> | null;
18741
+ };
18742
+ res: {
18743
+ headers: Headers;
18744
+ };
18745
+ session: SecrecySession | null;
18746
+ locale: Locales;
18747
+ ls: TranslationFunctions;
18748
+ };
18749
+ meta: object;
18750
+ errorShape: {
18751
+ message: string;
18752
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
18753
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
18754
+ } | {
18755
+ data: {
18756
+ zodError: zod.typeToFlattenedError<any, string> | null;
18757
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
18758
+ httpStatus: number;
18759
+ path?: string;
18760
+ stack?: string;
18761
+ };
18762
+ message: string;
18763
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
18764
+ };
18765
+ transformer: typeof superjson.default;
18766
+ }>;
18767
+ _meta: object;
18768
+ _ctx_out: {
18769
+ session: SecrecySession;
18770
+ req: {
18771
+ headers: Headers;
18772
+ body: ReadableStream<Uint8Array> | null;
18773
+ };
18774
+ res: {
18775
+ headers: Headers;
18776
+ };
18777
+ locale: Locales;
18778
+ ls: TranslationFunctions;
18779
+ };
18780
+ _input_in: {};
18781
+ _input_out: {};
18782
+ _output_in: {
18783
+ apps: Record<string, {
18784
+ name: string;
18785
+ logo: string | null;
18786
+ }>;
18787
+ };
18788
+ _output_out: {
18789
+ apps: Record<string, {
18790
+ name: string;
18791
+ logo: string | null;
18792
+ }>;
18793
+ };
18794
+ }, unknown>;
18699
18795
  }>;
18700
18796
  }>;
18701
18797
  type AppRouter = typeof appRouter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.27.0-dev.10",
3
+ "version": "1.27.0-dev.12",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"