@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,42 @@
|
|
|
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 { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Databases extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Delete a schema from a connection.
|
|
12
|
+
*
|
|
13
|
+
* Soft-deletes the schema record, setting deleted_at and deleted_by fields. The
|
|
14
|
+
* connection_id and database_id path parameters provide context for the resource
|
|
15
|
+
* hierarchy, though the schema_id alone uniquely identifies the record.
|
|
16
|
+
*
|
|
17
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
18
|
+
*
|
|
19
|
+
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
20
|
+
*/
|
|
21
|
+
deleteSchema(
|
|
22
|
+
schemaID: string,
|
|
23
|
+
params: DatabaseDeleteSchemaParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<void> {
|
|
26
|
+
const { connection_id, database_id } = params;
|
|
27
|
+
return this._client.delete(
|
|
28
|
+
path`/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`,
|
|
29
|
+
{ ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface DatabaseDeleteSchemaParams {
|
|
35
|
+
connection_id: string;
|
|
36
|
+
|
|
37
|
+
database_id: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare namespace Databases {
|
|
41
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Connections,
|
|
5
|
+
type Connection,
|
|
6
|
+
type DatabaseConfig,
|
|
7
|
+
type ConnectionListResponse,
|
|
8
|
+
type ConnectionRetrieveCredentialResponse,
|
|
9
|
+
type ConnectionSyncResponse,
|
|
10
|
+
type ConnectionCreateParams,
|
|
11
|
+
} from './connections';
|
|
12
|
+
export { Databases, type DatabaseDeleteSchemaParams } from './databases';
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Admin extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the GitHub integration status for a specific client. Admin access
|
|
11
|
+
* required.
|
|
12
|
+
*/
|
|
13
|
+
getIntegrationStatus(
|
|
14
|
+
clientID: string,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): APIPromise<AdminGetIntegrationStatusResponse> {
|
|
17
|
+
return this._client.get(path`/api/v1/github/admin/status/${clientID}`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response for client GitHub integration status.
|
|
23
|
+
*/
|
|
24
|
+
export interface AdminGetIntegrationStatusResponse {
|
|
25
|
+
client_id: string;
|
|
26
|
+
|
|
27
|
+
connected: boolean;
|
|
28
|
+
|
|
29
|
+
oauth_completed: boolean;
|
|
30
|
+
|
|
31
|
+
connection_status?: string | null;
|
|
32
|
+
|
|
33
|
+
created_at?: string | null;
|
|
34
|
+
|
|
35
|
+
github_username?: string | null;
|
|
36
|
+
|
|
37
|
+
installation_id?: number | null;
|
|
38
|
+
|
|
39
|
+
last_sync_at?: string | null;
|
|
40
|
+
|
|
41
|
+
repository?: string | null;
|
|
42
|
+
|
|
43
|
+
repository_selection_pending?: boolean;
|
|
44
|
+
|
|
45
|
+
scaffolding_branch?: string | null;
|
|
46
|
+
|
|
47
|
+
scaffolding_pr_url?: string | null;
|
|
48
|
+
|
|
49
|
+
scaffolding_status?: string | null;
|
|
50
|
+
|
|
51
|
+
updated_at?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare namespace Admin {
|
|
55
|
+
export { type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
56
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AdminAPI from './admin';
|
|
5
|
+
import { Admin, AdminGetIntegrationStatusResponse } from './admin';
|
|
6
|
+
import * as ReposAPI from './repos';
|
|
7
|
+
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from './repos';
|
|
8
|
+
import * as ScaffoldAPI from './scaffold';
|
|
9
|
+
import { Scaffold, ScaffoldGetStatusResponse, ScaffoldTrigger } from './scaffold';
|
|
10
|
+
import * as WebhooksAPI from './webhooks';
|
|
11
|
+
import { WebhookPingResponse, Webhooks } from './webhooks';
|
|
12
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
13
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
14
|
+
|
|
15
|
+
export class GitHub extends APIResource {
|
|
16
|
+
repos: ReposAPI.Repos = new ReposAPI.Repos(this._client);
|
|
17
|
+
scaffold: ScaffoldAPI.Scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
18
|
+
webhooks: WebhooksAPI.Webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
19
|
+
admin: AdminAPI.Admin = new AdminAPI.Admin(this._client);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Checks if the GitHub App is already installed on any organizations/accounts.
|
|
23
|
+
*/
|
|
24
|
+
checkInstallations(options?: RequestOptions): APIPromise<GitHubCheckInstallationsResponse> {
|
|
25
|
+
return this._client.get('/api/v1/github/check-installations', options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Disconnects the GitHub connection.
|
|
30
|
+
*/
|
|
31
|
+
disconnect(options?: RequestOptions): APIPromise<GitHubDisconnectResponse> {
|
|
32
|
+
return this._client.post('/api/v1/github/disconnect', options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Returns the current GitHub connection status for the client.
|
|
37
|
+
*/
|
|
38
|
+
getStatus(options?: RequestOptions): APIPromise<GitHubGetStatusResponse> {
|
|
39
|
+
return this._client.get('/api/v1/github/status', options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Verifies the GitHub connection and updates the last sync timestamp.
|
|
44
|
+
*/
|
|
45
|
+
sync(options?: RequestOptions): APIPromise<GitHubSyncResponse> {
|
|
46
|
+
return this._client.post('/api/v1/github/sync', options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Response for checking existing installations.
|
|
52
|
+
*/
|
|
53
|
+
export interface GitHubCheckInstallationsResponse {
|
|
54
|
+
has_existing_installation: boolean;
|
|
55
|
+
|
|
56
|
+
installations?: Array<GitHubCheckInstallationsResponse.Installation>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export namespace GitHubCheckInstallationsResponse {
|
|
60
|
+
/**
|
|
61
|
+
* Information about an existing GitHub App installation.
|
|
62
|
+
*/
|
|
63
|
+
export interface Installation {
|
|
64
|
+
account_login: string;
|
|
65
|
+
|
|
66
|
+
account_type: string;
|
|
67
|
+
|
|
68
|
+
installation_id: number;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Response for disconnecting GitHub.
|
|
74
|
+
*/
|
|
75
|
+
export interface GitHubDisconnectResponse {
|
|
76
|
+
message: string;
|
|
77
|
+
|
|
78
|
+
success: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Response for connection status.
|
|
83
|
+
*/
|
|
84
|
+
export interface GitHubGetStatusResponse {
|
|
85
|
+
connected: boolean;
|
|
86
|
+
|
|
87
|
+
default_branch?: string | null;
|
|
88
|
+
|
|
89
|
+
last_sync_at?: string | null;
|
|
90
|
+
|
|
91
|
+
last_used_at?: string | null;
|
|
92
|
+
|
|
93
|
+
owner?: string | null;
|
|
94
|
+
|
|
95
|
+
repository?: string | null;
|
|
96
|
+
|
|
97
|
+
scaffolding_pr_url?: string | null;
|
|
98
|
+
|
|
99
|
+
scaffolding_status?: string | null;
|
|
100
|
+
|
|
101
|
+
status?: string | null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Response for sync operation.
|
|
106
|
+
*/
|
|
107
|
+
export interface GitHubSyncResponse {
|
|
108
|
+
last_sync_at: string;
|
|
109
|
+
|
|
110
|
+
message: string;
|
|
111
|
+
|
|
112
|
+
success: boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
GitHub.Repos = Repos;
|
|
116
|
+
GitHub.Scaffold = Scaffold;
|
|
117
|
+
GitHub.Webhooks = Webhooks;
|
|
118
|
+
GitHub.Admin = Admin;
|
|
119
|
+
|
|
120
|
+
export declare namespace GitHub {
|
|
121
|
+
export {
|
|
122
|
+
type GitHubCheckInstallationsResponse as GitHubCheckInstallationsResponse,
|
|
123
|
+
type GitHubDisconnectResponse as GitHubDisconnectResponse,
|
|
124
|
+
type GitHubGetStatusResponse as GitHubGetStatusResponse,
|
|
125
|
+
type GitHubSyncResponse as GitHubSyncResponse,
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
Repos as Repos,
|
|
130
|
+
type Repository as Repository,
|
|
131
|
+
type RepoListResponse as RepoListResponse,
|
|
132
|
+
type RepoSelectResponse as RepoSelectResponse,
|
|
133
|
+
type RepoSelectParams as RepoSelectParams,
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export {
|
|
137
|
+
Scaffold as Scaffold,
|
|
138
|
+
type ScaffoldTrigger as ScaffoldTrigger,
|
|
139
|
+
type ScaffoldGetStatusResponse as ScaffoldGetStatusResponse,
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export { Webhooks as Webhooks, type WebhookPingResponse as WebhookPingResponse };
|
|
143
|
+
|
|
144
|
+
export { Admin as Admin, type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
145
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Admin, type AdminGetIntegrationStatusResponse } from './admin';
|
|
4
|
+
export {
|
|
5
|
+
GitHub,
|
|
6
|
+
type GitHubCheckInstallationsResponse,
|
|
7
|
+
type GitHubDisconnectResponse,
|
|
8
|
+
type GitHubGetStatusResponse,
|
|
9
|
+
type GitHubSyncResponse,
|
|
10
|
+
} from './github';
|
|
11
|
+
export {
|
|
12
|
+
Repos,
|
|
13
|
+
type Repository,
|
|
14
|
+
type RepoListResponse,
|
|
15
|
+
type RepoSelectResponse,
|
|
16
|
+
type RepoSelectParams,
|
|
17
|
+
} from './repos';
|
|
18
|
+
export { Scaffold, type ScaffoldTrigger, type ScaffoldGetStatusResponse } from './scaffold';
|
|
19
|
+
export { Webhooks, type WebhookPingResponse } from './webhooks';
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Repos extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List repositories accessible to the GitHub App installation.
|
|
11
|
+
*/
|
|
12
|
+
list(options?: RequestOptions): APIPromise<RepoListResponse> {
|
|
13
|
+
return this._client.get('/api/v1/github/repos', options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Select a repository for the Kater workspace.
|
|
18
|
+
*/
|
|
19
|
+
select(repoID: number, body: RepoSelectParams, options?: RequestOptions): APIPromise<RepoSelectResponse> {
|
|
20
|
+
return this._client.post(path`/api/v1/github/repos/${repoID}/select`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Repository information response.
|
|
26
|
+
*/
|
|
27
|
+
export interface Repository {
|
|
28
|
+
id: number;
|
|
29
|
+
|
|
30
|
+
default_branch: string;
|
|
31
|
+
|
|
32
|
+
full_name: string;
|
|
33
|
+
|
|
34
|
+
has_kater_structure: boolean;
|
|
35
|
+
|
|
36
|
+
html_url: string;
|
|
37
|
+
|
|
38
|
+
is_empty: boolean;
|
|
39
|
+
|
|
40
|
+
name: string;
|
|
41
|
+
|
|
42
|
+
owner: string;
|
|
43
|
+
|
|
44
|
+
private: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* List of repositories response.
|
|
49
|
+
*/
|
|
50
|
+
export interface RepoListResponse {
|
|
51
|
+
repositories: Array<Repository>;
|
|
52
|
+
|
|
53
|
+
total_count: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Repository selection response.
|
|
58
|
+
*/
|
|
59
|
+
export interface RepoSelectResponse {
|
|
60
|
+
has_existing_structure: boolean;
|
|
61
|
+
|
|
62
|
+
message: string;
|
|
63
|
+
|
|
64
|
+
needs_scaffolding: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Repository information response.
|
|
68
|
+
*/
|
|
69
|
+
repository: Repository;
|
|
70
|
+
|
|
71
|
+
success: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface RepoSelectParams {
|
|
75
|
+
use_existing_structure?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace Repos {
|
|
79
|
+
export {
|
|
80
|
+
type Repository as Repository,
|
|
81
|
+
type RepoListResponse as RepoListResponse,
|
|
82
|
+
type RepoSelectResponse as RepoSelectResponse,
|
|
83
|
+
type RepoSelectParams as RepoSelectParams,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Scaffold extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the current scaffolding status for the connected repository.
|
|
10
|
+
*/
|
|
11
|
+
getStatus(options?: RequestOptions): APIPromise<ScaffoldGetStatusResponse> {
|
|
12
|
+
return this._client.get('/api/v1/github/scaffold/status', options);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Clean up partial state and retry scaffolding from scratch.
|
|
17
|
+
*/
|
|
18
|
+
retry(options?: RequestOptions): APIPromise<ScaffoldTrigger> {
|
|
19
|
+
return this._client.post('/api/v1/github/scaffold/retry', options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create the Kater folder structure and PR in the selected repository.
|
|
24
|
+
*/
|
|
25
|
+
trigger(options?: RequestOptions): APIPromise<ScaffoldTrigger> {
|
|
26
|
+
return this._client.post('/api/v1/github/scaffold', options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Response from triggering scaffolding.
|
|
32
|
+
*/
|
|
33
|
+
export interface ScaffoldTrigger {
|
|
34
|
+
message: string;
|
|
35
|
+
|
|
36
|
+
status: string;
|
|
37
|
+
|
|
38
|
+
success: boolean;
|
|
39
|
+
|
|
40
|
+
branch?: string | null;
|
|
41
|
+
|
|
42
|
+
error?: string | null;
|
|
43
|
+
|
|
44
|
+
pr_number?: number | null;
|
|
45
|
+
|
|
46
|
+
pr_url?: string | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Response from scaffolding status check.
|
|
51
|
+
*/
|
|
52
|
+
export interface ScaffoldGetStatusResponse {
|
|
53
|
+
status: string;
|
|
54
|
+
|
|
55
|
+
branch?: string | null;
|
|
56
|
+
|
|
57
|
+
error?: string | null;
|
|
58
|
+
|
|
59
|
+
pr_number?: number | null;
|
|
60
|
+
|
|
61
|
+
pr_url?: string | null;
|
|
62
|
+
|
|
63
|
+
scaffolded_at?: string | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare namespace Scaffold {
|
|
67
|
+
export {
|
|
68
|
+
type ScaffoldTrigger as ScaffoldTrigger,
|
|
69
|
+
type ScaffoldGetStatusResponse as ScaffoldGetStatusResponse,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Webhooks extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Simple health check for the webhook receiver.
|
|
10
|
+
*/
|
|
11
|
+
ping(options?: RequestOptions): APIPromise<WebhookPingResponse> {
|
|
12
|
+
return this._client.get('/api/v1/github/webhooks/ping', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type WebhookPingResponse = { [key: string]: string };
|
|
17
|
+
|
|
18
|
+
export declare namespace Webhooks {
|
|
19
|
+
export { type WebhookPingResponse as WebhookPingResponse };
|
|
20
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as TenantsAPI from './tenants';
|
|
5
|
+
import { TenantAddParams, TenantAddResponse, TenantRemoveParams, Tenants } from './tenants';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Groups extends APIResource {
|
|
12
|
+
tenants: TenantsAPI.Tenants = new TenantsAPI.Tenants(this._client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create a new group.
|
|
16
|
+
*
|
|
17
|
+
* Group names must be unique within the client.
|
|
18
|
+
*
|
|
19
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
20
|
+
*
|
|
21
|
+
* Raises: GroupNameExistsError: If a group with this name already exists (409)
|
|
22
|
+
*/
|
|
23
|
+
create(body: GroupCreateParams, options?: RequestOptions): APIPromise<GroupDetail> {
|
|
24
|
+
return this._client.post('/api/v1/groups', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get a single group by ID.
|
|
29
|
+
*
|
|
30
|
+
* Returns the group with its full tenant list.
|
|
31
|
+
*
|
|
32
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
33
|
+
*
|
|
34
|
+
* Raises: GroupNotFoundError: If group doesn't exist (404)
|
|
35
|
+
*/
|
|
36
|
+
retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupDetail> {
|
|
37
|
+
return this._client.get(path`/api/v1/groups/${groupID}`, options);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Update a group.
|
|
42
|
+
*
|
|
43
|
+
* Update group name and/or description. Name must remain unique within client.
|
|
44
|
+
*
|
|
45
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
46
|
+
*
|
|
47
|
+
* Raises: GroupNotFoundError: If group doesn't exist (404) GroupNameExistsError:
|
|
48
|
+
* If new name conflicts with existing group (409)
|
|
49
|
+
*/
|
|
50
|
+
update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<GroupDetail> {
|
|
51
|
+
return this._client.patch(path`/api/v1/groups/${groupID}`, { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* List all groups for the client.
|
|
56
|
+
*
|
|
57
|
+
* Returns groups with their tenant counts for efficient display.
|
|
58
|
+
*
|
|
59
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
60
|
+
*/
|
|
61
|
+
list(options?: RequestOptions): APIPromise<GroupListResponse> {
|
|
62
|
+
return this._client.get('/api/v1/groups', options);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Delete a group.
|
|
67
|
+
*
|
|
68
|
+
* Soft-deletes the group and removes all tenant associations.
|
|
69
|
+
*
|
|
70
|
+
* RLS: Filtered to current client (ClientRLSDB).
|
|
71
|
+
*
|
|
72
|
+
* Raises: GroupNotFoundError: If group doesn't exist (404)
|
|
73
|
+
*/
|
|
74
|
+
delete(groupID: string, options?: RequestOptions): APIPromise<void> {
|
|
75
|
+
return this._client.delete(path`/api/v1/groups/${groupID}`, {
|
|
76
|
+
...options,
|
|
77
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Response model for a single group (with full tenant list).
|
|
84
|
+
*/
|
|
85
|
+
export interface GroupDetail {
|
|
86
|
+
/**
|
|
87
|
+
* Group ID
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Creation timestamp
|
|
93
|
+
*/
|
|
94
|
+
created_at: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Group description
|
|
98
|
+
*/
|
|
99
|
+
description: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Group name
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Tenants in this group
|
|
108
|
+
*/
|
|
109
|
+
tenants: Array<GroupDetail.Tenant>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Last update timestamp
|
|
113
|
+
*/
|
|
114
|
+
updated_at: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export namespace GroupDetail {
|
|
118
|
+
/**
|
|
119
|
+
* Tenant information in group responses.
|
|
120
|
+
*/
|
|
121
|
+
export interface Tenant {
|
|
122
|
+
/**
|
|
123
|
+
* Tenant ID
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Human-readable tenant name
|
|
129
|
+
*/
|
|
130
|
+
name: string | null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Unique tenant identifier
|
|
134
|
+
*/
|
|
135
|
+
tenant_key: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GroupListResponse = Array<GroupListResponse.GroupListResponseItem>;
|
|
140
|
+
|
|
141
|
+
export namespace GroupListResponse {
|
|
142
|
+
/**
|
|
143
|
+
* Response model for a group in list responses (with tenant count).
|
|
144
|
+
*/
|
|
145
|
+
export interface GroupListResponseItem {
|
|
146
|
+
/**
|
|
147
|
+
* Group ID
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Creation timestamp
|
|
153
|
+
*/
|
|
154
|
+
created_at: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Group description
|
|
158
|
+
*/
|
|
159
|
+
description: string | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Group name
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Number of tenants in this group
|
|
168
|
+
*/
|
|
169
|
+
tenant_count: number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Last update timestamp
|
|
173
|
+
*/
|
|
174
|
+
updated_at: string;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface GroupCreateParams {
|
|
179
|
+
/**
|
|
180
|
+
* Unique group name within the client
|
|
181
|
+
*/
|
|
182
|
+
name: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Human-readable group description
|
|
186
|
+
*/
|
|
187
|
+
description?: string | null;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface GroupUpdateParams {
|
|
191
|
+
/**
|
|
192
|
+
* New group description
|
|
193
|
+
*/
|
|
194
|
+
description?: string | null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* New group name
|
|
198
|
+
*/
|
|
199
|
+
name?: string | null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
Groups.Tenants = Tenants;
|
|
203
|
+
|
|
204
|
+
export declare namespace Groups {
|
|
205
|
+
export {
|
|
206
|
+
type GroupDetail as GroupDetail,
|
|
207
|
+
type GroupListResponse as GroupListResponse,
|
|
208
|
+
type GroupCreateParams as GroupCreateParams,
|
|
209
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export {
|
|
213
|
+
Tenants as Tenants,
|
|
214
|
+
type TenantAddResponse as TenantAddResponse,
|
|
215
|
+
type TenantAddParams as TenantAddParams,
|
|
216
|
+
type TenantRemoveParams as TenantRemoveParams,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Groups,
|
|
5
|
+
type GroupDetail,
|
|
6
|
+
type GroupListResponse,
|
|
7
|
+
type GroupCreateParams,
|
|
8
|
+
type GroupUpdateParams,
|
|
9
|
+
} from './groups';
|
|
10
|
+
export { Tenants, type TenantAddResponse, type TenantAddParams, type TenantRemoveParams } from './tenants';
|