@katerai/sdk 0.1.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.
- package/CHANGELOG.md +35 -0
- package/LICENSE +201 -0
- package/README.md +385 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +188 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +188 -0
- package/client.d.ts.map +1 -0
- package/client.js +486 -0
- package/client.js.map +1 -0
- package/client.mjs +482 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -0
- package/resources/v1/api-keys.d.mts +142 -0
- package/resources/v1/api-keys.d.mts.map +1 -0
- package/resources/v1/api-keys.d.ts +142 -0
- package/resources/v1/api-keys.d.ts.map +1 -0
- package/resources/v1/api-keys.js +66 -0
- package/resources/v1/api-keys.js.map +1 -0
- package/resources/v1/api-keys.mjs +62 -0
- package/resources/v1/api-keys.mjs.map +1 -0
- package/resources/v1/connections/connections.d.mts +638 -0
- package/resources/v1/connections/connections.d.mts.map +1 -0
- package/resources/v1/connections/connections.d.ts +638 -0
- package/resources/v1/connections/connections.d.ts.map +1 -0
- package/resources/v1/connections/connections.js +67 -0
- package/resources/v1/connections/connections.js.map +1 -0
- package/resources/v1/connections/connections.mjs +62 -0
- package/resources/v1/connections/connections.mjs.map +1 -0
- package/resources/v1/connections/databases.d.mts +25 -0
- package/resources/v1/connections/databases.d.mts.map +1 -0
- package/resources/v1/connections/databases.d.ts +25 -0
- package/resources/v1/connections/databases.d.ts.map +1 -0
- package/resources/v1/connections/databases.js +26 -0
- package/resources/v1/connections/databases.js.map +1 -0
- package/resources/v1/connections/databases.mjs +22 -0
- package/resources/v1/connections/databases.mjs.map +1 -0
- package/resources/v1/connections/index.d.mts +3 -0
- package/resources/v1/connections/index.d.mts.map +1 -0
- package/resources/v1/connections/index.d.ts +3 -0
- package/resources/v1/connections/index.d.ts.map +1 -0
- package/resources/v1/connections/index.js +9 -0
- package/resources/v1/connections/index.js.map +1 -0
- package/resources/v1/connections/index.mjs +4 -0
- package/resources/v1/connections/index.mjs.map +1 -0
- package/resources/v1/connections.d.mts +2 -0
- package/resources/v1/connections.d.mts.map +1 -0
- package/resources/v1/connections.d.ts +2 -0
- package/resources/v1/connections.d.ts.map +1 -0
- package/resources/v1/connections.js +6 -0
- package/resources/v1/connections.js.map +1 -0
- package/resources/v1/connections.mjs +3 -0
- package/resources/v1/connections.mjs.map +1 -0
- package/resources/v1/github/admin.d.mts +33 -0
- package/resources/v1/github/admin.d.mts.map +1 -0
- package/resources/v1/github/admin.d.ts +33 -0
- package/resources/v1/github/admin.d.ts.map +1 -0
- package/resources/v1/github/admin.js +17 -0
- package/resources/v1/github/admin.js.map +1 -0
- package/resources/v1/github/admin.mjs +13 -0
- package/resources/v1/github/admin.mjs.map +1 -0
- package/resources/v1/github/github.d.mts +87 -0
- package/resources/v1/github/github.d.mts.map +1 -0
- package/resources/v1/github/github.d.ts +87 -0
- package/resources/v1/github/github.d.ts.map +1 -0
- package/resources/v1/github/github.js +53 -0
- package/resources/v1/github/github.js.map +1 -0
- package/resources/v1/github/github.mjs +48 -0
- package/resources/v1/github/github.mjs.map +1 -0
- package/resources/v1/github/index.d.mts +6 -0
- package/resources/v1/github/index.d.mts.map +1 -0
- package/resources/v1/github/index.d.ts +6 -0
- package/resources/v1/github/index.d.ts.map +1 -0
- package/resources/v1/github/index.js +15 -0
- package/resources/v1/github/index.js.map +1 -0
- package/resources/v1/github/index.mjs +7 -0
- package/resources/v1/github/index.mjs.map +1 -0
- package/resources/v1/github/repos.d.mts +54 -0
- package/resources/v1/github/repos.d.mts.map +1 -0
- package/resources/v1/github/repos.d.ts +54 -0
- package/resources/v1/github/repos.d.ts.map +1 -0
- package/resources/v1/github/repos.js +22 -0
- package/resources/v1/github/repos.js.map +1 -0
- package/resources/v1/github/repos.mjs +18 -0
- package/resources/v1/github/repos.mjs.map +1 -0
- package/resources/v1/github/scaffold.d.mts +44 -0
- package/resources/v1/github/scaffold.d.mts.map +1 -0
- package/resources/v1/github/scaffold.d.ts +44 -0
- package/resources/v1/github/scaffold.d.ts.map +1 -0
- package/resources/v1/github/scaffold.js +27 -0
- package/resources/v1/github/scaffold.js.map +1 -0
- package/resources/v1/github/scaffold.mjs +23 -0
- package/resources/v1/github/scaffold.mjs.map +1 -0
- package/resources/v1/github/webhooks.d.mts +16 -0
- package/resources/v1/github/webhooks.d.mts.map +1 -0
- package/resources/v1/github/webhooks.d.ts +16 -0
- package/resources/v1/github/webhooks.d.ts.map +1 -0
- package/resources/v1/github/webhooks.js +15 -0
- package/resources/v1/github/webhooks.js.map +1 -0
- package/resources/v1/github/webhooks.mjs +11 -0
- package/resources/v1/github/webhooks.mjs.map +1 -0
- package/resources/v1/github.d.mts +2 -0
- package/resources/v1/github.d.mts.map +1 -0
- package/resources/v1/github.d.ts +2 -0
- package/resources/v1/github.d.ts.map +1 -0
- package/resources/v1/github.js +6 -0
- package/resources/v1/github.js.map +1 -0
- package/resources/v1/github.mjs +3 -0
- package/resources/v1/github.mjs.map +1 -0
- package/resources/v1/groups/groups.d.mts +162 -0
- package/resources/v1/groups/groups.d.mts.map +1 -0
- package/resources/v1/groups/groups.d.ts +162 -0
- package/resources/v1/groups/groups.d.ts.map +1 -0
- package/resources/v1/groups/groups.js +81 -0
- package/resources/v1/groups/groups.js.map +1 -0
- package/resources/v1/groups/groups.mjs +76 -0
- package/resources/v1/groups/groups.mjs.map +1 -0
- package/resources/v1/groups/index.d.mts +3 -0
- package/resources/v1/groups/index.d.mts.map +1 -0
- package/resources/v1/groups/index.d.ts +3 -0
- package/resources/v1/groups/index.d.ts.map +1 -0
- package/resources/v1/groups/index.js +9 -0
- package/resources/v1/groups/index.js.map +1 -0
- package/resources/v1/groups/index.mjs +4 -0
- package/resources/v1/groups/index.mjs.map +1 -0
- package/resources/v1/groups/tenants.d.mts +55 -0
- package/resources/v1/groups/tenants.d.mts.map +1 -0
- package/resources/v1/groups/tenants.d.ts +55 -0
- package/resources/v1/groups/tenants.d.ts.map +1 -0
- package/resources/v1/groups/tenants.js +39 -0
- package/resources/v1/groups/tenants.js.map +1 -0
- package/resources/v1/groups/tenants.mjs +35 -0
- package/resources/v1/groups/tenants.mjs.map +1 -0
- package/resources/v1/groups.d.mts +2 -0
- package/resources/v1/groups.d.mts.map +1 -0
- package/resources/v1/groups.d.ts +2 -0
- package/resources/v1/groups.d.ts.map +1 -0
- package/resources/v1/groups.js +6 -0
- package/resources/v1/groups.js.map +1 -0
- package/resources/v1/groups.mjs +3 -0
- package/resources/v1/groups.mjs.map +1 -0
- package/resources/v1/index.d.mts +9 -0
- package/resources/v1/index.d.mts.map +1 -0
- package/resources/v1/index.d.ts +9 -0
- package/resources/v1/index.d.ts.map +1 -0
- package/resources/v1/index.js +21 -0
- package/resources/v1/index.js.map +1 -0
- package/resources/v1/index.mjs +10 -0
- package/resources/v1/index.mjs.map +1 -0
- package/resources/v1/me.d.mts +51 -0
- package/resources/v1/me.d.mts.map +1 -0
- package/resources/v1/me.d.ts +51 -0
- package/resources/v1/me.d.ts.map +1 -0
- package/resources/v1/me.js +29 -0
- package/resources/v1/me.js.map +1 -0
- package/resources/v1/me.mjs +25 -0
- package/resources/v1/me.mjs.map +1 -0
- package/resources/v1/org/client.d.mts +53 -0
- package/resources/v1/org/client.d.mts.map +1 -0
- package/resources/v1/org/client.d.ts +53 -0
- package/resources/v1/org/client.d.ts.map +1 -0
- package/resources/v1/org/client.js +25 -0
- package/resources/v1/org/client.js.map +1 -0
- package/resources/v1/org/client.mjs +21 -0
- package/resources/v1/org/client.mjs.map +1 -0
- package/resources/v1/org/index.d.mts +4 -0
- package/resources/v1/org/index.d.mts.map +1 -0
- package/resources/v1/org/index.d.ts +4 -0
- package/resources/v1/org/index.d.ts.map +1 -0
- package/resources/v1/org/index.js +11 -0
- package/resources/v1/org/index.js.map +1 -0
- package/resources/v1/org/index.mjs +5 -0
- package/resources/v1/org/index.mjs.map +1 -0
- package/resources/v1/org/org.d.mts +14 -0
- package/resources/v1/org/org.d.mts.map +1 -0
- package/resources/v1/org/org.d.ts +14 -0
- package/resources/v1/org/org.d.ts.map +1 -0
- package/resources/v1/org/org.js +21 -0
- package/resources/v1/org/org.js.map +1 -0
- package/resources/v1/org/org.mjs +16 -0
- package/resources/v1/org/org.mjs.map +1 -0
- package/resources/v1/org/users.d.mts +87 -0
- package/resources/v1/org/users.d.mts.map +1 -0
- package/resources/v1/org/users.d.ts +87 -0
- package/resources/v1/org/users.d.ts.map +1 -0
- package/resources/v1/org/users.js +60 -0
- package/resources/v1/org/users.js.map +1 -0
- package/resources/v1/org/users.mjs +56 -0
- package/resources/v1/org/users.mjs.map +1 -0
- package/resources/v1/org.d.mts +2 -0
- package/resources/v1/org.d.mts.map +1 -0
- package/resources/v1/org.d.ts +2 -0
- package/resources/v1/org.d.ts.map +1 -0
- package/resources/v1/org.js +6 -0
- package/resources/v1/org.js.map +1 -0
- package/resources/v1/org.mjs +3 -0
- package/resources/v1/org.mjs.map +1 -0
- package/resources/v1/tenants/batch.d.mts +159 -0
- package/resources/v1/tenants/batch.d.mts.map +1 -0
- package/resources/v1/tenants/batch.d.ts +159 -0
- package/resources/v1/tenants/batch.d.ts.map +1 -0
- package/resources/v1/tenants/batch.js +42 -0
- package/resources/v1/tenants/batch.js.map +1 -0
- package/resources/v1/tenants/batch.mjs +38 -0
- package/resources/v1/tenants/batch.mjs.map +1 -0
- package/resources/v1/tenants/import.d.mts +126 -0
- package/resources/v1/tenants/import.d.mts.map +1 -0
- package/resources/v1/tenants/import.d.ts +126 -0
- package/resources/v1/tenants/import.d.ts.map +1 -0
- package/resources/v1/tenants/import.js +50 -0
- package/resources/v1/tenants/import.js.map +1 -0
- package/resources/v1/tenants/import.mjs +46 -0
- package/resources/v1/tenants/import.mjs.map +1 -0
- package/resources/v1/tenants/index.d.mts +4 -0
- package/resources/v1/tenants/index.d.mts.map +1 -0
- package/resources/v1/tenants/index.d.ts +4 -0
- package/resources/v1/tenants/index.d.ts.map +1 -0
- package/resources/v1/tenants/index.js +11 -0
- package/resources/v1/tenants/index.js.map +1 -0
- package/resources/v1/tenants/index.mjs +5 -0
- package/resources/v1/tenants/index.mjs.map +1 -0
- package/resources/v1/tenants/tenants.d.mts +205 -0
- package/resources/v1/tenants/tenants.d.mts.map +1 -0
- package/resources/v1/tenants/tenants.d.ts +205 -0
- package/resources/v1/tenants/tenants.d.ts.map +1 -0
- package/resources/v1/tenants/tenants.js +97 -0
- package/resources/v1/tenants/tenants.js.map +1 -0
- package/resources/v1/tenants/tenants.mjs +92 -0
- package/resources/v1/tenants/tenants.mjs.map +1 -0
- package/resources/v1/tenants.d.mts +2 -0
- package/resources/v1/tenants.d.mts.map +1 -0
- package/resources/v1/tenants.d.ts +2 -0
- package/resources/v1/tenants.d.ts.map +1 -0
- package/resources/v1/tenants.js +6 -0
- package/resources/v1/tenants.js.map +1 -0
- package/resources/v1/tenants.mjs +3 -0
- package/resources/v1/tenants.mjs.map +1 -0
- package/resources/v1/v1.d.mts +34 -0
- package/resources/v1/v1.d.mts.map +1 -0
- package/resources/v1/v1.d.ts +34 -0
- package/resources/v1/v1.d.ts.map +1 -0
- package/resources/v1/v1.js +41 -0
- package/resources/v1/v1.js.map +1 -0
- package/resources/v1/v1.mjs +36 -0
- package/resources/v1/v1.mjs.map +1 -0
- package/resources/v1.d.mts +2 -0
- package/resources/v1.d.mts.map +1 -0
- package/resources/v1.d.ts +2 -0
- package/resources/v1.d.ts.map +1 -0
- package/resources/v1.js +6 -0
- package/resources/v1.js.map +1 -0
- package/resources/v1.mjs +3 -0
- package/resources/v1.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +761 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/v1/api-keys.ts +186 -0
- package/src/resources/v1/connections/connections.ts +804 -0
- package/src/resources/v1/connections/databases.ts +42 -0
- package/src/resources/v1/connections/index.ts +12 -0
- package/src/resources/v1/connections.ts +3 -0
- package/src/resources/v1/github/admin.ts +56 -0
- package/src/resources/v1/github/github.ts +145 -0
- package/src/resources/v1/github/index.ts +19 -0
- package/src/resources/v1/github/repos.ts +85 -0
- package/src/resources/v1/github/scaffold.ts +71 -0
- package/src/resources/v1/github/webhooks.ts +20 -0
- package/src/resources/v1/github.ts +3 -0
- package/src/resources/v1/groups/groups.ts +218 -0
- package/src/resources/v1/groups/index.ts +10 -0
- package/src/resources/v1/groups/tenants.ts +78 -0
- package/src/resources/v1/groups.ts +3 -0
- package/src/resources/v1/index.ts +43 -0
- package/src/resources/v1/me.ts +78 -0
- package/src/resources/v1/org/client.ts +81 -0
- package/src/resources/v1/org/index.ts +11 -0
- package/src/resources/v1/org/org.ts +32 -0
- package/src/resources/v1/org/users.ts +127 -0
- package/src/resources/v1/org.ts +3 -0
- package/src/resources/v1/tenants/batch.ts +200 -0
- package/src/resources/v1/tenants/import.ts +158 -0
- package/src/resources/v1/tenants/index.ts +27 -0
- package/src/resources/v1/tenants/tenants.ts +290 -0
- package/src/resources/v1/tenants.ts +3 -0
- package/src/resources/v1/v1.ts +116 -0
- package/src/resources/v1.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as DatabasesAPI from './databases';
|
|
5
|
+
import { DatabaseDeleteSchemaParams, Databases } from './databases';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Connections extends APIResource {
|
|
11
|
+
databases: DatabasesAPI.Databases = new DatabasesAPI.Databases(this._client);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create a new warehouse connection.
|
|
15
|
+
*/
|
|
16
|
+
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection> {
|
|
17
|
+
return this._client.post('/api/v1/connections', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get a single warehouse connection by kater_id.
|
|
22
|
+
*
|
|
23
|
+
* Returns connection from the database (source of truth) with full hierarchy.
|
|
24
|
+
*
|
|
25
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
26
|
+
*
|
|
27
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
28
|
+
*/
|
|
29
|
+
retrieve(connectionID: string, options?: RequestOptions): APIPromise<Connection> {
|
|
30
|
+
return this._client.get(path`/api/v1/connections/${connectionID}`, options);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* List all warehouse connections for the client.
|
|
35
|
+
*
|
|
36
|
+
* Returns connections from the database joined with schema information from
|
|
37
|
+
* GitHub. Connections with pending PRs will have null GitHub fields until merged.
|
|
38
|
+
* Returns empty list if GitHub is not configured.
|
|
39
|
+
*
|
|
40
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
41
|
+
*/
|
|
42
|
+
list(options?: RequestOptions): APIPromise<ConnectionListResponse> {
|
|
43
|
+
return this._client.get('/api/v1/connections', options);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get decrypted warehouse credentials for a connection.
|
|
48
|
+
*
|
|
49
|
+
* Returns the decrypted credentials for a connection. This is sensitive data and
|
|
50
|
+
* should only be used when actually needed for warehouse operations.
|
|
51
|
+
*
|
|
52
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
53
|
+
*
|
|
54
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
55
|
+
*/
|
|
56
|
+
retrieveCredential(
|
|
57
|
+
connectionID: string,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): APIPromise<ConnectionRetrieveCredentialResponse> {
|
|
60
|
+
return this._client.get(path`/api/v1/connections/${connectionID}/credential`, options);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Sync view schemas from warehouse and create a PR (or update existing).
|
|
65
|
+
*/
|
|
66
|
+
sync(connectionID: string, options?: RequestOptions): APIPromise<ConnectionSyncResponse> {
|
|
67
|
+
return this._client.post(path`/api/v1/connections/${connectionID}/sync`, options);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Response model for a single connection.
|
|
73
|
+
*
|
|
74
|
+
* All data comes from the database (source of truth). The id field serves as the
|
|
75
|
+
* kater_id.
|
|
76
|
+
*/
|
|
77
|
+
export interface Connection {
|
|
78
|
+
/**
|
|
79
|
+
* Connection ID (also the kater_id)
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creation timestamp
|
|
85
|
+
*/
|
|
86
|
+
created_at: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Credential ID
|
|
90
|
+
*/
|
|
91
|
+
credential_id: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Databases in this connection
|
|
95
|
+
*/
|
|
96
|
+
databases: Array<Connection.Database>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Connection description
|
|
100
|
+
*/
|
|
101
|
+
description: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Human-readable label
|
|
105
|
+
*/
|
|
106
|
+
label: string | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Connection name
|
|
110
|
+
*/
|
|
111
|
+
name: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Last update timestamp
|
|
115
|
+
*/
|
|
116
|
+
updated_at: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Snowflake account identifier
|
|
120
|
+
*/
|
|
121
|
+
account?: string | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Database host (PostgreSQL, MSSQL, ClickHouse)
|
|
125
|
+
*/
|
|
126
|
+
host?: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Databricks HTTP path
|
|
130
|
+
*/
|
|
131
|
+
http_path?: string | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Database port (PostgreSQL, MSSQL, ClickHouse)
|
|
135
|
+
*/
|
|
136
|
+
port?: number | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Snowflake role
|
|
140
|
+
*/
|
|
141
|
+
role?: string | null;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Databricks server hostname
|
|
145
|
+
*/
|
|
146
|
+
server_hostname?: string | null;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Snowflake or Databricks warehouse name
|
|
150
|
+
*/
|
|
151
|
+
warehouse?: string | null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace Connection {
|
|
155
|
+
/**
|
|
156
|
+
* Database info from ConnectionSchema.
|
|
157
|
+
*/
|
|
158
|
+
export interface Database {
|
|
159
|
+
/**
|
|
160
|
+
* Database ID
|
|
161
|
+
*/
|
|
162
|
+
id: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Database description
|
|
166
|
+
*/
|
|
167
|
+
description: string | null;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Human-readable label
|
|
171
|
+
*/
|
|
172
|
+
label: string | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Database name
|
|
176
|
+
*/
|
|
177
|
+
name: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Schemas in this database
|
|
181
|
+
*/
|
|
182
|
+
schemas: Array<Database.Schema>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Timezone for the database
|
|
186
|
+
*/
|
|
187
|
+
timezone: string | null;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace Database {
|
|
191
|
+
/**
|
|
192
|
+
* Schema info from ConnectionSchema.
|
|
193
|
+
*/
|
|
194
|
+
export interface Schema {
|
|
195
|
+
/**
|
|
196
|
+
* Schema ID
|
|
197
|
+
*/
|
|
198
|
+
id: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Schema description
|
|
202
|
+
*/
|
|
203
|
+
description: string | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Human-readable label
|
|
207
|
+
*/
|
|
208
|
+
label: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Schema name
|
|
212
|
+
*/
|
|
213
|
+
name: string;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Database configuration for connection creation request.
|
|
220
|
+
*/
|
|
221
|
+
export interface DatabaseConfig {
|
|
222
|
+
/**
|
|
223
|
+
* Database name
|
|
224
|
+
*/
|
|
225
|
+
name: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Description of the database
|
|
229
|
+
*/
|
|
230
|
+
description?: string | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Human-readable label for the database (defaults to name if not set)
|
|
234
|
+
*/
|
|
235
|
+
label?: string | null;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Schema configurations to include (empty = discover all schemas)
|
|
239
|
+
*/
|
|
240
|
+
schemas?: Array<DatabaseConfig.Schema>;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Timezone for the database (e.g., 'UTC', 'America/New_York')
|
|
244
|
+
*/
|
|
245
|
+
timezone?: string | null;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export namespace DatabaseConfig {
|
|
249
|
+
/**
|
|
250
|
+
* Schema configuration for connection creation request.
|
|
251
|
+
*/
|
|
252
|
+
export interface Schema {
|
|
253
|
+
/**
|
|
254
|
+
* Schema name
|
|
255
|
+
*/
|
|
256
|
+
name: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Description of the schema
|
|
260
|
+
*/
|
|
261
|
+
description?: string | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Human-readable label for the schema (defaults to name if not set)
|
|
265
|
+
*/
|
|
266
|
+
label?: string | null;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type ConnectionListResponse = Array<Connection>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* PostgreSQL credential response.
|
|
274
|
+
*/
|
|
275
|
+
export type ConnectionRetrieveCredentialResponse =
|
|
276
|
+
| ConnectionRetrieveCredentialResponse.PostgresCredentialResponse
|
|
277
|
+
| ConnectionRetrieveCredentialResponse.SnowflakeCredentialResponse
|
|
278
|
+
| ConnectionRetrieveCredentialResponse.DatabricksCredentialResponse
|
|
279
|
+
| ConnectionRetrieveCredentialResponse.ClickHouseCredentialResponse
|
|
280
|
+
| ConnectionRetrieveCredentialResponse.MssqlCredentialResponse;
|
|
281
|
+
|
|
282
|
+
export namespace ConnectionRetrieveCredentialResponse {
|
|
283
|
+
/**
|
|
284
|
+
* PostgreSQL credential response.
|
|
285
|
+
*/
|
|
286
|
+
export interface PostgresCredentialResponse {
|
|
287
|
+
/**
|
|
288
|
+
* Database name
|
|
289
|
+
*/
|
|
290
|
+
database: string | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Database host
|
|
294
|
+
*/
|
|
295
|
+
host: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Decrypted password
|
|
299
|
+
*/
|
|
300
|
+
password: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Database port
|
|
304
|
+
*/
|
|
305
|
+
port: number;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Database username
|
|
309
|
+
*/
|
|
310
|
+
username: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Warehouse type
|
|
314
|
+
*/
|
|
315
|
+
warehouse_type: 'postgresql';
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Snowflake credential response.
|
|
320
|
+
*/
|
|
321
|
+
export interface SnowflakeCredentialResponse {
|
|
322
|
+
/**
|
|
323
|
+
* Snowflake account identifier
|
|
324
|
+
*/
|
|
325
|
+
account: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Authentication credentials
|
|
329
|
+
*/
|
|
330
|
+
auth:
|
|
331
|
+
| SnowflakeCredentialResponse.SnowflakePasswordAuthResponse
|
|
332
|
+
| SnowflakeCredentialResponse.SnowflakePrivateKeyAuthResponse;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Snowflake role
|
|
336
|
+
*/
|
|
337
|
+
role: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Snowflake username
|
|
341
|
+
*/
|
|
342
|
+
username: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Compute warehouse name
|
|
346
|
+
*/
|
|
347
|
+
warehouse: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Warehouse type
|
|
351
|
+
*/
|
|
352
|
+
warehouse_type: 'snowflake';
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export namespace SnowflakeCredentialResponse {
|
|
356
|
+
/**
|
|
357
|
+
* Snowflake password authentication response.
|
|
358
|
+
*/
|
|
359
|
+
export interface SnowflakePasswordAuthResponse {
|
|
360
|
+
/**
|
|
361
|
+
* Authentication type
|
|
362
|
+
*/
|
|
363
|
+
auth_type: 'password';
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Decrypted password
|
|
367
|
+
*/
|
|
368
|
+
password: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Snowflake private key authentication response.
|
|
373
|
+
*/
|
|
374
|
+
export interface SnowflakePrivateKeyAuthResponse {
|
|
375
|
+
/**
|
|
376
|
+
* Authentication type
|
|
377
|
+
*/
|
|
378
|
+
auth_type: 'private_key';
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* PEM-encoded private key
|
|
382
|
+
*/
|
|
383
|
+
private_key: string;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Passphrase if key is encrypted
|
|
387
|
+
*/
|
|
388
|
+
private_key_passphrase: string | null;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Databricks credential response.
|
|
394
|
+
*/
|
|
395
|
+
export interface DatabricksCredentialResponse {
|
|
396
|
+
/**
|
|
397
|
+
* Databricks personal access token
|
|
398
|
+
*/
|
|
399
|
+
access_token: string;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* SQL warehouse HTTP path
|
|
403
|
+
*/
|
|
404
|
+
http_path: string;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Databricks server hostname
|
|
408
|
+
*/
|
|
409
|
+
server_hostname: string;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Warehouse type
|
|
413
|
+
*/
|
|
414
|
+
warehouse_type: 'databricks';
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* ClickHouse credential response.
|
|
419
|
+
*/
|
|
420
|
+
export interface ClickHouseCredentialResponse {
|
|
421
|
+
/**
|
|
422
|
+
* Database name
|
|
423
|
+
*/
|
|
424
|
+
database: string | null;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* ClickHouse host
|
|
428
|
+
*/
|
|
429
|
+
host: string;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Decrypted password
|
|
433
|
+
*/
|
|
434
|
+
password: string;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* ClickHouse port
|
|
438
|
+
*/
|
|
439
|
+
port: number;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* ClickHouse username
|
|
443
|
+
*/
|
|
444
|
+
username: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Warehouse type
|
|
448
|
+
*/
|
|
449
|
+
warehouse_type: 'clickhouse';
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Microsoft SQL Server credential response.
|
|
454
|
+
*/
|
|
455
|
+
export interface MssqlCredentialResponse {
|
|
456
|
+
/**
|
|
457
|
+
* Database name
|
|
458
|
+
*/
|
|
459
|
+
database: string | null;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* SQL Server host
|
|
463
|
+
*/
|
|
464
|
+
host: string;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Decrypted password
|
|
468
|
+
*/
|
|
469
|
+
password: string;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* SQL Server port
|
|
473
|
+
*/
|
|
474
|
+
port: number;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* SQL Server username
|
|
478
|
+
*/
|
|
479
|
+
username: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Warehouse type
|
|
483
|
+
*/
|
|
484
|
+
warehouse_type: 'mssql';
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Response for syncing views.
|
|
490
|
+
*
|
|
491
|
+
* Returned after successfully creating a PR with merged ViewSchema files.
|
|
492
|
+
*/
|
|
493
|
+
export interface ConnectionSyncResponse {
|
|
494
|
+
/**
|
|
495
|
+
* GitHub PR number
|
|
496
|
+
*/
|
|
497
|
+
pr_number: number;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* GitHub PR URL
|
|
501
|
+
*/
|
|
502
|
+
pr_url: string;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Number of views in the PR
|
|
506
|
+
*/
|
|
507
|
+
views_updated: number;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export type ConnectionCreateParams =
|
|
511
|
+
| ConnectionCreateParams.PostgresConnectionConfig
|
|
512
|
+
| ConnectionCreateParams.SnowflakeConnectionConfig
|
|
513
|
+
| ConnectionCreateParams.DatabricksConnectionConfig
|
|
514
|
+
| ConnectionCreateParams.ClickHouseConnectionConfig
|
|
515
|
+
| ConnectionCreateParams.MssqlConnectionConfig;
|
|
516
|
+
|
|
517
|
+
export declare namespace ConnectionCreateParams {
|
|
518
|
+
export interface PostgresConnectionConfig {
|
|
519
|
+
/**
|
|
520
|
+
* Databases to include in the connection (at least one required)
|
|
521
|
+
*/
|
|
522
|
+
databases: Array<DatabaseConfig>;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Database host
|
|
526
|
+
*/
|
|
527
|
+
host: string;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Name of the connection
|
|
531
|
+
*/
|
|
532
|
+
name: string;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Database password
|
|
536
|
+
*/
|
|
537
|
+
password: string;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Database username
|
|
541
|
+
*/
|
|
542
|
+
username: string;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Warehouse type
|
|
546
|
+
*/
|
|
547
|
+
warehouse_type: 'postgresql';
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Description of the connection
|
|
551
|
+
*/
|
|
552
|
+
description?: string | null;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Human-readable label for the connection (defaults to name if not set)
|
|
556
|
+
*/
|
|
557
|
+
label?: string | null;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Database port
|
|
561
|
+
*/
|
|
562
|
+
port?: number;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface SnowflakeConnectionConfig {
|
|
566
|
+
/**
|
|
567
|
+
* Snowflake account identifier (e.g., 'xy12345.us-east-1')
|
|
568
|
+
*/
|
|
569
|
+
account: string;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Authentication configuration
|
|
573
|
+
*/
|
|
574
|
+
auth: SnowflakeConnectionConfig.SnowflakePasswordAuth | SnowflakeConnectionConfig.SnowflakePrivateKeyAuth;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Databases to include in the connection (at least one required)
|
|
578
|
+
*/
|
|
579
|
+
databases: Array<DatabaseConfig>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Name of the connection
|
|
583
|
+
*/
|
|
584
|
+
name: string;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Snowflake role
|
|
588
|
+
*/
|
|
589
|
+
role: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Snowflake username
|
|
593
|
+
*/
|
|
594
|
+
username: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Compute warehouse name
|
|
598
|
+
*/
|
|
599
|
+
warehouse: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Warehouse type
|
|
603
|
+
*/
|
|
604
|
+
warehouse_type: 'snowflake';
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Description of the connection
|
|
608
|
+
*/
|
|
609
|
+
description?: string | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Human-readable label for the connection (defaults to name if not set)
|
|
613
|
+
*/
|
|
614
|
+
label?: string | null;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export namespace SnowflakeConnectionConfig {
|
|
618
|
+
/**
|
|
619
|
+
* Snowflake password authentication.
|
|
620
|
+
*/
|
|
621
|
+
export interface SnowflakePasswordAuth {
|
|
622
|
+
/**
|
|
623
|
+
* Authentication type
|
|
624
|
+
*/
|
|
625
|
+
auth_type: 'password';
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Snowflake password
|
|
629
|
+
*/
|
|
630
|
+
password: string;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Snowflake private key authentication.
|
|
635
|
+
*/
|
|
636
|
+
export interface SnowflakePrivateKeyAuth {
|
|
637
|
+
/**
|
|
638
|
+
* Authentication type
|
|
639
|
+
*/
|
|
640
|
+
auth_type: 'private_key';
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* PEM-encoded private key
|
|
644
|
+
*/
|
|
645
|
+
private_key: string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Passphrase if key is encrypted
|
|
649
|
+
*/
|
|
650
|
+
private_key_passphrase?: string | null;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export interface DatabricksConnectionConfig {
|
|
655
|
+
/**
|
|
656
|
+
* Databricks personal access token
|
|
657
|
+
*/
|
|
658
|
+
access_token: string;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Databases to include in the connection (at least one required)
|
|
662
|
+
*/
|
|
663
|
+
databases: Array<DatabaseConfig>;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* SQL warehouse HTTP path (e.g., '/sql/1.0/warehouses/xxx')
|
|
667
|
+
*/
|
|
668
|
+
http_path: string;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Name of the connection
|
|
672
|
+
*/
|
|
673
|
+
name: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Databricks server hostname (e.g., 'dbc-xxx.cloud.databricks.com')
|
|
677
|
+
*/
|
|
678
|
+
server_hostname: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Warehouse type
|
|
682
|
+
*/
|
|
683
|
+
warehouse_type: 'databricks';
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Description of the connection
|
|
687
|
+
*/
|
|
688
|
+
description?: string | null;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Human-readable label for the connection (defaults to name if not set)
|
|
692
|
+
*/
|
|
693
|
+
label?: string | null;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface ClickHouseConnectionConfig {
|
|
697
|
+
/**
|
|
698
|
+
* Databases to include in the connection (at least one required)
|
|
699
|
+
*/
|
|
700
|
+
databases: Array<DatabaseConfig>;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* ClickHouse host
|
|
704
|
+
*/
|
|
705
|
+
host: string;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Name of the connection
|
|
709
|
+
*/
|
|
710
|
+
name: string;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* ClickHouse password
|
|
714
|
+
*/
|
|
715
|
+
password: string;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* ClickHouse username
|
|
719
|
+
*/
|
|
720
|
+
username: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Warehouse type
|
|
724
|
+
*/
|
|
725
|
+
warehouse_type: 'clickhouse';
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Description of the connection
|
|
729
|
+
*/
|
|
730
|
+
description?: string | null;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Human-readable label for the connection (defaults to name if not set)
|
|
734
|
+
*/
|
|
735
|
+
label?: string | null;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* ClickHouse port
|
|
739
|
+
*/
|
|
740
|
+
port?: number;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface MssqlConnectionConfig {
|
|
744
|
+
/**
|
|
745
|
+
* Databases to include in the connection (at least one required)
|
|
746
|
+
*/
|
|
747
|
+
databases: Array<DatabaseConfig>;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* SQL Server host
|
|
751
|
+
*/
|
|
752
|
+
host: string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Name of the connection
|
|
756
|
+
*/
|
|
757
|
+
name: string;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* SQL Server password
|
|
761
|
+
*/
|
|
762
|
+
password: string;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* SQL Server username
|
|
766
|
+
*/
|
|
767
|
+
username: string;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Warehouse type
|
|
771
|
+
*/
|
|
772
|
+
warehouse_type: 'mssql';
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Description of the connection
|
|
776
|
+
*/
|
|
777
|
+
description?: string | null;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Human-readable label for the connection (defaults to name if not set)
|
|
781
|
+
*/
|
|
782
|
+
label?: string | null;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* SQL Server port
|
|
786
|
+
*/
|
|
787
|
+
port?: number;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
Connections.Databases = Databases;
|
|
792
|
+
|
|
793
|
+
export declare namespace Connections {
|
|
794
|
+
export {
|
|
795
|
+
type Connection as Connection,
|
|
796
|
+
type DatabaseConfig as DatabaseConfig,
|
|
797
|
+
type ConnectionListResponse as ConnectionListResponse,
|
|
798
|
+
type ConnectionRetrieveCredentialResponse as ConnectionRetrieveCredentialResponse,
|
|
799
|
+
type ConnectionSyncResponse as ConnectionSyncResponse,
|
|
800
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
export { Databases as Databases, type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
804
|
+
}
|