@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,38 @@
|
|
|
1
|
+
import { HTTPClient } from "./http.js";
|
|
2
|
+
import { Logger } from "./logger.js";
|
|
3
|
+
import { RetryConfig } from "./retries.js";
|
|
4
|
+
/**
|
|
5
|
+
* Contains the list of servers available to the SDK
|
|
6
|
+
*/
|
|
7
|
+
export declare const ServerList: readonly ["https://api.continuouslabs.ai"];
|
|
8
|
+
export type SDKOptions = {
|
|
9
|
+
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
10
|
+
httpClient?: HTTPClient;
|
|
11
|
+
/**
|
|
12
|
+
* Allows overriding the default server used by the SDK
|
|
13
|
+
*/
|
|
14
|
+
serverIdx?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Allows overriding the default server URL used by the SDK
|
|
17
|
+
*/
|
|
18
|
+
serverURL?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Allows overriding the default user agent used by the SDK
|
|
21
|
+
*/
|
|
22
|
+
userAgent?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Allows overriding the default retry config used by the SDK
|
|
25
|
+
*/
|
|
26
|
+
retryConfig?: RetryConfig;
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
debugLogger?: Logger;
|
|
29
|
+
};
|
|
30
|
+
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
31
|
+
export declare const SDK_METADATA: {
|
|
32
|
+
readonly language: "typescript";
|
|
33
|
+
readonly openapiDocVersion: "v1";
|
|
34
|
+
readonly sdkVersion: "0.0.4";
|
|
35
|
+
readonly genVersion: "2.935.1";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.4 2.935.1 v1 @continuous-labs/sdk";
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,4CAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { pathToFunc } from "./url.js";
|
|
5
|
+
/**
|
|
6
|
+
* Contains the list of servers available to the SDK
|
|
7
|
+
*/
|
|
8
|
+
export const ServerList = [
|
|
9
|
+
/**
|
|
10
|
+
* Continuous production API.
|
|
11
|
+
*/
|
|
12
|
+
"https://api.continuouslabs.ai",
|
|
13
|
+
];
|
|
14
|
+
export function serverURLFromOptions(options) {
|
|
15
|
+
let serverURL = options.serverURL;
|
|
16
|
+
const params = {};
|
|
17
|
+
if (!serverURL) {
|
|
18
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
19
|
+
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
20
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
21
|
+
}
|
|
22
|
+
serverURL = ServerList[serverIdx] || "";
|
|
23
|
+
}
|
|
24
|
+
const u = pathToFunc(serverURL)(params);
|
|
25
|
+
return new URL(u);
|
|
26
|
+
}
|
|
27
|
+
export const SDK_METADATA = {
|
|
28
|
+
language: "typescript",
|
|
29
|
+
openapiDocVersion: "v1",
|
|
30
|
+
sdkVersion: "0.0.4",
|
|
31
|
+
genVersion: "2.935.1",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.0.4 2.935.1 v1 @continuous-labs/sdk",
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,+BAA+B;CACvB,CAAC;AA0BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB,EAAc;IACpE,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,IAAI;IACvB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,gEAAgE;CACnE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare class EncodingError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export type CharEncoding = "percent" | "percentExceptReserved" | "none";
|
|
5
|
+
export declare function encodeMatrix(key: string, value: unknown, options?: {
|
|
6
|
+
explode?: boolean;
|
|
7
|
+
charEncoding?: CharEncoding;
|
|
8
|
+
}): string | undefined;
|
|
9
|
+
export declare function encodeLabel(key: string, value: unknown, options?: {
|
|
10
|
+
explode?: boolean;
|
|
11
|
+
charEncoding?: CharEncoding;
|
|
12
|
+
}): string | undefined;
|
|
13
|
+
type FormEncoder = (key: string, value: unknown, options?: {
|
|
14
|
+
explode?: boolean;
|
|
15
|
+
charEncoding?: CharEncoding;
|
|
16
|
+
}) => string | undefined;
|
|
17
|
+
export declare const encodeForm: FormEncoder;
|
|
18
|
+
export declare const encodeSpaceDelimited: FormEncoder;
|
|
19
|
+
export declare const encodePipeDelimited: FormEncoder;
|
|
20
|
+
export declare function encodeBodyForm(key: string, value: unknown, options?: {
|
|
21
|
+
explode?: boolean;
|
|
22
|
+
charEncoding?: CharEncoding;
|
|
23
|
+
}): string;
|
|
24
|
+
export declare function encodeDeepObject(key: string, value: unknown, options?: {
|
|
25
|
+
charEncoding?: CharEncoding;
|
|
26
|
+
}): string | undefined;
|
|
27
|
+
export declare function encodeDeepObjectObject(key: string, value: unknown, options?: {
|
|
28
|
+
charEncoding?: CharEncoding;
|
|
29
|
+
}): string | undefined;
|
|
30
|
+
export declare function encodeJSON(key: string, value: unknown, options?: {
|
|
31
|
+
explode?: boolean;
|
|
32
|
+
charEncoding?: CharEncoding;
|
|
33
|
+
}): string | undefined;
|
|
34
|
+
export declare const encodeSimple: (key: string, value: unknown, options?: {
|
|
35
|
+
explode?: boolean;
|
|
36
|
+
charEncoding?: CharEncoding;
|
|
37
|
+
} | undefined) => string | undefined;
|
|
38
|
+
export declare function queryJoin(...args: (string | undefined)[]): string;
|
|
39
|
+
type QueryEncoderOptions = {
|
|
40
|
+
explode?: boolean;
|
|
41
|
+
charEncoding?: CharEncoding;
|
|
42
|
+
allowEmptyValue?: string[];
|
|
43
|
+
};
|
|
44
|
+
type QueryEncoder = (key: string, value: unknown, options?: QueryEncoderOptions) => string | undefined;
|
|
45
|
+
type BulkQueryEncoder = (values: Record<string, unknown>, options?: QueryEncoderOptions) => string;
|
|
46
|
+
export declare function queryEncoder(f: QueryEncoder): BulkQueryEncoder;
|
|
47
|
+
export declare const encodeJSONQuery: BulkQueryEncoder;
|
|
48
|
+
export declare const encodeFormQuery: BulkQueryEncoder;
|
|
49
|
+
export declare const encodeSpaceDelimitedQuery: BulkQueryEncoder;
|
|
50
|
+
export declare const encodePipeDelimitedQuery: BulkQueryEncoder;
|
|
51
|
+
export declare const encodeDeepObjectQuery: BulkQueryEncoder;
|
|
52
|
+
export declare function appendForm(fd: FormData, key: string, value: unknown, fileName?: string): void;
|
|
53
|
+
export declare function normalizeBlob(value: Pick<Blob, "arrayBuffer" | "type">): Promise<Blob>;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=encodings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encodings.d.ts","sourceRoot":"","sources":["../../src/lib/encodings.ts"],"names":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EAAE,EAAE,QAAQ,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI,CAgBN;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAAC,GACxC,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { bytesToBase64 } from "./base64.js";
|
|
5
|
+
import { isPlainObject } from "./primitives.js";
|
|
6
|
+
export class EncodingError extends Error {
|
|
7
|
+
constructor(message) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = "EncodingError";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
|
|
13
|
+
function encodeKeyChars(v, charEncoding) {
|
|
14
|
+
return encodeChars(v, charEncoding === "percentExceptReserved" ? "percent" : charEncoding);
|
|
15
|
+
}
|
|
16
|
+
function encodeChars(v, charEncoding) {
|
|
17
|
+
switch (charEncoding) {
|
|
18
|
+
case "percent":
|
|
19
|
+
return encodeURIComponent(v);
|
|
20
|
+
case "percentExceptReserved":
|
|
21
|
+
return encodeURIComponent(v).replace(reservedEscapes, (m) => decodeURIComponent(m));
|
|
22
|
+
default:
|
|
23
|
+
return v;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function encodeMatrix(key, value, options) {
|
|
27
|
+
let out = "";
|
|
28
|
+
const pairs = options?.explode
|
|
29
|
+
? explode(key, value)
|
|
30
|
+
: [[key, value]];
|
|
31
|
+
if (pairs.every(([_, v]) => v == null)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const encodeString = (v) => {
|
|
35
|
+
return encodeChars(v, options?.charEncoding);
|
|
36
|
+
};
|
|
37
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
38
|
+
pairs.forEach(([pk, pv]) => {
|
|
39
|
+
let tmp = "";
|
|
40
|
+
let encValue = null;
|
|
41
|
+
if (pv == null) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
else if (Array.isArray(pv)) {
|
|
45
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(",");
|
|
46
|
+
}
|
|
47
|
+
else if (isPlainObject(pv)) {
|
|
48
|
+
const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
49
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
50
|
+
});
|
|
51
|
+
encValue = mapped?.join("").slice(1);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
encValue = `${encodeValue(pv)}`;
|
|
55
|
+
}
|
|
56
|
+
if (encValue == null) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
|
|
60
|
+
tmp = `${keyPrefix}=${encValue}`;
|
|
61
|
+
// trim trailing '=' if value was empty
|
|
62
|
+
if (tmp === `${keyPrefix}=`) {
|
|
63
|
+
tmp = tmp.slice(0, -1);
|
|
64
|
+
}
|
|
65
|
+
// If we end up with the nothing then skip forward
|
|
66
|
+
if (!tmp) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
out += `;${tmp}`;
|
|
70
|
+
});
|
|
71
|
+
return out;
|
|
72
|
+
}
|
|
73
|
+
export function encodeLabel(key, value, options) {
|
|
74
|
+
let out = "";
|
|
75
|
+
const pairs = options?.explode
|
|
76
|
+
? explode(key, value)
|
|
77
|
+
: [[key, value]];
|
|
78
|
+
if (pairs.every(([_, v]) => v == null)) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const encodeString = (v) => {
|
|
82
|
+
return encodeChars(v, options?.charEncoding);
|
|
83
|
+
};
|
|
84
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
85
|
+
pairs.forEach(([pk, pv]) => {
|
|
86
|
+
let encValue = "";
|
|
87
|
+
if (pv == null) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
else if (Array.isArray(pv)) {
|
|
91
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(".");
|
|
92
|
+
}
|
|
93
|
+
else if (isPlainObject(pv)) {
|
|
94
|
+
const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
95
|
+
return `.${encodeString(k)}.${encodeValue(v)}`;
|
|
96
|
+
});
|
|
97
|
+
encValue = mapped?.join("").slice(1);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const k = options?.explode && isPlainObject(value)
|
|
101
|
+
? `${encodeKeyChars(pk, options?.charEncoding)}=`
|
|
102
|
+
: "";
|
|
103
|
+
encValue = `${k}${encodeValue(pv)}`;
|
|
104
|
+
}
|
|
105
|
+
out += encValue == null ? "" : `.${encValue}`;
|
|
106
|
+
});
|
|
107
|
+
return out;
|
|
108
|
+
}
|
|
109
|
+
function formEncoder(sep) {
|
|
110
|
+
return (key, value, options) => {
|
|
111
|
+
let out = "";
|
|
112
|
+
const pairs = options?.explode
|
|
113
|
+
? explode(key, value)
|
|
114
|
+
: [[key, value]];
|
|
115
|
+
if (pairs.every(([_, v]) => v == null)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const encodeString = (v) => {
|
|
119
|
+
return encodeChars(v, options?.charEncoding);
|
|
120
|
+
};
|
|
121
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
122
|
+
const encodedSep = encodeString(sep);
|
|
123
|
+
pairs.forEach(([pk, pv]) => {
|
|
124
|
+
let tmp = "";
|
|
125
|
+
let encValue = null;
|
|
126
|
+
if (pv == null) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
else if (Array.isArray(pv)) {
|
|
130
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(encodedSep);
|
|
131
|
+
}
|
|
132
|
+
else if (isPlainObject(pv)) {
|
|
133
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
134
|
+
return `${encodeString(k)}${encodedSep}${encodeValue(v)}`;
|
|
135
|
+
})?.join(encodedSep);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
encValue = `${encodeValue(pv)}`;
|
|
139
|
+
}
|
|
140
|
+
if (encValue == null) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
144
|
+
// If we end up with the nothing then skip forward
|
|
145
|
+
if (!tmp || tmp === "=") {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
out += `&${tmp}`;
|
|
149
|
+
});
|
|
150
|
+
return out.slice(1);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export const encodeForm = formEncoder(",");
|
|
154
|
+
export const encodeSpaceDelimited = formEncoder(" ");
|
|
155
|
+
export const encodePipeDelimited = formEncoder("|");
|
|
156
|
+
export function encodeBodyForm(key, value, options) {
|
|
157
|
+
let out = "";
|
|
158
|
+
const pairs = options?.explode
|
|
159
|
+
? explode(key, value)
|
|
160
|
+
: [[key, value]];
|
|
161
|
+
const encodeString = (v) => {
|
|
162
|
+
return encodeChars(v, options?.charEncoding);
|
|
163
|
+
};
|
|
164
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
165
|
+
pairs.forEach(([pk, pv]) => {
|
|
166
|
+
let tmp = "";
|
|
167
|
+
let encValue = "";
|
|
168
|
+
if (pv == null) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
else if (Array.isArray(pv)) {
|
|
172
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
173
|
+
}
|
|
174
|
+
else if (isPlainObject(pv)) {
|
|
175
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
encValue = `${encodeValue(pv)}`;
|
|
179
|
+
}
|
|
180
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
181
|
+
// If we end up with the nothing then skip forward
|
|
182
|
+
if (!tmp || tmp === "=") {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
out += `&${tmp}`;
|
|
186
|
+
});
|
|
187
|
+
return out.slice(1);
|
|
188
|
+
}
|
|
189
|
+
export function encodeDeepObject(key, value, options) {
|
|
190
|
+
if (value == null) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (!isPlainObject(value)) {
|
|
194
|
+
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object or null`);
|
|
195
|
+
}
|
|
196
|
+
return encodeDeepObjectObject(key, value, options);
|
|
197
|
+
}
|
|
198
|
+
export function encodeDeepObjectObject(key, value, options) {
|
|
199
|
+
if (value == null) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
let out = "";
|
|
203
|
+
const encodeString = (v) => {
|
|
204
|
+
return encodeChars(v, options?.charEncoding);
|
|
205
|
+
};
|
|
206
|
+
if (!isPlainObject(value)) {
|
|
207
|
+
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
208
|
+
}
|
|
209
|
+
Object.entries(value).forEach(([ck, cv]) => {
|
|
210
|
+
if (cv == null) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const pk = `${key}[${ck}]`;
|
|
214
|
+
if (isPlainObject(cv)) {
|
|
215
|
+
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
216
|
+
out += objOut == null ? "" : `&${objOut}`;
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const pairs = Array.isArray(cv) ? cv : [cv];
|
|
220
|
+
const encoded = mapDefined(pairs, (v) => {
|
|
221
|
+
return `${encodeKeyChars(pk, options?.charEncoding)}=${encodeString(serializeValue(v))}`;
|
|
222
|
+
})?.join("&");
|
|
223
|
+
out += encoded == null ? "" : `&${encoded}`;
|
|
224
|
+
});
|
|
225
|
+
return out.slice(1);
|
|
226
|
+
}
|
|
227
|
+
export function encodeJSON(key, value, options) {
|
|
228
|
+
if (typeof value === "undefined") {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const encodeString = (v) => {
|
|
232
|
+
return encodeChars(v, options?.charEncoding);
|
|
233
|
+
};
|
|
234
|
+
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
235
|
+
return options?.explode
|
|
236
|
+
? encVal
|
|
237
|
+
: `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
|
|
238
|
+
}
|
|
239
|
+
export const encodeSimple = (key, value, options) => {
|
|
240
|
+
let out = "";
|
|
241
|
+
const pairs = options?.explode
|
|
242
|
+
? explode(key, value)
|
|
243
|
+
: [[key, value]];
|
|
244
|
+
if (pairs.every(([_, v]) => v == null)) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
const encodeString = (v) => {
|
|
248
|
+
return encodeChars(v, options?.charEncoding);
|
|
249
|
+
};
|
|
250
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
251
|
+
pairs.forEach(([pk, pv]) => {
|
|
252
|
+
let tmp = "";
|
|
253
|
+
if (pv == null) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
else if (Array.isArray(pv)) {
|
|
257
|
+
tmp = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(",");
|
|
258
|
+
}
|
|
259
|
+
else if (isPlainObject(pv)) {
|
|
260
|
+
const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
261
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
262
|
+
});
|
|
263
|
+
tmp = mapped?.join("").slice(1);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
const k = options?.explode && isPlainObject(value) ? `${pk}=` : "";
|
|
267
|
+
tmp = `${k}${encodeValue(pv)}`;
|
|
268
|
+
}
|
|
269
|
+
out += tmp ? `,${tmp}` : "";
|
|
270
|
+
});
|
|
271
|
+
return out.slice(1);
|
|
272
|
+
};
|
|
273
|
+
function explode(key, value) {
|
|
274
|
+
if (Array.isArray(value)) {
|
|
275
|
+
return value.map((v) => [key, v]);
|
|
276
|
+
}
|
|
277
|
+
else if (isPlainObject(value)) {
|
|
278
|
+
const o = value ?? {};
|
|
279
|
+
return Object.entries(o).map(([k, v]) => [k, v]);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
return [[key, value]];
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function serializeValue(value) {
|
|
286
|
+
if (value == null) {
|
|
287
|
+
return "";
|
|
288
|
+
}
|
|
289
|
+
else if (value instanceof Date) {
|
|
290
|
+
return value.toISOString();
|
|
291
|
+
}
|
|
292
|
+
else if (value instanceof Uint8Array) {
|
|
293
|
+
return bytesToBase64(value);
|
|
294
|
+
}
|
|
295
|
+
else if (typeof value === "object") {
|
|
296
|
+
return JSON.stringify(value, jsonReplacer);
|
|
297
|
+
}
|
|
298
|
+
return `${value}`;
|
|
299
|
+
}
|
|
300
|
+
function jsonReplacer(_, value) {
|
|
301
|
+
if (value instanceof Uint8Array) {
|
|
302
|
+
return bytesToBase64(value);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return value;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function mapDefined(inp, mapper) {
|
|
309
|
+
const res = inp.reduce((acc, v) => {
|
|
310
|
+
if (v == null) {
|
|
311
|
+
return acc;
|
|
312
|
+
}
|
|
313
|
+
const m = mapper(v);
|
|
314
|
+
if (m == null) {
|
|
315
|
+
return acc;
|
|
316
|
+
}
|
|
317
|
+
acc.push(m);
|
|
318
|
+
return acc;
|
|
319
|
+
}, []);
|
|
320
|
+
return res.length ? res : null;
|
|
321
|
+
}
|
|
322
|
+
function mapDefinedEntries(inp, mapper) {
|
|
323
|
+
const acc = [];
|
|
324
|
+
for (const [k, v] of inp) {
|
|
325
|
+
if (v == null) {
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
const m = mapper([k, v]);
|
|
329
|
+
if (m == null) {
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
acc.push(m);
|
|
333
|
+
}
|
|
334
|
+
return acc.length ? acc : null;
|
|
335
|
+
}
|
|
336
|
+
export function queryJoin(...args) {
|
|
337
|
+
return args.filter(Boolean).join("&");
|
|
338
|
+
}
|
|
339
|
+
export function queryEncoder(f) {
|
|
340
|
+
const bulkEncode = function (values, options) {
|
|
341
|
+
const opts = {
|
|
342
|
+
...options,
|
|
343
|
+
explode: options?.explode ?? true,
|
|
344
|
+
charEncoding: options?.charEncoding ?? "percent",
|
|
345
|
+
};
|
|
346
|
+
const allowEmptySet = new Set(options?.allowEmptyValue ?? []);
|
|
347
|
+
const encoded = Object.entries(values).map(([key, value]) => {
|
|
348
|
+
if (allowEmptySet.has(key)) {
|
|
349
|
+
if (value === undefined
|
|
350
|
+
|| value === null
|
|
351
|
+
|| value === ""
|
|
352
|
+
|| (Array.isArray(value) && value.length === 0)) {
|
|
353
|
+
return `${encodeURIComponent(key)}=`;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return f(key, value, opts);
|
|
357
|
+
});
|
|
358
|
+
return queryJoin(...encoded);
|
|
359
|
+
};
|
|
360
|
+
return bulkEncode;
|
|
361
|
+
}
|
|
362
|
+
export const encodeJSONQuery = queryEncoder(encodeJSON);
|
|
363
|
+
export const encodeFormQuery = queryEncoder(encodeForm);
|
|
364
|
+
export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
365
|
+
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
366
|
+
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
367
|
+
function isBlobLike(val) {
|
|
368
|
+
if (val instanceof Blob) {
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
const tag = val[Symbol.toStringTag];
|
|
375
|
+
if (tag !== "Blob" && tag !== "File") {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
return "stream" in val && typeof val.stream === "function";
|
|
379
|
+
}
|
|
380
|
+
export function appendForm(fd, key, value, fileName) {
|
|
381
|
+
if (value == null) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
else if (isBlobLike(value)) {
|
|
385
|
+
if (fileName) {
|
|
386
|
+
fd.append(key, value, fileName);
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
fd.append(key, value);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
else if (Array.isArray(value)) {
|
|
393
|
+
value.forEach((v) => {
|
|
394
|
+
appendForm(fd, key, v);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
fd.append(key, String(value));
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
export async function normalizeBlob(value) {
|
|
402
|
+
if (value instanceof Blob) {
|
|
403
|
+
return value;
|
|
404
|
+
}
|
|
405
|
+
return new Blob([await value.arrayBuffer()], { type: value.type });
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=encodings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encodings.js","sourceRoot":"","sources":["../../src/lib/encodings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe,EAAE;QAC3B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAAA,CAC7B;CACF;AAID,MAAM,eAAe,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G,EAAE,KAAa,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YACnB,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QAAA,CACxB,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAChC,CAAC;AAAA,CACF;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,KAAyC,EAC1B;IACf,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AAAA,CACpE"}
|
package/esm/lib/env.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export interface Env {
|
|
3
|
+
CONTINUOUS_API_KEY_AUTH?: string | undefined;
|
|
4
|
+
CONTINUOUS_DEBUG?: boolean | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const envSchema: z.ZodMiniType<Env, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Reads and validates environment variables.
|
|
9
|
+
*/
|
|
10
|
+
export declare function env(): Env;
|
|
11
|
+
/**
|
|
12
|
+
* Clears the cached env object. Useful for testing with a fresh environment.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resetEnv(): void;
|
|
15
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/lib/env.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,WAAW,GAAG;IAClB,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7C,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC;AAED,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAIhD,CAAC;AAeH;;GAEG;AACH,wBAAgB,GAAG,IAAI,GAAG,CAmBzB;AAED;;GAEG;AACH,wBAAgB,QAAQ,SAEvB"}
|
package/esm/lib/env.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
export const envSchema = z.object({
|
|
6
|
+
CONTINUOUS_API_KEY_AUTH: z.optional(z.string()),
|
|
7
|
+
CONTINUOUS_DEBUG: z.optional(z.coerce.boolean()),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Checks for the existence of the Deno global object to determine the environment.
|
|
11
|
+
* @returns {boolean} True if the runtime is Deno, false otherwise.
|
|
12
|
+
*/
|
|
13
|
+
function isDeno() {
|
|
14
|
+
if ("Deno" in globalThis) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
let envMemo = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Reads and validates environment variables.
|
|
22
|
+
*/
|
|
23
|
+
export function env() {
|
|
24
|
+
if (envMemo) {
|
|
25
|
+
return envMemo;
|
|
26
|
+
}
|
|
27
|
+
const globals = globalThis;
|
|
28
|
+
let envObject = {};
|
|
29
|
+
if (isDeno()) {
|
|
30
|
+
envObject = globals.Deno?.env?.toObject?.() ?? {};
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
envObject = globals.process?.env ?? {};
|
|
34
|
+
}
|
|
35
|
+
envMemo = envSchema.parse(envObject);
|
|
36
|
+
return envMemo;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Clears the cached env object. Useful for testing with a fresh environment.
|
|
40
|
+
*/
|
|
41
|
+
export function resetEnv() {
|
|
42
|
+
envMemo = undefined;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/lib/env.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAQjC,MAAM,CAAC,MAAM,SAAS,GAAgC,CAAC,CAAC,MAAM,CAAC;IAC7D,uBAAuB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAE/C,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;CACjD,CAAC,CAAC;AAEH;;;GAGG;AACH,SAAS,MAAM,GAAG;IAChB,IAAI,MAAM,IAAI,UAAU,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AAAA,CACd;AAED,IAAI,OAAO,GAAoB,SAAS,CAAC;AACzC;;GAEG;AACH,MAAM,UAAU,GAAG,GAAQ;IACzB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAG,UAGf,CAAC;IAEF,IAAI,SAAS,GAA4B,EAAE,CAAC;IAC5C,IAAI,MAAM,EAAE,EAAE,CAAC;QACb,SAAS,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,SAAS,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IACzC,CA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