@continuous-labs/sdk 0.0.4
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/FUNCTIONS.md +87 -0
- package/LICENSE +21 -0
- package/README.md +493 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/simulations-create-simulation.d.ts +18 -0
- package/esm/funcs/simulations-create-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-create-simulation.js +86 -0
- package/esm/funcs/simulations-create-simulation.js.map +1 -0
- package/esm/funcs/simulations-delete-simulation.d.ts +18 -0
- package/esm/funcs/simulations-delete-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-delete-simulation.js +93 -0
- package/esm/funcs/simulations-delete-simulation.js.map +1 -0
- package/esm/funcs/simulations-fork-simulation.d.ts +19 -0
- package/esm/funcs/simulations-fork-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-fork-simulation.js +93 -0
- package/esm/funcs/simulations-fork-simulation.js.map +1 -0
- package/esm/funcs/simulations-get-simulation.d.ts +19 -0
- package/esm/funcs/simulations-get-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-get-simulation.js +94 -0
- package/esm/funcs/simulations-get-simulation.js.map +1 -0
- package/esm/funcs/simulations-list-simulation-steps.d.ts +19 -0
- package/esm/funcs/simulations-list-simulation-steps.d.ts.map +1 -0
- package/esm/funcs/simulations-list-simulation-steps.js +99 -0
- package/esm/funcs/simulations-list-simulation-steps.js.map +1 -0
- package/esm/funcs/simulations-list-simulations.d.ts +19 -0
- package/esm/funcs/simulations-list-simulations.d.ts.map +1 -0
- package/esm/funcs/simulations-list-simulations.js +95 -0
- package/esm/funcs/simulations-list-simulations.js.map +1 -0
- package/esm/funcs/simulations-mint-simulation-token.d.ts +19 -0
- package/esm/funcs/simulations-mint-simulation-token.d.ts.map +1 -0
- package/esm/funcs/simulations-mint-simulation-token.js +93 -0
- package/esm/funcs/simulations-mint-simulation-token.js.map +1 -0
- package/esm/funcs/simulations-start-simulation.d.ts +19 -0
- package/esm/funcs/simulations-start-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-start-simulation.js +94 -0
- package/esm/funcs/simulations-start-simulation.js.map +1 -0
- package/esm/funcs/simulations-stop-simulation.d.ts +19 -0
- package/esm/funcs/simulations-stop-simulation.d.ts.map +1 -0
- package/esm/funcs/simulations-stop-simulation.js +94 -0
- package/esm/funcs/simulations-stop-simulation.js.map +1 -0
- package/esm/funcs/simulators-build-simulator.d.ts +19 -0
- package/esm/funcs/simulators-build-simulator.d.ts.map +1 -0
- package/esm/funcs/simulators-build-simulator.js +109 -0
- package/esm/funcs/simulators-build-simulator.js.map +1 -0
- package/esm/funcs/simulators-cancel-simulator-build.d.ts +19 -0
- package/esm/funcs/simulators-cancel-simulator-build.d.ts.map +1 -0
- package/esm/funcs/simulators-cancel-simulator-build.js +94 -0
- package/esm/funcs/simulators-cancel-simulator-build.js.map +1 -0
- package/esm/funcs/simulators-delete-simulator.d.ts +18 -0
- package/esm/funcs/simulators-delete-simulator.d.ts.map +1 -0
- package/esm/funcs/simulators-delete-simulator.js +93 -0
- package/esm/funcs/simulators-delete-simulator.js.map +1 -0
- package/esm/funcs/simulators-get-simulator.d.ts +19 -0
- package/esm/funcs/simulators-get-simulator.d.ts.map +1 -0
- package/esm/funcs/simulators-get-simulator.js +94 -0
- package/esm/funcs/simulators-get-simulator.js.map +1 -0
- package/esm/funcs/simulators-list-simulators.d.ts +19 -0
- package/esm/funcs/simulators-list-simulators.d.ts.map +1 -0
- package/esm/funcs/simulators-list-simulators.js +95 -0
- package/esm/funcs/simulators-list-simulators.js.map +1 -0
- package/esm/funcs/worlds-build-world.d.ts +18 -0
- package/esm/funcs/worlds-build-world.d.ts.map +1 -0
- package/esm/funcs/worlds-build-world.js +86 -0
- package/esm/funcs/worlds-build-world.js.map +1 -0
- package/esm/funcs/worlds-cancel-world-build.d.ts +19 -0
- package/esm/funcs/worlds-cancel-world-build.d.ts.map +1 -0
- package/esm/funcs/worlds-cancel-world-build.js +94 -0
- package/esm/funcs/worlds-cancel-world-build.js.map +1 -0
- package/esm/funcs/worlds-delete-world.d.ts +18 -0
- package/esm/funcs/worlds-delete-world.d.ts.map +1 -0
- package/esm/funcs/worlds-delete-world.js +93 -0
- package/esm/funcs/worlds-delete-world.js.map +1 -0
- package/esm/funcs/worlds-get-world.d.ts +19 -0
- package/esm/funcs/worlds-get-world.d.ts.map +1 -0
- package/esm/funcs/worlds-get-world.js +94 -0
- package/esm/funcs/worlds-get-world.js.map +1 -0
- package/esm/funcs/worlds-list-worlds.d.ts +19 -0
- package/esm/funcs/worlds-list-worlds.d.ts.map +1 -0
- package/esm/funcs/worlds-list-worlds.js +93 -0
- package/esm/funcs/worlds-list-worlds.js.map +1 -0
- package/esm/funcs/worlds-start-world.d.ts +19 -0
- package/esm/funcs/worlds-start-world.d.ts.map +1 -0
- package/esm/funcs/worlds-start-world.js +94 -0
- package/esm/funcs/worlds-start-world.js.map +1 -0
- package/esm/funcs/worlds-stop-world.d.ts +19 -0
- package/esm/funcs/worlds-stop-world.d.ts.map +1 -0
- package/esm/funcs/worlds-stop-world.js +94 -0
- package/esm/funcs/worlds-stop-world.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +82 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/registration.d.ts +3 -0
- package/esm/hooks/registration.d.ts.map +1 -0
- package/esm/hooks/registration.js +12 -0
- package/esm/hooks/registration.js.map +1 -0
- package/esm/hooks/types.d.ts +77 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/encodings.d.ts +55 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +407 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +27 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +120 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +157 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +294 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +84 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +147 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/build-simulator-request.d.ts +67 -0
- package/esm/models/build-simulator-request.d.ts.map +1 -0
- package/esm/models/build-simulator-request.js +41 -0
- package/esm/models/build-simulator-request.js.map +1 -0
- package/esm/models/build-world-request.d.ts +20 -0
- package/esm/models/build-world-request.d.ts.map +1 -0
- package/esm/models/build-world-request.js +13 -0
- package/esm/models/build-world-request.js.map +1 -0
- package/esm/models/create-simulation-request.d.ts +20 -0
- package/esm/models/create-simulation-request.d.ts.map +1 -0
- package/esm/models/create-simulation-request.js +18 -0
- package/esm/models/create-simulation-request.js.map +1 -0
- package/esm/models/created-simulation.d.ts +60 -0
- package/esm/models/created-simulation.d.ts.map +1 -0
- package/esm/models/created-simulation.js +41 -0
- package/esm/models/created-simulation.js.map +1 -0
- package/esm/models/errors/continuous-default-error.d.ts +10 -0
- package/esm/models/errors/continuous-default-error.d.ts.map +1 -0
- package/esm/models/errors/continuous-default-error.js +30 -0
- package/esm/models/errors/continuous-default-error.js.map +1 -0
- package/esm/models/errors/continuous-error.d.ts +19 -0
- package/esm/models/errors/continuous-error.d.ts.map +1 -0
- package/esm/models/errors/continuous-error.js +26 -0
- package/esm/models/errors/continuous-error.js.map +1 -0
- package/esm/models/errors/continuous-simulation-default-error.d.ts +10 -0
- package/esm/models/errors/continuous-simulation-default-error.d.ts.map +1 -0
- package/esm/models/errors/continuous-simulation-default-error.js +30 -0
- package/esm/models/errors/continuous-simulation-default-error.js.map +1 -0
- package/esm/models/errors/continuous-simulation-error.d.ts +19 -0
- package/esm/models/errors/continuous-simulation-error.d.ts.map +1 -0
- package/esm/models/errors/continuous-simulation-error.js +26 -0
- package/esm/models/errors/continuous-simulation-error.js.map +1 -0
- package/esm/models/errors/error.d.ts +32 -0
- package/esm/models/errors/error.d.ts.map +1 -0
- package/esm/models/errors/error.js +43 -0
- package/esm/models/errors/error.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +10 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/fork-simulation-request.d.ts +20 -0
- package/esm/models/fork-simulation-request.d.ts.map +1 -0
- package/esm/models/fork-simulation-request.js +18 -0
- package/esm/models/fork-simulation-request.js.map +1 -0
- package/esm/models/index.d.ts +19 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +22 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/list-simulation-steps-response.d.ts +18 -0
- package/esm/models/list-simulation-steps-response.d.ts.map +1 -0
- package/esm/models/list-simulation-steps-response.js +21 -0
- package/esm/models/list-simulation-steps-response.js.map +1 -0
- package/esm/models/list-simulations-response.d.ts +18 -0
- package/esm/models/list-simulations-response.d.ts.map +1 -0
- package/esm/models/list-simulations-response.js +21 -0
- package/esm/models/list-simulations-response.js.map +1 -0
- package/esm/models/list-simulators-response.d.ts +18 -0
- package/esm/models/list-simulators-response.d.ts.map +1 -0
- package/esm/models/list-simulators-response.js +21 -0
- package/esm/models/list-simulators-response.js.map +1 -0
- package/esm/models/list-worlds-response.d.ts +18 -0
- package/esm/models/list-worlds-response.d.ts.map +1 -0
- package/esm/models/list-worlds-response.js +21 -0
- package/esm/models/list-worlds-response.js.map +1 -0
- package/esm/models/mint-simulation-token-request.d.ts +15 -0
- package/esm/models/mint-simulation-token-request.d.ts.map +1 -0
- package/esm/models/mint-simulation-token-request.js +17 -0
- package/esm/models/mint-simulation-token-request.js.map +1 -0
- package/esm/models/operations/build-simulator.d.ts +30 -0
- package/esm/models/operations/build-simulator.d.ts.map +1 -0
- package/esm/models/operations/build-simulator.js +28 -0
- package/esm/models/operations/build-simulator.js.map +1 -0
- package/esm/models/operations/cancel-simulator-build.d.ts +15 -0
- package/esm/models/operations/cancel-simulator-build.d.ts.map +1 -0
- package/esm/models/operations/cancel-simulator-build.js +12 -0
- package/esm/models/operations/cancel-simulator-build.js.map +1 -0
- package/esm/models/operations/cancel-world-build.d.ts +15 -0
- package/esm/models/operations/cancel-world-build.d.ts.map +1 -0
- package/esm/models/operations/cancel-world-build.js +12 -0
- package/esm/models/operations/cancel-world-build.js.map +1 -0
- package/esm/models/operations/delete-simulation.d.ts +15 -0
- package/esm/models/operations/delete-simulation.d.ts.map +1 -0
- package/esm/models/operations/delete-simulation.js +12 -0
- package/esm/models/operations/delete-simulation.js.map +1 -0
- package/esm/models/operations/delete-simulator.d.ts +15 -0
- package/esm/models/operations/delete-simulator.d.ts.map +1 -0
- package/esm/models/operations/delete-simulator.js +12 -0
- package/esm/models/operations/delete-simulator.js.map +1 -0
- package/esm/models/operations/delete-world.d.ts +15 -0
- package/esm/models/operations/delete-world.d.ts.map +1 -0
- package/esm/models/operations/delete-world.js +12 -0
- package/esm/models/operations/delete-world.js.map +1 -0
- package/esm/models/operations/fork-simulation.d.ts +18 -0
- package/esm/models/operations/fork-simulation.d.ts.map +1 -0
- package/esm/models/operations/fork-simulation.js +14 -0
- package/esm/models/operations/fork-simulation.js.map +1 -0
- package/esm/models/operations/get-simulation.d.ts +15 -0
- package/esm/models/operations/get-simulation.d.ts.map +1 -0
- package/esm/models/operations/get-simulation.js +12 -0
- package/esm/models/operations/get-simulation.js.map +1 -0
- package/esm/models/operations/get-simulator.d.ts +15 -0
- package/esm/models/operations/get-simulator.d.ts.map +1 -0
- package/esm/models/operations/get-simulator.js +12 -0
- package/esm/models/operations/get-simulator.js.map +1 -0
- package/esm/models/operations/get-world.d.ts +15 -0
- package/esm/models/operations/get-world.d.ts.map +1 -0
- package/esm/models/operations/get-world.js +12 -0
- package/esm/models/operations/get-world.js.map +1 -0
- package/esm/models/operations/index.d.ts +20 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +23 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/list-simulation-steps.d.ts +25 -0
- package/esm/models/operations/list-simulation-steps.d.ts.map +1 -0
- package/esm/models/operations/list-simulation-steps.js +14 -0
- package/esm/models/operations/list-simulation-steps.js.map +1 -0
- package/esm/models/operations/list-simulations.d.ts +45 -0
- package/esm/models/operations/list-simulations.d.ts.map +1 -0
- package/esm/models/operations/list-simulations.js +30 -0
- package/esm/models/operations/list-simulations.js.map +1 -0
- package/esm/models/operations/list-simulators.d.ts +46 -0
- package/esm/models/operations/list-simulators.d.ts.map +1 -0
- package/esm/models/operations/list-simulators.js +26 -0
- package/esm/models/operations/list-simulators.js.map +1 -0
- package/esm/models/operations/list-worlds.d.ts +20 -0
- package/esm/models/operations/list-worlds.d.ts.map +1 -0
- package/esm/models/operations/list-worlds.js +13 -0
- package/esm/models/operations/list-worlds.js.map +1 -0
- package/esm/models/operations/mint-simulation-token.d.ts +18 -0
- package/esm/models/operations/mint-simulation-token.d.ts.map +1 -0
- package/esm/models/operations/mint-simulation-token.js +14 -0
- package/esm/models/operations/mint-simulation-token.js.map +1 -0
- package/esm/models/operations/start-simulation.d.ts +15 -0
- package/esm/models/operations/start-simulation.d.ts.map +1 -0
- package/esm/models/operations/start-simulation.js +12 -0
- package/esm/models/operations/start-simulation.js.map +1 -0
- package/esm/models/operations/start-world.d.ts +15 -0
- package/esm/models/operations/start-world.d.ts.map +1 -0
- package/esm/models/operations/start-world.js +12 -0
- package/esm/models/operations/start-world.js.map +1 -0
- package/esm/models/operations/stop-simulation.d.ts +15 -0
- package/esm/models/operations/stop-simulation.d.ts.map +1 -0
- package/esm/models/operations/stop-simulation.js +12 -0
- package/esm/models/operations/stop-simulation.js.map +1 -0
- package/esm/models/operations/stop-world.d.ts +15 -0
- package/esm/models/operations/stop-world.d.ts.map +1 -0
- package/esm/models/operations/stop-world.js +12 -0
- package/esm/models/operations/stop-world.js.map +1 -0
- package/esm/models/resource-error.d.ts +17 -0
- package/esm/models/resource-error.d.ts.map +1 -0
- package/esm/models/resource-error.js +15 -0
- package/esm/models/resource-error.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/simulation-token.d.ts +17 -0
- package/esm/models/simulation-token.d.ts.map +1 -0
- package/esm/models/simulation-token.js +20 -0
- package/esm/models/simulation-token.js.map +1 -0
- package/esm/models/simulation.d.ts +52 -0
- package/esm/models/simulation.d.ts.map +1 -0
- package/esm/models/simulation.js +39 -0
- package/esm/models/simulation.js.map +1 -0
- package/esm/models/simulator.d.ts +64 -0
- package/esm/models/simulator.d.ts.map +1 -0
- package/esm/models/simulator.js +50 -0
- package/esm/models/simulator.js.map +1 -0
- package/esm/models/step.d.ts +17 -0
- package/esm/models/step.d.ts.map +1 -0
- package/esm/models/step.js +15 -0
- package/esm/models/step.js.map +1 -0
- package/esm/models/world-simulation.d.ts +17 -0
- package/esm/models/world-simulation.d.ts.map +1 -0
- package/esm/models/world-simulation.js +20 -0
- package/esm/models/world-simulation.js.map +1 -0
- package/esm/models/world.d.ts +54 -0
- package/esm/models/world.d.ts.map +1 -0
- package/esm/models/world.js +41 -0
- package/esm/models/world.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/sdk.d.ts +13 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +22 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/simulations.d.ts +69 -0
- package/esm/sdk/simulations.d.ts.map +1 -0
- package/esm/sdk/simulations.js +98 -0
- package/esm/sdk/simulations.js.map +1 -0
- package/esm/sdk/simulators.d.ts +41 -0
- package/esm/sdk/simulators.d.ts.map +1 -0
- package/esm/sdk/simulators.js +58 -0
- package/esm/sdk/simulators.js.map +1 -0
- package/esm/sdk/worlds.d.ts +55 -0
- package/esm/sdk/worlds.d.ts.map +1 -0
- package/esm/sdk/worlds.js +78 -0
- package/esm/sdk/worlds.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2712 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1031 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1698 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/install.js +300 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +720 -0
- package/examples/node_modules/esbuild/lib/main.js +2536 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-DCefr8NP.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-JeyyvQz6.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-BL7Whz21.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-DHgpdRjs.mjs +10 -0
- package/examples/node_modules/tsx/dist/register-SoqaU4rg.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-Cuv-0BLU.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/examples/simulationsListSimulations.example.ts +26 -0
- package/jsr.json +27 -0
- package/package.json +67 -0
- package/src/core.ts +13 -0
- package/src/funcs/simulations-create-simulation.ts +179 -0
- package/src/funcs/simulations-delete-simulation.ts +183 -0
- package/src/funcs/simulations-fork-simulation.ts +186 -0
- package/src/funcs/simulations-get-simulation.ts +183 -0
- package/src/funcs/simulations-list-simulation-steps.ts +190 -0
- package/src/funcs/simulations-list-simulations.ts +189 -0
- package/src/funcs/simulations-mint-simulation-token.ts +187 -0
- package/src/funcs/simulations-start-simulation.ts +183 -0
- package/src/funcs/simulations-stop-simulation.ts +183 -0
- package/src/funcs/simulators-build-simulator.ts +219 -0
- package/src/funcs/simulators-cancel-simulator-build.ts +184 -0
- package/src/funcs/simulators-delete-simulator.ts +182 -0
- package/src/funcs/simulators-get-simulator.ts +183 -0
- package/src/funcs/simulators-list-simulators.ts +189 -0
- package/src/funcs/worlds-build-world.ts +179 -0
- package/src/funcs/worlds-cancel-world-build.ts +184 -0
- package/src/funcs/worlds-delete-world.ts +182 -0
- package/src/funcs/worlds-get-world.ts +183 -0
- package/src/funcs/worlds-list-worlds.ts +184 -0
- package/src/funcs/worlds-start-world.ts +183 -0
- package/src/funcs/worlds-stop-world.ts +183 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +108 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/encodings.ts +564 -0
- package/src/lib/env.ts +61 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +325 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +166 -0
- package/src/lib/retries.ts +226 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +442 -0
- package/src/lib/security.ts +280 -0
- package/src/lib/url.ts +35 -0
- package/src/models/build-simulator-request.ts +107 -0
- package/src/models/build-world-request.ts +39 -0
- package/src/models/create-simulation-request.ts +47 -0
- package/src/models/created-simulation.ts +106 -0
- package/src/models/errors/continuous-default-error.ts +40 -0
- package/src/models/errors/continuous-error.ts +35 -0
- package/src/models/errors/error.ts +65 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/fork-simulation-request.ts +47 -0
- package/src/models/index.ts +22 -0
- package/src/models/list-simulation-steps-response.ts +48 -0
- package/src/models/list-simulations-response.ts +48 -0
- package/src/models/list-simulators-response.ts +48 -0
- package/src/models/list-worlds-response.ts +48 -0
- package/src/models/mint-simulation-token-request.ts +41 -0
- package/src/models/operations/build-simulator.ts +68 -0
- package/src/models/operations/cancel-simulator-build.ts +35 -0
- package/src/models/operations/cancel-world-build.ts +33 -0
- package/src/models/operations/delete-simulation.ts +33 -0
- package/src/models/operations/delete-simulator.ts +33 -0
- package/src/models/operations/delete-world.ts +33 -0
- package/src/models/operations/fork-simulation.ts +37 -0
- package/src/models/operations/get-simulation.ts +33 -0
- package/src/models/operations/get-simulator.ts +33 -0
- package/src/models/operations/get-world.ts +31 -0
- package/src/models/operations/index.ts +23 -0
- package/src/models/operations/list-simulation-steps.ts +45 -0
- package/src/models/operations/list-simulations.ts +78 -0
- package/src/models/operations/list-simulators.ts +71 -0
- package/src/models/operations/list-worlds.ts +39 -0
- package/src/models/operations/mint-simulation-token.ts +37 -0
- package/src/models/operations/start-simulation.ts +33 -0
- package/src/models/operations/start-world.ts +33 -0
- package/src/models/operations/stop-simulation.ts +33 -0
- package/src/models/operations/stop-world.ts +33 -0
- package/src/models/resource-error.ts +39 -0
- package/src/models/security.ts +26 -0
- package/src/models/simulation-token.ts +47 -0
- package/src/models/simulation.ts +93 -0
- package/src/models/simulator.ts +110 -0
- package/src/models/step.ts +36 -0
- package/src/models/world-simulation.ts +47 -0
- package/src/models/world.ts +96 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/simulations.ts +172 -0
- package/src/sdk/simulators.ts +100 -0
- package/src/sdk/worlds.ts +136 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { simulationsCreateSimulation } from "../funcs/simulations-create-simulation.js";
|
|
5
|
+
import { simulationsDeleteSimulation } from "../funcs/simulations-delete-simulation.js";
|
|
6
|
+
import { simulationsForkSimulation } from "../funcs/simulations-fork-simulation.js";
|
|
7
|
+
import { simulationsGetSimulation } from "../funcs/simulations-get-simulation.js";
|
|
8
|
+
import { simulationsListSimulationSteps } from "../funcs/simulations-list-simulation-steps.js";
|
|
9
|
+
import { simulationsListSimulations } from "../funcs/simulations-list-simulations.js";
|
|
10
|
+
import { simulationsMintSimulationToken } from "../funcs/simulations-mint-simulation-token.js";
|
|
11
|
+
import { simulationsStartSimulation } from "../funcs/simulations-start-simulation.js";
|
|
12
|
+
import { simulationsStopSimulation } from "../funcs/simulations-stop-simulation.js";
|
|
13
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
14
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
+
export class Simulations extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List Simulations
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Returns all Simulations that the API key can access. Results can be filtered by status or Simulator.
|
|
21
|
+
*/
|
|
22
|
+
async listSimulations(request, options) {
|
|
23
|
+
return unwrapAsync(simulationsListSimulations(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create Simulation
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Creates an isolated runtime from a ready Simulator. The response includes its endpoint and a 1-hour token.
|
|
30
|
+
*/
|
|
31
|
+
async createSimulation(request, options) {
|
|
32
|
+
return unwrapAsync(simulationsCreateSimulation(this, request, options));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete Simulation
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* Deletes a Simulation and its saved runtime state. Delete World-owned Simulations through their World.
|
|
39
|
+
*/
|
|
40
|
+
async deleteSimulation(request, options) {
|
|
41
|
+
return unwrapAsync(simulationsDeleteSimulation(this, request, options));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get Simulation
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* Returns a Simulation and its current runtime status. The response does not include data-plane tokens.
|
|
48
|
+
*/
|
|
49
|
+
async getSimulation(request, options) {
|
|
50
|
+
return unwrapAsync(simulationsGetSimulation(this, request, options));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Fork Simulation
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* Creates a Simulation with a 1-hour token. The source Simulation continues to run.
|
|
57
|
+
*/
|
|
58
|
+
async forkSimulation(request, options) {
|
|
59
|
+
return unwrapAsync(simulationsForkSimulation(this, request, options));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Start Simulation
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Starts a stopped Simulation from its saved runtime state. Its endpoint becomes available after the runtime starts.
|
|
66
|
+
*/
|
|
67
|
+
async startSimulation(request, options) {
|
|
68
|
+
return unwrapAsync(simulationsStartSimulation(this, request, options));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List Simulation Steps
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* Returns recorded steps for a running or paused Simulation. Use any step to create a deterministic fork.
|
|
75
|
+
*/
|
|
76
|
+
async listSimulationSteps(request, options) {
|
|
77
|
+
return unwrapAsync(simulationsListSimulationSteps(this, request, options));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Stop Simulation
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Stops a Simulation and saves its runtime state. You can start it later from the saved state.
|
|
84
|
+
*/
|
|
85
|
+
async stopSimulation(request, options) {
|
|
86
|
+
return unwrapAsync(simulationsStopSimulation(this, request, options));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Mint Simulation Token
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* Mints an expiring data-plane token. Send it in X-Continuous-Simulation-Token. Other unexpired tokens remain valid.
|
|
93
|
+
*/
|
|
94
|
+
async mintSimulationToken(request, options) {
|
|
95
|
+
return unwrapAsync(simulationsMintSimulationToken(this, request, options));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=simulations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulations.js","sourceRoot":"","sources":["../../src/sdk/simulations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,M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IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB,EACI;QAC5B,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB,EACS;QACjC,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Simulators extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* List Simulators
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Returns all Simulators that the API key can access. Results can be filtered by status or name.
|
|
10
|
+
*/
|
|
11
|
+
listSimulators(request?: operations.ListSimulatorsRequest | undefined, options?: RequestOptions): Promise<models.ListSimulatorsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Build Simulator
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Creates a Simulator from an OpenAPI or WSDL source. The build runs asynchronously. Send multipart/form-data with one JSON request part, and one spec file part for a spec build.
|
|
17
|
+
*/
|
|
18
|
+
buildSimulator(request: operations.BuildSimulatorRequest, options?: RequestOptions): Promise<models.Simulator>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete Simulator
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Deletes a Simulator that has no dependent Worlds, Simulations, or child Simulators.
|
|
24
|
+
*/
|
|
25
|
+
deleteSimulator(request: operations.DeleteSimulatorRequest, options?: RequestOptions): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Get Simulator
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Returns a Simulator and its current build status.
|
|
31
|
+
*/
|
|
32
|
+
getSimulator(request: operations.GetSimulatorRequest, options?: RequestOptions): Promise<models.Simulator>;
|
|
33
|
+
/**
|
|
34
|
+
* Cancel Simulator Build
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Requests cancellation of an active Simulator build. The build can finish before cancellation takes effect.
|
|
38
|
+
*/
|
|
39
|
+
cancelSimulatorBuild(request: operations.CancelSimulatorBuildRequest, options?: RequestOptions): Promise<models.Simulator>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=simulators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulators.d.ts","sourceRoot":"","sources":["../../src/sdk/simulators.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAMxC;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;IAED;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAMf;IAED;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;IAED;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { simulatorsBuildSimulator } from "../funcs/simulators-build-simulator.js";
|
|
5
|
+
import { simulatorsCancelSimulatorBuild } from "../funcs/simulators-cancel-simulator-build.js";
|
|
6
|
+
import { simulatorsDeleteSimulator } from "../funcs/simulators-delete-simulator.js";
|
|
7
|
+
import { simulatorsGetSimulator } from "../funcs/simulators-get-simulator.js";
|
|
8
|
+
import { simulatorsListSimulators } from "../funcs/simulators-list-simulators.js";
|
|
9
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
export class Simulators extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* List Simulators
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Returns all Simulators that the API key can access. Results can be filtered by status or name.
|
|
17
|
+
*/
|
|
18
|
+
async listSimulators(request, options) {
|
|
19
|
+
return unwrapAsync(simulatorsListSimulators(this, request, options));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Build Simulator
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Creates a Simulator from an OpenAPI or WSDL source. The build runs asynchronously. Send multipart/form-data with one JSON request part, and one spec file part for a spec build.
|
|
26
|
+
*/
|
|
27
|
+
async buildSimulator(request, options) {
|
|
28
|
+
return unwrapAsync(simulatorsBuildSimulator(this, request, options));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Delete Simulator
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Deletes a Simulator that has no dependent Worlds, Simulations, or child Simulators.
|
|
35
|
+
*/
|
|
36
|
+
async deleteSimulator(request, options) {
|
|
37
|
+
return unwrapAsync(simulatorsDeleteSimulator(this, request, options));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get Simulator
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Returns a Simulator and its current build status.
|
|
44
|
+
*/
|
|
45
|
+
async getSimulator(request, options) {
|
|
46
|
+
return unwrapAsync(simulatorsGetSimulator(this, request, options));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Cancel Simulator Build
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Requests cancellation of an active Simulator build. The build can finish before cancellation takes effect.
|
|
53
|
+
*/
|
|
54
|
+
async cancelSimulatorBuild(request, options) {
|
|
55
|
+
return unwrapAsync(simulatorsCancelSimulatorBuild(this, request, options));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=simulators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulators.js","sourceRoot":"","sources":["../../src/sdk/simulators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAsD,EACtD,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA+C,EAC/C,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Worlds extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* List Worlds
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Returns all Worlds that the API key can access.
|
|
10
|
+
*/
|
|
11
|
+
listWorlds(request?: operations.ListWorldsRequest | undefined, options?: RequestOptions): Promise<models.ListWorldsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Build World
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Builds a World definition from stable Simulator IDs. Start the World to create its Simulations.
|
|
17
|
+
*/
|
|
18
|
+
buildWorld(request: models.BuildWorldRequest, options?: RequestOptions): Promise<models.World>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete World
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Deletes a World, all its Simulations, and their saved runtime states.
|
|
24
|
+
*/
|
|
25
|
+
deleteWorld(request: operations.DeleteWorldRequest, options?: RequestOptions): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Get World
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Returns a World, its build instructions, and its Simulator IDs.
|
|
31
|
+
*/
|
|
32
|
+
getWorld(request: operations.GetWorldRequest, options?: RequestOptions): Promise<models.World>;
|
|
33
|
+
/**
|
|
34
|
+
* Cancel World Build
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Cancels an active World build. Repeated cancellation returns the current World.
|
|
38
|
+
*/
|
|
39
|
+
cancelWorldBuild(request: operations.CancelWorldBuildRequest, options?: RequestOptions): Promise<models.World>;
|
|
40
|
+
/**
|
|
41
|
+
* Start World
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Creates member Simulations on first start. Later starts restore stopped Simulations from saved state.
|
|
45
|
+
*/
|
|
46
|
+
startWorld(request: operations.StartWorldRequest, options?: RequestOptions): Promise<models.World>;
|
|
47
|
+
/**
|
|
48
|
+
* Stop World
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Stops a World and saves each Simulation state. You can start the World later from the saved states.
|
|
52
|
+
*/
|
|
53
|
+
stopWorld(request: operations.StopWorldRequest, options?: RequestOptions): Promise<models.World>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=worlds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worl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M,CAAC,KAAK,CAAC,CAMvB;CACF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { worldsBuildWorld } from "../funcs/worlds-build-world.js";
|
|
5
|
+
import { worldsCancelWorldBuild } from "../funcs/worlds-cancel-world-build.js";
|
|
6
|
+
import { worldsDeleteWorld } from "../funcs/worlds-delete-world.js";
|
|
7
|
+
import { worldsGetWorld } from "../funcs/worlds-get-world.js";
|
|
8
|
+
import { worldsListWorlds } from "../funcs/worlds-list-worlds.js";
|
|
9
|
+
import { worldsStartWorld } from "../funcs/worlds-start-world.js";
|
|
10
|
+
import { worldsStopWorld } from "../funcs/worlds-stop-world.js";
|
|
11
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
export class Worlds extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List Worlds
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Returns all Worlds that the API key can access.
|
|
19
|
+
*/
|
|
20
|
+
async listWorlds(request, options) {
|
|
21
|
+
return unwrapAsync(worldsListWorlds(this, request, options));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Build World
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Builds a World definition from stable Simulator IDs. Start the World to create its Simulations.
|
|
28
|
+
*/
|
|
29
|
+
async buildWorld(request, options) {
|
|
30
|
+
return unwrapAsync(worldsBuildWorld(this, request, options));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Delete World
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Deletes a World, all its Simulations, and their saved runtime states.
|
|
37
|
+
*/
|
|
38
|
+
async deleteWorld(request, options) {
|
|
39
|
+
return unwrapAsync(worldsDeleteWorld(this, request, options));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get World
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Returns a World, its build instructions, and its Simulator IDs.
|
|
46
|
+
*/
|
|
47
|
+
async getWorld(request, options) {
|
|
48
|
+
return unwrapAsync(worldsGetWorld(this, request, options));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Cancel World Build
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Cancels an active World build. Repeated cancellation returns the current World.
|
|
55
|
+
*/
|
|
56
|
+
async cancelWorldBuild(request, options) {
|
|
57
|
+
return unwrapAsync(worldsCancelWorldBuild(this, request, options));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Start World
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Creates member Simulations on first start. Later starts restore stopped Simulations from saved state.
|
|
64
|
+
*/
|
|
65
|
+
async startWorld(request, options) {
|
|
66
|
+
return unwrapAsync(worldsStartWorld(this, request, options));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Stop World
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Stops a World and saves each Simulation state. You can start the World later from the saved states.
|
|
73
|
+
*/
|
|
74
|
+
async stopWorld(request, options) {
|
|
75
|
+
return unwrapAsync(worldsStopWorld(this, request, options));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=worlds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worlds.js","sourceRoot":"","sources":["../../src/sdk/worlds.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA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gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB,EACD;QACvB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type APICall = {
|
|
2
|
+
status: "complete";
|
|
3
|
+
request: Request;
|
|
4
|
+
response: Response;
|
|
5
|
+
} | {
|
|
6
|
+
status: "request-error";
|
|
7
|
+
request: Request;
|
|
8
|
+
response?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
status: "invalid";
|
|
11
|
+
request?: undefined;
|
|
12
|
+
response?: undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare class APIPromise<T> implements Promise<T> {
|
|
15
|
+
#private;
|
|
16
|
+
readonly [Symbol.toStringTag] = "APIPromise";
|
|
17
|
+
constructor(p: [T, APICall] | Promise<[T, APICall]>);
|
|
18
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
19
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<T | TResult>;
|
|
20
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<T>;
|
|
21
|
+
$inspect(): Promise<[T, APICall]>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=async.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QA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C,CAAC,EAAE,OAAO,CAAC,CAAC,CAEhC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export class APIPromise {
|
|
5
|
+
#promise;
|
|
6
|
+
#unwrapped;
|
|
7
|
+
[Symbol.toStringTag] = "APIPromise";
|
|
8
|
+
constructor(p) {
|
|
9
|
+
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
10
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
11
|
+
}
|
|
12
|
+
#getUnwrapped() {
|
|
13
|
+
return (this.#unwrapped ?? (this.#unwrapped = this.#promise.then(([value]) => value)));
|
|
14
|
+
}
|
|
15
|
+
then(onfulfilled, onrejected) {
|
|
16
|
+
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
|
|
17
|
+
}
|
|
18
|
+
catch(onrejected) {
|
|
19
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
20
|
+
}
|
|
21
|
+
finally(onfinally) {
|
|
22
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
23
|
+
}
|
|
24
|
+
$inspect() {
|
|
25
|
+
return this.#promise;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAwB;IACzC,UAAU,CAAoB;IAErB,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,YAAY,CAAC;IAE7C,YAAY,CAAuC,EAAE;QACnD,IAAI,CAAC,QAAQ,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CA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pD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
export const blobLikeSchema = z.custom(isBlobLike, {
|
|
6
|
+
message: "expected a Blob, File or Blob-like object",
|
|
7
|
+
abort: true,
|
|
8
|
+
});
|
|
9
|
+
export function isBlobLike(val) {
|
|
10
|
+
if (val instanceof Blob) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const name = val[Symbol.toStringTag];
|
|
17
|
+
if (typeof name !== "string") {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
if (name !== "Blob" && name !== "File") {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return "stream" in val && typeof val.stream === "function";
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=blobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blobs.js","sourceRoot":"","sources":["../../src/types/blobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,MAAM,cAAc,GAA8B,CAAC,CAAC,MAAM,CAC/D,UAAU,EACV;IACE,OAAO,EAAE,2CAA2C;IACpD,KAAK,EAAE,IAAI;CACZ,CACF,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,GAAY,EAAe;IACpD,IAAI,GAAG,YAAY,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,GAAG,CAAC,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,UAAU,CAAC;AAAA,CAC5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const-date-time.d.ts","sourceRoot":"","sources":["../../src/types/const-date-time.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,GACV,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAMhC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
export function constDateTime(val) {
|
|
6
|
+
return z.custom((v) => {
|
|
7
|
+
return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
|
|
8
|
+
}, `Value must be equivalent to ${val}`);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=const-date-time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const-date-time.js","sourceRoot":"","sources":["../../src/types/const-date-time.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,UAAU,aAAa,CAC3B,GAAW,EACqB;IAChC,OAAO,CAAC,CAAC,MAAM,CAAS,CAAC,CAAC,EAAE,EAAE,CAAC;QAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAC3E,CAAC;IAAA,CACH,EAAE,+BAA+B,GAAG,EAAE,CAAC,CAAC;AAAA,CAC1C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Unrecognized } from "./unrecognized.js";
|
|
2
|
+
export declare function defaultToZeroValue<T>(value: T): Unrecognized<T>;
|
|
3
|
+
export declare function startCountingDefaultToZeroValue(): {
|
|
4
|
+
/**
|
|
5
|
+
* Ends counting and returns the delta.
|
|
6
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
7
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
8
|
+
* If not provided, records all counts since start().
|
|
9
|
+
*/
|
|
10
|
+
end: (delta?: number | undefined) => number;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=default-to-zero-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-to-zero-value.d.ts","sourceRoot":"","sources":["../../src/types/default-to-zero-value.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAKpE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAG/D;AAED,wBAAgB,+BAA+B;IAI3C;;;;;OAKG;;EASN"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { unrecognized } from "./unrecognized.js";
|
|
5
|
+
let globalCount = 0;
|
|
6
|
+
let refCount = 0;
|
|
7
|
+
export function defaultToZeroValue(value) {
|
|
8
|
+
globalCount++;
|
|
9
|
+
return unrecognized(value);
|
|
10
|
+
}
|
|
11
|
+
export function startCountingDefaultToZeroValue() {
|
|
12
|
+
refCount++;
|
|
13
|
+
const start = globalCount;
|
|
14
|
+
return {
|
|
15
|
+
/**
|
|
16
|
+
* Ends counting and returns the delta.
|
|
17
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
18
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
19
|
+
* If not provided, records all counts since start().
|
|
20
|
+
*/
|
|
21
|
+
end: (delta) => {
|
|
22
|
+
const count = globalCount - start;
|
|
23
|
+
// Reset globalCount back to start, then add only the specified delta
|
|
24
|
+
globalCount = start + (delta ?? count);
|
|
25
|
+
if (--refCount === 0)
|
|
26
|
+
globalCount = 0;
|
|
27
|
+
return count;
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=default-to-zero-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-to-zero-value.js","sourceRoot":"","sources":["../../src/types/default-to-zero-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAqB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,MAAM,UAAU,kBAAkB,CAAI,KAAQ,EAAmB;IAC/D,WAAW,EAAE,CAAC;IACd,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;AAAA,CAC5B;AAED,MAAM,UAAU,+BAA+B,GAAG;IAChD,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL;;;;;WAKG;QACH,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,qEAAqE;YACrE,WAAW,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;YACvC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QAAA,CACd;KACF,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Unrecognized } from "./unrecognized.js";
|
|
3
|
+
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
|
|
4
|
+
export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
5
|
+
export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodMiniType<OpenEnum<T>, unknown>;
|
|
6
|
+
export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodMiniType<OpenEnum<T>, unknown>;
|
|
7
|
+
export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodMiniType<string, OpenEnum<T>>;
|
|
8
|
+
export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodMiniType<number, OpenEnum<T>>;
|
|
9
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACb,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACpE,CAAC,CAAC,MAAM,CAAC,CAAC,GACV,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9D,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAMrC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxE,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAOrC;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7D,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAEpC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACzE,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAEpC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { unrecognized } from "./unrecognized.js";
|
|
6
|
+
export function inboundSchema(enumObj) {
|
|
7
|
+
const options = Object.values(enumObj);
|
|
8
|
+
return z.union([
|
|
9
|
+
...options.map(x => z.literal(x)),
|
|
10
|
+
z.pipe(z.string(), z.transform(x => unrecognized(x))),
|
|
11
|
+
]);
|
|
12
|
+
}
|
|
13
|
+
export function inboundSchemaInt(enumObj) {
|
|
14
|
+
// For numeric enums, Object.values returns both numbers and string keys
|
|
15
|
+
const options = Object.values(enumObj).filter(v => typeof v === "number");
|
|
16
|
+
return z.union([
|
|
17
|
+
...options.map(x => z.literal(x)),
|
|
18
|
+
z.pipe(z.int(), z.transform(x => unrecognized(x))),
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
export function outboundSchema(_) {
|
|
22
|
+
return z.string();
|
|
23
|
+
}
|
|
24
|
+
export function outboundSchemaInt(_) {
|
|
25
|
+
return z.int();
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ/D,MAAM,UAAU,aAAa,CAC3B,OAAU,EAC2B;IACrC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/C,CAAC,CAAC;AAAA,CACX;AAED,MAAM,UAAU,gBAAgB,CAC9B,OAAU,EAC2B;IACrC,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC1E,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C,CAAC,CAAC;AAAA,CACX;AAED,MAAM,UAAU,cAAc,CAC5B,CAAI,EACgC;IACpC,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAAA,CAC1B;AAED,MAAM,UAAU,iBAAiB,CAC/B,CAAI,EACgC;IACpC,OAAO,CAAC,CAAC,GAAG,EAAS,CAAC;AAAA,CACvB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monad that captures the result of a function call or an error if it was not
|
|
3
|
+
* successful. Railway programming, enabled by this type, can be a nicer
|
|
4
|
+
* alternative to traditional exception throwing because it allows functions to
|
|
5
|
+
* declare all _known_ errors with static types and then check for them
|
|
6
|
+
* exhaustively in application code. Thrown exception have a type of `unknown`
|
|
7
|
+
* and break out of regular control flow of programs making them harder to
|
|
8
|
+
* inspect and more verbose work with due to try-catch blocks.
|
|
9
|
+
*/
|
|
10
|
+
export type Result<T, E = unknown> = {
|
|
11
|
+
ok: true;
|
|
12
|
+
value: T;
|
|
13
|
+
error?: never;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
value?: never;
|
|
17
|
+
error: E;
|
|
18
|
+
};
|
|
19
|
+
export declare function OK<V>(value: V): Result<V, never>;
|
|
20
|
+
export declare function ERR<E>(error: E): Result<never, E>;
|
|
21
|
+
/**
|
|
22
|
+
* unwrap is a convenience function for extracting a value from a result or
|
|
23
|
+
* throwing if there was an error.
|
|
24
|
+
*/
|
|
25
|
+
export declare function unwrap<T>(r: Result<T, unknown>): T;
|
|
26
|
+
/**
|
|
27
|
+
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
28
|
+
* of a result or rejecting if an error occurred.
|
|
29
|
+
*/
|
|
30
|
+
export declare function unwrapAsync<T>(pr: Promise<Result<T, unknown>>): Promise<T>;
|
|
31
|
+
//# sourceMappingURL=fp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fp.d.ts","sourceRoot":"","sources":["../../src/types/fp.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE3C,wBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAEhD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAEjD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAOZ"}
|