@opencode-ai/sdk 0.1.0-alpha.1
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 +15 -0
- package/LICENSE +7 -0
- package/README.md +356 -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 +226 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +226 -0
- package/client.d.ts.map +1 -0
- package/client.js +512 -0
- package/client.js.map +1 -0
- package/client.mjs +508 -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 +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -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 +67 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +67 -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 +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -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 +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -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 +139 -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/app-info.d.mts +31 -0
- package/resources/app-info.d.mts.map +1 -0
- package/resources/app-info.d.ts +31 -0
- package/resources/app-info.d.ts.map +1 -0
- package/resources/app-info.js +15 -0
- package/resources/app-info.js.map +1 -0
- package/resources/app-info.mjs +11 -0
- package/resources/app-info.mjs.map +1 -0
- package/resources/app-initialize.d.mts +14 -0
- package/resources/app-initialize.d.mts.map +1 -0
- package/resources/app-initialize.d.ts +14 -0
- package/resources/app-initialize.d.ts.map +1 -0
- package/resources/app-initialize.js +15 -0
- package/resources/app-initialize.js.map +1 -0
- package/resources/app-initialize.mjs +11 -0
- package/resources/app-initialize.mjs.map +1 -0
- package/resources/config-get.d.mts +236 -0
- package/resources/config-get.d.mts.map +1 -0
- package/resources/config-get.d.ts +236 -0
- package/resources/config-get.d.ts.map +1 -0
- package/resources/config-get.js +15 -0
- package/resources/config-get.js.map +1 -0
- package/resources/config-get.mjs +11 -0
- package/resources/config-get.mjs.map +1 -0
- package/resources/event.d.mts +105 -0
- package/resources/event.d.mts.map +1 -0
- package/resources/event.d.ts +105 -0
- package/resources/event.d.ts.map +1 -0
- package/resources/event.js +15 -0
- package/resources/event.js.map +1 -0
- package/resources/event.mjs +11 -0
- package/resources/event.mjs.map +1 -0
- package/resources/file-search.d.mts +17 -0
- package/resources/file-search.d.mts.map +1 -0
- package/resources/file-search.d.ts +17 -0
- package/resources/file-search.d.ts.map +1 -0
- package/resources/file-search.js +15 -0
- package/resources/file-search.js.map +1 -0
- package/resources/file-search.mjs +11 -0
- package/resources/file-search.mjs.map +1 -0
- package/resources/index.d.mts +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +18 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/installation-info.d.mts +17 -0
- package/resources/installation-info.d.mts.map +1 -0
- package/resources/installation-info.d.ts +17 -0
- package/resources/installation-info.d.ts.map +1 -0
- package/resources/installation-info.js +15 -0
- package/resources/installation-info.js.map +1 -0
- package/resources/installation-info.mjs +11 -0
- package/resources/installation-info.mjs.map +1 -0
- package/resources/path-get.d.mts +19 -0
- package/resources/path-get.d.mts.map +1 -0
- package/resources/path-get.d.ts +19 -0
- package/resources/path-get.d.ts.map +1 -0
- package/resources/path-get.js +15 -0
- package/resources/path-get.js.map +1 -0
- package/resources/path-get.mjs +11 -0
- package/resources/path-get.mjs.map +1 -0
- package/resources/provider-list.d.mts +58 -0
- package/resources/provider-list.d.mts.map +1 -0
- package/resources/provider-list.d.ts +58 -0
- package/resources/provider-list.d.ts.map +1 -0
- package/resources/provider-list.js +15 -0
- package/resources/provider-list.js.map +1 -0
- package/resources/provider-list.mjs +11 -0
- package/resources/provider-list.mjs.map +1 -0
- package/resources/session-abort.d.mts +17 -0
- package/resources/session-abort.d.mts.map +1 -0
- package/resources/session-abort.d.ts +17 -0
- package/resources/session-abort.d.ts.map +1 -0
- package/resources/session-abort.js +15 -0
- package/resources/session-abort.js.map +1 -0
- package/resources/session-abort.mjs +11 -0
- package/resources/session-abort.mjs.map +1 -0
- package/resources/session-chat.d.mts +160 -0
- package/resources/session-chat.d.mts.map +1 -0
- package/resources/session-chat.d.ts +160 -0
- package/resources/session-chat.d.ts.map +1 -0
- package/resources/session-chat.js +15 -0
- package/resources/session-chat.js.map +1 -0
- package/resources/session-chat.mjs +11 -0
- package/resources/session-chat.mjs.map +1 -0
- package/resources/session-create.d.mts +30 -0
- package/resources/session-create.d.mts.map +1 -0
- package/resources/session-create.d.ts +30 -0
- package/resources/session-create.d.ts.map +1 -0
- package/resources/session-create.js +15 -0
- package/resources/session-create.js.map +1 -0
- package/resources/session-create.mjs +11 -0
- package/resources/session-create.mjs.map +1 -0
- package/resources/session-initialize.d.mts +19 -0
- package/resources/session-initialize.d.mts.map +1 -0
- package/resources/session-initialize.d.ts +19 -0
- package/resources/session-initialize.d.ts.map +1 -0
- package/resources/session-initialize.js +15 -0
- package/resources/session-initialize.js.map +1 -0
- package/resources/session-initialize.mjs +11 -0
- package/resources/session-initialize.mjs.map +1 -0
- package/resources/session-list.d.mts +15 -0
- package/resources/session-list.d.mts.map +1 -0
- package/resources/session-list.d.ts +15 -0
- package/resources/session-list.d.ts.map +1 -0
- package/resources/session-list.js +15 -0
- package/resources/session-list.js.map +1 -0
- package/resources/session-list.mjs +11 -0
- package/resources/session-list.mjs.map +1 -0
- package/resources/session-messages.d.mts +18 -0
- package/resources/session-messages.d.mts.map +1 -0
- package/resources/session-messages.d.ts +18 -0
- package/resources/session-messages.d.ts.map +1 -0
- package/resources/session-messages.js +15 -0
- package/resources/session-messages.js.map +1 -0
- package/resources/session-messages.mjs +11 -0
- package/resources/session-messages.mjs.map +1 -0
- package/resources/session-share.d.mts +17 -0
- package/resources/session-share.d.mts.map +1 -0
- package/resources/session-share.d.ts +17 -0
- package/resources/session-share.d.ts.map +1 -0
- package/resources/session-share.js +15 -0
- package/resources/session-share.js.map +1 -0
- package/resources/session-share.mjs +11 -0
- package/resources/session-share.mjs.map +1 -0
- package/resources/session-summarize.d.mts +19 -0
- package/resources/session-summarize.d.mts.map +1 -0
- package/resources/session-summarize.d.ts +19 -0
- package/resources/session-summarize.d.ts.map +1 -0
- package/resources/session-summarize.js +15 -0
- package/resources/session-summarize.js.map +1 -0
- package/resources/session-summarize.mjs +11 -0
- package/resources/session-summarize.mjs.map +1 -0
- package/resources/session-unshare.d.mts +17 -0
- package/resources/session-unshare.d.mts.map +1 -0
- package/resources/session-unshare.d.ts +17 -0
- package/resources/session-unshare.d.ts.map +1 -0
- package/resources/session-unshare.js +15 -0
- package/resources/session-unshare.js.map +1 -0
- package/resources/session-unshare.mjs +11 -0
- package/resources/session-unshare.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 +860 -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 +38 -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 +92 -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 +126 -0
- package/src/internal/utils/path.ts +63 -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/app-info.ts +46 -0
- package/src/resources/app-initialize.ts +20 -0
- package/src/resources/config-get.ts +294 -0
- package/src/resources/event.ts +150 -0
- package/src/resources/file-search.ts +27 -0
- package/src/resources/index.ts +38 -0
- package/src/resources/installation-info.ts +24 -0
- package/src/resources/path-get.ts +28 -0
- package/src/resources/provider-list.ts +80 -0
- package/src/resources/session-abort.ts +27 -0
- package/src/resources/session-chat.ts +250 -0
- package/src/resources/session-create.ts +44 -0
- package/src/resources/session-initialize.ts +34 -0
- package/src/resources/session-list.ts +21 -0
- package/src/resources/session-messages.ts +31 -0
- package/src/resources/session-share.ts +23 -0
- package/src/resources/session-summarize.ts +34 -0
- package/src/resources/session-unshare.ts +26 -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,294 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class ConfigGet extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get config info
|
|
10
|
+
*/
|
|
11
|
+
retrieve(options?: RequestOptions): APIPromise<ConfigGetRetrieveResponse> {
|
|
12
|
+
return this._client.post('/config_get', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ConfigGetRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* JSON schema reference for configuration validation
|
|
19
|
+
*/
|
|
20
|
+
$schema?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Share newly created sessions automatically
|
|
24
|
+
*/
|
|
25
|
+
autoshare?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Automatically update to the latest version
|
|
29
|
+
*/
|
|
30
|
+
autoupdate?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Disable providers that are loaded automatically
|
|
34
|
+
*/
|
|
35
|
+
disabled_providers?: Array<string>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Custom keybind configurations
|
|
39
|
+
*/
|
|
40
|
+
keybinds?: ConfigGetRetrieveResponse.Keybinds;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* MCP (Model Context Protocol) server configurations
|
|
44
|
+
*/
|
|
45
|
+
mcp?: {
|
|
46
|
+
[key: string]: ConfigGetRetrieveResponse.ConfigMcpLocal | ConfigGetRetrieveResponse.ConfigMcpRemote;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
51
|
+
*/
|
|
52
|
+
model?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Custom provider configurations and model overrides
|
|
56
|
+
*/
|
|
57
|
+
provider?: { [key: string]: ConfigGetRetrieveResponse.Provider };
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Theme name to use for the interface
|
|
61
|
+
*/
|
|
62
|
+
theme?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace ConfigGetRetrieveResponse {
|
|
66
|
+
/**
|
|
67
|
+
* Custom keybind configurations
|
|
68
|
+
*/
|
|
69
|
+
export interface Keybinds {
|
|
70
|
+
/**
|
|
71
|
+
* Exit the application
|
|
72
|
+
*/
|
|
73
|
+
app_exit?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Open external editor
|
|
77
|
+
*/
|
|
78
|
+
editor_open?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Show help dialog
|
|
82
|
+
*/
|
|
83
|
+
help?: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Navigate to next history item
|
|
87
|
+
*/
|
|
88
|
+
history_next?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Navigate to previous history item
|
|
92
|
+
*/
|
|
93
|
+
history_previous?: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Clear input field
|
|
97
|
+
*/
|
|
98
|
+
input_clear?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Insert newline in input
|
|
102
|
+
*/
|
|
103
|
+
input_newline?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Paste from clipboard
|
|
107
|
+
*/
|
|
108
|
+
input_paste?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Submit input
|
|
112
|
+
*/
|
|
113
|
+
input_submit?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Leader key for keybind combinations
|
|
117
|
+
*/
|
|
118
|
+
leader?: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Navigate to first message
|
|
122
|
+
*/
|
|
123
|
+
messages_first?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Scroll messages down by half page
|
|
127
|
+
*/
|
|
128
|
+
messages_half_page_down?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Scroll messages up by half page
|
|
132
|
+
*/
|
|
133
|
+
messages_half_page_up?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Navigate to last message
|
|
137
|
+
*/
|
|
138
|
+
messages_last?: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Navigate to next message
|
|
142
|
+
*/
|
|
143
|
+
messages_next?: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Scroll messages down by one page
|
|
147
|
+
*/
|
|
148
|
+
messages_page_down?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Scroll messages up by one page
|
|
152
|
+
*/
|
|
153
|
+
messages_page_up?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Navigate to previous message
|
|
157
|
+
*/
|
|
158
|
+
messages_previous?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* List available models
|
|
162
|
+
*/
|
|
163
|
+
model_list?: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Initialize project configuration
|
|
167
|
+
*/
|
|
168
|
+
project_init?: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Toggle compact mode for session
|
|
172
|
+
*/
|
|
173
|
+
session_compact?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Interrupt current session
|
|
177
|
+
*/
|
|
178
|
+
session_interrupt?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* List all sessions
|
|
182
|
+
*/
|
|
183
|
+
session_list?: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Create a new session
|
|
187
|
+
*/
|
|
188
|
+
session_new?: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Share current session
|
|
192
|
+
*/
|
|
193
|
+
session_share?: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* List available themes
|
|
197
|
+
*/
|
|
198
|
+
theme_list?: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Show tool details
|
|
202
|
+
*/
|
|
203
|
+
tool_details?: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface ConfigMcpLocal {
|
|
207
|
+
/**
|
|
208
|
+
* Command and arguments to run the MCP server
|
|
209
|
+
*/
|
|
210
|
+
command: Array<string>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Type of MCP server connection
|
|
214
|
+
*/
|
|
215
|
+
type: 'local';
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Environment variables to set when running the MCP server
|
|
219
|
+
*/
|
|
220
|
+
environment?: { [key: string]: string };
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface ConfigMcpRemote {
|
|
224
|
+
/**
|
|
225
|
+
* Type of MCP server connection
|
|
226
|
+
*/
|
|
227
|
+
type: 'remote';
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* URL of the remote MCP server
|
|
231
|
+
*/
|
|
232
|
+
url: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface Provider {
|
|
236
|
+
models: { [key: string]: Provider.Models };
|
|
237
|
+
|
|
238
|
+
id?: string;
|
|
239
|
+
|
|
240
|
+
api?: string;
|
|
241
|
+
|
|
242
|
+
env?: Array<string>;
|
|
243
|
+
|
|
244
|
+
name?: string;
|
|
245
|
+
|
|
246
|
+
npm?: string;
|
|
247
|
+
|
|
248
|
+
options?: { [key: string]: unknown };
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export namespace Provider {
|
|
252
|
+
export interface Models {
|
|
253
|
+
id?: string;
|
|
254
|
+
|
|
255
|
+
attachment?: boolean;
|
|
256
|
+
|
|
257
|
+
cost?: Models.Cost;
|
|
258
|
+
|
|
259
|
+
limit?: Models.Limit;
|
|
260
|
+
|
|
261
|
+
name?: string;
|
|
262
|
+
|
|
263
|
+
options?: { [key: string]: unknown };
|
|
264
|
+
|
|
265
|
+
reasoning?: boolean;
|
|
266
|
+
|
|
267
|
+
temperature?: boolean;
|
|
268
|
+
|
|
269
|
+
tool_call?: boolean;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export namespace Models {
|
|
273
|
+
export interface Cost {
|
|
274
|
+
input: number;
|
|
275
|
+
|
|
276
|
+
output: number;
|
|
277
|
+
|
|
278
|
+
cache_read?: number;
|
|
279
|
+
|
|
280
|
+
cache_write?: number;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface Limit {
|
|
284
|
+
context: number;
|
|
285
|
+
|
|
286
|
+
output: number;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export declare namespace ConfigGet {
|
|
293
|
+
export { type ConfigGetRetrieveResponse as ConfigGetRetrieveResponse };
|
|
294
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as SessionChatAPI from './session-chat';
|
|
5
|
+
import * as SessionCreateAPI from './session-create';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class Event extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get events
|
|
12
|
+
*/
|
|
13
|
+
list(options?: RequestOptions): APIPromise<EventListResponse> {
|
|
14
|
+
return this._client.get('/event', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type EventListResponse =
|
|
19
|
+
| EventListResponse.EventStorageWrite
|
|
20
|
+
| EventListResponse.EventInstallationUpdated
|
|
21
|
+
| EventListResponse.EventLspClientDiagnostics
|
|
22
|
+
| EventListResponse.EventPermissionUpdated
|
|
23
|
+
| EventListResponse.EventMessageUpdated
|
|
24
|
+
| EventListResponse.EventMessagePartUpdated
|
|
25
|
+
| EventListResponse.EventSessionUpdated
|
|
26
|
+
| EventListResponse.EventSessionError;
|
|
27
|
+
|
|
28
|
+
export namespace EventListResponse {
|
|
29
|
+
export interface EventStorageWrite {
|
|
30
|
+
properties: EventStorageWrite.Properties;
|
|
31
|
+
|
|
32
|
+
type: 'storage.write';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace EventStorageWrite {
|
|
36
|
+
export interface Properties {
|
|
37
|
+
key: string;
|
|
38
|
+
|
|
39
|
+
content?: unknown;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface EventInstallationUpdated {
|
|
44
|
+
properties: EventInstallationUpdated.Properties;
|
|
45
|
+
|
|
46
|
+
type: 'installation.updated';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace EventInstallationUpdated {
|
|
50
|
+
export interface Properties {
|
|
51
|
+
version: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface EventLspClientDiagnostics {
|
|
56
|
+
properties: EventLspClientDiagnostics.Properties;
|
|
57
|
+
|
|
58
|
+
type: 'lsp.client.diagnostics';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace EventLspClientDiagnostics {
|
|
62
|
+
export interface Properties {
|
|
63
|
+
path: string;
|
|
64
|
+
|
|
65
|
+
serverID: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface EventPermissionUpdated {
|
|
70
|
+
properties: EventPermissionUpdated.Properties;
|
|
71
|
+
|
|
72
|
+
type: 'permission.updated';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export namespace EventPermissionUpdated {
|
|
76
|
+
export interface Properties {
|
|
77
|
+
id: string;
|
|
78
|
+
|
|
79
|
+
metadata: { [key: string]: unknown };
|
|
80
|
+
|
|
81
|
+
sessionID: string;
|
|
82
|
+
|
|
83
|
+
time: Properties.Time;
|
|
84
|
+
|
|
85
|
+
title: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace Properties {
|
|
89
|
+
export interface Time {
|
|
90
|
+
created: number;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface EventMessageUpdated {
|
|
96
|
+
properties: EventMessageUpdated.Properties;
|
|
97
|
+
|
|
98
|
+
type: 'message.updated';
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace EventMessageUpdated {
|
|
102
|
+
export interface Properties {
|
|
103
|
+
info: SessionChatAPI.MessageInfo;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface EventMessagePartUpdated {
|
|
108
|
+
properties: EventMessagePartUpdated.Properties;
|
|
109
|
+
|
|
110
|
+
type: 'message.part.updated';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace EventMessagePartUpdated {
|
|
114
|
+
export interface Properties {
|
|
115
|
+
messageID: string;
|
|
116
|
+
|
|
117
|
+
part: SessionChatAPI.MessagePart;
|
|
118
|
+
|
|
119
|
+
sessionID: string;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface EventSessionUpdated {
|
|
124
|
+
properties: EventSessionUpdated.Properties;
|
|
125
|
+
|
|
126
|
+
type: 'session.updated';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace EventSessionUpdated {
|
|
130
|
+
export interface Properties {
|
|
131
|
+
info: SessionCreateAPI.SessionInfo;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface EventSessionError {
|
|
136
|
+
properties: EventSessionError.Properties;
|
|
137
|
+
|
|
138
|
+
type: 'session.error';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export namespace EventSessionError {
|
|
142
|
+
export interface Properties {
|
|
143
|
+
error?: SessionChatAPI.ProviderAuthError | SessionChatAPI.UnknownError;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare namespace Event {
|
|
149
|
+
export { type EventListResponse as EventListResponse };
|
|
150
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class FileSearch extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Search for files
|
|
10
|
+
*/
|
|
11
|
+
search(body: FileSearchSearchParams, options?: RequestOptions): APIPromise<FileSearchSearchResponse> {
|
|
12
|
+
return this._client.post('/file_search', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type FileSearchSearchResponse = Array<string>;
|
|
17
|
+
|
|
18
|
+
export interface FileSearchSearchParams {
|
|
19
|
+
query: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare namespace FileSearch {
|
|
23
|
+
export {
|
|
24
|
+
type FileSearchSearchResponse as FileSearchSearchResponse,
|
|
25
|
+
type FileSearchSearchParams as FileSearchSearchParams,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { AppInfo, type AppInfoCreateResponse } from './app-info';
|
|
4
|
+
export { AppInitialize, type AppInitializeInitializeResponse } from './app-initialize';
|
|
5
|
+
export { ConfigGet, type ConfigGetRetrieveResponse } from './config-get';
|
|
6
|
+
export { Event, type EventListResponse } from './event';
|
|
7
|
+
export { FileSearch, type FileSearchSearchResponse, type FileSearchSearchParams } from './file-search';
|
|
8
|
+
export { InstallationInfo, type InstallationInfoCreateResponse } from './installation-info';
|
|
9
|
+
export { PathGet, type PathGetCreateResponse } from './path-get';
|
|
10
|
+
export { ProviderList, type ProviderListCreateResponse } from './provider-list';
|
|
11
|
+
export { SessionAbort, type SessionAbortAbortResponse, type SessionAbortAbortParams } from './session-abort';
|
|
12
|
+
export {
|
|
13
|
+
SessionChat,
|
|
14
|
+
type MessageInfo,
|
|
15
|
+
type MessagePart,
|
|
16
|
+
type ProviderAuthError,
|
|
17
|
+
type UnknownError,
|
|
18
|
+
type SessionChatCreateParams,
|
|
19
|
+
} from './session-chat';
|
|
20
|
+
export { SessionCreate, type SessionInfo } from './session-create';
|
|
21
|
+
export {
|
|
22
|
+
SessionInitialize,
|
|
23
|
+
type SessionInitializeCreateResponse,
|
|
24
|
+
type SessionInitializeCreateParams,
|
|
25
|
+
} from './session-initialize';
|
|
26
|
+
export { SessionList, type SessionListCreateResponse } from './session-list';
|
|
27
|
+
export {
|
|
28
|
+
SessionMessages,
|
|
29
|
+
type SessionMessageCreateResponse,
|
|
30
|
+
type SessionMessageCreateParams,
|
|
31
|
+
} from './session-messages';
|
|
32
|
+
export { SessionShare, type SessionShareCreateParams } from './session-share';
|
|
33
|
+
export {
|
|
34
|
+
SessionSummarize,
|
|
35
|
+
type SessionSummarizeSummarizeResponse,
|
|
36
|
+
type SessionSummarizeSummarizeParams,
|
|
37
|
+
} from './session-summarize';
|
|
38
|
+
export { SessionUnshare, type SessionUnshareUnshareParams } from './session-unshare';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class InstallationInfo extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get installation info
|
|
10
|
+
*/
|
|
11
|
+
create(options?: RequestOptions): APIPromise<InstallationInfoCreateResponse> {
|
|
12
|
+
return this._client.post('/installation_info', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface InstallationInfoCreateResponse {
|
|
17
|
+
latest: string;
|
|
18
|
+
|
|
19
|
+
version: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare namespace InstallationInfo {
|
|
23
|
+
export { type InstallationInfoCreateResponse as InstallationInfoCreateResponse };
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class PathGet extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get paths
|
|
10
|
+
*/
|
|
11
|
+
create(options?: RequestOptions): APIPromise<PathGetCreateResponse> {
|
|
12
|
+
return this._client.post('/path_get', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface PathGetCreateResponse {
|
|
17
|
+
config: string;
|
|
18
|
+
|
|
19
|
+
cwd: string;
|
|
20
|
+
|
|
21
|
+
data: string;
|
|
22
|
+
|
|
23
|
+
root: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare namespace PathGet {
|
|
27
|
+
export { type PathGetCreateResponse as PathGetCreateResponse };
|
|
28
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class ProviderList extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List all providers
|
|
10
|
+
*/
|
|
11
|
+
create(options?: RequestOptions): APIPromise<ProviderListCreateResponse> {
|
|
12
|
+
return this._client.post('/provider_list', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ProviderListCreateResponse {
|
|
17
|
+
default: { [key: string]: string };
|
|
18
|
+
|
|
19
|
+
providers: Array<ProviderListCreateResponse.Provider>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace ProviderListCreateResponse {
|
|
23
|
+
export interface Provider {
|
|
24
|
+
id: string;
|
|
25
|
+
|
|
26
|
+
env: Array<string>;
|
|
27
|
+
|
|
28
|
+
models: { [key: string]: Provider.Models };
|
|
29
|
+
|
|
30
|
+
name: string;
|
|
31
|
+
|
|
32
|
+
api?: string;
|
|
33
|
+
|
|
34
|
+
npm?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace Provider {
|
|
38
|
+
export interface Models {
|
|
39
|
+
id: string;
|
|
40
|
+
|
|
41
|
+
attachment: boolean;
|
|
42
|
+
|
|
43
|
+
cost: Models.Cost;
|
|
44
|
+
|
|
45
|
+
limit: Models.Limit;
|
|
46
|
+
|
|
47
|
+
name: string;
|
|
48
|
+
|
|
49
|
+
options: { [key: string]: unknown };
|
|
50
|
+
|
|
51
|
+
reasoning: boolean;
|
|
52
|
+
|
|
53
|
+
temperature: boolean;
|
|
54
|
+
|
|
55
|
+
tool_call: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace Models {
|
|
59
|
+
export interface Cost {
|
|
60
|
+
input: number;
|
|
61
|
+
|
|
62
|
+
output: number;
|
|
63
|
+
|
|
64
|
+
cache_read?: number;
|
|
65
|
+
|
|
66
|
+
cache_write?: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface Limit {
|
|
70
|
+
context: number;
|
|
71
|
+
|
|
72
|
+
output: number;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace ProviderList {
|
|
79
|
+
export { type ProviderListCreateResponse as ProviderListCreateResponse };
|
|
80
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class SessionAbort extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Abort a session
|
|
10
|
+
*/
|
|
11
|
+
abort(body: SessionAbortAbortParams, options?: RequestOptions): APIPromise<SessionAbortAbortResponse> {
|
|
12
|
+
return this._client.post('/session_abort', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SessionAbortAbortResponse = boolean;
|
|
17
|
+
|
|
18
|
+
export interface SessionAbortAbortParams {
|
|
19
|
+
sessionID: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare namespace SessionAbort {
|
|
23
|
+
export {
|
|
24
|
+
type SessionAbortAbortResponse as SessionAbortAbortResponse,
|
|
25
|
+
type SessionAbortAbortParams as SessionAbortAbortParams,
|
|
26
|
+
};
|
|
27
|
+
}
|