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 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/admin/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAA4C;AAGrE;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,gBAAmC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Workspaces provide isolated environments for organizing predictions and engine runs across teams, projects, or customers. Each workspace has independent data retention settings and can be associated with workspace API keys.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Workspaces extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a workspace
|
|
11
|
+
*/
|
|
12
|
+
create(body: WorkspaceCreateParams, options?: RequestOptions): APIPromise<WorkspaceCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a workspace
|
|
15
|
+
*/
|
|
16
|
+
retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update a workspace
|
|
19
|
+
*/
|
|
20
|
+
update(workspaceID: string, body: WorkspaceUpdateParams, options?: RequestOptions): APIPromise<WorkspaceUpdateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List workspaces
|
|
23
|
+
*/
|
|
24
|
+
list(query?: WorkspaceListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceListResponsesCursorPage, WorkspaceListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Archives a workspace and deactivates all its API keys. This action is
|
|
27
|
+
* irreversible.
|
|
28
|
+
*/
|
|
29
|
+
archive(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceArchiveResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type WorkspaceListResponsesCursorPage = CursorPage<WorkspaceListResponse>;
|
|
32
|
+
export interface WorkspaceCreateResponse {
|
|
33
|
+
/**
|
|
34
|
+
* Workspace ID
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
archived_at: string | null;
|
|
38
|
+
created_at: string;
|
|
39
|
+
/**
|
|
40
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
41
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
42
|
+
*/
|
|
43
|
+
data_retention: WorkspaceCreateResponse.DataRetention;
|
|
44
|
+
/**
|
|
45
|
+
* Whether this is the default workspace
|
|
46
|
+
*/
|
|
47
|
+
is_default: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Workspace name
|
|
50
|
+
*/
|
|
51
|
+
name: string | null;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace WorkspaceCreateResponse {
|
|
55
|
+
/**
|
|
56
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
57
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
58
|
+
*/
|
|
59
|
+
interface DataRetention {
|
|
60
|
+
/**
|
|
61
|
+
* Time unit for retention duration
|
|
62
|
+
*/
|
|
63
|
+
unit: 'hours' | 'days';
|
|
64
|
+
/**
|
|
65
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
66
|
+
*/
|
|
67
|
+
value: number;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export interface WorkspaceRetrieveResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Workspace ID
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
archived_at: string | null;
|
|
76
|
+
created_at: string;
|
|
77
|
+
/**
|
|
78
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
79
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
80
|
+
*/
|
|
81
|
+
data_retention: WorkspaceRetrieveResponse.DataRetention;
|
|
82
|
+
/**
|
|
83
|
+
* Whether this is the default workspace
|
|
84
|
+
*/
|
|
85
|
+
is_default: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Workspace name
|
|
88
|
+
*/
|
|
89
|
+
name: string | null;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace WorkspaceRetrieveResponse {
|
|
93
|
+
/**
|
|
94
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
95
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
96
|
+
*/
|
|
97
|
+
interface DataRetention {
|
|
98
|
+
/**
|
|
99
|
+
* Time unit for retention duration
|
|
100
|
+
*/
|
|
101
|
+
unit: 'hours' | 'days';
|
|
102
|
+
/**
|
|
103
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
104
|
+
*/
|
|
105
|
+
value: number;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export interface WorkspaceUpdateResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Workspace ID
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
archived_at: string | null;
|
|
114
|
+
created_at: string;
|
|
115
|
+
/**
|
|
116
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
117
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
118
|
+
*/
|
|
119
|
+
data_retention: WorkspaceUpdateResponse.DataRetention;
|
|
120
|
+
/**
|
|
121
|
+
* Whether this is the default workspace
|
|
122
|
+
*/
|
|
123
|
+
is_default: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Workspace name
|
|
126
|
+
*/
|
|
127
|
+
name: string | null;
|
|
128
|
+
updated_at: string;
|
|
129
|
+
}
|
|
130
|
+
export declare namespace WorkspaceUpdateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
133
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
134
|
+
*/
|
|
135
|
+
interface DataRetention {
|
|
136
|
+
/**
|
|
137
|
+
* Time unit for retention duration
|
|
138
|
+
*/
|
|
139
|
+
unit: 'hours' | 'days';
|
|
140
|
+
/**
|
|
141
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
142
|
+
*/
|
|
143
|
+
value: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export interface WorkspaceListResponse {
|
|
147
|
+
/**
|
|
148
|
+
* Workspace ID
|
|
149
|
+
*/
|
|
150
|
+
id: string;
|
|
151
|
+
archived_at: string | null;
|
|
152
|
+
created_at: string;
|
|
153
|
+
/**
|
|
154
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
155
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
156
|
+
*/
|
|
157
|
+
data_retention: WorkspaceListResponse.DataRetention;
|
|
158
|
+
/**
|
|
159
|
+
* Whether this is the default workspace
|
|
160
|
+
*/
|
|
161
|
+
is_default: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Workspace name
|
|
164
|
+
*/
|
|
165
|
+
name: string | null;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace WorkspaceListResponse {
|
|
169
|
+
/**
|
|
170
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
171
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
172
|
+
*/
|
|
173
|
+
interface DataRetention {
|
|
174
|
+
/**
|
|
175
|
+
* Time unit for retention duration
|
|
176
|
+
*/
|
|
177
|
+
unit: 'hours' | 'days';
|
|
178
|
+
/**
|
|
179
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
180
|
+
*/
|
|
181
|
+
value: number;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export interface WorkspaceArchiveResponse {
|
|
185
|
+
/**
|
|
186
|
+
* Workspace ID
|
|
187
|
+
*/
|
|
188
|
+
id: string;
|
|
189
|
+
archived_at: string | null;
|
|
190
|
+
created_at: string;
|
|
191
|
+
/**
|
|
192
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
193
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
194
|
+
*/
|
|
195
|
+
data_retention: WorkspaceArchiveResponse.DataRetention;
|
|
196
|
+
/**
|
|
197
|
+
* Whether this is the default workspace
|
|
198
|
+
*/
|
|
199
|
+
is_default: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Workspace name
|
|
202
|
+
*/
|
|
203
|
+
name: string | null;
|
|
204
|
+
updated_at: string;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace WorkspaceArchiveResponse {
|
|
207
|
+
/**
|
|
208
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
209
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
210
|
+
*/
|
|
211
|
+
interface DataRetention {
|
|
212
|
+
/**
|
|
213
|
+
* Time unit for retention duration
|
|
214
|
+
*/
|
|
215
|
+
unit: 'hours' | 'days';
|
|
216
|
+
/**
|
|
217
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
218
|
+
*/
|
|
219
|
+
value: number;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export interface WorkspaceCreateParams {
|
|
223
|
+
/**
|
|
224
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
225
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
226
|
+
*/
|
|
227
|
+
data_retention?: WorkspaceCreateParams.DataRetention;
|
|
228
|
+
/**
|
|
229
|
+
* Workspace name
|
|
230
|
+
*/
|
|
231
|
+
name?: string;
|
|
232
|
+
}
|
|
233
|
+
export declare namespace WorkspaceCreateParams {
|
|
234
|
+
/**
|
|
235
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
236
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
237
|
+
*/
|
|
238
|
+
interface DataRetention {
|
|
239
|
+
/**
|
|
240
|
+
* Time unit for retention duration
|
|
241
|
+
*/
|
|
242
|
+
unit: 'hours' | 'days';
|
|
243
|
+
/**
|
|
244
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
245
|
+
*/
|
|
246
|
+
value: number;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
export interface WorkspaceUpdateParams {
|
|
250
|
+
/**
|
|
251
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
252
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
253
|
+
*/
|
|
254
|
+
data_retention?: WorkspaceUpdateParams.DataRetention;
|
|
255
|
+
name?: string | null;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace WorkspaceUpdateParams {
|
|
258
|
+
/**
|
|
259
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
260
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
261
|
+
*/
|
|
262
|
+
interface DataRetention {
|
|
263
|
+
/**
|
|
264
|
+
* Time unit for retention duration
|
|
265
|
+
*/
|
|
266
|
+
unit: 'hours' | 'days';
|
|
267
|
+
/**
|
|
268
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
269
|
+
*/
|
|
270
|
+
value: number;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
export interface WorkspaceListParams extends CursorPageParams {
|
|
274
|
+
}
|
|
275
|
+
export declare namespace Workspaces {
|
|
276
|
+
export { type WorkspaceCreateResponse as WorkspaceCreateResponse, type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse, type WorkspaceUpdateResponse as WorkspaceUpdateResponse, type WorkspaceListResponse as WorkspaceListResponse, type WorkspaceArchiveResponse as WorkspaceArchiveResponse, type WorkspaceListResponsesCursorPage as WorkspaceListResponsesCursorPage, type WorkspaceCreateParams as WorkspaceCreateParams, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, };
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=workspaces.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../../src/resources/admin/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,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,EAAE,qBAAqB,CAAC,aAAa,CAAC;IAErD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Workspaces provide isolated environments for organizing predictions and engine runs across teams, projects, or customers. Each workspace has independent data retention settings and can be associated with workspace API keys.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Workspaces extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a workspace
|
|
11
|
+
*/
|
|
12
|
+
create(body: WorkspaceCreateParams, options?: RequestOptions): APIPromise<WorkspaceCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a workspace
|
|
15
|
+
*/
|
|
16
|
+
retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update a workspace
|
|
19
|
+
*/
|
|
20
|
+
update(workspaceID: string, body: WorkspaceUpdateParams, options?: RequestOptions): APIPromise<WorkspaceUpdateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List workspaces
|
|
23
|
+
*/
|
|
24
|
+
list(query?: WorkspaceListParams | null | undefined, options?: RequestOptions): PagePromise<WorkspaceListResponsesCursorPage, WorkspaceListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Archives a workspace and deactivates all its API keys. This action is
|
|
27
|
+
* irreversible.
|
|
28
|
+
*/
|
|
29
|
+
archive(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceArchiveResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type WorkspaceListResponsesCursorPage = CursorPage<WorkspaceListResponse>;
|
|
32
|
+
export interface WorkspaceCreateResponse {
|
|
33
|
+
/**
|
|
34
|
+
* Workspace ID
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
archived_at: string | null;
|
|
38
|
+
created_at: string;
|
|
39
|
+
/**
|
|
40
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
41
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
42
|
+
*/
|
|
43
|
+
data_retention: WorkspaceCreateResponse.DataRetention;
|
|
44
|
+
/**
|
|
45
|
+
* Whether this is the default workspace
|
|
46
|
+
*/
|
|
47
|
+
is_default: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Workspace name
|
|
50
|
+
*/
|
|
51
|
+
name: string | null;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace WorkspaceCreateResponse {
|
|
55
|
+
/**
|
|
56
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
57
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
58
|
+
*/
|
|
59
|
+
interface DataRetention {
|
|
60
|
+
/**
|
|
61
|
+
* Time unit for retention duration
|
|
62
|
+
*/
|
|
63
|
+
unit: 'hours' | 'days';
|
|
64
|
+
/**
|
|
65
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
66
|
+
*/
|
|
67
|
+
value: number;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export interface WorkspaceRetrieveResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Workspace ID
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
archived_at: string | null;
|
|
76
|
+
created_at: string;
|
|
77
|
+
/**
|
|
78
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
79
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
80
|
+
*/
|
|
81
|
+
data_retention: WorkspaceRetrieveResponse.DataRetention;
|
|
82
|
+
/**
|
|
83
|
+
* Whether this is the default workspace
|
|
84
|
+
*/
|
|
85
|
+
is_default: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Workspace name
|
|
88
|
+
*/
|
|
89
|
+
name: string | null;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace WorkspaceRetrieveResponse {
|
|
93
|
+
/**
|
|
94
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
95
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
96
|
+
*/
|
|
97
|
+
interface DataRetention {
|
|
98
|
+
/**
|
|
99
|
+
* Time unit for retention duration
|
|
100
|
+
*/
|
|
101
|
+
unit: 'hours' | 'days';
|
|
102
|
+
/**
|
|
103
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
104
|
+
*/
|
|
105
|
+
value: number;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export interface WorkspaceUpdateResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Workspace ID
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
archived_at: string | null;
|
|
114
|
+
created_at: string;
|
|
115
|
+
/**
|
|
116
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
117
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
118
|
+
*/
|
|
119
|
+
data_retention: WorkspaceUpdateResponse.DataRetention;
|
|
120
|
+
/**
|
|
121
|
+
* Whether this is the default workspace
|
|
122
|
+
*/
|
|
123
|
+
is_default: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Workspace name
|
|
126
|
+
*/
|
|
127
|
+
name: string | null;
|
|
128
|
+
updated_at: string;
|
|
129
|
+
}
|
|
130
|
+
export declare namespace WorkspaceUpdateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
133
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
134
|
+
*/
|
|
135
|
+
interface DataRetention {
|
|
136
|
+
/**
|
|
137
|
+
* Time unit for retention duration
|
|
138
|
+
*/
|
|
139
|
+
unit: 'hours' | 'days';
|
|
140
|
+
/**
|
|
141
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
142
|
+
*/
|
|
143
|
+
value: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export interface WorkspaceListResponse {
|
|
147
|
+
/**
|
|
148
|
+
* Workspace ID
|
|
149
|
+
*/
|
|
150
|
+
id: string;
|
|
151
|
+
archived_at: string | null;
|
|
152
|
+
created_at: string;
|
|
153
|
+
/**
|
|
154
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
155
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
156
|
+
*/
|
|
157
|
+
data_retention: WorkspaceListResponse.DataRetention;
|
|
158
|
+
/**
|
|
159
|
+
* Whether this is the default workspace
|
|
160
|
+
*/
|
|
161
|
+
is_default: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Workspace name
|
|
164
|
+
*/
|
|
165
|
+
name: string | null;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace WorkspaceListResponse {
|
|
169
|
+
/**
|
|
170
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
171
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
172
|
+
*/
|
|
173
|
+
interface DataRetention {
|
|
174
|
+
/**
|
|
175
|
+
* Time unit for retention duration
|
|
176
|
+
*/
|
|
177
|
+
unit: 'hours' | 'days';
|
|
178
|
+
/**
|
|
179
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
180
|
+
*/
|
|
181
|
+
value: number;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export interface WorkspaceArchiveResponse {
|
|
185
|
+
/**
|
|
186
|
+
* Workspace ID
|
|
187
|
+
*/
|
|
188
|
+
id: string;
|
|
189
|
+
archived_at: string | null;
|
|
190
|
+
created_at: string;
|
|
191
|
+
/**
|
|
192
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
193
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
194
|
+
*/
|
|
195
|
+
data_retention: WorkspaceArchiveResponse.DataRetention;
|
|
196
|
+
/**
|
|
197
|
+
* Whether this is the default workspace
|
|
198
|
+
*/
|
|
199
|
+
is_default: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Workspace name
|
|
202
|
+
*/
|
|
203
|
+
name: string | null;
|
|
204
|
+
updated_at: string;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace WorkspaceArchiveResponse {
|
|
207
|
+
/**
|
|
208
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
209
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
210
|
+
*/
|
|
211
|
+
interface DataRetention {
|
|
212
|
+
/**
|
|
213
|
+
* Time unit for retention duration
|
|
214
|
+
*/
|
|
215
|
+
unit: 'hours' | 'days';
|
|
216
|
+
/**
|
|
217
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
218
|
+
*/
|
|
219
|
+
value: number;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export interface WorkspaceCreateParams {
|
|
223
|
+
/**
|
|
224
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
225
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
226
|
+
*/
|
|
227
|
+
data_retention?: WorkspaceCreateParams.DataRetention;
|
|
228
|
+
/**
|
|
229
|
+
* Workspace name
|
|
230
|
+
*/
|
|
231
|
+
name?: string;
|
|
232
|
+
}
|
|
233
|
+
export declare namespace WorkspaceCreateParams {
|
|
234
|
+
/**
|
|
235
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
236
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
237
|
+
*/
|
|
238
|
+
interface DataRetention {
|
|
239
|
+
/**
|
|
240
|
+
* Time unit for retention duration
|
|
241
|
+
*/
|
|
242
|
+
unit: 'hours' | 'days';
|
|
243
|
+
/**
|
|
244
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
245
|
+
*/
|
|
246
|
+
value: number;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
export interface WorkspaceUpdateParams {
|
|
250
|
+
/**
|
|
251
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
252
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
253
|
+
*/
|
|
254
|
+
data_retention?: WorkspaceUpdateParams.DataRetention;
|
|
255
|
+
name?: string | null;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace WorkspaceUpdateParams {
|
|
258
|
+
/**
|
|
259
|
+
* How long result data is retained before automatic deletion. Defaults to 7 days
|
|
260
|
+
* if not specified. Maximum retention is 14 days (336 hours).
|
|
261
|
+
*/
|
|
262
|
+
interface DataRetention {
|
|
263
|
+
/**
|
|
264
|
+
* Time unit for retention duration
|
|
265
|
+
*/
|
|
266
|
+
unit: 'hours' | 'days';
|
|
267
|
+
/**
|
|
268
|
+
* Duration value. Maximum retention is 14 days (or 336 hours).
|
|
269
|
+
*/
|
|
270
|
+
value: number;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
export interface WorkspaceListParams extends CursorPageParams {
|
|
274
|
+
}
|
|
275
|
+
export declare namespace Workspaces {
|
|
276
|
+
export { type WorkspaceCreateResponse as WorkspaceCreateResponse, type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse, type WorkspaceUpdateResponse as WorkspaceUpdateResponse, type WorkspaceListResponse as WorkspaceListResponse, type WorkspaceArchiveResponse as WorkspaceArchiveResponse, type WorkspaceListResponsesCursorPage as WorkspaceListResponsesCursorPage, type WorkspaceCreateParams as WorkspaceCreateParams, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, };
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/resources/admin/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAA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AgC,EACzE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.Workspaces = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Workspaces provide isolated environments for organizing predictions and engine runs across teams, projects, or customers. Each workspace has independent data retention settings and can be associated with workspace API keys.
|
|
10
|
+
*/
|
|
11
|
+
class Workspaces extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a workspace
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/compute/v1/admin/workspaces', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get a workspace
|
|
20
|
+
*/
|
|
21
|
+
retrieve(workspaceID, options) {
|
|
22
|
+
return this._client.get((0, path_1.path) `/compute/v1/admin/workspaces/${workspaceID}`, options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Update a workspace
|
|
26
|
+
*/
|
|
27
|
+
update(workspaceID, body, options) {
|
|
28
|
+
return this._client.post((0, path_1.path) `/compute/v1/admin/workspaces/${workspaceID}`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* List workspaces
|
|
32
|
+
*/
|
|
33
|
+
list(query = {}, options) {
|
|
34
|
+
return this._client.getAPIList('/compute/v1/admin/workspaces', (pagination_1.CursorPage), {
|
|
35
|
+
query,
|
|
36
|
+
...options,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Archives a workspace and deactivates all its API keys. This action is
|
|
41
|
+
* irreversible.
|
|
42
|
+
*/
|
|
43
|
+
archive(workspaceID, options) {
|
|
44
|
+
return this._client.post((0, path_1.path) `/compute/v1/admin/workspaces/${workspaceID}/archive`, options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Workspaces = Workspaces;
|
|
48
|
+
//# sourceMappingURL=workspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/resources/admin/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF;AAEvF,uDAAiD;AAEjD;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gCAAgC,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,8BAA8B,EAAE,CAAA,uBAAiC,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,WAAmB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gCAAgC,WAAW,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF;AA9CD,gCA8CC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Workspaces provide isolated environments for organizing predictions and engine runs across teams, projects, or customers. Each workspace has independent data retention settings and can be associated with workspace API keys.
|
|
7
|
+
*/
|
|
8
|
+
export class Workspaces extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a workspace
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/compute/v1/admin/workspaces', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get a workspace
|
|
17
|
+
*/
|
|
18
|
+
retrieve(workspaceID, options) {
|
|
19
|
+
return this._client.get(path `/compute/v1/admin/workspaces/${workspaceID}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Update a workspace
|
|
23
|
+
*/
|
|
24
|
+
update(workspaceID, body, options) {
|
|
25
|
+
return this._client.post(path `/compute/v1/admin/workspaces/${workspaceID}`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* List workspaces
|
|
29
|
+
*/
|
|
30
|
+
list(query = {}, options) {
|
|
31
|
+
return this._client.getAPIList('/compute/v1/admin/workspaces', (CursorPage), {
|
|
32
|
+
query,
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Archives a workspace and deactivates all its API keys. This action is
|
|
38
|
+
* irreversible.
|
|
39
|
+
*/
|
|
40
|
+
archive(workspaceID, options) {
|
|
41
|
+
return this._client.post(path `/compute/v1/admin/workspaces/${workspaceID}/archive`, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=workspaces.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../../src/resources/admin/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gCAAgC,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,8BAA8B,EAAE,CAAA,UAAiC,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,WAAmB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gCAAgC,WAAW,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.mts","sourceRoot":"","sources":["../src/resources/admin.ts"],"names":[],"mappings":""}
|