@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,87 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as AdminAPI from "./admin.js";
|
|
3
|
+
import { Admin, AdminGetIntegrationStatusResponse } from "./admin.js";
|
|
4
|
+
import * as ReposAPI from "./repos.js";
|
|
5
|
+
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from "./repos.js";
|
|
6
|
+
import * as ScaffoldAPI from "./scaffold.js";
|
|
7
|
+
import { Scaffold, ScaffoldGetStatusResponse, ScaffoldTrigger } from "./scaffold.js";
|
|
8
|
+
import * as WebhooksAPI from "./webhooks.js";
|
|
9
|
+
import { WebhookPingResponse, Webhooks } from "./webhooks.js";
|
|
10
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
11
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
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.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","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"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.GitHub = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const AdminAPI = tslib_1.__importStar(require("./admin.js"));
|
|
8
|
+
const admin_1 = require("./admin.js");
|
|
9
|
+
const ReposAPI = tslib_1.__importStar(require("./repos.js"));
|
|
10
|
+
const repos_1 = require("./repos.js");
|
|
11
|
+
const ScaffoldAPI = tslib_1.__importStar(require("./scaffold.js"));
|
|
12
|
+
const scaffold_1 = require("./scaffold.js");
|
|
13
|
+
const WebhooksAPI = tslib_1.__importStar(require("./webhooks.js"));
|
|
14
|
+
const webhooks_1 = require("./webhooks.js");
|
|
15
|
+
class GitHub extends resource_1.APIResource {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.repos = new ReposAPI.Repos(this._client);
|
|
19
|
+
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
20
|
+
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
21
|
+
this.admin = new AdminAPI.Admin(this._client);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Checks if the GitHub App is already installed on any organizations/accounts.
|
|
25
|
+
*/
|
|
26
|
+
checkInstallations(options) {
|
|
27
|
+
return this._client.get('/api/v1/github/check-installations', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Disconnects the GitHub connection.
|
|
31
|
+
*/
|
|
32
|
+
disconnect(options) {
|
|
33
|
+
return this._client.post('/api/v1/github/disconnect', options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns the current GitHub connection status for the client.
|
|
37
|
+
*/
|
|
38
|
+
getStatus(options) {
|
|
39
|
+
return this._client.get('/api/v1/github/status', options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Verifies the GitHub connection and updates the last sync timestamp.
|
|
43
|
+
*/
|
|
44
|
+
sync(options) {
|
|
45
|
+
return this._client.post('/api/v1/github/sync', options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.GitHub = GitHub;
|
|
49
|
+
GitHub.Repos = repos_1.Repos;
|
|
50
|
+
GitHub.Scaffold = scaffold_1.Scaffold;
|
|
51
|
+
GitHub.Webhooks = webhooks_1.Webhooks;
|
|
52
|
+
GitHub.Admin = admin_1.Admin;
|
|
53
|
+
//# sourceMappingURL=github.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAmE;AACnE,6DAAoC;AACpC,sCAAoG;AACpG,mEAA0C;AAC1C,4CAAkF;AAClF,mEAA0C;AAC1C,4CAA2D;AAI3D,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6B3D,CAAC;IA3BC;;OAEG;IACH,kBAAkB,CAAC,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAjCD,wBAiCC;AAmED,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as AdminAPI from "./admin.mjs";
|
|
4
|
+
import { Admin } from "./admin.mjs";
|
|
5
|
+
import * as ReposAPI from "./repos.mjs";
|
|
6
|
+
import { Repos } from "./repos.mjs";
|
|
7
|
+
import * as ScaffoldAPI from "./scaffold.mjs";
|
|
8
|
+
import { Scaffold } from "./scaffold.mjs";
|
|
9
|
+
import * as WebhooksAPI from "./webhooks.mjs";
|
|
10
|
+
import { Webhooks } from "./webhooks.mjs";
|
|
11
|
+
export class GitHub extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.repos = new ReposAPI.Repos(this._client);
|
|
15
|
+
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
16
|
+
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
17
|
+
this.admin = new AdminAPI.Admin(this._client);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the GitHub App is already installed on any organizations/accounts.
|
|
21
|
+
*/
|
|
22
|
+
checkInstallations(options) {
|
|
23
|
+
return this._client.get('/api/v1/github/check-installations', options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Disconnects the GitHub connection.
|
|
27
|
+
*/
|
|
28
|
+
disconnect(options) {
|
|
29
|
+
return this._client.post('/api/v1/github/disconnect', options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the current GitHub connection status for the client.
|
|
33
|
+
*/
|
|
34
|
+
getStatus(options) {
|
|
35
|
+
return this._client.get('/api/v1/github/status', options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Verifies the GitHub connection and updates the last sync timestamp.
|
|
39
|
+
*/
|
|
40
|
+
sync(options) {
|
|
41
|
+
return this._client.post('/api/v1/github/sync', options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
GitHub.Repos = Repos;
|
|
45
|
+
GitHub.Scaffold = Scaffold;
|
|
46
|
+
GitHub.Webhooks = Webhooks;
|
|
47
|
+
GitHub.Admin = Admin;
|
|
48
|
+
//# sourceMappingURL=github.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAqC;OAC5C,KAAK,QAAQ;OACb,EAA0D,KAAK,EAAc;OAC7E,KAAK,WAAW;OAChB,EAAE,QAAQ,EAA8C;OACxD,KAAK,WAAW;OAChB,EAAuB,QAAQ,EAAE;AAIxC,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6B3D,CAAC;IA3BC;;OAEG;IACH,kBAAkB,CAAC,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAmED,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Admin, type AdminGetIntegrationStatusResponse } from "./admin.mjs";
|
|
2
|
+
export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github.mjs";
|
|
3
|
+
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.mjs";
|
|
4
|
+
export { Scaffold, type ScaffoldTrigger, type ScaffoldGetStatusResponse } from "./scaffold.mjs";
|
|
5
|
+
export { Webhooks, type WebhookPingResponse } from "./webhooks.mjs";
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iCAAiC,EAAE;OACjD,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,yBAAyB,EAAE;OAClE,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Admin, type AdminGetIntegrationStatusResponse } from "./admin.js";
|
|
2
|
+
export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github.js";
|
|
3
|
+
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.js";
|
|
4
|
+
export { Scaffold, type ScaffoldTrigger, type ScaffoldGetStatusResponse } from "./scaffold.js";
|
|
5
|
+
export { Webhooks, type WebhookPingResponse } from "./webhooks.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iCAAiC,EAAE;OACjD,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,yBAAyB,EAAE;OAClE,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.Webhooks = exports.Scaffold = exports.Repos = exports.GitHub = exports.Admin = void 0;
|
|
5
|
+
var admin_1 = require("./admin.js");
|
|
6
|
+
Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return admin_1.Admin; } });
|
|
7
|
+
var github_1 = require("./github.js");
|
|
8
|
+
Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return github_1.GitHub; } });
|
|
9
|
+
var repos_1 = require("./repos.js");
|
|
10
|
+
Object.defineProperty(exports, "Repos", { enumerable: true, get: function () { return repos_1.Repos; } });
|
|
11
|
+
var scaffold_1 = require("./scaffold.js");
|
|
12
|
+
Object.defineProperty(exports, "Scaffold", { enumerable: true, get: function () { return scaffold_1.Scaffold; } });
|
|
13
|
+
var webhooks_1 = require("./webhooks.js");
|
|
14
|
+
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAwE;AAA/D,8FAAA,KAAK,OAAA;AACd,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,0CAA4F;AAAnF,oGAAA,QAAQ,OAAA;AACjB,0CAAgE;AAAvD,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Admin } from "./admin.mjs";
|
|
3
|
+
export { GitHub, } from "./github.mjs";
|
|
4
|
+
export { Repos, } from "./repos.mjs";
|
|
5
|
+
export { Scaffold } from "./scaffold.mjs";
|
|
6
|
+
export { Webhooks } from "./webhooks.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA0C;OACjD,EACL,MAAM,GAKP;OACM,EACL,KAAK,GAKN;OACM,EAAE,QAAQ,EAAwD;OAClE,EAAE,QAAQ,EAA4B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 Repos extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List repositories accessible to the GitHub App installation.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: RequestOptions): APIPromise<RepoListResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Select a repository for the Kater workspace.
|
|
11
|
+
*/
|
|
12
|
+
select(repoID: number, body: RepoSelectParams, options?: RequestOptions): APIPromise<RepoSelectResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Repository information response.
|
|
16
|
+
*/
|
|
17
|
+
export interface Repository {
|
|
18
|
+
id: number;
|
|
19
|
+
default_branch: string;
|
|
20
|
+
full_name: string;
|
|
21
|
+
has_kater_structure: boolean;
|
|
22
|
+
html_url: string;
|
|
23
|
+
is_empty: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
owner: string;
|
|
26
|
+
private: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List of repositories response.
|
|
30
|
+
*/
|
|
31
|
+
export interface RepoListResponse {
|
|
32
|
+
repositories: Array<Repository>;
|
|
33
|
+
total_count: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Repository selection response.
|
|
37
|
+
*/
|
|
38
|
+
export interface RepoSelectResponse {
|
|
39
|
+
has_existing_structure: boolean;
|
|
40
|
+
message: string;
|
|
41
|
+
needs_scaffolding: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Repository information response.
|
|
44
|
+
*/
|
|
45
|
+
repository: Repository;
|
|
46
|
+
success: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface RepoSelectParams {
|
|
49
|
+
use_existing_structure?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace Repos {
|
|
52
|
+
export { type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=repos.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repos.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,mBAAmB,EAAE,OAAO,CAAC;IAE7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB,EAAE,OAAO,CAAC;IAEhC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 Repos extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List repositories accessible to the GitHub App installation.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: RequestOptions): APIPromise<RepoListResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Select a repository for the Kater workspace.
|
|
11
|
+
*/
|
|
12
|
+
select(repoID: number, body: RepoSelectParams, options?: RequestOptions): APIPromise<RepoSelectResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Repository information response.
|
|
16
|
+
*/
|
|
17
|
+
export interface Repository {
|
|
18
|
+
id: number;
|
|
19
|
+
default_branch: string;
|
|
20
|
+
full_name: string;
|
|
21
|
+
has_kater_structure: boolean;
|
|
22
|
+
html_url: string;
|
|
23
|
+
is_empty: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
owner: string;
|
|
26
|
+
private: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List of repositories response.
|
|
30
|
+
*/
|
|
31
|
+
export interface RepoListResponse {
|
|
32
|
+
repositories: Array<Repository>;
|
|
33
|
+
total_count: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Repository selection response.
|
|
37
|
+
*/
|
|
38
|
+
export interface RepoSelectResponse {
|
|
39
|
+
has_existing_structure: boolean;
|
|
40
|
+
message: string;
|
|
41
|
+
needs_scaffolding: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Repository information response.
|
|
44
|
+
*/
|
|
45
|
+
repository: Repository;
|
|
46
|
+
success: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface RepoSelectParams {
|
|
49
|
+
use_existing_structure?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace Repos {
|
|
52
|
+
export { type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=repos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGzG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,mBAAmB,EAAE,OAAO,CAAC;IAE7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB,EAAE,OAAO,CAAC;IAEhC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.Repos = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Repos extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List repositories accessible to the GitHub App installation.
|
|
10
|
+
*/
|
|
11
|
+
list(options) {
|
|
12
|
+
return this._client.get('/api/v1/github/repos', options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Select a repository for the Kater workspace.
|
|
16
|
+
*/
|
|
17
|
+
select(repoID, body, options) {
|
|
18
|
+
return this._client.post((0, path_1.path) `/api/v1/github/repos/${repoID}/select`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Repos = Repos;
|
|
22
|
+
//# sourceMappingURL=repos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAdD,sBAcC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 Repos extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List repositories accessible to the GitHub App installation.
|
|
7
|
+
*/
|
|
8
|
+
list(options) {
|
|
9
|
+
return this._client.get('/api/v1/github/repos', options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Select a repository for the Kater workspace.
|
|
13
|
+
*/
|
|
14
|
+
select(repoID, body, options) {
|
|
15
|
+
return this._client.post(path `/api/v1/github/repos/${repoID}/select`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=repos.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repos.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/repos.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Scaffold extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the current scaffolding status for the connected repository.
|
|
7
|
+
*/
|
|
8
|
+
getStatus(options?: RequestOptions): APIPromise<ScaffoldGetStatusResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Clean up partial state and retry scaffolding from scratch.
|
|
11
|
+
*/
|
|
12
|
+
retry(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
|
|
13
|
+
/**
|
|
14
|
+
* Create the Kater folder structure and PR in the selected repository.
|
|
15
|
+
*/
|
|
16
|
+
trigger(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Response from triggering scaffolding.
|
|
20
|
+
*/
|
|
21
|
+
export interface ScaffoldTrigger {
|
|
22
|
+
message: string;
|
|
23
|
+
status: string;
|
|
24
|
+
success: boolean;
|
|
25
|
+
branch?: string | null;
|
|
26
|
+
error?: string | null;
|
|
27
|
+
pr_number?: number | null;
|
|
28
|
+
pr_url?: string | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Response from scaffolding status check.
|
|
32
|
+
*/
|
|
33
|
+
export interface ScaffoldGetStatusResponse {
|
|
34
|
+
status: string;
|
|
35
|
+
branch?: string | null;
|
|
36
|
+
error?: string | null;
|
|
37
|
+
pr_number?: number | null;
|
|
38
|
+
pr_url?: string | null;
|
|
39
|
+
scaffolded_at?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace Scaffold {
|
|
42
|
+
export { type ScaffoldTrigger as ScaffoldTrigger, type ScaffoldGetStatusResponse as ScaffoldGetStatusResponse, };
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=scaffold.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI1E;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Scaffold extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the current scaffolding status for the connected repository.
|
|
7
|
+
*/
|
|
8
|
+
getStatus(options?: RequestOptions): APIPromise<ScaffoldGetStatusResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Clean up partial state and retry scaffolding from scratch.
|
|
11
|
+
*/
|
|
12
|
+
retry(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
|
|
13
|
+
/**
|
|
14
|
+
* Create the Kater folder structure and PR in the selected repository.
|
|
15
|
+
*/
|
|
16
|
+
trigger(options?: RequestOptions): APIPromise<ScaffoldTrigger>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Response from triggering scaffolding.
|
|
20
|
+
*/
|
|
21
|
+
export interface ScaffoldTrigger {
|
|
22
|
+
message: string;
|
|
23
|
+
status: string;
|
|
24
|
+
success: boolean;
|
|
25
|
+
branch?: string | null;
|
|
26
|
+
error?: string | null;
|
|
27
|
+
pr_number?: number | null;
|
|
28
|
+
pr_url?: string | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Response from scaffolding status check.
|
|
32
|
+
*/
|
|
33
|
+
export interface ScaffoldGetStatusResponse {
|
|
34
|
+
status: string;
|
|
35
|
+
branch?: string | null;
|
|
36
|
+
error?: string | null;
|
|
37
|
+
pr_number?: number | null;
|
|
38
|
+
pr_url?: string | null;
|
|
39
|
+
scaffolded_at?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace Scaffold {
|
|
42
|
+
export { type ScaffoldTrigger as ScaffoldTrigger, type ScaffoldGetStatusResponse as ScaffoldGetStatusResponse, };
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI1E;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.Scaffold = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
class Scaffold extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the current scaffolding status for the connected repository.
|
|
9
|
+
*/
|
|
10
|
+
getStatus(options) {
|
|
11
|
+
return this._client.get('/api/v1/github/scaffold/status', options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Clean up partial state and retry scaffolding from scratch.
|
|
15
|
+
*/
|
|
16
|
+
retry(options) {
|
|
17
|
+
return this._client.post('/api/v1/github/scaffold/retry', options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create the Kater folder structure and PR in the selected repository.
|
|
21
|
+
*/
|
|
22
|
+
trigger(options) {
|
|
23
|
+
return this._client.post('/api/v1/github/scaffold', options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Scaffold = Scaffold;
|
|
27
|
+
//# sourceMappingURL=scaffold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AArBD,4BAqBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
export class Scaffold extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get the current scaffolding status for the connected repository.
|
|
6
|
+
*/
|
|
7
|
+
getStatus(options) {
|
|
8
|
+
return this._client.get('/api/v1/github/scaffold/status', options);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Clean up partial state and retry scaffolding from scratch.
|
|
12
|
+
*/
|
|
13
|
+
retry(options) {
|
|
14
|
+
return this._client.post('/api/v1/github/scaffold/retry', options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create the Kater folder structure and PR in the selected repository.
|
|
18
|
+
*/
|
|
19
|
+
trigger(options) {
|
|
20
|
+
return this._client.post('/api/v1/github/scaffold', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=scaffold.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Webhooks extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Simple health check for the webhook receiver.
|
|
7
|
+
*/
|
|
8
|
+
ping(options?: RequestOptions): APIPromise<WebhookPingResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type WebhookPingResponse = {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace Webhooks {
|
|
14
|
+
export { type WebhookPingResponse as WebhookPingResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGhE;AAED,MAAM,MAAM,mBAAmB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Webhooks extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Simple health check for the webhook receiver.
|
|
7
|
+
*/
|
|
8
|
+
ping(options?: RequestOptions): APIPromise<WebhookPingResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type WebhookPingResponse = {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace Webhooks {
|
|
14
|
+
export { type WebhookPingResponse as WebhookPingResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGhE;AAED,MAAM,MAAM,mBAAmB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|