From cbcda7df5aeef1aebc3d6a3e9a7118650a99bce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Camith-skyflow=E2=80=9D?= <“amit@skyflow.com”> Date: Wed, 4 Sep 2024 22:33:05 +0530 Subject: [PATCH] SK-1628: add scaffolding for v2 implementation --- {src => v1/src}/index.js | 0 .../src}/service-account/errors/Messages.ts | 0 {src => v1/src}/service-account/util/Token.ts | 0 {src => v1/src}/vault-api/Controller.ts | 0 {src => v1/src}/vault-api/Logging.ts | 0 {src => v1/src}/vault-api/Skyflow.ts | 0 {src => v1/src}/vault-api/client/index.ts | 0 {src => v1/src}/vault-api/core/Collect.ts | 0 {src => v1/src}/vault-api/core/Delete.ts | 0 {src => v1/src}/vault-api/core/Reveal.ts | 0 .../src}/vault-api/libs/SkyflowError.ts | 0 .../src}/vault-api/utils/common/index.ts | 0 {src => v1/src}/vault-api/utils/constants.ts | 0 .../src}/vault-api/utils/helpers/index.ts | 0 .../src}/vault-api/utils/jwt-utils/index.ts | 0 .../src}/vault-api/utils/logs-helper/index.ts | 0 {src => v1/src}/vault-api/utils/logs.ts | 0 .../src}/vault-api/utils/validators/index.ts | 0 {test => v1/test}/GenerateToken.test.js | 0 {test => v1/test}/demo-credentials/empty.json | 0 .../test}/demo-credentials/invalidJson.json | 0 .../test}/demo-credentials/noClientId.json | 0 .../test}/demo-credentials/noKeyId.json | 0 .../test}/demo-credentials/noPrivateKey.json | 0 .../test}/demo-credentials/noTokenURI.json | 0 {test => v1/test}/vault-api/Client.test.js | 0 {test => v1/test}/vault-api/Delete.test.js | 0 {test => v1/test}/vault-api/Skyflow.test.js | 0 {test => v1/test}/vault-api/Util.test.js | 0 v2/error/index.ts | 9 ++++ v2/management/controller/policy/index.ts | 27 ++++++++++++ v2/management/controller/role/index.ts | 27 ++++++++++++ v2/management/controller/vault/index.ts | 27 ++++++++++++ .../model/config/management/index.ts | 15 +++++++ .../model/request/create-vault/index.ts | 15 +++++++ .../model/request/delete-policy/index.ts | 15 +++++++ .../model/response/create-vault/index.ts | 15 +++++++ .../model/response/delete-policy/index.ts | 15 +++++++ v2/management/skyflow/index.ts | 11 +++++ v2/management/types/index.ts | 7 ++++ v2/utils/common/index.ts | 9 ++++ v2/utils/helper/index.ts | 1 + v2/validations/index.ts | 1 + v2/vault/controller/audit/index.ts | 15 +++++++ v2/vault/controller/binlookup/index.ts | 19 +++++++++ v2/vault/controller/connections/index.ts | 15 +++++++ v2/vault/controller/data/index.ts | 35 ++++++++++++++++ v2/vault/controller/detect/index.ts | 23 ++++++++++ v2/vault/controller/query/index.ts | 15 +++++++ v2/vault/model/config/connection/index.ts | 15 +++++++ v2/vault/model/config/vault/index.ts | 15 +++++++ v2/vault/model/credentials/index.ts | 15 +++++++ v2/vault/model/request/detokenize/index.ts | 15 +++++++ v2/vault/model/request/insert/index.ts | 15 +++++++ v2/vault/model/response/detokenize/index.ts | 15 +++++++ v2/vault/model/response/insert/index.ts | 15 +++++++ v2/vault/skyflow/index.ts | 42 +++++++++++++++++++ v2/vault/types/index.ts | 10 +++++ 58 files changed, 473 insertions(+) rename {src => v1/src}/index.js (100%) rename {src => v1/src}/service-account/errors/Messages.ts (100%) rename {src => v1/src}/service-account/util/Token.ts (100%) rename {src => v1/src}/vault-api/Controller.ts (100%) rename {src => v1/src}/vault-api/Logging.ts (100%) rename {src => v1/src}/vault-api/Skyflow.ts (100%) rename {src => v1/src}/vault-api/client/index.ts (100%) rename {src => v1/src}/vault-api/core/Collect.ts (100%) rename {src => v1/src}/vault-api/core/Delete.ts (100%) rename {src => v1/src}/vault-api/core/Reveal.ts (100%) rename {src => v1/src}/vault-api/libs/SkyflowError.ts (100%) rename {src => v1/src}/vault-api/utils/common/index.ts (100%) rename {src => v1/src}/vault-api/utils/constants.ts (100%) rename {src => v1/src}/vault-api/utils/helpers/index.ts (100%) rename {src => v1/src}/vault-api/utils/jwt-utils/index.ts (100%) rename {src => v1/src}/vault-api/utils/logs-helper/index.ts (100%) rename {src => v1/src}/vault-api/utils/logs.ts (100%) rename {src => v1/src}/vault-api/utils/validators/index.ts (100%) rename {test => v1/test}/GenerateToken.test.js (100%) rename {test => v1/test}/demo-credentials/empty.json (100%) rename {test => v1/test}/demo-credentials/invalidJson.json (100%) rename {test => v1/test}/demo-credentials/noClientId.json (100%) rename {test => v1/test}/demo-credentials/noKeyId.json (100%) rename {test => v1/test}/demo-credentials/noPrivateKey.json (100%) rename {test => v1/test}/demo-credentials/noTokenURI.json (100%) rename {test => v1/test}/vault-api/Client.test.js (100%) rename {test => v1/test}/vault-api/Delete.test.js (100%) rename {test => v1/test}/vault-api/Skyflow.test.js (100%) rename {test => v1/test}/vault-api/Util.test.js (100%) create mode 100644 v2/error/index.ts create mode 100644 v2/management/controller/policy/index.ts create mode 100644 v2/management/controller/role/index.ts create mode 100644 v2/management/controller/vault/index.ts create mode 100644 v2/management/model/config/management/index.ts create mode 100644 v2/management/model/request/create-vault/index.ts create mode 100644 v2/management/model/request/delete-policy/index.ts create mode 100644 v2/management/model/response/create-vault/index.ts create mode 100644 v2/management/model/response/delete-policy/index.ts create mode 100644 v2/management/skyflow/index.ts create mode 100644 v2/management/types/index.ts create mode 100644 v2/utils/common/index.ts create mode 100644 v2/utils/helper/index.ts create mode 100644 v2/validations/index.ts create mode 100644 v2/vault/controller/audit/index.ts create mode 100644 v2/vault/controller/binlookup/index.ts create mode 100644 v2/vault/controller/connections/index.ts create mode 100644 v2/vault/controller/data/index.ts create mode 100644 v2/vault/controller/detect/index.ts create mode 100644 v2/vault/controller/query/index.ts create mode 100644 v2/vault/model/config/connection/index.ts create mode 100644 v2/vault/model/config/vault/index.ts create mode 100644 v2/vault/model/credentials/index.ts create mode 100644 v2/vault/model/request/detokenize/index.ts create mode 100644 v2/vault/model/request/insert/index.ts create mode 100644 v2/vault/model/response/detokenize/index.ts create mode 100644 v2/vault/model/response/insert/index.ts create mode 100644 v2/vault/skyflow/index.ts create mode 100644 v2/vault/types/index.ts diff --git a/src/index.js b/v1/src/index.js similarity index 100% rename from src/index.js rename to v1/src/index.js diff --git a/src/service-account/errors/Messages.ts b/v1/src/service-account/errors/Messages.ts similarity index 100% rename from src/service-account/errors/Messages.ts rename to v1/src/service-account/errors/Messages.ts diff --git a/src/service-account/util/Token.ts b/v1/src/service-account/util/Token.ts similarity index 100% rename from src/service-account/util/Token.ts rename to v1/src/service-account/util/Token.ts diff --git a/src/vault-api/Controller.ts b/v1/src/vault-api/Controller.ts similarity index 100% rename from src/vault-api/Controller.ts rename to v1/src/vault-api/Controller.ts diff --git a/src/vault-api/Logging.ts b/v1/src/vault-api/Logging.ts similarity index 100% rename from src/vault-api/Logging.ts rename to v1/src/vault-api/Logging.ts diff --git a/src/vault-api/Skyflow.ts b/v1/src/vault-api/Skyflow.ts similarity index 100% rename from src/vault-api/Skyflow.ts rename to v1/src/vault-api/Skyflow.ts diff --git a/src/vault-api/client/index.ts b/v1/src/vault-api/client/index.ts similarity index 100% rename from src/vault-api/client/index.ts rename to v1/src/vault-api/client/index.ts diff --git a/src/vault-api/core/Collect.ts b/v1/src/vault-api/core/Collect.ts similarity index 100% rename from src/vault-api/core/Collect.ts rename to v1/src/vault-api/core/Collect.ts diff --git a/src/vault-api/core/Delete.ts b/v1/src/vault-api/core/Delete.ts similarity index 100% rename from src/vault-api/core/Delete.ts rename to v1/src/vault-api/core/Delete.ts diff --git a/src/vault-api/core/Reveal.ts b/v1/src/vault-api/core/Reveal.ts similarity index 100% rename from src/vault-api/core/Reveal.ts rename to v1/src/vault-api/core/Reveal.ts diff --git a/src/vault-api/libs/SkyflowError.ts b/v1/src/vault-api/libs/SkyflowError.ts similarity index 100% rename from src/vault-api/libs/SkyflowError.ts rename to v1/src/vault-api/libs/SkyflowError.ts diff --git a/src/vault-api/utils/common/index.ts b/v1/src/vault-api/utils/common/index.ts similarity index 100% rename from src/vault-api/utils/common/index.ts rename to v1/src/vault-api/utils/common/index.ts diff --git a/src/vault-api/utils/constants.ts b/v1/src/vault-api/utils/constants.ts similarity index 100% rename from src/vault-api/utils/constants.ts rename to v1/src/vault-api/utils/constants.ts diff --git a/src/vault-api/utils/helpers/index.ts b/v1/src/vault-api/utils/helpers/index.ts similarity index 100% rename from src/vault-api/utils/helpers/index.ts rename to v1/src/vault-api/utils/helpers/index.ts diff --git a/src/vault-api/utils/jwt-utils/index.ts b/v1/src/vault-api/utils/jwt-utils/index.ts similarity index 100% rename from src/vault-api/utils/jwt-utils/index.ts rename to v1/src/vault-api/utils/jwt-utils/index.ts diff --git a/src/vault-api/utils/logs-helper/index.ts b/v1/src/vault-api/utils/logs-helper/index.ts similarity index 100% rename from src/vault-api/utils/logs-helper/index.ts rename to v1/src/vault-api/utils/logs-helper/index.ts diff --git a/src/vault-api/utils/logs.ts b/v1/src/vault-api/utils/logs.ts similarity index 100% rename from src/vault-api/utils/logs.ts rename to v1/src/vault-api/utils/logs.ts diff --git a/src/vault-api/utils/validators/index.ts b/v1/src/vault-api/utils/validators/index.ts similarity index 100% rename from src/vault-api/utils/validators/index.ts rename to v1/src/vault-api/utils/validators/index.ts diff --git a/test/GenerateToken.test.js b/v1/test/GenerateToken.test.js similarity index 100% rename from test/GenerateToken.test.js rename to v1/test/GenerateToken.test.js diff --git a/test/demo-credentials/empty.json b/v1/test/demo-credentials/empty.json similarity index 100% rename from test/demo-credentials/empty.json rename to v1/test/demo-credentials/empty.json diff --git a/test/demo-credentials/invalidJson.json b/v1/test/demo-credentials/invalidJson.json similarity index 100% rename from test/demo-credentials/invalidJson.json rename to v1/test/demo-credentials/invalidJson.json diff --git a/test/demo-credentials/noClientId.json b/v1/test/demo-credentials/noClientId.json similarity index 100% rename from test/demo-credentials/noClientId.json rename to v1/test/demo-credentials/noClientId.json diff --git a/test/demo-credentials/noKeyId.json b/v1/test/demo-credentials/noKeyId.json similarity index 100% rename from test/demo-credentials/noKeyId.json rename to v1/test/demo-credentials/noKeyId.json diff --git a/test/demo-credentials/noPrivateKey.json b/v1/test/demo-credentials/noPrivateKey.json similarity index 100% rename from test/demo-credentials/noPrivateKey.json rename to v1/test/demo-credentials/noPrivateKey.json diff --git a/test/demo-credentials/noTokenURI.json b/v1/test/demo-credentials/noTokenURI.json similarity index 100% rename from test/demo-credentials/noTokenURI.json rename to v1/test/demo-credentials/noTokenURI.json diff --git a/test/vault-api/Client.test.js b/v1/test/vault-api/Client.test.js similarity index 100% rename from test/vault-api/Client.test.js rename to v1/test/vault-api/Client.test.js diff --git a/test/vault-api/Delete.test.js b/v1/test/vault-api/Delete.test.js similarity index 100% rename from test/vault-api/Delete.test.js rename to v1/test/vault-api/Delete.test.js diff --git a/test/vault-api/Skyflow.test.js b/v1/test/vault-api/Skyflow.test.js similarity index 100% rename from test/vault-api/Skyflow.test.js rename to v1/test/vault-api/Skyflow.test.js diff --git a/test/vault-api/Util.test.js b/v1/test/vault-api/Util.test.js similarity index 100% rename from test/vault-api/Util.test.js rename to v1/test/vault-api/Util.test.js diff --git a/v2/error/index.ts b/v2/error/index.ts new file mode 100644 index 0000000..566ea95 --- /dev/null +++ b/v2/error/index.ts @@ -0,0 +1,9 @@ +//imports + +class SkyflowError { + + constructor() { + + } + +} \ No newline at end of file diff --git a/v2/management/controller/policy/index.ts b/v2/management/controller/policy/index.ts new file mode 100644 index 0000000..f31d2dc --- /dev/null +++ b/v2/management/controller/policy/index.ts @@ -0,0 +1,27 @@ +//imports + +class Policy { + + constructor() { + + } + + public createPolicy() { + + } + + public update() { + + } + + public delete() { + + } + + public get() { + + } + +} + +export default Policy; diff --git a/v2/management/controller/role/index.ts b/v2/management/controller/role/index.ts new file mode 100644 index 0000000..7aad480 --- /dev/null +++ b/v2/management/controller/role/index.ts @@ -0,0 +1,27 @@ +//imports + +class Role { + + constructor() { + + } + + public createRole() { + + } + + public update() { + + } + + public delete() { + + } + + public get() { + + } + +} + +export default Role; diff --git a/v2/management/controller/vault/index.ts b/v2/management/controller/vault/index.ts new file mode 100644 index 0000000..0454521 --- /dev/null +++ b/v2/management/controller/vault/index.ts @@ -0,0 +1,27 @@ +//imports + +class Vault { + + constructor() { + + } + + public createVault() { + + } + + public update() { + + } + + public delete() { + + } + + public get() { + + } + +} + +export default Vault; diff --git a/v2/management/model/config/management/index.ts b/v2/management/model/config/management/index.ts new file mode 100644 index 0000000..d48bab5 --- /dev/null +++ b/v2/management/model/config/management/index.ts @@ -0,0 +1,15 @@ +//imports + +class ManagementConfig { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default ManagementConfig; diff --git a/v2/management/model/request/create-vault/index.ts b/v2/management/model/request/create-vault/index.ts new file mode 100644 index 0000000..8907645 --- /dev/null +++ b/v2/management/model/request/create-vault/index.ts @@ -0,0 +1,15 @@ +//imports + +class CreateVaultRequest { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default CreateVaultRequest; diff --git a/v2/management/model/request/delete-policy/index.ts b/v2/management/model/request/delete-policy/index.ts new file mode 100644 index 0000000..65ea565 --- /dev/null +++ b/v2/management/model/request/delete-policy/index.ts @@ -0,0 +1,15 @@ +//imports + +class DeletePolicyRequest { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default DeletePolicyRequest; diff --git a/v2/management/model/response/create-vault/index.ts b/v2/management/model/response/create-vault/index.ts new file mode 100644 index 0000000..70c119e --- /dev/null +++ b/v2/management/model/response/create-vault/index.ts @@ -0,0 +1,15 @@ +//imports + +class CreateVaultResponse { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default CreateVaultResponse; diff --git a/v2/management/model/response/delete-policy/index.ts b/v2/management/model/response/delete-policy/index.ts new file mode 100644 index 0000000..e4af19c --- /dev/null +++ b/v2/management/model/response/delete-policy/index.ts @@ -0,0 +1,15 @@ +//imports + +class DeletePolicyResponse { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default DeletePolicyResponse; diff --git a/v2/management/skyflow/index.ts b/v2/management/skyflow/index.ts new file mode 100644 index 0000000..2e65235 --- /dev/null +++ b/v2/management/skyflow/index.ts @@ -0,0 +1,11 @@ +import { SkyflowConfig } from "../types"; + +class Skyflow { + + constructor(config: SkyflowConfig) { + + } + +} + +export default Skyflow; diff --git a/v2/management/types/index.ts b/v2/management/types/index.ts new file mode 100644 index 0000000..749e746 --- /dev/null +++ b/v2/management/types/index.ts @@ -0,0 +1,7 @@ +import { LogLevel } from "../../utils/common"; +import ManagementConfig from "../model/config/management"; + +export interface SkyflowConfig { + managementConfig: ManagementConfig[], + logLevel?: LogLevel, +} \ No newline at end of file diff --git a/v2/utils/common/index.ts b/v2/utils/common/index.ts new file mode 100644 index 0000000..138da11 --- /dev/null +++ b/v2/utils/common/index.ts @@ -0,0 +1,9 @@ +//common code between vault & management + +export enum LogLevel { + WARN = 'WARN', + INFO = 'INFO', + DEBUG = 'DEBUG', + ERROR = 'ERROR', + OFF = 'OFF' +} \ No newline at end of file diff --git a/v2/utils/helper/index.ts b/v2/utils/helper/index.ts new file mode 100644 index 0000000..8c1510c --- /dev/null +++ b/v2/utils/helper/index.ts @@ -0,0 +1 @@ +//helper functions \ No newline at end of file diff --git a/v2/validations/index.ts b/v2/validations/index.ts new file mode 100644 index 0000000..0dcd7ec --- /dev/null +++ b/v2/validations/index.ts @@ -0,0 +1 @@ +// add client config validations & request validations \ No newline at end of file diff --git a/v2/vault/controller/audit/index.ts b/v2/vault/controller/audit/index.ts new file mode 100644 index 0000000..a22d157 --- /dev/null +++ b/v2/vault/controller/audit/index.ts @@ -0,0 +1,15 @@ +//imports + +class Audit { + + constructor() { + + } + + public list() { + return this; + } + +} + +export default Audit; diff --git a/v2/vault/controller/binlookup/index.ts b/v2/vault/controller/binlookup/index.ts new file mode 100644 index 0000000..d07fa43 --- /dev/null +++ b/v2/vault/controller/binlookup/index.ts @@ -0,0 +1,19 @@ +//imports + +class BinLookUp { + + constructor() { + + } + + public lookUpBin() { + return this; + } + + public get() { + + } + +} + +export default BinLookUp; diff --git a/v2/vault/controller/connections/index.ts b/v2/vault/controller/connections/index.ts new file mode 100644 index 0000000..94878dc --- /dev/null +++ b/v2/vault/controller/connections/index.ts @@ -0,0 +1,15 @@ +//imports + +class Connection { + + constructor() { + + } + + public invoke() { + + } + +} + +export default Connection; diff --git a/v2/vault/controller/data/index.ts b/v2/vault/controller/data/index.ts new file mode 100644 index 0000000..7fa5ef9 --- /dev/null +++ b/v2/vault/controller/data/index.ts @@ -0,0 +1,35 @@ +//imports + +class Data { + + constructor() { + + } + + public insert() { + + } + + public update() { + + } + + public delete() { + + } + + public get() { + + } + + public detokenize() { + + } + + public uploadFile(){ + + } + +} + +export default Data; diff --git a/v2/vault/controller/detect/index.ts b/v2/vault/controller/detect/index.ts new file mode 100644 index 0000000..be5803d --- /dev/null +++ b/v2/vault/controller/detect/index.ts @@ -0,0 +1,23 @@ +//imports + +class Detect { + + constructor() { + + } + + public deIdentify() { + return this; + } + + public text() { + + } + + public file() { + + } + +} + +export default Detect; diff --git a/v2/vault/controller/query/index.ts b/v2/vault/controller/query/index.ts new file mode 100644 index 0000000..957df1a --- /dev/null +++ b/v2/vault/controller/query/index.ts @@ -0,0 +1,15 @@ +//imports + +class Query { + + constructor() { + + } + + public query() { + + } + +} + +export default Query; diff --git a/v2/vault/model/config/connection/index.ts b/v2/vault/model/config/connection/index.ts new file mode 100644 index 0000000..1ca39b8 --- /dev/null +++ b/v2/vault/model/config/connection/index.ts @@ -0,0 +1,15 @@ +//imports + +class ConnectionConfig { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default ConnectionConfig; diff --git a/v2/vault/model/config/vault/index.ts b/v2/vault/model/config/vault/index.ts new file mode 100644 index 0000000..91024ec --- /dev/null +++ b/v2/vault/model/config/vault/index.ts @@ -0,0 +1,15 @@ +//imports + +class VaultConfig { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default VaultConfig; diff --git a/v2/vault/model/credentials/index.ts b/v2/vault/model/credentials/index.ts new file mode 100644 index 0000000..fd9f038 --- /dev/null +++ b/v2/vault/model/credentials/index.ts @@ -0,0 +1,15 @@ +//imports + +class Credentials { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default Credentials; diff --git a/v2/vault/model/request/detokenize/index.ts b/v2/vault/model/request/detokenize/index.ts new file mode 100644 index 0000000..508839d --- /dev/null +++ b/v2/vault/model/request/detokenize/index.ts @@ -0,0 +1,15 @@ +//imports + +class DetokenizeRequest { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default DetokenizeRequest; diff --git a/v2/vault/model/request/insert/index.ts b/v2/vault/model/request/insert/index.ts new file mode 100644 index 0000000..f1a5c23 --- /dev/null +++ b/v2/vault/model/request/insert/index.ts @@ -0,0 +1,15 @@ +//imports + +class InsertRequest { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default InsertRequest; diff --git a/v2/vault/model/response/detokenize/index.ts b/v2/vault/model/response/detokenize/index.ts new file mode 100644 index 0000000..a820d03 --- /dev/null +++ b/v2/vault/model/response/detokenize/index.ts @@ -0,0 +1,15 @@ +//imports + +class DetokenizeResponse { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default DetokenizeResponse; diff --git a/v2/vault/model/response/insert/index.ts b/v2/vault/model/response/insert/index.ts new file mode 100644 index 0000000..f6713cf --- /dev/null +++ b/v2/vault/model/response/insert/index.ts @@ -0,0 +1,15 @@ +//imports + +class InsertResponse { + + //fields + + constructor() { + + } + + //getters and setters + +} + +export default InsertResponse; diff --git a/v2/vault/skyflow/index.ts b/v2/vault/skyflow/index.ts new file mode 100644 index 0000000..48b6a27 --- /dev/null +++ b/v2/vault/skyflow/index.ts @@ -0,0 +1,42 @@ +import { LogLevel } from "../../utils/common"; +import ConnectionConfig from "../model/config/connection"; +import VaultConfig from "../model/config/vault"; +import { SkyflowConfig } from "../types"; + +class Skyflow { + + constructor(config: SkyflowConfig) { + + } + + public addVaultConfig(config: VaultConfig) { + + } + + public removeVaultConfig(id: string) { + + } + + public updateVaultConfig(config: VaultConfig) { + + } + + public addConnectionConfig(config: ConnectionConfig) { + + } + + public removeConnectionConfig(id: string) { + + } + + public updateConnectionConfig(config: ConnectionConfig) { + + } + + public update_log_level(level: LogLevel) { + + } + +} + +export default Skyflow; diff --git a/v2/vault/types/index.ts b/v2/vault/types/index.ts new file mode 100644 index 0000000..50d0843 --- /dev/null +++ b/v2/vault/types/index.ts @@ -0,0 +1,10 @@ +import { LogLevel } from "../../utils/common"; +import ConnectionConfig from "../model/config/connection"; +import VaultConfig from "../model/config/vault" + +export interface SkyflowConfig { + vaultConfig: VaultConfig[], + connectionConfig?: ConnectionConfig[], + skyflowCredentials: Credential, + logLevel?: LogLevel, +} \ No newline at end of file