@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,158 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../../../core/uploads';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { multipartFormRequestOptions } from '../../../internal/uploads';
|
|
8
|
+
|
|
9
|
+
export class Import extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Import tenants from a CSV file using upsert semantics.
|
|
12
|
+
*
|
|
13
|
+
* Expected CSV format:
|
|
14
|
+
*
|
|
15
|
+
* - tenant_key (required): Unique tenant identifier
|
|
16
|
+
* - tenant_name (optional): Human-readable name
|
|
17
|
+
* - group_names (optional): Comma-separated list of group names
|
|
18
|
+
*
|
|
19
|
+
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
20
|
+
* added additively (not replaced) and auto-created if needed.
|
|
21
|
+
*
|
|
22
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
23
|
+
*
|
|
24
|
+
* Raises: ValidationError: If CSV format is invalid (400)
|
|
25
|
+
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
26
|
+
*/
|
|
27
|
+
fromCsv(body: ImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenants> {
|
|
28
|
+
return this._client.post(
|
|
29
|
+
'/api/v1/tenants/import/csv',
|
|
30
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Import tenants from a warehouse table using upsert semantics.
|
|
36
|
+
*
|
|
37
|
+
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
38
|
+
* added additively (not replaced).
|
|
39
|
+
*
|
|
40
|
+
* Streams data from the warehouse in batches to handle large datasets without
|
|
41
|
+
* loading everything into memory.
|
|
42
|
+
*
|
|
43
|
+
* For tenants with groups, groups are aggregated per tenant key and auto-created
|
|
44
|
+
* if they don't exist.
|
|
45
|
+
*
|
|
46
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
47
|
+
*
|
|
48
|
+
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
49
|
+
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
50
|
+
*/
|
|
51
|
+
fromWarehouse(body: ImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenants> {
|
|
52
|
+
return this._client.post('/api/v1/tenants/import/warehouse', { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Response model for tenant import operation.
|
|
58
|
+
*/
|
|
59
|
+
export interface ImportTenants {
|
|
60
|
+
/**
|
|
61
|
+
* Unique tenant keys found in source
|
|
62
|
+
*/
|
|
63
|
+
total_found: number;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* New tenants created
|
|
67
|
+
*/
|
|
68
|
+
total_imported: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Existing tenants updated
|
|
72
|
+
*/
|
|
73
|
+
total_updated: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Tenant-specific errors
|
|
77
|
+
*/
|
|
78
|
+
errors?: Array<ImportTenants.Error>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Groups that were auto-created
|
|
82
|
+
*/
|
|
83
|
+
groups_created?: Array<string>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace ImportTenants {
|
|
87
|
+
/**
|
|
88
|
+
* Error for a single tenant during import.
|
|
89
|
+
*/
|
|
90
|
+
export interface Error {
|
|
91
|
+
/**
|
|
92
|
+
* Error code
|
|
93
|
+
*/
|
|
94
|
+
code: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Error message
|
|
98
|
+
*/
|
|
99
|
+
message: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Tenant key that failed
|
|
103
|
+
*/
|
|
104
|
+
tenant_key: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ImportFromCsvParams {
|
|
109
|
+
/**
|
|
110
|
+
* CSV file with tenant data
|
|
111
|
+
*/
|
|
112
|
+
file: Uploadable;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ImportFromWarehouseParams {
|
|
116
|
+
/**
|
|
117
|
+
* Warehouse connection ID to query
|
|
118
|
+
*/
|
|
119
|
+
connection_id: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Database name containing the tenant table
|
|
123
|
+
*/
|
|
124
|
+
database: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Schema name containing the tenant table
|
|
128
|
+
*/
|
|
129
|
+
schema: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Table name containing tenant data
|
|
133
|
+
*/
|
|
134
|
+
table: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Column name for tenant key
|
|
138
|
+
*/
|
|
139
|
+
tenant_key_column: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Column name for tenant group (optional)
|
|
143
|
+
*/
|
|
144
|
+
tenant_group_column?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Column name for tenant display name (optional)
|
|
148
|
+
*/
|
|
149
|
+
tenant_name_column?: string | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare namespace Import {
|
|
153
|
+
export {
|
|
154
|
+
type ImportTenants as ImportTenants,
|
|
155
|
+
type ImportFromCsvParams as ImportFromCsvParams,
|
|
156
|
+
type ImportFromWarehouseParams as ImportFromWarehouseParams,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Batch,
|
|
5
|
+
type BatchTenantError,
|
|
6
|
+
type BatchTenantSuccess,
|
|
7
|
+
type BatchCreateResponse,
|
|
8
|
+
type BatchUpdateResponse,
|
|
9
|
+
type BatchDeleteResponse,
|
|
10
|
+
type BatchCreateParams,
|
|
11
|
+
type BatchUpdateParams,
|
|
12
|
+
type BatchDeleteParams,
|
|
13
|
+
} from './batch';
|
|
14
|
+
export {
|
|
15
|
+
Import,
|
|
16
|
+
type ImportTenants,
|
|
17
|
+
type ImportFromCsvParams,
|
|
18
|
+
type ImportFromWarehouseParams,
|
|
19
|
+
} from './import';
|
|
20
|
+
export {
|
|
21
|
+
Tenants,
|
|
22
|
+
type CreateTenant,
|
|
23
|
+
type Tenant,
|
|
24
|
+
type TenantListResponse,
|
|
25
|
+
type TenantCreateParams,
|
|
26
|
+
type TenantUpdateParams,
|
|
27
|
+
} from './tenants';
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as BatchAPI from './batch';
|
|
5
|
+
import {
|
|
6
|
+
Batch,
|
|
7
|
+
BatchCreateParams,
|
|
8
|
+
BatchCreateResponse,
|
|
9
|
+
BatchDeleteParams,
|
|
10
|
+
BatchDeleteResponse,
|
|
11
|
+
BatchTenantError,
|
|
12
|
+
BatchTenantSuccess,
|
|
13
|
+
BatchUpdateParams,
|
|
14
|
+
BatchUpdateResponse,
|
|
15
|
+
} from './batch';
|
|
16
|
+
import * as ImportAPI from './import';
|
|
17
|
+
import { Import, ImportFromCsvParams, ImportFromWarehouseParams, ImportTenants } from './import';
|
|
18
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
19
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
20
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
21
|
+
import { path } from '../../../internal/utils/path';
|
|
22
|
+
|
|
23
|
+
export class Tenants extends APIResource {
|
|
24
|
+
batch: BatchAPI.Batch = new BatchAPI.Batch(this._client);
|
|
25
|
+
import: ImportAPI.Import = new ImportAPI.Import(this._client);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create a new tenant.
|
|
29
|
+
*
|
|
30
|
+
* Validates the client's tenancy type and creates the tenant accordingly:
|
|
31
|
+
*
|
|
32
|
+
* - ROW tenancy: Creates tenant with optional group associations
|
|
33
|
+
* - DATABASE tenancy: Requires database_name, creates tenant with database
|
|
34
|
+
* association
|
|
35
|
+
* - NONE tenancy: Returns error (tenant creation not allowed)
|
|
36
|
+
*
|
|
37
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
38
|
+
*/
|
|
39
|
+
create(body: TenantCreateParams, options?: RequestOptions): APIPromise<Tenant> {
|
|
40
|
+
return this._client.post('/api/v1/tenants', { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Get a single tenant by ID.
|
|
45
|
+
*
|
|
46
|
+
* Returns the tenant with associated groups and databases.
|
|
47
|
+
*
|
|
48
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
49
|
+
*
|
|
50
|
+
* Raises: TenantNotFoundError: If tenant doesn't exist (404)
|
|
51
|
+
*/
|
|
52
|
+
retrieve(tenantID: string, options?: RequestOptions): APIPromise<Tenant> {
|
|
53
|
+
return this._client.get(path`/api/v1/tenants/${tenantID}`, options);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Update a tenant.
|
|
58
|
+
*
|
|
59
|
+
* Updates tenant metadata, group associations, and/or database associations. Group
|
|
60
|
+
* associations use replace semantics:
|
|
61
|
+
*
|
|
62
|
+
* - Omit group_names to leave existing associations unchanged
|
|
63
|
+
* - Pass empty list to remove all group associations
|
|
64
|
+
* - Pass list of names to replace all associations
|
|
65
|
+
*
|
|
66
|
+
* Database associations (DATABASE tenancy only):
|
|
67
|
+
*
|
|
68
|
+
* - Both connection_id and database_name must be provided together
|
|
69
|
+
* - Replaces existing database association
|
|
70
|
+
*
|
|
71
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
72
|
+
*
|
|
73
|
+
* Raises: TenantNotFoundError: If tenant doesn't exist (404)
|
|
74
|
+
*/
|
|
75
|
+
update(tenantID: string, body: TenantUpdateParams, options?: RequestOptions): APIPromise<Tenant> {
|
|
76
|
+
return this._client.patch(path`/api/v1/tenants/${tenantID}`, { body, ...options });
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* List all tenants for the client.
|
|
81
|
+
*
|
|
82
|
+
* Returns tenants with their associated groups and databases.
|
|
83
|
+
*
|
|
84
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
85
|
+
*/
|
|
86
|
+
list(options?: RequestOptions): APIPromise<TenantListResponse> {
|
|
87
|
+
return this._client.get('/api/v1/tenants', options);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Delete a tenant.
|
|
92
|
+
*
|
|
93
|
+
* Soft-deletes the tenant and its group/database associations.
|
|
94
|
+
*
|
|
95
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
96
|
+
*
|
|
97
|
+
* Raises: TenantNotFoundError: If tenant doesn't exist (404)
|
|
98
|
+
*/
|
|
99
|
+
delete(tenantID: string, options?: RequestOptions): APIPromise<void> {
|
|
100
|
+
return this._client.delete(path`/api/v1/tenants/${tenantID}`, {
|
|
101
|
+
...options,
|
|
102
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Request model for creating a single tenant.
|
|
109
|
+
*/
|
|
110
|
+
export interface CreateTenant {
|
|
111
|
+
/**
|
|
112
|
+
* Unique tenant identifier within the client
|
|
113
|
+
*/
|
|
114
|
+
tenant_key: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Connection ID (required for DATABASE tenancy type)
|
|
118
|
+
*/
|
|
119
|
+
connection_id?: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Database name (required for DATABASE tenancy type)
|
|
123
|
+
*/
|
|
124
|
+
database_name?: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* List of group names to associate with the tenant
|
|
128
|
+
*/
|
|
129
|
+
group_names?: Array<string> | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Human-readable tenant name
|
|
133
|
+
*/
|
|
134
|
+
tenant_name?: string | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Response model for a single tenant.
|
|
139
|
+
*/
|
|
140
|
+
export interface Tenant {
|
|
141
|
+
/**
|
|
142
|
+
* Tenant ID
|
|
143
|
+
*/
|
|
144
|
+
id: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Creation timestamp
|
|
148
|
+
*/
|
|
149
|
+
created_at: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Associated databases
|
|
153
|
+
*/
|
|
154
|
+
databases: Array<Tenant.Database>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Associated groups
|
|
158
|
+
*/
|
|
159
|
+
groups: Array<Tenant.Group>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Human-readable tenant name
|
|
163
|
+
*/
|
|
164
|
+
name: string | null;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Unique tenant identifier
|
|
168
|
+
*/
|
|
169
|
+
tenant_key: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Last update timestamp
|
|
173
|
+
*/
|
|
174
|
+
updated_at: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace Tenant {
|
|
178
|
+
/**
|
|
179
|
+
* Database information in tenant responses.
|
|
180
|
+
*/
|
|
181
|
+
export interface Database {
|
|
182
|
+
/**
|
|
183
|
+
* Database ID
|
|
184
|
+
*/
|
|
185
|
+
id: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Database name
|
|
189
|
+
*/
|
|
190
|
+
name: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Group information in tenant responses.
|
|
195
|
+
*/
|
|
196
|
+
export interface Group {
|
|
197
|
+
/**
|
|
198
|
+
* Group ID
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Group name
|
|
204
|
+
*/
|
|
205
|
+
name: string;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type TenantListResponse = Array<Tenant>;
|
|
210
|
+
|
|
211
|
+
export interface TenantCreateParams {
|
|
212
|
+
/**
|
|
213
|
+
* Unique tenant identifier within the client
|
|
214
|
+
*/
|
|
215
|
+
tenant_key: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Connection ID (required for DATABASE tenancy type)
|
|
219
|
+
*/
|
|
220
|
+
connection_id?: string | null;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Database name (required for DATABASE tenancy type)
|
|
224
|
+
*/
|
|
225
|
+
database_name?: string | null;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* List of group names to associate with the tenant
|
|
229
|
+
*/
|
|
230
|
+
group_names?: Array<string> | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Human-readable tenant name
|
|
234
|
+
*/
|
|
235
|
+
tenant_name?: string | null;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface TenantUpdateParams {
|
|
239
|
+
/**
|
|
240
|
+
* Connection ID for database association (required with database_name)
|
|
241
|
+
*/
|
|
242
|
+
connection_id?: string | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Database name for association (required with connection_id)
|
|
246
|
+
*/
|
|
247
|
+
database_name?: string | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* New list of group names (replaces all existing associations)
|
|
251
|
+
*/
|
|
252
|
+
group_names?: Array<string> | null;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* New human-readable tenant name
|
|
256
|
+
*/
|
|
257
|
+
tenant_name?: string | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
Tenants.Batch = Batch;
|
|
261
|
+
Tenants.Import = Import;
|
|
262
|
+
|
|
263
|
+
export declare namespace Tenants {
|
|
264
|
+
export {
|
|
265
|
+
type CreateTenant as CreateTenant,
|
|
266
|
+
type Tenant as Tenant,
|
|
267
|
+
type TenantListResponse as TenantListResponse,
|
|
268
|
+
type TenantCreateParams as TenantCreateParams,
|
|
269
|
+
type TenantUpdateParams as TenantUpdateParams,
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export {
|
|
273
|
+
Batch as Batch,
|
|
274
|
+
type BatchTenantError as BatchTenantError,
|
|
275
|
+
type BatchTenantSuccess as BatchTenantSuccess,
|
|
276
|
+
type BatchCreateResponse as BatchCreateResponse,
|
|
277
|
+
type BatchUpdateResponse as BatchUpdateResponse,
|
|
278
|
+
type BatchDeleteResponse as BatchDeleteResponse,
|
|
279
|
+
type BatchCreateParams as BatchCreateParams,
|
|
280
|
+
type BatchUpdateParams as BatchUpdateParams,
|
|
281
|
+
type BatchDeleteParams as BatchDeleteParams,
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export {
|
|
285
|
+
Import as Import,
|
|
286
|
+
type ImportTenants as ImportTenants,
|
|
287
|
+
type ImportFromCsvParams as ImportFromCsvParams,
|
|
288
|
+
type ImportFromWarehouseParams as ImportFromWarehouseParams,
|
|
289
|
+
};
|
|
290
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
5
|
+
import { APIKey, APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeys } from './api-keys';
|
|
6
|
+
import * as MeAPI from './me';
|
|
7
|
+
import { ClientUser, ClientUserRole, Me, MeGetConnectionsResponse } from './me';
|
|
8
|
+
import * as ConnectionsAPI from './connections/connections';
|
|
9
|
+
import {
|
|
10
|
+
Connection,
|
|
11
|
+
ConnectionCreateParams,
|
|
12
|
+
ConnectionListResponse,
|
|
13
|
+
ConnectionRetrieveCredentialResponse,
|
|
14
|
+
ConnectionSyncResponse,
|
|
15
|
+
Connections,
|
|
16
|
+
DatabaseConfig,
|
|
17
|
+
} from './connections/connections';
|
|
18
|
+
import * as GitHubAPI from './github/github';
|
|
19
|
+
import {
|
|
20
|
+
GitHub,
|
|
21
|
+
GitHubCheckInstallationsResponse,
|
|
22
|
+
GitHubDisconnectResponse,
|
|
23
|
+
GitHubGetStatusResponse,
|
|
24
|
+
GitHubSyncResponse,
|
|
25
|
+
} from './github/github';
|
|
26
|
+
import * as GroupsAPI from './groups/groups';
|
|
27
|
+
import {
|
|
28
|
+
GroupCreateParams,
|
|
29
|
+
GroupDetail,
|
|
30
|
+
GroupListResponse,
|
|
31
|
+
GroupUpdateParams,
|
|
32
|
+
Groups,
|
|
33
|
+
} from './groups/groups';
|
|
34
|
+
import * as OrgAPI from './org/org';
|
|
35
|
+
import { Org } from './org/org';
|
|
36
|
+
import * as TenantsAPI from './tenants/tenants';
|
|
37
|
+
import {
|
|
38
|
+
CreateTenant,
|
|
39
|
+
Tenant,
|
|
40
|
+
TenantCreateParams,
|
|
41
|
+
TenantListResponse,
|
|
42
|
+
TenantUpdateParams,
|
|
43
|
+
Tenants,
|
|
44
|
+
} from './tenants/tenants';
|
|
45
|
+
|
|
46
|
+
export class V1 extends APIResource {
|
|
47
|
+
apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
|
|
48
|
+
connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
|
|
49
|
+
github: GitHubAPI.GitHub = new GitHubAPI.GitHub(this._client);
|
|
50
|
+
groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
|
|
51
|
+
me: MeAPI.Me = new MeAPI.Me(this._client);
|
|
52
|
+
org: OrgAPI.Org = new OrgAPI.Org(this._client);
|
|
53
|
+
tenants: TenantsAPI.Tenants = new TenantsAPI.Tenants(this._client);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
V1.APIKeys = APIKeys;
|
|
57
|
+
V1.Connections = Connections;
|
|
58
|
+
V1.GitHub = GitHub;
|
|
59
|
+
V1.Groups = Groups;
|
|
60
|
+
V1.Me = Me;
|
|
61
|
+
V1.Org = Org;
|
|
62
|
+
V1.Tenants = Tenants;
|
|
63
|
+
|
|
64
|
+
export declare namespace V1 {
|
|
65
|
+
export {
|
|
66
|
+
APIKeys as APIKeys,
|
|
67
|
+
type APIKey as APIKey,
|
|
68
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
69
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
70
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
Connections as Connections,
|
|
75
|
+
type Connection as Connection,
|
|
76
|
+
type DatabaseConfig as DatabaseConfig,
|
|
77
|
+
type ConnectionListResponse as ConnectionListResponse,
|
|
78
|
+
type ConnectionRetrieveCredentialResponse as ConnectionRetrieveCredentialResponse,
|
|
79
|
+
type ConnectionSyncResponse as ConnectionSyncResponse,
|
|
80
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
GitHub as GitHub,
|
|
85
|
+
type GitHubCheckInstallationsResponse as GitHubCheckInstallationsResponse,
|
|
86
|
+
type GitHubDisconnectResponse as GitHubDisconnectResponse,
|
|
87
|
+
type GitHubGetStatusResponse as GitHubGetStatusResponse,
|
|
88
|
+
type GitHubSyncResponse as GitHubSyncResponse,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
Groups as Groups,
|
|
93
|
+
type GroupDetail as GroupDetail,
|
|
94
|
+
type GroupListResponse as GroupListResponse,
|
|
95
|
+
type GroupCreateParams as GroupCreateParams,
|
|
96
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export {
|
|
100
|
+
Me as Me,
|
|
101
|
+
type ClientUser as ClientUser,
|
|
102
|
+
type ClientUserRole as ClientUserRole,
|
|
103
|
+
type MeGetConnectionsResponse as MeGetConnectionsResponse,
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export { Org as Org };
|
|
107
|
+
|
|
108
|
+
export {
|
|
109
|
+
Tenants as Tenants,
|
|
110
|
+
type CreateTenant as CreateTenant,
|
|
111
|
+
type Tenant as Tenant,
|
|
112
|
+
type TenantListResponse as TenantListResponse,
|
|
113
|
+
type TenantCreateParams as TenantCreateParams,
|
|
114
|
+
type TenantUpdateParams as TenantUpdateParams,
|
|
115
|
+
};
|
|
116
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.1.2'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/uploads.js"), exports);
|
|
6
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
|
package/uploads.mjs
ADDED
package/uploads.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/version.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
ADDED
package/version.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
ADDED
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
ADDED
package/version.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|