boltz-api 0.30.3
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 +708 -0
- package/LICENSE +201 -0
- package/README.md +466 -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 +219 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +219 -0
- package/client.d.ts.map +1 -0
- package/client.js +522 -0
- package/client.js.map +1 -0
- package/client.mjs +518 -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/pagination.d.mts +78 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +78 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +154 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +147 -0
- package/core/pagination.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 +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -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 +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.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/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.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 +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +153 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -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/admin/admin.d.mts +21 -0
- package/resources/admin/admin.d.mts.map +1 -0
- package/resources/admin/admin.d.ts +21 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +28 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +23 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/api-keys.d.mts +166 -0
- package/resources/admin/api-keys.d.mts.map +1 -0
- package/resources/admin/api-keys.d.ts +166 -0
- package/resources/admin/api-keys.d.ts.map +1 -0
- package/resources/admin/api-keys.js +35 -0
- package/resources/admin/api-keys.js.map +1 -0
- package/resources/admin/api-keys.mjs +31 -0
- package/resources/admin/api-keys.mjs.map +1 -0
- package/resources/admin/index.d.mts +5 -0
- package/resources/admin/index.d.mts.map +1 -0
- package/resources/admin/index.d.ts +5 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +13 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +6 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/usage.d.mts +60 -0
- package/resources/admin/usage.d.mts.map +1 -0
- package/resources/admin/usage.d.ts +60 -0
- package/resources/admin/usage.d.ts.map +1 -0
- package/resources/admin/usage.js +23 -0
- package/resources/admin/usage.js.map +1 -0
- package/resources/admin/usage.mjs +19 -0
- package/resources/admin/usage.mjs.map +1 -0
- package/resources/admin/workspaces.d.mts +278 -0
- package/resources/admin/workspaces.d.mts.map +1 -0
- package/resources/admin/workspaces.d.ts +278 -0
- package/resources/admin/workspaces.d.ts.map +1 -0
- package/resources/admin/workspaces.js +48 -0
- package/resources/admin/workspaces.js.map +1 -0
- package/resources/admin/workspaces.mjs +44 -0
- package/resources/admin/workspaces.mjs.map +1 -0
- package/resources/admin.d.mts +2 -0
- package/resources/admin.d.mts.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +6 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/auth.d.mts +48 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +48 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +25 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +21 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/cli.d.mts +39 -0
- package/resources/cli.d.mts.map +1 -0
- package/resources/cli.d.ts +39 -0
- package/resources/cli.d.ts.map +1 -0
- package/resources/cli.js +23 -0
- package/resources/cli.js.map +1 -0
- package/resources/cli.mjs +19 -0
- package/resources/cli.mjs.map +1 -0
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +7 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +17 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -0
- package/resources/predictions/index.d.mts +3 -0
- package/resources/predictions/index.d.mts.map +1 -0
- package/resources/predictions/index.d.ts +3 -0
- package/resources/predictions/index.d.ts.map +1 -0
- package/resources/predictions/index.js +9 -0
- package/resources/predictions/index.js.map +1 -0
- package/resources/predictions/index.mjs +4 -0
- package/resources/predictions/index.mjs.map +1 -0
- package/resources/predictions/predictions.d.mts +13 -0
- package/resources/predictions/predictions.d.mts.map +1 -0
- package/resources/predictions/predictions.d.ts +13 -0
- package/resources/predictions/predictions.d.ts.map +1 -0
- package/resources/predictions/predictions.js +20 -0
- package/resources/predictions/predictions.js.map +1 -0
- package/resources/predictions/predictions.mjs +15 -0
- package/resources/predictions/predictions.mjs.map +1 -0
- package/resources/predictions/structure-and-binding.d.mts +2295 -0
- package/resources/predictions/structure-and-binding.d.mts.map +1 -0
- package/resources/predictions/structure-and-binding.d.ts +2295 -0
- package/resources/predictions/structure-and-binding.d.ts.map +1 -0
- package/resources/predictions/structure-and-binding.js +111 -0
- package/resources/predictions/structure-and-binding.js.map +1 -0
- package/resources/predictions/structure-and-binding.mjs +107 -0
- package/resources/predictions/structure-and-binding.mjs.map +1 -0
- package/resources/predictions.d.mts +2 -0
- package/resources/predictions.d.mts.map +1 -0
- package/resources/predictions.d.ts +2 -0
- package/resources/predictions.d.ts.map +1 -0
- package/resources/predictions.js +6 -0
- package/resources/predictions.js.map +1 -0
- package/resources/predictions.mjs +3 -0
- package/resources/predictions.mjs.map +1 -0
- package/resources/protein/design.d.mts +5760 -0
- package/resources/protein/design.d.mts.map +1 -0
- package/resources/protein/design.d.ts +5760 -0
- package/resources/protein/design.d.ts.map +1 -0
- package/resources/protein/design.js +157 -0
- package/resources/protein/design.js.map +1 -0
- package/resources/protein/design.mjs +153 -0
- package/resources/protein/design.mjs.map +1 -0
- package/resources/protein/index.d.mts +4 -0
- package/resources/protein/index.d.mts.map +1 -0
- package/resources/protein/index.d.ts +4 -0
- package/resources/protein/index.d.ts.map +1 -0
- package/resources/protein/index.js +11 -0
- package/resources/protein/index.js.map +1 -0
- package/resources/protein/index.mjs +5 -0
- package/resources/protein/index.mjs.map +1 -0
- package/resources/protein/library-screen.d.mts +3428 -0
- package/resources/protein/library-screen.d.mts.map +1 -0
- package/resources/protein/library-screen.d.ts +3428 -0
- package/resources/protein/library-screen.d.ts.map +1 -0
- package/resources/protein/library-screen.js +158 -0
- package/resources/protein/library-screen.js.map +1 -0
- package/resources/protein/library-screen.mjs +154 -0
- package/resources/protein/library-screen.mjs.map +1 -0
- package/resources/protein/protein.d.mts +17 -0
- package/resources/protein/protein.d.mts.map +1 -0
- package/resources/protein/protein.d.ts +17 -0
- package/resources/protein/protein.d.ts.map +1 -0
- package/resources/protein/protein.js +24 -0
- package/resources/protein/protein.js.map +1 -0
- package/resources/protein/protein.mjs +19 -0
- package/resources/protein/protein.mjs.map +1 -0
- package/resources/protein.d.mts +2 -0
- package/resources/protein.d.mts.map +1 -0
- package/resources/protein.d.ts +2 -0
- package/resources/protein.d.ts.map +1 -0
- package/resources/protein.js +6 -0
- package/resources/protein.js.map +1 -0
- package/resources/protein.mjs +3 -0
- package/resources/protein.mjs.map +1 -0
- package/resources/small-molecule/design.d.mts +3428 -0
- package/resources/small-molecule/design.d.mts.map +1 -0
- package/resources/small-molecule/design.d.ts +3428 -0
- package/resources/small-molecule/design.d.ts.map +1 -0
- package/resources/small-molecule/design.js +135 -0
- package/resources/small-molecule/design.js.map +1 -0
- package/resources/small-molecule/design.mjs +131 -0
- package/resources/small-molecule/design.mjs.map +1 -0
- package/resources/small-molecule/index.d.mts +4 -0
- package/resources/small-molecule/index.d.mts.map +1 -0
- package/resources/small-molecule/index.d.ts +4 -0
- package/resources/small-molecule/index.d.ts.map +1 -0
- package/resources/small-molecule/index.js +11 -0
- package/resources/small-molecule/index.js.map +1 -0
- package/resources/small-molecule/index.mjs +5 -0
- package/resources/small-molecule/index.mjs.map +1 -0
- package/resources/small-molecule/library-screen.d.mts +3494 -0
- package/resources/small-molecule/library-screen.d.mts.map +1 -0
- package/resources/small-molecule/library-screen.d.ts +3494 -0
- package/resources/small-molecule/library-screen.d.ts.map +1 -0
- package/resources/small-molecule/library-screen.js +129 -0
- package/resources/small-molecule/library-screen.js.map +1 -0
- package/resources/small-molecule/library-screen.mjs +125 -0
- package/resources/small-molecule/library-screen.mjs.map +1 -0
- package/resources/small-molecule/small-molecule.d.mts +17 -0
- package/resources/small-molecule/small-molecule.d.mts.map +1 -0
- package/resources/small-molecule/small-molecule.d.ts +17 -0
- package/resources/small-molecule/small-molecule.d.ts.map +1 -0
- package/resources/small-molecule/small-molecule.js +24 -0
- package/resources/small-molecule/small-molecule.js.map +1 -0
- package/resources/small-molecule/small-molecule.mjs +19 -0
- package/resources/small-molecule/small-molecule.mjs.map +1 -0
- package/resources/small-molecule.d.mts +2 -0
- package/resources/small-molecule.d.mts.map +1 -0
- package/resources/small-molecule.d.ts +2 -0
- package/resources/small-molecule.d.ts.map +1 -0
- package/resources/small-molecule.js +6 -0
- package/resources/small-molecule.js.map +1 -0
- package/resources/small-molecule.mjs +3 -0
- package/resources/small-molecule.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 +833 -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/pagination.ts +255 -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 +23 -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 +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -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 +93 -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/query.ts +7 -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 +9 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/admin/admin.ts +73 -0
- package/src/resources/admin/api-keys.ts +233 -0
- package/src/resources/admin/index.ts +30 -0
- package/src/resources/admin/usage.ts +107 -0
- package/src/resources/admin/workspaces.ts +370 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/auth.ts +68 -0
- package/src/resources/cli.ts +57 -0
- package/src/resources/index.ts +8 -0
- package/src/resources/predictions/index.ts +16 -0
- package/src/resources/predictions/predictions.ts +43 -0
- package/src/resources/predictions/structure-and-binding.ts +2892 -0
- package/src/resources/predictions.ts +3 -0
- package/src/resources/protein/design.ts +7175 -0
- package/src/resources/protein/index.ts +37 -0
- package/src/resources/protein/library-screen.ts +4306 -0
- package/src/resources/protein/protein.ts +88 -0
- package/src/resources/protein.ts +3 -0
- package/src/resources/small-molecule/design.ts +4229 -0
- package/src/resources/small-molecule/index.ts +37 -0
- package/src/resources/small-molecule/library-screen.ts +4312 -0
- package/src/resources/small-molecule/small-molecule.ts +88 -0
- package/src/resources/small-molecule.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,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { BoltzError } from '../../core/error';
|
|
4
|
+
|
|
5
|
+
// https://url.spec.whatwg.org/#url-scheme-string
|
|
6
|
+
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
7
|
+
|
|
8
|
+
export const isAbsoluteURL = (url: string): boolean => {
|
|
9
|
+
return startsWithSchemeRegexp.test(url);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export let isArray = (val: unknown): val is unknown[] => ((isArray = Array.isArray), isArray(val));
|
|
13
|
+
export let isReadonlyArray = isArray as (val: unknown) => val is readonly unknown[];
|
|
14
|
+
|
|
15
|
+
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
16
|
+
export function maybeObj(x: unknown): object {
|
|
17
|
+
if (typeof x !== 'object') {
|
|
18
|
+
return {};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return x ?? {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// https://stackoverflow.com/a/34491287
|
|
25
|
+
export function isEmptyObj(obj: Object | null | undefined): boolean {
|
|
26
|
+
if (!obj) return true;
|
|
27
|
+
for (const _k in obj) return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// https://eslint.org/docs/latest/rules/no-prototype-builtins
|
|
32
|
+
export function hasOwn<T extends object = object>(obj: T, key: PropertyKey): key is keyof T {
|
|
33
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function isObj(obj: unknown): obj is Record<string, unknown> {
|
|
37
|
+
return obj != null && typeof obj === 'object' && !Array.isArray(obj);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ensurePresent = <T>(value: T | null | undefined): T => {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
throw new BoltzError(`Expected a value to be given but received ${value} instead.`);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return value;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const validatePositiveInteger = (name: string, n: unknown): number => {
|
|
49
|
+
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
50
|
+
throw new BoltzError(`${name} must be an integer`);
|
|
51
|
+
}
|
|
52
|
+
if (n < 0) {
|
|
53
|
+
throw new BoltzError(`${name} must be a positive integer`);
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const coerceInteger = (value: unknown): number => {
|
|
59
|
+
if (typeof value === 'number') return Math.round(value);
|
|
60
|
+
if (typeof value === 'string') return parseInt(value, 10);
|
|
61
|
+
|
|
62
|
+
throw new BoltzError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const coerceFloat = (value: unknown): number => {
|
|
66
|
+
if (typeof value === 'number') return value;
|
|
67
|
+
if (typeof value === 'string') return parseFloat(value);
|
|
68
|
+
|
|
69
|
+
throw new BoltzError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const coerceBoolean = (value: unknown): boolean => {
|
|
73
|
+
if (typeof value === 'boolean') return value;
|
|
74
|
+
if (typeof value === 'string') return value === 'true';
|
|
75
|
+
return Boolean(value);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const maybeCoerceInteger = (value: unknown): number | undefined => {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
return coerceInteger(value);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const maybeCoerceFloat = (value: unknown): number | undefined => {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
return coerceFloat(value);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
return coerceBoolean(value);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const safeJSON = (text: string) => {
|
|
100
|
+
try {
|
|
101
|
+
return JSON.parse(text);
|
|
102
|
+
} catch (err) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export * from './utils/values';
|
|
4
|
+
export * from './utils/base64';
|
|
5
|
+
export * from './utils/env';
|
|
6
|
+
export * from './utils/log';
|
|
7
|
+
export * from './utils/uuid';
|
|
8
|
+
export * from './utils/sleep';
|
|
9
|
+
export * from './utils/query';
|
package/src/lib/.keep
ADDED
package/src/resource.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
5
|
+
import {
|
|
6
|
+
APIKeyCreateParams,
|
|
7
|
+
APIKeyCreateResponse,
|
|
8
|
+
APIKeyListParams,
|
|
9
|
+
APIKeyListResponse,
|
|
10
|
+
APIKeyListResponsesCursorPage,
|
|
11
|
+
APIKeyRevokeResponse,
|
|
12
|
+
APIKeys,
|
|
13
|
+
} from './api-keys';
|
|
14
|
+
import * as UsageAPI from './usage';
|
|
15
|
+
import { Usage, UsageListParams, UsageListResponse, UsageListResponsesOpaqueCursorPage } from './usage';
|
|
16
|
+
import * as WorkspacesAPI from './workspaces';
|
|
17
|
+
import {
|
|
18
|
+
WorkspaceArchiveResponse,
|
|
19
|
+
WorkspaceCreateParams,
|
|
20
|
+
WorkspaceCreateResponse,
|
|
21
|
+
WorkspaceListParams,
|
|
22
|
+
WorkspaceListResponse,
|
|
23
|
+
WorkspaceListResponsesCursorPage,
|
|
24
|
+
WorkspaceRetrieveResponse,
|
|
25
|
+
WorkspaceUpdateParams,
|
|
26
|
+
WorkspaceUpdateResponse,
|
|
27
|
+
Workspaces,
|
|
28
|
+
} from './workspaces';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Manage workspaces and API keys. Requires an admin API key. Admin keys have full access to all management and compute operations across all workspaces in the organization.
|
|
32
|
+
*/
|
|
33
|
+
export class Admin extends APIResource {
|
|
34
|
+
workspaces: WorkspacesAPI.Workspaces = new WorkspacesAPI.Workspaces(this._client);
|
|
35
|
+
apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
|
|
36
|
+
usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Admin.Workspaces = Workspaces;
|
|
40
|
+
Admin.APIKeys = APIKeys;
|
|
41
|
+
Admin.Usage = Usage;
|
|
42
|
+
|
|
43
|
+
export declare namespace Admin {
|
|
44
|
+
export {
|
|
45
|
+
Workspaces as Workspaces,
|
|
46
|
+
type WorkspaceCreateResponse as WorkspaceCreateResponse,
|
|
47
|
+
type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse,
|
|
48
|
+
type WorkspaceUpdateResponse as WorkspaceUpdateResponse,
|
|
49
|
+
type WorkspaceListResponse as WorkspaceListResponse,
|
|
50
|
+
type WorkspaceArchiveResponse as WorkspaceArchiveResponse,
|
|
51
|
+
type WorkspaceListResponsesCursorPage as WorkspaceListResponsesCursorPage,
|
|
52
|
+
type WorkspaceCreateParams as WorkspaceCreateParams,
|
|
53
|
+
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
54
|
+
type WorkspaceListParams as WorkspaceListParams,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
APIKeys as APIKeys,
|
|
59
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
60
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
61
|
+
type APIKeyRevokeResponse as APIKeyRevokeResponse,
|
|
62
|
+
type APIKeyListResponsesCursorPage as APIKeyListResponsesCursorPage,
|
|
63
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
64
|
+
type APIKeyListParams as APIKeyListParams,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
Usage as Usage,
|
|
69
|
+
type UsageListResponse as UsageListResponse,
|
|
70
|
+
type UsageListResponsesOpaqueCursorPage as UsageListResponsesOpaqueCursorPage,
|
|
71
|
+
type UsageListParams as UsageListParams,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
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 { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* API keys authenticate requests to the Boltz API. There are two key types: admin keys have full access to all management and compute operations across the organization, while workspace keys are scoped to a single workspace and can only perform compute operations (predictions, protein design, small molecule design) within that workspace. Keys can be created in live or test mode. Test keys (prefixed `sk_bc_*_test_`) create test-mode resources with synthetic data and no GPU cost. Every resource includes a `livemode` field indicating its mode.
|
|
11
|
+
*/
|
|
12
|
+
export class APIKeys extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Create a workspace API key
|
|
15
|
+
*/
|
|
16
|
+
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse> {
|
|
17
|
+
return this._client.post('/compute/v1/admin/api-keys', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* List API keys
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
query: APIKeyListParams | null | undefined = {},
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): PagePromise<APIKeyListResponsesCursorPage, APIKeyListResponse> {
|
|
27
|
+
return this._client.getAPIList('/compute/v1/admin/api-keys', CursorPage<APIKeyListResponse>, {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Revoke an API key
|
|
35
|
+
*/
|
|
36
|
+
revoke(apiKeyID: string, options?: RequestOptions): APIPromise<APIKeyRevokeResponse> {
|
|
37
|
+
return this._client.post(path`/compute/v1/admin/api-keys/${apiKeyID}/revoke`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type APIKeyListResponsesCursorPage = CursorPage<APIKeyListResponse>;
|
|
42
|
+
|
|
43
|
+
export interface APIKeyCreateResponse {
|
|
44
|
+
/**
|
|
45
|
+
* The full API key. This is only shown once — store it securely.
|
|
46
|
+
*/
|
|
47
|
+
key: string;
|
|
48
|
+
|
|
49
|
+
key_details: APIKeyCreateResponse.KeyDetails;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace APIKeyCreateResponse {
|
|
53
|
+
export interface KeyDetails {
|
|
54
|
+
/**
|
|
55
|
+
* API key ID
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* IP addresses allowed to use this key. An empty array means all IPs are allowed.
|
|
61
|
+
*/
|
|
62
|
+
allowed_ips: Array<string>;
|
|
63
|
+
|
|
64
|
+
created_at: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* When the key expires. Null if the key does not expire.
|
|
68
|
+
*/
|
|
69
|
+
expires_at: string | null;
|
|
70
|
+
|
|
71
|
+
is_active: boolean;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* First 12 characters of the key
|
|
75
|
+
*/
|
|
76
|
+
key_prefix: string;
|
|
77
|
+
|
|
78
|
+
key_type: 'workspace';
|
|
79
|
+
|
|
80
|
+
last_used_at: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Whether this is a live API key (false for test keys).
|
|
84
|
+
*/
|
|
85
|
+
livemode: boolean;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* API key name
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Workspace this key is scoped to
|
|
94
|
+
*/
|
|
95
|
+
workspace_id: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface APIKeyListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* API key ID
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* IP addresses allowed to use this key. An empty array means all IPs are allowed.
|
|
107
|
+
*/
|
|
108
|
+
allowed_ips: Array<string>;
|
|
109
|
+
|
|
110
|
+
created_at: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* When the key expires. Null if the key does not expire.
|
|
114
|
+
*/
|
|
115
|
+
expires_at: string | null;
|
|
116
|
+
|
|
117
|
+
is_active: boolean;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* First 12 characters of the key
|
|
121
|
+
*/
|
|
122
|
+
key_prefix: string;
|
|
123
|
+
|
|
124
|
+
key_type: 'admin' | 'workspace';
|
|
125
|
+
|
|
126
|
+
last_used_at: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Whether this is a live API key (false for test keys).
|
|
130
|
+
*/
|
|
131
|
+
livemode: boolean;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* API key name
|
|
135
|
+
*/
|
|
136
|
+
name: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Workspace ID if workspace-scoped
|
|
140
|
+
*/
|
|
141
|
+
workspace_id: string | null;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface APIKeyRevokeResponse {
|
|
145
|
+
/**
|
|
146
|
+
* API key ID
|
|
147
|
+
*/
|
|
148
|
+
id: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* IP addresses allowed to use this key. An empty array means all IPs are allowed.
|
|
152
|
+
*/
|
|
153
|
+
allowed_ips: Array<string>;
|
|
154
|
+
|
|
155
|
+
created_at: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* When the key expires. Null if the key does not expire.
|
|
159
|
+
*/
|
|
160
|
+
expires_at: string | null;
|
|
161
|
+
|
|
162
|
+
is_active: boolean;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* First 12 characters of the key
|
|
166
|
+
*/
|
|
167
|
+
key_prefix: string;
|
|
168
|
+
|
|
169
|
+
key_type: 'admin' | 'workspace';
|
|
170
|
+
|
|
171
|
+
last_used_at: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Whether this is a live API key (false for test keys).
|
|
175
|
+
*/
|
|
176
|
+
livemode: boolean;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* API key name
|
|
180
|
+
*/
|
|
181
|
+
name: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Workspace ID if workspace-scoped
|
|
185
|
+
*/
|
|
186
|
+
workspace_id: string | null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface APIKeyCreateParams {
|
|
190
|
+
/**
|
|
191
|
+
* API key name
|
|
192
|
+
*/
|
|
193
|
+
name: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* IP addresses allowed to use this key (IPv4 or IPv6). An empty array (the
|
|
197
|
+
* default) means all IPs are allowed.
|
|
198
|
+
*/
|
|
199
|
+
allowed_ips?: Array<string>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Days until the key expires. Omit for a key that does not expire.
|
|
203
|
+
*/
|
|
204
|
+
expires_in_days?: number;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Key mode. Test keys create test-mode resources with synthetic data.
|
|
208
|
+
*/
|
|
209
|
+
mode?: 'live' | 'test';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Workspace ID to scope this key to. Omit for default workspace.
|
|
213
|
+
*/
|
|
214
|
+
workspace_id?: string;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface APIKeyListParams extends CursorPageParams {
|
|
218
|
+
/**
|
|
219
|
+
* Filter by workspace ID. If not provided, returns keys across all workspaces.
|
|
220
|
+
*/
|
|
221
|
+
workspace_id?: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export declare namespace APIKeys {
|
|
225
|
+
export {
|
|
226
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
227
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
228
|
+
type APIKeyRevokeResponse as APIKeyRevokeResponse,
|
|
229
|
+
type APIKeyListResponsesCursorPage as APIKeyListResponsesCursorPage,
|
|
230
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
231
|
+
type APIKeyListParams as APIKeyListParams,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
APIKeys,
|
|
5
|
+
type APIKeyCreateResponse,
|
|
6
|
+
type APIKeyListResponse,
|
|
7
|
+
type APIKeyRevokeResponse,
|
|
8
|
+
type APIKeyCreateParams,
|
|
9
|
+
type APIKeyListParams,
|
|
10
|
+
type APIKeyListResponsesCursorPage,
|
|
11
|
+
} from './api-keys';
|
|
12
|
+
export { Admin } from './admin';
|
|
13
|
+
export {
|
|
14
|
+
Usage,
|
|
15
|
+
type UsageListResponse,
|
|
16
|
+
type UsageListParams,
|
|
17
|
+
type UsageListResponsesOpaqueCursorPage,
|
|
18
|
+
} from './usage';
|
|
19
|
+
export {
|
|
20
|
+
Workspaces,
|
|
21
|
+
type WorkspaceCreateResponse,
|
|
22
|
+
type WorkspaceRetrieveResponse,
|
|
23
|
+
type WorkspaceUpdateResponse,
|
|
24
|
+
type WorkspaceListResponse,
|
|
25
|
+
type WorkspaceArchiveResponse,
|
|
26
|
+
type WorkspaceCreateParams,
|
|
27
|
+
type WorkspaceUpdateParams,
|
|
28
|
+
type WorkspaceListParams,
|
|
29
|
+
type WorkspaceListResponsesCursorPage,
|
|
30
|
+
} from './workspaces';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { OpaqueCursorPage, type OpaqueCursorPageParams, PagePromise } from '../../core/pagination';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve aggregated usage data for the organization. Usage can be grouped by workspace and/or application, and filtered by time range, workspace, and application.
|
|
9
|
+
*/
|
|
10
|
+
export class Usage extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve aggregated usage data across the organization, optionally grouped by
|
|
13
|
+
* workspace and/or application.
|
|
14
|
+
*/
|
|
15
|
+
list(
|
|
16
|
+
query: UsageListParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): PagePromise<UsageListResponsesOpaqueCursorPage, UsageListResponse> {
|
|
19
|
+
return this._client.getAPIList('/compute/v1/admin/usage', OpaqueCursorPage<UsageListResponse>, {
|
|
20
|
+
query,
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type UsageListResponsesOpaqueCursorPage = OpaqueCursorPage<UsageListResponse>;
|
|
27
|
+
|
|
28
|
+
export interface UsageListResponse {
|
|
29
|
+
end_time: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Aggregated billed quantity for this bucket
|
|
33
|
+
*/
|
|
34
|
+
quantity: number;
|
|
35
|
+
|
|
36
|
+
start_time: string;
|
|
37
|
+
|
|
38
|
+
application?:
|
|
39
|
+
| 'structure_and_binding'
|
|
40
|
+
| 'small_molecule_design'
|
|
41
|
+
| 'small_molecule_library_screen'
|
|
42
|
+
| 'protein_design'
|
|
43
|
+
| 'protein_library_screen'
|
|
44
|
+
| 'adme';
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Present when grouped by workspace_id
|
|
48
|
+
*/
|
|
49
|
+
workspace_id?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface UsageListParams extends OpaqueCursorPageParams {
|
|
53
|
+
/**
|
|
54
|
+
* End of the time range as an ISO 8601 date-time with timezone, for example
|
|
55
|
+
* 2026-04-08T18:56:46Z
|
|
56
|
+
*/
|
|
57
|
+
ending_at: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Start of the time range as an ISO 8601 date-time with timezone, for example
|
|
61
|
+
* 2026-04-08T18:56:46Z
|
|
62
|
+
*/
|
|
63
|
+
starting_at: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Time window size. HOUR supports up to 31 days per query; DAY supports up to 365
|
|
67
|
+
* days per query.
|
|
68
|
+
*/
|
|
69
|
+
window_size: 'HOUR' | 'DAY';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Filter to specific applications
|
|
73
|
+
*/
|
|
74
|
+
'applications[]'?:
|
|
75
|
+
| 'structure_and_binding'
|
|
76
|
+
| 'small_molecule_design'
|
|
77
|
+
| 'small_molecule_library_screen'
|
|
78
|
+
| 'protein_design'
|
|
79
|
+
| 'protein_library_screen'
|
|
80
|
+
| 'adme'
|
|
81
|
+
| Array<
|
|
82
|
+
| 'structure_and_binding'
|
|
83
|
+
| 'small_molecule_design'
|
|
84
|
+
| 'small_molecule_library_screen'
|
|
85
|
+
| 'protein_design'
|
|
86
|
+
| 'protein_library_screen'
|
|
87
|
+
| 'adme'
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Group results by workspace_id and/or application
|
|
92
|
+
*/
|
|
93
|
+
'group_by[]'?: 'workspace_id' | 'application' | Array<'workspace_id' | 'application'>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Filter to specific workspace IDs
|
|
97
|
+
*/
|
|
98
|
+
'workspace_ids[]'?: string | Array<string>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare namespace Usage {
|
|
102
|
+
export {
|
|
103
|
+
type UsageListResponse as UsageListResponse,
|
|
104
|
+
type UsageListResponsesOpaqueCursorPage as UsageListResponsesOpaqueCursorPage,
|
|
105
|
+
type UsageListParams as UsageListParams,
|
|
106
|
+
};
|
|
107
|
+
}
|