@secrecy/lib 1.62.0-feat-storage-providers.2 → 1.62.0-feat-storage-providers.4

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.
@@ -1,6 +1,6 @@
1
1
  import { httpBatchLink, loggerLink, createTRPCProxyClient, TRPCClientError, } from '@trpc/client';
2
2
  import superjson from 'superjson';
3
- import { SECRECY_LIB_VERSION } from './versioning';
3
+ import { SECRECY_LIB_VERSION } from './versioning.js';
4
4
  export function isTRPCClientError(cause) {
5
5
  return cause instanceof TRPCClientError;
6
6
  }
@@ -1,17 +1,19 @@
1
1
  import { type RouterOutputs } from '../../client.js';
2
2
  export type ApiData = NonNullable<RouterOutputs['cloud']['dataById']>;
3
3
  export type ApiExtendedData = NonNullable<RouterOutputs['cloud']['dataContentById']>;
4
- export type DataStorageInput = {
4
+ export type S3DataStorageInput = {
5
5
  protocol: 's3';
6
6
  provider: 'scaleway' | 'ovh';
7
7
  mode: 'standard' | 'glacier';
8
8
  region: string;
9
- } | {
9
+ };
10
+ export type MongoStorageInput = {
10
11
  protocol: 'mongo';
11
12
  provider: 'secrecy';
12
13
  mode: 'standard';
13
14
  region: string;
14
15
  };
16
+ export type DataStorageInput = S3DataStorageInput | MongoStorageInput;
15
17
  export type DataStorage = ApiData['storage'];
16
18
  export type DataStorageProtocol = ApiData['storage']['protocol'];
17
19
  export type DataStorageProvider = ApiData['storage']['provider'];
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.62.0-feat-storage-providers.2",
5
+ "version": "1.62.0-feat-storage-providers.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"