@explo-tech/fido-api 0.0.5 → 0.0.6

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.
package/index.ts CHANGED
@@ -31,15 +31,23 @@ export type { NamespaceRequest } from './models/NamespaceRequest';
31
31
  export type { NamespaceResponse } from './models/NamespaceResponse';
32
32
  export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
33
33
  export type { PagingConfiguration } from './models/PagingConfiguration';
34
+ export type { Postgres } from './models/Postgres';
35
+ export type { PostgresAuthentication } from './models/PostgresAuthentication';
36
+ export type { PostgresPasswordAuthentication } from './models/PostgresPasswordAuthentication';
34
37
  export type { PropertySchema } from './models/PropertySchema';
35
38
  export { PropertyType } from './models/PropertyType';
36
39
  export type { PropertyValue } from './models/PropertyValue';
40
+ export type { PublicTunnel } from './models/PublicTunnel';
37
41
  export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
38
42
  export type { Record } from './models/Record';
39
43
  export type { RequestTelemetry } from './models/RequestTelemetry';
44
+ export type { SSHAuthentication } from './models/SSHAuthentication';
45
+ export type { SSHTunnel } from './models/SSHTunnel';
40
46
  export type { StringPropertyValue } from './models/StringPropertyValue';
47
+ export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
41
48
  export type { Tunnel } from './models/Tunnel';
42
49
  export type { UUID } from './models/UUID';
50
+ export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
43
51
 
44
52
  export { DatasourceResourceService } from './services/DatasourceResourceService';
45
53
  export { HealthResourceService } from './services/HealthResourceService';
@@ -8,8 +8,8 @@ import type { UUID } from './UUID';
8
8
  export type DataSource = {
9
9
  name: string;
10
10
  externalId: string;
11
- id?: UUID | null;
12
- namespaceId?: UUID | null;
11
+ id: UUID | null;
12
+ namespaceId: UUID | null;
13
13
  configuration: DataSourceConfiguration;
14
14
  };
15
15
 
@@ -2,9 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
+ import type { Postgres } from './Postgres';
5
6
  import type { Tunnel } from './Tunnel';
6
7
 
7
- export type DataSourceConfiguration = {
8
+ export type DataSourceConfiguration = (Postgres | {
8
9
  tunnel: Tunnel;
9
- };
10
+ });
10
11
 
@@ -6,6 +6,6 @@ import type { UUID } from './UUID';
6
6
 
7
7
  export type Namespace = {
8
8
  name: string;
9
- id?: UUID | null;
9
+ id: UUID | null;
10
10
  };
11
11
 
@@ -0,0 +1,15 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { PostgresAuthentication } from './PostgresAuthentication';
6
+ import type { Tunnel } from './Tunnel';
7
+
8
+ export type Postgres = {
9
+ tunnel: Tunnel;
10
+ authentication: PostgresAuthentication;
11
+ database: string;
12
+ host: string;
13
+ port?: number;
14
+ };
15
+
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { PostgresPasswordAuthentication } from './PostgresPasswordAuthentication';
6
+
7
+ export type PostgresAuthentication = PostgresPasswordAuthentication;
8
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type PostgresPasswordAuthentication = {
6
+ username: string;
7
+ password: string;
8
+ };
9
+
@@ -0,0 +1,5 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type PublicTunnel = Record<string, any>;
@@ -5,8 +5,8 @@
5
5
  import type { Duration } from './Duration';
6
6
 
7
7
  export type RequestTelemetry = {
8
- requestTime?: Duration | null;
9
- queryTime?: Duration | null;
10
- processingTime?: Duration | null;
8
+ requestTime: Duration | null;
9
+ queryTime: Duration | null;
10
+ processingTime: Duration | null;
11
11
  };
12
12
 
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { TenantPrivateKeyAuthentication } from './TenantPrivateKeyAuthentication';
6
+ import type { VendorPrivateKeyAuthentication } from './VendorPrivateKeyAuthentication';
7
+
8
+ export type SSHAuthentication = (VendorPrivateKeyAuthentication | TenantPrivateKeyAuthentication | {
9
+ username: string;
10
+ });
11
+
@@ -0,0 +1,14 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { SSHAuthentication } from './SSHAuthentication';
6
+ import type { Tunnel } from './Tunnel';
7
+
8
+ export type SSHTunnel = {
9
+ tunnel: Tunnel;
10
+ host: string;
11
+ port?: number;
12
+ authentication: SSHAuthentication;
13
+ };
14
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type TenantPrivateKeyAuthentication = {
6
+ username: string;
7
+ privateKey: string;
8
+ };
9
+
package/models/Tunnel.ts CHANGED
@@ -2,4 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- export type Tunnel = Record<string, any>;
5
+ import type { PublicTunnel } from './PublicTunnel';
6
+ import type { SSHTunnel } from './SSHTunnel';
7
+
8
+ export type Tunnel = (PublicTunnel | SSHTunnel);
9
+
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type VendorPrivateKeyAuthentication = {
6
+ username: string;
7
+ };
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@ export class QueryResourceService {
42
42
  * @param dataSourceId
43
43
  * @param namespaceId
44
44
  * @param requestBody
45
- * @returns QueryExecutionResponse A DataPage of the resulting Data Source's data
45
+ * @returns QueryExecutionResponse A DataPage of the provided query
46
46
  * @throws ApiError
47
47
  */
48
48
  public static runComputedView(