@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,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Connections = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const DatabasesAPI = tslib_1.__importStar(require("./databases.js"));
|
|
8
|
+
const databases_1 = require("./databases.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
class Connections extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.databases = new DatabasesAPI.Databases(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new warehouse connection.
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/api/v1/connections', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get a single warehouse connection by kater_id.
|
|
23
|
+
*
|
|
24
|
+
* Returns connection from the database (source of truth) with full hierarchy.
|
|
25
|
+
*
|
|
26
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
27
|
+
*
|
|
28
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
29
|
+
*/
|
|
30
|
+
retrieve(connectionID, options) {
|
|
31
|
+
return this._client.get((0, path_1.path) `/api/v1/connections/${connectionID}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* List all warehouse connections for the client.
|
|
35
|
+
*
|
|
36
|
+
* Returns connections from the database joined with schema information from
|
|
37
|
+
* GitHub. Connections with pending PRs will have null GitHub fields until merged.
|
|
38
|
+
* Returns empty list if GitHub is not configured.
|
|
39
|
+
*
|
|
40
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
41
|
+
*/
|
|
42
|
+
list(options) {
|
|
43
|
+
return this._client.get('/api/v1/connections', options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get decrypted warehouse credentials for a connection.
|
|
47
|
+
*
|
|
48
|
+
* Returns the decrypted credentials for a connection. This is sensitive data and
|
|
49
|
+
* should only be used when actually needed for warehouse operations.
|
|
50
|
+
*
|
|
51
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
52
|
+
*
|
|
53
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
54
|
+
*/
|
|
55
|
+
retrieveCredential(connectionID, options) {
|
|
56
|
+
return this._client.get((0, path_1.path) `/api/v1/connections/${connectionID}/credential`, options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Sync view schemas from warehouse and create a PR (or update existing).
|
|
60
|
+
*/
|
|
61
|
+
sync(connectionID, options) {
|
|
62
|
+
return this._client.post((0, path_1.path) `/api/v1/connections/${connectionID}/sync`, options);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.Connections = Connections;
|
|
66
|
+
Connections.Databases = databases_1.Databases;
|
|
67
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAAoE;AAGpE,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0D/E,CAAC;IAxDC;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,kBAAkB,CAChB,YAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,aAAa,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,YAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AA3DD,kCA2DC;AAktBD,WAAW,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as DatabasesAPI from "./databases.mjs";
|
|
4
|
+
import { Databases } from "./databases.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Connections extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.databases = new DatabasesAPI.Databases(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create a new warehouse connection.
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/api/v1/connections', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get a single warehouse connection by kater_id.
|
|
19
|
+
*
|
|
20
|
+
* Returns connection from the database (source of truth) with full hierarchy.
|
|
21
|
+
*
|
|
22
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
23
|
+
*
|
|
24
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
25
|
+
*/
|
|
26
|
+
retrieve(connectionID, options) {
|
|
27
|
+
return this._client.get(path `/api/v1/connections/${connectionID}`, options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List all warehouse connections for the client.
|
|
31
|
+
*
|
|
32
|
+
* Returns connections from the database joined with schema information from
|
|
33
|
+
* GitHub. Connections with pending PRs will have null GitHub fields until merged.
|
|
34
|
+
* Returns empty list if GitHub is not configured.
|
|
35
|
+
*
|
|
36
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
37
|
+
*/
|
|
38
|
+
list(options) {
|
|
39
|
+
return this._client.get('/api/v1/connections', options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get decrypted warehouse credentials for a connection.
|
|
43
|
+
*
|
|
44
|
+
* Returns the decrypted credentials for a connection. This is sensitive data and
|
|
45
|
+
* should only be used when actually needed for warehouse operations.
|
|
46
|
+
*
|
|
47
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
48
|
+
*
|
|
49
|
+
* Raises: NotFoundError: If connection doesn't exist (404)
|
|
50
|
+
*/
|
|
51
|
+
retrieveCredential(connectionID, options) {
|
|
52
|
+
return this._client.get(path `/api/v1/connections/${connectionID}/credential`, options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Sync view schemas from warehouse and create a PR (or update existing).
|
|
56
|
+
*/
|
|
57
|
+
sync(connectionID, options) {
|
|
58
|
+
return this._client.post(path `/api/v1/connections/${connectionID}/sync`, options);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
Connections.Databases = Databases;
|
|
62
|
+
//# sourceMappingURL=connections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAA8B,SAAS,EAAE;OAGzC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0D/E,CAAC;IAxDC;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,kBAAkB,CAChB,YAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,YAAY,aAAa,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,YAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAktBD,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Databases extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Delete a schema from a connection.
|
|
7
|
+
*
|
|
8
|
+
* Soft-deletes the schema record, setting deleted_at and deleted_by fields. The
|
|
9
|
+
* connection_id and database_id path parameters provide context for the resource
|
|
10
|
+
* hierarchy, though the schema_id alone uniquely identifies the record.
|
|
11
|
+
*
|
|
12
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
13
|
+
*
|
|
14
|
+
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
15
|
+
*/
|
|
16
|
+
deleteSchema(schemaID: string, params: DatabaseDeleteSchemaParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface DatabaseDeleteSchemaParams {
|
|
19
|
+
connection_id: string;
|
|
20
|
+
database_id: string;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Databases {
|
|
23
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=databases.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databases.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Databases extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Delete a schema from a connection.
|
|
7
|
+
*
|
|
8
|
+
* Soft-deletes the schema record, setting deleted_at and deleted_by fields. The
|
|
9
|
+
* connection_id and database_id path parameters provide context for the resource
|
|
10
|
+
* hierarchy, though the schema_id alone uniquely identifies the record.
|
|
11
|
+
*
|
|
12
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
13
|
+
*
|
|
14
|
+
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
15
|
+
*/
|
|
16
|
+
deleteSchema(schemaID: string, params: DatabaseDeleteSchemaParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface DatabaseDeleteSchemaParams {
|
|
19
|
+
connection_id: string;
|
|
20
|
+
database_id: string;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Databases {
|
|
23
|
+
export { type DatabaseDeleteSchemaParams as DatabaseDeleteSchemaParams };
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=databases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Databases = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
class Databases extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Delete a schema from a connection.
|
|
11
|
+
*
|
|
12
|
+
* Soft-deletes the schema record, setting deleted_at and deleted_by fields. The
|
|
13
|
+
* connection_id and database_id path parameters provide context for the resource
|
|
14
|
+
* hierarchy, though the schema_id alone uniquely identifies the record.
|
|
15
|
+
*
|
|
16
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
17
|
+
*
|
|
18
|
+
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
19
|
+
*/
|
|
20
|
+
deleteSchema(schemaID, params, options) {
|
|
21
|
+
const { connection_id, database_id } = params;
|
|
22
|
+
return this._client.delete((0, path_1.path) `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { ...options, headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]) });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Databases = Databases;
|
|
26
|
+
//# sourceMappingURL=databases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAA,WAAI,EAAA,uBAAuB,aAAa,cAAc,WAAW,YAAY,QAAQ,EAAE,EACvF,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC7E,CAAC;IACJ,CAAC;CACF;AAvBD,8BAuBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
export class Databases extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Delete a schema from a connection.
|
|
8
|
+
*
|
|
9
|
+
* Soft-deletes the schema record, setting deleted_at and deleted_by fields. The
|
|
10
|
+
* connection_id and database_id path parameters provide context for the resource
|
|
11
|
+
* hierarchy, though the schema_id alone uniquely identifies the record.
|
|
12
|
+
*
|
|
13
|
+
* RLS: Filtered to current client (DualClientRLSDB).
|
|
14
|
+
*
|
|
15
|
+
* Raises: SchemaNotFoundError: If schema doesn't exist (404)
|
|
16
|
+
*/
|
|
17
|
+
deleteSchema(schemaID, params, options) {
|
|
18
|
+
const { connection_id, database_id } = params;
|
|
19
|
+
return this._client.delete(path `/api/v1/connections/${connection_id}/databases/${database_id}/schemas/${schemaID}`, { ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=databases.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databases.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/databases.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,uBAAuB,aAAa,cAAc,WAAW,YAAY,QAAQ,EAAE,EACvF,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC7E,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, } from "./connections.mjs";
|
|
2
|
+
export { Databases, type DatabaseDeleteSchemaParams } from "./databases.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,SAAS,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, } from "./connections.js";
|
|
2
|
+
export { Databases, type DatabaseDeleteSchemaParams } from "./databases.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,SAAS,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Databases = exports.Connections = void 0;
|
|
5
|
+
var connections_1 = require("./connections.js");
|
|
6
|
+
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
7
|
+
var databases_1 = require("./databases.js");
|
|
8
|
+
Object.defineProperty(exports, "Databases", { enumerable: true, get: function () { return databases_1.Databases; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,4CAAyE;AAAhE,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAOZ;OACM,EAAE,SAAS,EAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./connections/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Admin extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the GitHub integration status for a specific client. Admin access
|
|
7
|
+
* required.
|
|
8
|
+
*/
|
|
9
|
+
getIntegrationStatus(clientID: string, options?: RequestOptions): APIPromise<AdminGetIntegrationStatusResponse>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Response for client GitHub integration status.
|
|
13
|
+
*/
|
|
14
|
+
export interface AdminGetIntegrationStatusResponse {
|
|
15
|
+
client_id: string;
|
|
16
|
+
connected: boolean;
|
|
17
|
+
oauth_completed: boolean;
|
|
18
|
+
connection_status?: string | null;
|
|
19
|
+
created_at?: string | null;
|
|
20
|
+
github_username?: string | null;
|
|
21
|
+
installation_id?: number | null;
|
|
22
|
+
last_sync_at?: string | null;
|
|
23
|
+
repository?: string | null;
|
|
24
|
+
repository_selection_pending?: boolean;
|
|
25
|
+
scaffolding_branch?: string | null;
|
|
26
|
+
scaffolding_pr_url?: string | null;
|
|
27
|
+
scaffolding_status?: string | null;
|
|
28
|
+
updated_at?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace Admin {
|
|
31
|
+
export { type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=admin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Admin extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the GitHub integration status for a specific client. Admin access
|
|
7
|
+
* required.
|
|
8
|
+
*/
|
|
9
|
+
getIntegrationStatus(clientID: string, options?: RequestOptions): APIPromise<AdminGetIntegrationStatusResponse>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Response for client GitHub integration status.
|
|
13
|
+
*/
|
|
14
|
+
export interface AdminGetIntegrationStatusResponse {
|
|
15
|
+
client_id: string;
|
|
16
|
+
connected: boolean;
|
|
17
|
+
oauth_completed: boolean;
|
|
18
|
+
connection_status?: string | null;
|
|
19
|
+
created_at?: string | null;
|
|
20
|
+
github_username?: string | null;
|
|
21
|
+
installation_id?: number | null;
|
|
22
|
+
last_sync_at?: string | null;
|
|
23
|
+
repository?: string | null;
|
|
24
|
+
repository_selection_pending?: boolean;
|
|
25
|
+
scaffolding_branch?: string | null;
|
|
26
|
+
scaffolding_pr_url?: string | null;
|
|
27
|
+
scaffolding_status?: string | null;
|
|
28
|
+
updated_at?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace Admin {
|
|
31
|
+
export { type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,eAAe,EAAE,OAAO,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Admin = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Admin extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the GitHub integration status for a specific client. Admin access
|
|
10
|
+
* required.
|
|
11
|
+
*/
|
|
12
|
+
getIntegrationStatus(clientID, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/api/v1/github/admin/status/${clientID}`, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Admin = Admin;
|
|
17
|
+
//# sourceMappingURL=admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAXD,sBAWC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Admin extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the GitHub integration status for a specific client. Admin access
|
|
7
|
+
* required.
|
|
8
|
+
*/
|
|
9
|
+
getIntegrationStatus(clientID, options) {
|
|
10
|
+
return this._client.get(path `/api/v1/github/admin/status/${clientID}`, options);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=admin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/admin.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,oBAAoB,CAClB,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as AdminAPI from "./admin.mjs";
|
|
3
|
+
import { Admin, AdminGetIntegrationStatusResponse } from "./admin.mjs";
|
|
4
|
+
import * as ReposAPI from "./repos.mjs";
|
|
5
|
+
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from "./repos.mjs";
|
|
6
|
+
import * as ScaffoldAPI from "./scaffold.mjs";
|
|
7
|
+
import { Scaffold, ScaffoldGetStatusResponse, ScaffoldTrigger } from "./scaffold.mjs";
|
|
8
|
+
import * as WebhooksAPI from "./webhooks.mjs";
|
|
9
|
+
import { WebhookPingResponse, Webhooks } from "./webhooks.mjs";
|
|
10
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
11
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
12
|
+
export declare class GitHub extends APIResource {
|
|
13
|
+
repos: ReposAPI.Repos;
|
|
14
|
+
scaffold: ScaffoldAPI.Scaffold;
|
|
15
|
+
webhooks: WebhooksAPI.Webhooks;
|
|
16
|
+
admin: AdminAPI.Admin;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the GitHub App is already installed on any organizations/accounts.
|
|
19
|
+
*/
|
|
20
|
+
checkInstallations(options?: RequestOptions): APIPromise<GitHubCheckInstallationsResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Disconnects the GitHub connection.
|
|
23
|
+
*/
|
|
24
|
+
disconnect(options?: RequestOptions): APIPromise<GitHubDisconnectResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the current GitHub connection status for the client.
|
|
27
|
+
*/
|
|
28
|
+
getStatus(options?: RequestOptions): APIPromise<GitHubGetStatusResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Verifies the GitHub connection and updates the last sync timestamp.
|
|
31
|
+
*/
|
|
32
|
+
sync(options?: RequestOptions): APIPromise<GitHubSyncResponse>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Response for checking existing installations.
|
|
36
|
+
*/
|
|
37
|
+
export interface GitHubCheckInstallationsResponse {
|
|
38
|
+
has_existing_installation: boolean;
|
|
39
|
+
installations?: Array<GitHubCheckInstallationsResponse.Installation>;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace GitHubCheckInstallationsResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Information about an existing GitHub App installation.
|
|
44
|
+
*/
|
|
45
|
+
interface Installation {
|
|
46
|
+
account_login: string;
|
|
47
|
+
account_type: string;
|
|
48
|
+
installation_id: number;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Response for disconnecting GitHub.
|
|
53
|
+
*/
|
|
54
|
+
export interface GitHubDisconnectResponse {
|
|
55
|
+
message: string;
|
|
56
|
+
success: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Response for connection status.
|
|
60
|
+
*/
|
|
61
|
+
export interface GitHubGetStatusResponse {
|
|
62
|
+
connected: boolean;
|
|
63
|
+
default_branch?: string | null;
|
|
64
|
+
last_sync_at?: string | null;
|
|
65
|
+
last_used_at?: string | null;
|
|
66
|
+
owner?: string | null;
|
|
67
|
+
repository?: string | null;
|
|
68
|
+
scaffolding_pr_url?: string | null;
|
|
69
|
+
scaffolding_status?: string | null;
|
|
70
|
+
status?: string | null;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Response for sync operation.
|
|
74
|
+
*/
|
|
75
|
+
export interface GitHubSyncResponse {
|
|
76
|
+
last_sync_at: string;
|
|
77
|
+
message: string;
|
|
78
|
+
success: boolean;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace GitHub {
|
|
81
|
+
export { type GitHubCheckInstallationsResponse as GitHubCheckInstallationsResponse, type GitHubDisconnectResponse as GitHubDisconnectResponse, type GitHubGetStatusResponse as GitHubGetStatusResponse, type GitHubSyncResponse as GitHubSyncResponse, };
|
|
82
|
+
export { Repos as Repos, type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
83
|
+
export { Scaffold as Scaffold, type ScaffoldTrigger as ScaffoldTrigger, type ScaffoldGetStatusResponse as ScaffoldGetStatusResponse, };
|
|
84
|
+
export { Webhooks as Webhooks, type WebhookPingResponse as WebhookPingResponse };
|
|
85
|
+
export { Admin as Admin, type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=github.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,iCAAiC,EAAE;OAC5C,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE;OAC7E,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,yBAAyB,EAAE,eAAe,EAAE;OACxD,KAAK,WAAW;OAChB,EAAE,mBAAmB,EAAE,QAAQ,EAAE;OACjC,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,kBAAkB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;IAI1F;;OAEG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI1E;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIxE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,yBAAyB,EAAE,OAAO,CAAC;IAEnC,aAAa,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;CACtE;AAED,yBAAiB,gCAAgC,CAAC;IAChD;;OAEG;IACH,UAAiB,YAAY;QAC3B,aAAa,EAAE,MAAM,CAAC;QAEtB,YAAY,EAAE,MAAM,CAAC;QAErB,eAAe,EAAE,MAAM,CAAC;KACzB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,OAAO,CAAC;IAEnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IAErB,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAOD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAEjF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxG"}
|