@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,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { env } from "./env.js";
|
|
5
|
+
export const SecurityErrorCode = {
|
|
6
|
+
Incomplete: "incomplete",
|
|
7
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
8
|
+
};
|
|
9
|
+
export class SecurityError extends Error {
|
|
10
|
+
code;
|
|
11
|
+
constructor(code, message) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.code = code;
|
|
14
|
+
this.name = "SecurityError";
|
|
15
|
+
}
|
|
16
|
+
static incomplete() {
|
|
17
|
+
return new SecurityError(SecurityErrorCode.Incomplete, "Security requirements not met in order to perform the operation");
|
|
18
|
+
}
|
|
19
|
+
static unrecognizedType(type) {
|
|
20
|
+
return new SecurityError(SecurityErrorCode.UnrecognisedSecurityType, `Unrecognised security type: ${type}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export function resolveSecurity(...options) {
|
|
24
|
+
const state = {
|
|
25
|
+
basic: {},
|
|
26
|
+
headers: {},
|
|
27
|
+
queryParams: {},
|
|
28
|
+
cookies: {},
|
|
29
|
+
oauth2: { type: "none" },
|
|
30
|
+
};
|
|
31
|
+
const option = options.find((opts) => {
|
|
32
|
+
return opts.every((o) => {
|
|
33
|
+
if (o.value == null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
else if (o.type === "http:basic") {
|
|
37
|
+
return o.value.username != null || o.value.password != null;
|
|
38
|
+
}
|
|
39
|
+
else if (o.type === "http:custom") {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
else if (o.type === "oauth2:password") {
|
|
43
|
+
return (typeof o.value === "string" && !!o.value);
|
|
44
|
+
}
|
|
45
|
+
else if (o.type === "oauth2:client_credentials") {
|
|
46
|
+
if (typeof o.value == "string") {
|
|
47
|
+
return !!o.value;
|
|
48
|
+
}
|
|
49
|
+
return o.value.clientID != null || o.value.clientSecret != null;
|
|
50
|
+
}
|
|
51
|
+
else if (typeof o.value === "string") {
|
|
52
|
+
return !!o.value;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
throw new Error(`Unrecognized security type: ${o.type} (value type: ${typeof o
|
|
56
|
+
.value})`);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
if (option == null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
option.forEach((spec) => {
|
|
64
|
+
if (spec.value == null) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const { type } = spec;
|
|
68
|
+
switch (type) {
|
|
69
|
+
case "apiKey:header":
|
|
70
|
+
state.headers[spec.fieldName] = spec.value;
|
|
71
|
+
break;
|
|
72
|
+
case "apiKey:query":
|
|
73
|
+
state.queryParams[spec.fieldName] = spec.value;
|
|
74
|
+
break;
|
|
75
|
+
case "apiKey:cookie":
|
|
76
|
+
state.cookies[spec.fieldName] = spec.value;
|
|
77
|
+
break;
|
|
78
|
+
case "http:basic":
|
|
79
|
+
applyBasic(state, spec);
|
|
80
|
+
break;
|
|
81
|
+
case "http:custom":
|
|
82
|
+
break;
|
|
83
|
+
case "http:bearer":
|
|
84
|
+
applyBearer(state, spec);
|
|
85
|
+
break;
|
|
86
|
+
case "oauth2":
|
|
87
|
+
applyBearer(state, spec);
|
|
88
|
+
break;
|
|
89
|
+
case "oauth2:password":
|
|
90
|
+
applyBearer(state, spec);
|
|
91
|
+
break;
|
|
92
|
+
case "oauth2:client_credentials":
|
|
93
|
+
break;
|
|
94
|
+
case "openIdConnect":
|
|
95
|
+
applyBearer(state, spec);
|
|
96
|
+
break;
|
|
97
|
+
default:
|
|
98
|
+
throw SecurityError.unrecognizedType((spec, type));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
return state;
|
|
102
|
+
}
|
|
103
|
+
function applyBasic(state, spec) {
|
|
104
|
+
if (spec.value == null) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
state.basic = spec.value;
|
|
108
|
+
}
|
|
109
|
+
function applyBearer(state, spec) {
|
|
110
|
+
if (typeof spec.value !== "string" || !spec.value) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
let value = spec.value;
|
|
114
|
+
if (value.slice(0, 7).toLowerCase() !== "bearer ") {
|
|
115
|
+
value = `Bearer ${value}`;
|
|
116
|
+
}
|
|
117
|
+
if (spec.fieldName !== undefined) {
|
|
118
|
+
state.headers[spec.fieldName] = value;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export function resolveGlobalSecurity(security, allowedFields) {
|
|
122
|
+
let inputs = [
|
|
123
|
+
[
|
|
124
|
+
{
|
|
125
|
+
fieldName: "Authorization",
|
|
126
|
+
type: "http:bearer",
|
|
127
|
+
value: security?.apiKeyAuth ?? env().CONTINUOUS_API_KEY_AUTH,
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
];
|
|
131
|
+
if (allowedFields) {
|
|
132
|
+
inputs = allowedFields.map((i) => {
|
|
133
|
+
if (i < 0 || i >= inputs.length) {
|
|
134
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
135
|
+
}
|
|
136
|
+
return inputs[i];
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
return resolveSecurity(...inputs);
|
|
140
|
+
}
|
|
141
|
+
export async function extractSecurity(sec) {
|
|
142
|
+
if (sec == null) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
return typeof sec === "function" ? sec() : sec;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=security.js.map
|
|
@@ -0,0 +1 @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GAAG,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO;IACT,CAAC;IAED,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AAAA,CAChD"}
|
package/esm/lib/url.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/lib/url.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;AAE9D,wBAAgB,UAAU,CACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GAC9C,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAuB7B"}
|
package/esm/lib/url.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
const hasOwn = Object.prototype.hasOwnProperty;
|
|
5
|
+
export function pathToFunc(pathPattern, options) {
|
|
6
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
7
|
+
return function buildURLPath(params = {}) {
|
|
8
|
+
return pathPattern
|
|
9
|
+
.replace(paramRE, function (_, placeholder) {
|
|
10
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
11
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
12
|
+
}
|
|
13
|
+
const value = params[placeholder];
|
|
14
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
15
|
+
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
16
|
+
}
|
|
17
|
+
return options?.charEncoding === "percent"
|
|
18
|
+
? encodeURIComponent(`${value}`)
|
|
19
|
+
: `${value}`;
|
|
20
|
+
})
|
|
21
|
+
.replace(/^\/+/, "");
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/lib/url.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,MAAM,UAAU,UAAU,CACxB,WAAmB,EACnB,OAA+C,EAClB;IAC7B,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,MAAM,GAA4B,EAAE,EAAU;QACzE,OAAO,WAAW;aACf,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW,EAAE;YAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,eAAe,CAAC,CAAC;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,8BAA8B,CACxD,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,EAAE,YAAY,KAAK,SAAS;gBACxC,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC;gBAChC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QAAA,CAChB,CAAC;aACD,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAAA,CACxB,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Builder provider. The default is claude.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Builder: {
|
|
7
|
+
readonly Openai: "openai";
|
|
8
|
+
readonly Claude: "claude";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Builder provider. The default is claude.
|
|
12
|
+
*/
|
|
13
|
+
export type Builder = ClosedEnum<typeof Builder>;
|
|
14
|
+
/**
|
|
15
|
+
* Source specification format. Omission detects the format.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SpecKind: {
|
|
18
|
+
readonly Openapi: "openapi";
|
|
19
|
+
readonly Wsdl: "wsdl";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Source specification format. Omission detects the format.
|
|
23
|
+
*/
|
|
24
|
+
export type SpecKind = ClosedEnum<typeof SpecKind>;
|
|
25
|
+
export type BuildSimulatorRequest = {
|
|
26
|
+
/**
|
|
27
|
+
* Builder provider. The default is claude.
|
|
28
|
+
*/
|
|
29
|
+
builder?: Builder | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Optional operation filter regular expressions. Supply at most 64 expressions, with 1,024 characters in each expression. An empty list keeps all operations.
|
|
32
|
+
*/
|
|
33
|
+
filter?: Array<string> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Build guidance. At most 16,384 characters and 65,536 UTF-8 bytes. U+0000 is not permitted.
|
|
36
|
+
*/
|
|
37
|
+
instructions?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Optional Simulator name. Names cannot start with smr_. Omission generates a name.
|
|
40
|
+
*/
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Stable parent Simulator ID for an incremental build.
|
|
44
|
+
*/
|
|
45
|
+
parentId?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Source specification format. Omission detects the format.
|
|
48
|
+
*/
|
|
49
|
+
specKind?: SpecKind | undefined;
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const Builder$outboundSchema: z.ZodMiniEnum<typeof Builder>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const SpecKind$outboundSchema: z.ZodMiniEnum<typeof SpecKind>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type BuildSimulatorRequest$Outbound = {
|
|
57
|
+
builder: string;
|
|
58
|
+
filter?: Array<string> | undefined;
|
|
59
|
+
instructions?: string | undefined;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
parent_id?: string | undefined;
|
|
62
|
+
spec_kind?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const BuildSimulatorRequest$outboundSchema: z.ZodMiniType<BuildSimulatorRequest$Outbound, BuildSimulatorRequest>;
|
|
66
|
+
export declare function buildSimulatorRequestToJSON(buildSimulatorRequest: BuildSimulatorRequest): string;
|
|
67
|
+
//# sourceMappingURL=build-simulator-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-simulator-request.d.ts","sourceRoot":"","sources":["../../src/models/build-simulator-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAGV,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAEhE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,QAAQ,CAElE,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,8BAA8B,EAC9B,qBAAqB,CAgBtB,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
/**
|
|
7
|
+
* Builder provider. The default is claude.
|
|
8
|
+
*/
|
|
9
|
+
export const Builder = {
|
|
10
|
+
Openai: "openai",
|
|
11
|
+
Claude: "claude",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Source specification format. Omission detects the format.
|
|
15
|
+
*/
|
|
16
|
+
export const SpecKind = {
|
|
17
|
+
Openapi: "openapi",
|
|
18
|
+
Wsdl: "wsdl",
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Builder$outboundSchema = z.enum(Builder);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SpecKind$outboundSchema = z.enum(SpecKind);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const BuildSimulatorRequest$outboundSchema = z.pipe(z.object({
|
|
26
|
+
builder: z._default(Builder$outboundSchema, "claude"),
|
|
27
|
+
filter: z.optional(z.array(z.string())),
|
|
28
|
+
instructions: z.optional(z.string()),
|
|
29
|
+
name: z.optional(z.string()),
|
|
30
|
+
parentId: z.optional(z.string()),
|
|
31
|
+
specKind: z.optional(SpecKind$outboundSchema),
|
|
32
|
+
}), z.transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
parentId: "parent_id",
|
|
35
|
+
specKind: "spec_kind",
|
|
36
|
+
});
|
|
37
|
+
}));
|
|
38
|
+
export function buildSimulatorRequestToJSON(buildSimulatorRequest) {
|
|
39
|
+
return JSON.stringify(BuildSimulatorRequest$outboundSchema.parse(buildSimulatorRequest));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=build-simulator-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-simulator-request.js","sourceRoot":"","sources":["../../src/models/build-simulator-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGvD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX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
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type BuildWorldRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Build guidance. At most 16,384 characters and 65,536 UTF-8 bytes. U+0000 is not permitted.
|
|
5
|
+
*/
|
|
6
|
+
instructions?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Stable Simulator IDs for the World.
|
|
9
|
+
*/
|
|
10
|
+
simulators: Array<string>;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type BuildWorldRequest$Outbound = {
|
|
14
|
+
instructions?: string | undefined;
|
|
15
|
+
simulators: Array<string>;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const BuildWorldRequest$outboundSchema: z.ZodMiniType<BuildWorldRequest$Outbound, BuildWorldRequest>;
|
|
19
|
+
export declare function buildWorldRequestToJSON(buildWorldRequest: BuildWorldRequest): string;
|
|
20
|
+
//# sourceMappingURL=build-world-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-world-request.d.ts","sourceRoot":"","sources":["../../src/models/build-world-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAIjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export const BuildWorldRequest$outboundSchema = z.object({
|
|
7
|
+
instructions: z.optional(z.string()),
|
|
8
|
+
simulators: z.array(z.string()),
|
|
9
|
+
});
|
|
10
|
+
export function buildWorldRequestToJSON(buildWorldRequest) {
|
|
11
|
+
return JSON.stringify(BuildWorldRequest$outboundSchema.parse(buildWorldRequest));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=build-world-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-world-request.js","sourceRoot":"","sources":["../../src/models/build-world-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAmBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type CreateSimulationRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Optional Simulation name. Omission generates a name.
|
|
5
|
+
*/
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Stable ID of the ready Simulator.
|
|
9
|
+
*/
|
|
10
|
+
simulatorId: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type CreateSimulationRequest$Outbound = {
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
simulator_id: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const CreateSimulationRequest$outboundSchema: z.ZodMiniType<CreateSimulationRequest$Outbound, CreateSimulationRequest>;
|
|
19
|
+
export declare function createSimulationRequestToJSON(createSimulationRequest: CreateSimulationRequest): string;
|
|
20
|
+
//# sourceMappingURL=create-simulation-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-simulation-request.d.ts","sourceRoot":"","sources":["../../src/models/create-simulation-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,gCAAgC,EAChC,uBAAuB,CAWxB,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const CreateSimulationRequest$outboundSchema = z.pipe(z.object({
|
|
8
|
+
name: z.optional(z.string()),
|
|
9
|
+
simulatorId: z.string(),
|
|
10
|
+
}), z.transform((v) => {
|
|
11
|
+
return remap$(v, {
|
|
12
|
+
simulatorId: "simulator_id",
|
|
13
|
+
});
|
|
14
|
+
}));
|
|
15
|
+
export function createSimulationRequestToJSON(createSimulationRequest) {
|
|
16
|
+
return JSON.stringify(CreateSimulationRequest$outboundSchema.parse(createSimulationRequest));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=create-simulation-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-simulation-request.js","sourceRoot":"","sources":["../../src/models/create-simulation-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAmBvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAG/C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD,EACxC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
/**
|
|
6
|
+
* Current Simulation status.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CreatedSimulationStatus: {
|
|
9
|
+
readonly Running: "running";
|
|
10
|
+
readonly Paused: "paused";
|
|
11
|
+
readonly Stopped: "stopped";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Current Simulation status.
|
|
15
|
+
*/
|
|
16
|
+
export type CreatedSimulationStatus = OpenEnum<typeof CreatedSimulationStatus>;
|
|
17
|
+
export type CreatedSimulation = {
|
|
18
|
+
/**
|
|
19
|
+
* Simulation creation time.
|
|
20
|
+
*/
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
/**
|
|
23
|
+
* Data-plane endpoint for the Simulation.
|
|
24
|
+
*/
|
|
25
|
+
endpoint: string;
|
|
26
|
+
/**
|
|
27
|
+
* Token expiration time.
|
|
28
|
+
*/
|
|
29
|
+
expiresAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Stable Simulation ID.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Simulation name.
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* Stable source Simulation ID for a fork, or null.
|
|
40
|
+
*/
|
|
41
|
+
parentId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Stable ID of the Simulator.
|
|
44
|
+
*/
|
|
45
|
+
simulatorId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Current Simulation status.
|
|
48
|
+
*/
|
|
49
|
+
status: CreatedSimulationStatus;
|
|
50
|
+
/**
|
|
51
|
+
* One-time data-plane token.
|
|
52
|
+
*/
|
|
53
|
+
token: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const CreatedSimulationStatus$inboundSchema: z.ZodMiniType<CreatedSimulationStatus, unknown>;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const CreatedSimulation$inboundSchema: z.ZodMiniType<CreatedSimulation, unknown>;
|
|
59
|
+
export declare function createdSimulationFromJSON(jsonString: string): SafeParseResult<CreatedSimulation, SDKValidationError>;
|
|
60
|
+
//# sourceMappingURL=created-simulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"created-simulation.d.ts","sourceRoot":"","sources":["../../src/models/created-simulation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,uBAAuB,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAC2C,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAqBR,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
/**
|
|
10
|
+
* Current Simulation status.
|
|
11
|
+
*/
|
|
12
|
+
export const CreatedSimulationStatus = {
|
|
13
|
+
Running: "running",
|
|
14
|
+
Paused: "paused",
|
|
15
|
+
Stopped: "stopped",
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CreatedSimulationStatus$inboundSchema = openEnums.inboundSchema(CreatedSimulationStatus);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CreatedSimulation$inboundSchema = z.pipe(z.object({
|
|
21
|
+
created_at: types.date(),
|
|
22
|
+
endpoint: types.string(),
|
|
23
|
+
expires_at: types.date(),
|
|
24
|
+
id: types.string(),
|
|
25
|
+
name: types.string(),
|
|
26
|
+
parent_id: types.nullable(types.string()),
|
|
27
|
+
simulator_id: types.string(),
|
|
28
|
+
status: CreatedSimulationStatus$inboundSchema,
|
|
29
|
+
token: types.string(),
|
|
30
|
+
}), z.transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"created_at": "createdAt",
|
|
33
|
+
"expires_at": "expiresAt",
|
|
34
|
+
"parent_id": "parentId",
|
|
35
|
+
"simulator_id": "simulatorId",
|
|
36
|
+
});
|
|
37
|
+
}));
|
|
38
|
+
export function createdSimulationFromJSON(jsonString) {
|
|
39
|
+
return safeParse(jsonString, (x) => CreatedSimulation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatedSimulation' from JSON`);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=created-simulation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"created-simulation.js","sourceRoot":"","sources":["../../src/models/created-simulation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AA6CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,SAAS,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAErD,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;IACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;IACxB,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;IAC5B,MAAM,EAAE,qCAAqC;IAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,UAAkB,EACsC;IACxD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContinuousError } from "./continuous-error.js";
|
|
2
|
+
/** The fallback error class if no more specific error class is matched */
|
|
3
|
+
export declare class ContinuousDefaultError extends ContinuousError {
|
|
4
|
+
constructor(message: string, httpMeta: {
|
|
5
|
+
response: Response;
|
|
6
|
+
request: Request;
|
|
7
|
+
body: string;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=continuous-default-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-default-error.d.ts","sourceRoot":"","sources":["../../../src/models/errors/continuous-default-error.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,0EAA0E;AAC1E,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,YACE,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE;QACR,QAAQ,EAAE,QAAQ,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,EAwBF;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { ContinuousError } from "./continuous-error.js";
|
|
5
|
+
/** The fallback error class if no more specific error class is matched */
|
|
6
|
+
export class ContinuousDefaultError extends ContinuousError {
|
|
7
|
+
constructor(message, httpMeta) {
|
|
8
|
+
if (message) {
|
|
9
|
+
message += `: `;
|
|
10
|
+
}
|
|
11
|
+
message += `Status ${httpMeta.response.status}`;
|
|
12
|
+
const contentType = httpMeta.response.headers.get("content-type") || `""`;
|
|
13
|
+
if (contentType !== "application/json") {
|
|
14
|
+
message += ` Content-Type ${contentType.includes(" ") ? `"${contentType}"` : contentType}`;
|
|
15
|
+
}
|
|
16
|
+
const body = httpMeta.body || `""`;
|
|
17
|
+
message += body.length > 100 ? "\n" : ". ";
|
|
18
|
+
let bodyDisplay = body;
|
|
19
|
+
if (body.length > 10000) {
|
|
20
|
+
const truncated = body.substring(0, 10000);
|
|
21
|
+
const remaining = body.length - 10000;
|
|
22
|
+
bodyDisplay = `${truncated}...and ${remaining} more chars`;
|
|
23
|
+
}
|
|
24
|
+
message += `Body: ${bodyDisplay}`;
|
|
25
|
+
message = message.trim();
|
|
26
|
+
super(message, httpMeta);
|
|
27
|
+
this.name = "ContinuousDefaultError";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=continuous-default-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-default-error.js","sourceRoot":"","sources":["../../../src/models/errors/continuous-default-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,0EAA0E;AAC1E,MAAM,OAAO,sBAAuB,SAAQ,eAAe;IACzD,YACE,OAAe,EACf,QAIC,EACD;QACA,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,IAAI,IAAI,CAAC;QAClB,CAAC;QACD,OAAO,IAAI,UAAU,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAChD,MAAM,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC;QAC1E,IAAI,WAAW,KAAK,kBAAkB,EAAE,CAAC;YACvC,OAAO,IAAI,iBACT,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC,WACnD,EAAE,CAAC;QACL,CAAC;QACD,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC;QACnC,OAAO,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3C,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,IAAI,CAAC,MAAM,GAAG,KAAK,EAAE,CAAC;YACxB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;YAC3C,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACtC,WAAW,GAAG,GAAG,SAAS,UAAU,SAAS,aAAa,CAAC;QAC7D,CAAC;QACD,OAAO,IAAI,SAAS,WAAW,EAAE,CAAC;QAClC,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACzB,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IAAA,CACtC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The base class for all HTTP error responses */
|
|
2
|
+
export declare class ContinuousError extends Error {
|
|
3
|
+
/** HTTP status code */
|
|
4
|
+
readonly statusCode: number;
|
|
5
|
+
/** HTTP body */
|
|
6
|
+
readonly body: string;
|
|
7
|
+
/** HTTP headers */
|
|
8
|
+
readonly headers: Headers;
|
|
9
|
+
/** HTTP content type */
|
|
10
|
+
readonly contentType: string;
|
|
11
|
+
/** Raw response */
|
|
12
|
+
readonly rawResponse: Response;
|
|
13
|
+
constructor(message: string, httpMeta: {
|
|
14
|
+
response: Response;
|
|
15
|
+
request: Request;
|
|
16
|
+
body: string;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=continuous-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-error.d.ts","sourceRoot":"","sources":["../../../src/models/errors/continuous-error.ts"],"names":[],"mappings":"AAIA,kDAAkD;AAClD,qBAAa,eAAgB,SAAQ,KAAK;IACxC,uBAAuB;IACvB,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,gBAAgB;IAChB,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,mBAAmB;IACnB,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,wBAAwB;IACxB,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC,mBAAmB;IACnB,SAAgB,WAAW,EAAE,QAAQ,CAAC;IAEtC,YACE,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE;QACR,QAAQ,EAAE,QAAQ,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,EAUF;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
/** The base class for all HTTP error responses */
|
|
5
|
+
export class ContinuousError extends Error {
|
|
6
|
+
/** HTTP status code */
|
|
7
|
+
statusCode;
|
|
8
|
+
/** HTTP body */
|
|
9
|
+
body;
|
|
10
|
+
/** HTTP headers */
|
|
11
|
+
headers;
|
|
12
|
+
/** HTTP content type */
|
|
13
|
+
contentType;
|
|
14
|
+
/** Raw response */
|
|
15
|
+
rawResponse;
|
|
16
|
+
constructor(message, httpMeta) {
|
|
17
|
+
super(message);
|
|
18
|
+
this.statusCode = httpMeta.response.status;
|
|
19
|
+
this.body = httpMeta.body;
|
|
20
|
+
this.headers = httpMeta.response.headers;
|
|
21
|
+
this.contentType = httpMeta.response.headers.get("content-type") || "";
|
|
22
|
+
this.rawResponse = httpMeta.response;
|
|
23
|
+
this.name = "ContinuousError";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=continuous-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-error.js","sourceRoot":"","sources":["../../../src/models/errors/continuous-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kDAAkD;AAClD,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,uBAAuB;IACP,UAAU,CAAS;IACnC,gBAAgB;IACA,IAAI,CAAS;IAC7B,mBAAmB;IACH,OAAO,CAAU;IACjC,wBAAwB;IACR,WAAW,CAAS;IACpC,mBAAmB;IACH,WAAW,CAAW;IAEtC,YACE,OAAe,EACf,QAIC,EACD;QACA,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QACvE,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC;QAErC,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAAA,CAC/B;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContinuousSimulationError } from "./continuous-simulation-error.js";
|
|
2
|
+
/** The fallback error class if no more specific error class is matched */
|
|
3
|
+
export declare class ContinuousSimulationDefaultError extends ContinuousSimulationError {
|
|
4
|
+
constructor(message: string, httpMeta: {
|
|
5
|
+
response: Response;
|
|
6
|
+
request: Request;
|
|
7
|
+
body: string;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=continuous-simulation-default-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-simulation-default-error.d.ts","sourceRoot":"","sources":["../../../src/models/errors/continuous-simulation-default-error.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,0EAA0E;AAC1E,qBAAa,gCACX,SAAQ,yBAAyB;IAEjC,YACE,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE;QACR,QAAQ,EAAE,QAAQ,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,EAwBF;CACF"}
|