@gbg/go-core 0.2.0-alpha.0 → 0.2.0-alpha.1
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/README.md +89 -20
- package/dist/commonjs/funcs/addresses-retrieve.js +2 -2
- package/dist/commonjs/funcs/addresses-retrieve.js.map +1 -1
- package/dist/commonjs/funcs/addresses-search.js +2 -2
- package/dist/commonjs/funcs/addresses-search.js.map +1 -1
- package/dist/commonjs/funcs/devices-add.js +1 -1
- package/dist/commonjs/funcs/devices-add.js.map +1 -1
- package/dist/commonjs/funcs/devices-connect.d.ts +1 -1
- package/dist/commonjs/funcs/devices-connect.d.ts.map +1 -1
- package/dist/commonjs/funcs/devices-connect.js +5 -4
- package/dist/commonjs/funcs/devices-connect.js.map +1 -1
- package/dist/commonjs/funcs/devices-refresh.js +1 -1
- package/dist/commonjs/funcs/devices-refresh.js.map +1 -1
- package/dist/commonjs/funcs/devices-validate.js +1 -1
- package/dist/commonjs/funcs/devices-validate.js.map +1 -1
- package/dist/commonjs/funcs/instances-delete.js +2 -2
- package/dist/commonjs/funcs/instances-delete.js.map +1 -1
- package/dist/commonjs/funcs/instances-handoff-token.js +1 -1
- package/dist/commonjs/funcs/instances-handoff-token.js.map +1 -1
- package/dist/commonjs/funcs/interactions-fetch.js +2 -2
- package/dist/commonjs/funcs/interactions-fetch.js.map +1 -1
- package/dist/commonjs/funcs/interactions-submit.js +2 -2
- package/dist/commonjs/funcs/interactions-submit.js.map +1 -1
- package/dist/commonjs/funcs/interactions-upload-asset.js +2 -2
- package/dist/commonjs/funcs/interactions-upload-asset.js.map +1 -1
- package/dist/commonjs/funcs/journeys-get-schemas.js +2 -2
- package/dist/commonjs/funcs/journeys-get-schemas.js.map +1 -1
- package/dist/commonjs/funcs/journeys-get-state.js +2 -2
- package/dist/commonjs/funcs/journeys-get-state.js.map +1 -1
- package/dist/commonjs/funcs/journeys-start.js +2 -2
- package/dist/commonjs/funcs/journeys-start.js.map +1 -1
- package/dist/commonjs/funcs/journeys-terminate.js +2 -2
- package/dist/commonjs/funcs/journeys-terminate.js.map +1 -1
- package/dist/commonjs/funcs/tasks-get-schema.js +2 -2
- package/dist/commonjs/funcs/tasks-get-schema.js.map +1 -1
- package/dist/commonjs/funcs/test-scenarios-create.d.ts +21 -0
- package/dist/commonjs/funcs/test-scenarios-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-create-scenario.js → test-scenarios-create.js} +9 -9
- package/dist/commonjs/funcs/test-scenarios-create.js.map +1 -0
- package/dist/{esm/funcs/sandbox-delete-scenario.d.ts → commonjs/funcs/test-scenarios-delete.d.ts} +4 -4
- package/dist/commonjs/funcs/test-scenarios-delete.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-delete-scenario.js → test-scenarios-delete.js} +9 -9
- package/dist/commonjs/funcs/test-scenarios-delete.js.map +1 -0
- package/dist/commonjs/funcs/test-scenarios-get.d.ts +21 -0
- package/dist/commonjs/funcs/test-scenarios-get.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-get-scenario.js → test-scenarios-get.js} +9 -9
- package/dist/commonjs/funcs/test-scenarios-get.js.map +1 -0
- package/dist/{esm/funcs/sandbox-put-scenario.d.ts → commonjs/funcs/test-scenarios-list.d.ts} +4 -4
- package/dist/commonjs/funcs/test-scenarios-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-list-scenarios.js → test-scenarios-list.js} +9 -9
- package/dist/commonjs/funcs/test-scenarios-list.js.map +1 -0
- package/dist/commonjs/funcs/{sandbox-put-scenario.d.ts → test-scenarios-put.d.ts} +4 -4
- package/dist/commonjs/funcs/test-scenarios-put.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-put-scenario.js → test-scenarios-put.js} +9 -9
- package/dist/commonjs/funcs/test-scenarios-put.js.map +1 -0
- package/dist/commonjs/funcs/tokens-generate.d.ts +2 -1
- package/dist/commonjs/funcs/tokens-generate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokens-generate.js +5 -1
- package/dist/commonjs/funcs/tokens-generate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +6 -6
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/create-test-scenario-request.d.ts +29 -0
- package/dist/commonjs/models/create-test-scenario-request.d.ts.map +1 -0
- package/dist/commonjs/models/{create-sandbox-scenario-request.js → create-test-scenario-request.js} +11 -11
- package/dist/commonjs/models/create-test-scenario-request.js.map +1 -0
- package/dist/commonjs/models/delete-response.d.ts.map +1 -1
- package/dist/commonjs/models/delete-response.js +2 -3
- package/dist/commonjs/models/delete-response.js.map +1 -1
- package/dist/commonjs/models/device-connect-request.d.ts +29 -0
- package/dist/commonjs/models/device-connect-request.d.ts.map +1 -0
- package/dist/commonjs/models/device-connect-request.js +59 -0
- package/dist/commonjs/models/device-connect-request.js.map +1 -0
- package/dist/commonjs/models/device-connect-response.d.ts +2 -0
- package/dist/commonjs/models/device-connect-response.d.ts.map +1 -1
- package/dist/commonjs/models/device-connect-response.js +8 -7
- package/dist/commonjs/models/device-connect-response.js.map +1 -1
- package/dist/commonjs/models/device-refresh-response.d.ts.map +1 -1
- package/dist/commonjs/models/device-refresh-response.js +7 -8
- package/dist/commonjs/models/device-refresh-response.js.map +1 -1
- package/dist/commonjs/models/device-start-response.d.ts.map +1 -1
- package/dist/commonjs/models/device-start-response.js +3 -4
- package/dist/commonjs/models/device-start-response.js.map +1 -1
- package/dist/commonjs/models/device-validate-response.d.ts.map +1 -1
- package/dist/commonjs/models/device-validate-response.js +5 -6
- package/dist/commonjs/models/device-validate-response.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/o-auth-error-response.d.ts +32 -0
- package/dist/commonjs/models/errors/o-auth-error-response.d.ts.map +1 -0
- package/dist/commonjs/models/errors/o-auth-error-response.js +75 -0
- package/dist/commonjs/models/errors/o-auth-error-response.js.map +1 -0
- package/dist/commonjs/models/gbg-error.d.ts +4 -4
- package/dist/commonjs/models/gbg-error.d.ts.map +1 -1
- package/dist/commonjs/models/gbg-error.js +8 -9
- package/dist/commonjs/models/gbg-error.js.map +1 -1
- package/dist/commonjs/models/handoff-token-response.d.ts.map +1 -1
- package/dist/commonjs/models/handoff-token-response.js +2 -3
- package/dist/commonjs/models/handoff-token-response.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +8 -5
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +8 -5
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/interaction-fetch-response.d.ts +3 -16
- package/dist/commonjs/models/interaction-fetch-response.d.ts.map +1 -1
- package/dist/commonjs/models/interaction-fetch-response.js +15 -29
- package/dist/commonjs/models/interaction-fetch-response.js.map +1 -1
- package/dist/commonjs/models/journey-start-response.d.ts +8 -1
- package/dist/commonjs/models/journey-start-response.d.ts.map +1 -1
- package/dist/commonjs/models/journey-start-response.js +6 -6
- package/dist/commonjs/models/journey-start-response.js.map +1 -1
- package/dist/commonjs/models/operations/create-test-scenario.d.ts +18 -0
- package/dist/commonjs/models/operations/create-test-scenario.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{create-sandbox-scenario.js → create-test-scenario.js} +7 -7
- package/dist/commonjs/models/operations/create-test-scenario.js.map +1 -0
- package/dist/commonjs/models/operations/delete-test-scenario.d.ts +20 -0
- package/dist/commonjs/models/operations/delete-test-scenario.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{delete-sandbox-scenario.js → delete-test-scenario.js} +6 -6
- package/dist/commonjs/models/operations/delete-test-scenario.js.map +1 -0
- package/dist/commonjs/models/operations/device-connect.d.ts +0 -32
- package/dist/commonjs/models/operations/device-connect.d.ts.map +1 -1
- package/dist/commonjs/models/operations/device-connect.js +1 -20
- package/dist/commonjs/models/operations/device-connect.js.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.d.ts +2 -1
- package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.js +5 -5
- package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
- package/dist/commonjs/models/operations/get-journey-state.d.ts +4 -1
- package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-journey-state.js +5 -5
- package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
- package/dist/{esm/models/operations/get-sandbox-scenario.d.ts → commonjs/models/operations/get-test-scenario.d.ts} +9 -9
- package/dist/commonjs/models/operations/get-test-scenario.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{get-sandbox-scenario.js → get-test-scenario.js} +9 -9
- package/dist/commonjs/models/operations/get-test-scenario.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +5 -5
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +5 -5
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-test-scenarios.d.ts +34 -0
- package/dist/commonjs/models/operations/list-test-scenarios.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{list-sandbox-scenarios.js → list-test-scenarios.js} +9 -9
- package/dist/commonjs/models/operations/list-test-scenarios.js.map +1 -0
- package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts.map +1 -1
- package/dist/commonjs/models/operations/post-as-token-oauth2.js +3 -4
- package/dist/commonjs/models/operations/post-as-token-oauth2.js.map +1 -1
- package/dist/commonjs/models/operations/put-test-scenario.d.ts +23 -0
- package/dist/commonjs/models/operations/put-test-scenario.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{put-sandbox-scenario.js → put-test-scenario.js} +7 -7
- package/dist/commonjs/models/operations/put-test-scenario.js.map +1 -0
- package/dist/commonjs/models/operations/start-journey.d.ts +160 -21
- package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/start-journey.js +106 -12
- package/dist/commonjs/models/operations/start-journey.js.map +1 -1
- package/dist/commonjs/models/operations/submit-interaction.d.ts +99 -14
- package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/submit-interaction.js +77 -7
- package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
- package/dist/commonjs/models/operations/upload-interaction-asset.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upload-interaction-asset.js +2 -3
- package/dist/commonjs/models/operations/upload-interaction-asset.js.map +1 -1
- package/dist/commonjs/models/outstanding-group.d.ts +15 -0
- package/dist/commonjs/models/outstanding-group.d.ts.map +1 -0
- package/dist/commonjs/models/outstanding-group.js +52 -0
- package/dist/commonjs/models/outstanding-group.js.map +1 -0
- package/dist/commonjs/models/schema-fetch-response.d.ts.map +1 -1
- package/dist/commonjs/models/schema-fetch-response.js +4 -5
- package/dist/commonjs/models/schema-fetch-response.js.map +1 -1
- package/dist/commonjs/models/slim-document.d.ts.map +1 -1
- package/dist/commonjs/models/slim-document.js +27 -28
- package/dist/commonjs/models/slim-document.js.map +1 -1
- package/dist/commonjs/models/slim-extraction.d.ts.map +1 -1
- package/dist/commonjs/models/slim-extraction.js +29 -30
- package/dist/commonjs/models/slim-extraction.js.map +1 -1
- package/dist/commonjs/models/slim-identity.d.ts.map +1 -1
- package/dist/commonjs/models/slim-identity.js +57 -58
- package/dist/commonjs/models/slim-identity.js.map +1 -1
- package/dist/commonjs/models/slim-interaction-fetch-response.d.ts +4 -16
- package/dist/commonjs/models/slim-interaction-fetch-response.d.ts.map +1 -1
- package/dist/commonjs/models/slim-interaction-fetch-response.js +13 -28
- package/dist/commonjs/models/slim-interaction-fetch-response.js.map +1 -1
- package/dist/commonjs/models/slim-journey.d.ts.map +1 -1
- package/dist/commonjs/models/slim-journey.js +5 -6
- package/dist/commonjs/models/slim-journey.js.map +1 -1
- package/dist/commonjs/models/slim-module-step-error.d.ts +50 -0
- package/dist/commonjs/models/slim-module-step-error.d.ts.map +1 -0
- package/dist/commonjs/models/slim-module-step-error.js +79 -0
- package/dist/commonjs/models/slim-module-step-error.js.map +1 -0
- package/dist/commonjs/models/slim-result.d.ts +8 -5
- package/dist/commonjs/models/slim-result.d.ts.map +1 -1
- package/dist/commonjs/models/slim-result.js +6 -7
- package/dist/commonjs/models/slim-result.js.map +1 -1
- package/dist/commonjs/models/slim-state-fetch-response.d.ts +1 -0
- package/dist/commonjs/models/slim-state-fetch-response.d.ts.map +1 -1
- package/dist/commonjs/models/slim-state-fetch-response.js +5 -5
- package/dist/commonjs/models/slim-state-fetch-response.js.map +1 -1
- package/dist/commonjs/models/slim-step.d.ts +19 -1
- package/dist/commonjs/models/slim-step.d.ts.map +1 -1
- package/dist/commonjs/models/slim-step.js +15 -5
- package/dist/commonjs/models/slim-step.js.map +1 -1
- package/dist/commonjs/models/slim-validation.d.ts.map +1 -1
- package/dist/commonjs/models/slim-validation.js +30 -31
- package/dist/commonjs/models/slim-validation.js.map +1 -1
- package/dist/commonjs/models/slim-verified-data.d.ts.map +1 -1
- package/dist/commonjs/models/slim-verified-data.js +2 -3
- package/dist/commonjs/models/slim-verified-data.js.map +1 -1
- package/dist/commonjs/models/state-fetch-response.d.ts +8 -0
- package/dist/commonjs/models/state-fetch-response.d.ts.map +1 -1
- package/dist/commonjs/models/state-fetch-response.js +11 -6
- package/dist/commonjs/models/state-fetch-response.js.map +1 -1
- package/dist/commonjs/models/terminate-response.d.ts.map +1 -1
- package/dist/commonjs/models/terminate-response.js +1 -2
- package/dist/commonjs/models/terminate-response.js.map +1 -1
- package/dist/commonjs/models/test-scenario-summary.d.ts +29 -0
- package/dist/commonjs/models/test-scenario-summary.d.ts.map +1 -0
- package/dist/commonjs/models/{sandbox-scenario-summary.js → test-scenario-summary.js} +14 -15
- package/dist/commonjs/models/test-scenario-summary.js.map +1 -0
- package/dist/commonjs/models/test-scenario-written.d.ts +19 -0
- package/dist/commonjs/models/test-scenario-written.d.ts.map +1 -0
- package/dist/commonjs/models/{sandbox-scenario-written.js → test-scenario-written.js} +11 -12
- package/dist/commonjs/models/test-scenario-written.js.map +1 -0
- package/dist/{esm/models/sandbox-scenario.d.ts → commonjs/models/test-scenario.d.ts} +8 -8
- package/dist/commonjs/models/test-scenario.d.ts.map +1 -0
- package/dist/commonjs/models/{sandbox-scenario.js → test-scenario.js} +13 -14
- package/dist/commonjs/models/test-scenario.js.map +1 -0
- package/dist/commonjs/models/update-test-scenario-request.d.ts +24 -0
- package/dist/commonjs/models/update-test-scenario-request.d.ts.map +1 -0
- package/dist/commonjs/models/update-test-scenario-request.js +55 -0
- package/dist/commonjs/models/update-test-scenario-request.js.map +1 -0
- package/dist/commonjs/sdk/devices.d.ts +1 -1
- package/dist/commonjs/sdk/devices.d.ts.map +1 -1
- package/dist/commonjs/sdk/devices.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +3 -3
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/test-scenarios.d.ts +41 -0
- package/dist/commonjs/sdk/test-scenarios.d.ts.map +1 -0
- package/dist/commonjs/sdk/test-scenarios.js +62 -0
- package/dist/commonjs/sdk/test-scenarios.js.map +1 -0
- package/dist/commonjs/types/discriminated-union.d.ts +25 -0
- package/dist/commonjs/types/discriminated-union.d.ts.map +1 -0
- package/dist/commonjs/types/discriminated-union.js +94 -0
- package/dist/commonjs/types/discriminated-union.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +0 -2
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +0 -2
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/commonjs/types/smart-union.d.ts.map +1 -1
- package/dist/commonjs/types/smart-union.js +3 -7
- package/dist/commonjs/types/smart-union.js.map +1 -1
- package/dist/esm/funcs/addresses-retrieve.js +2 -2
- package/dist/esm/funcs/addresses-retrieve.js.map +1 -1
- package/dist/esm/funcs/addresses-search.js +2 -2
- package/dist/esm/funcs/addresses-search.js.map +1 -1
- package/dist/esm/funcs/devices-add.js +1 -1
- package/dist/esm/funcs/devices-add.js.map +1 -1
- package/dist/esm/funcs/devices-connect.d.ts +1 -1
- package/dist/esm/funcs/devices-connect.d.ts.map +1 -1
- package/dist/esm/funcs/devices-connect.js +5 -4
- package/dist/esm/funcs/devices-connect.js.map +1 -1
- package/dist/esm/funcs/devices-refresh.js +1 -1
- package/dist/esm/funcs/devices-refresh.js.map +1 -1
- package/dist/esm/funcs/devices-validate.js +1 -1
- package/dist/esm/funcs/devices-validate.js.map +1 -1
- package/dist/esm/funcs/instances-delete.js +2 -2
- package/dist/esm/funcs/instances-delete.js.map +1 -1
- package/dist/esm/funcs/instances-handoff-token.js +1 -1
- package/dist/esm/funcs/instances-handoff-token.js.map +1 -1
- package/dist/esm/funcs/interactions-fetch.js +2 -2
- package/dist/esm/funcs/interactions-fetch.js.map +1 -1
- package/dist/esm/funcs/interactions-submit.js +2 -2
- package/dist/esm/funcs/interactions-submit.js.map +1 -1
- package/dist/esm/funcs/interactions-upload-asset.js +2 -2
- package/dist/esm/funcs/interactions-upload-asset.js.map +1 -1
- package/dist/esm/funcs/journeys-get-schemas.js +2 -2
- package/dist/esm/funcs/journeys-get-schemas.js.map +1 -1
- package/dist/esm/funcs/journeys-get-state.js +2 -2
- package/dist/esm/funcs/journeys-get-state.js.map +1 -1
- package/dist/esm/funcs/journeys-start.js +2 -2
- package/dist/esm/funcs/journeys-start.js.map +1 -1
- package/dist/esm/funcs/journeys-terminate.js +2 -2
- package/dist/esm/funcs/journeys-terminate.js.map +1 -1
- package/dist/esm/funcs/tasks-get-schema.js +2 -2
- package/dist/esm/funcs/tasks-get-schema.js.map +1 -1
- package/dist/esm/funcs/test-scenarios-create.d.ts +21 -0
- package/dist/esm/funcs/test-scenarios-create.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-create-scenario.js → test-scenarios-create.js} +8 -8
- package/dist/esm/funcs/test-scenarios-create.js.map +1 -0
- package/dist/{commonjs/funcs/sandbox-delete-scenario.d.ts → esm/funcs/test-scenarios-delete.d.ts} +4 -4
- package/dist/esm/funcs/test-scenarios-delete.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-delete-scenario.js → test-scenarios-delete.js} +8 -8
- package/dist/esm/funcs/test-scenarios-delete.js.map +1 -0
- package/dist/esm/funcs/test-scenarios-get.d.ts +21 -0
- package/dist/esm/funcs/test-scenarios-get.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-get-scenario.js → test-scenarios-get.js} +8 -8
- package/dist/esm/funcs/test-scenarios-get.js.map +1 -0
- package/dist/esm/funcs/{sandbox-list-scenarios.d.ts → test-scenarios-list.d.ts} +4 -4
- package/dist/esm/funcs/test-scenarios-list.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-list-scenarios.js → test-scenarios-list.js} +8 -8
- package/dist/esm/funcs/test-scenarios-list.js.map +1 -0
- package/dist/{commonjs/funcs/sandbox-list-scenarios.d.ts → esm/funcs/test-scenarios-put.d.ts} +4 -4
- package/dist/esm/funcs/test-scenarios-put.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-put-scenario.js → test-scenarios-put.js} +8 -8
- package/dist/esm/funcs/test-scenarios-put.js.map +1 -0
- package/dist/esm/funcs/tokens-generate.d.ts +2 -1
- package/dist/esm/funcs/tokens-generate.d.ts.map +1 -1
- package/dist/esm/funcs/tokens-generate.js +5 -1
- package/dist/esm/funcs/tokens-generate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +6 -6
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/create-test-scenario-request.d.ts +29 -0
- package/dist/esm/models/create-test-scenario-request.d.ts.map +1 -0
- package/dist/esm/models/create-test-scenario-request.js +18 -0
- package/dist/esm/models/create-test-scenario-request.js.map +1 -0
- package/dist/esm/models/delete-response.d.ts.map +1 -1
- package/dist/esm/models/delete-response.js +2 -3
- package/dist/esm/models/delete-response.js.map +1 -1
- package/dist/esm/models/device-connect-request.d.ts +29 -0
- package/dist/esm/models/device-connect-request.d.ts.map +1 -0
- package/dist/esm/models/device-connect-request.js +21 -0
- package/dist/esm/models/device-connect-request.js.map +1 -0
- package/dist/esm/models/device-connect-response.d.ts +2 -0
- package/dist/esm/models/device-connect-response.d.ts.map +1 -1
- package/dist/esm/models/device-connect-response.js +8 -7
- package/dist/esm/models/device-connect-response.js.map +1 -1
- package/dist/esm/models/device-refresh-response.d.ts.map +1 -1
- package/dist/esm/models/device-refresh-response.js +7 -8
- package/dist/esm/models/device-refresh-response.js.map +1 -1
- package/dist/esm/models/device-start-response.d.ts.map +1 -1
- package/dist/esm/models/device-start-response.js +3 -4
- package/dist/esm/models/device-start-response.js.map +1 -1
- package/dist/esm/models/device-validate-response.d.ts.map +1 -1
- package/dist/esm/models/device-validate-response.js +5 -6
- package/dist/esm/models/device-validate-response.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/o-auth-error-response.d.ts +32 -0
- package/dist/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
- package/dist/esm/models/errors/o-auth-error-response.js +38 -0
- package/dist/esm/models/errors/o-auth-error-response.js.map +1 -0
- package/dist/esm/models/gbg-error.d.ts +4 -4
- package/dist/esm/models/gbg-error.d.ts.map +1 -1
- package/dist/esm/models/gbg-error.js +7 -8
- package/dist/esm/models/gbg-error.js.map +1 -1
- package/dist/esm/models/handoff-token-response.d.ts.map +1 -1
- package/dist/esm/models/handoff-token-response.js +2 -3
- package/dist/esm/models/handoff-token-response.js.map +1 -1
- package/dist/esm/models/index.d.ts +8 -5
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +8 -5
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/interaction-fetch-response.d.ts +3 -16
- package/dist/esm/models/interaction-fetch-response.d.ts.map +1 -1
- package/dist/esm/models/interaction-fetch-response.js +14 -27
- package/dist/esm/models/interaction-fetch-response.js.map +1 -1
- package/dist/esm/models/journey-start-response.d.ts +8 -1
- package/dist/esm/models/journey-start-response.d.ts.map +1 -1
- package/dist/esm/models/journey-start-response.js +6 -6
- package/dist/esm/models/journey-start-response.js.map +1 -1
- package/dist/esm/models/operations/create-test-scenario.d.ts +18 -0
- package/dist/esm/models/operations/create-test-scenario.d.ts.map +1 -0
- package/dist/esm/models/operations/create-test-scenario.js +14 -0
- package/dist/esm/models/operations/create-test-scenario.js.map +1 -0
- package/dist/esm/models/operations/delete-test-scenario.d.ts +20 -0
- package/dist/esm/models/operations/delete-test-scenario.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-test-scenario.js +13 -0
- package/dist/esm/models/operations/delete-test-scenario.js.map +1 -0
- package/dist/esm/models/operations/device-connect.d.ts +0 -32
- package/dist/esm/models/operations/device-connect.d.ts.map +1 -1
- package/dist/esm/models/operations/device-connect.js +0 -17
- package/dist/esm/models/operations/device-connect.js.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.d.ts +2 -1
- package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.js +5 -5
- package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
- package/dist/esm/models/operations/get-journey-state.d.ts +4 -1
- package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
- package/dist/esm/models/operations/get-journey-state.js +5 -5
- package/dist/esm/models/operations/get-journey-state.js.map +1 -1
- package/dist/{commonjs/models/operations/get-sandbox-scenario.d.ts → esm/models/operations/get-test-scenario.d.ts} +9 -9
- package/dist/esm/models/operations/get-test-scenario.d.ts.map +1 -0
- package/dist/esm/models/operations/get-test-scenario.js +23 -0
- package/dist/esm/models/operations/get-test-scenario.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +5 -5
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +5 -5
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-test-scenarios.d.ts +34 -0
- package/dist/esm/models/operations/list-test-scenarios.d.ts.map +1 -0
- package/dist/esm/models/operations/list-test-scenarios.js +22 -0
- package/dist/esm/models/operations/list-test-scenarios.js.map +1 -0
- package/dist/esm/models/operations/post-as-token-oauth2.d.ts.map +1 -1
- package/dist/esm/models/operations/post-as-token-oauth2.js +3 -4
- package/dist/esm/models/operations/post-as-token-oauth2.js.map +1 -1
- package/dist/esm/models/operations/put-test-scenario.d.ts +23 -0
- package/dist/esm/models/operations/put-test-scenario.d.ts.map +1 -0
- package/dist/esm/models/operations/put-test-scenario.js +15 -0
- package/dist/esm/models/operations/put-test-scenario.js.map +1 -0
- package/dist/esm/models/operations/start-journey.d.ts +160 -21
- package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
- package/dist/esm/models/operations/start-journey.js +97 -8
- package/dist/esm/models/operations/start-journey.js.map +1 -1
- package/dist/esm/models/operations/submit-interaction.d.ts +99 -14
- package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/submit-interaction.js +72 -4
- package/dist/esm/models/operations/submit-interaction.js.map +1 -1
- package/dist/esm/models/operations/upload-interaction-asset.d.ts.map +1 -1
- package/dist/esm/models/operations/upload-interaction-asset.js +2 -3
- package/dist/esm/models/operations/upload-interaction-asset.js.map +1 -1
- package/dist/esm/models/outstanding-group.d.ts +15 -0
- package/dist/esm/models/outstanding-group.d.ts.map +1 -0
- package/dist/esm/models/outstanding-group.js +15 -0
- package/dist/esm/models/outstanding-group.js.map +1 -0
- package/dist/esm/models/schema-fetch-response.d.ts.map +1 -1
- package/dist/esm/models/schema-fetch-response.js +4 -5
- package/dist/esm/models/schema-fetch-response.js.map +1 -1
- package/dist/esm/models/slim-document.d.ts.map +1 -1
- package/dist/esm/models/slim-document.js +27 -28
- package/dist/esm/models/slim-document.js.map +1 -1
- package/dist/esm/models/slim-extraction.d.ts.map +1 -1
- package/dist/esm/models/slim-extraction.js +29 -30
- package/dist/esm/models/slim-extraction.js.map +1 -1
- package/dist/esm/models/slim-identity.d.ts.map +1 -1
- package/dist/esm/models/slim-identity.js +57 -58
- package/dist/esm/models/slim-identity.js.map +1 -1
- package/dist/esm/models/slim-interaction-fetch-response.d.ts +4 -16
- package/dist/esm/models/slim-interaction-fetch-response.d.ts.map +1 -1
- package/dist/esm/models/slim-interaction-fetch-response.js +12 -26
- package/dist/esm/models/slim-interaction-fetch-response.js.map +1 -1
- package/dist/esm/models/slim-journey.d.ts.map +1 -1
- package/dist/esm/models/slim-journey.js +5 -6
- package/dist/esm/models/slim-journey.js.map +1 -1
- package/dist/esm/models/slim-module-step-error.d.ts +50 -0
- package/dist/esm/models/slim-module-step-error.d.ts.map +1 -0
- package/dist/esm/models/slim-module-step-error.js +41 -0
- package/dist/esm/models/slim-module-step-error.js.map +1 -0
- package/dist/esm/models/slim-result.d.ts +8 -5
- package/dist/esm/models/slim-result.d.ts.map +1 -1
- package/dist/esm/models/slim-result.js +6 -7
- package/dist/esm/models/slim-result.js.map +1 -1
- package/dist/esm/models/slim-state-fetch-response.d.ts +1 -0
- package/dist/esm/models/slim-state-fetch-response.d.ts.map +1 -1
- package/dist/esm/models/slim-state-fetch-response.js +5 -5
- package/dist/esm/models/slim-state-fetch-response.js.map +1 -1
- package/dist/esm/models/slim-step.d.ts +19 -1
- package/dist/esm/models/slim-step.d.ts.map +1 -1
- package/dist/esm/models/slim-step.js +14 -4
- package/dist/esm/models/slim-step.js.map +1 -1
- package/dist/esm/models/slim-validation.d.ts.map +1 -1
- package/dist/esm/models/slim-validation.js +30 -31
- package/dist/esm/models/slim-validation.js.map +1 -1
- package/dist/esm/models/slim-verified-data.d.ts.map +1 -1
- package/dist/esm/models/slim-verified-data.js +2 -3
- package/dist/esm/models/slim-verified-data.js.map +1 -1
- package/dist/esm/models/state-fetch-response.d.ts +8 -0
- package/dist/esm/models/state-fetch-response.d.ts.map +1 -1
- package/dist/esm/models/state-fetch-response.js +10 -5
- package/dist/esm/models/state-fetch-response.js.map +1 -1
- package/dist/esm/models/terminate-response.d.ts.map +1 -1
- package/dist/esm/models/terminate-response.js +1 -2
- package/dist/esm/models/terminate-response.js.map +1 -1
- package/dist/esm/models/test-scenario-summary.d.ts +29 -0
- package/dist/esm/models/test-scenario-summary.d.ts.map +1 -0
- package/dist/esm/models/test-scenario-summary.js +25 -0
- package/dist/esm/models/test-scenario-summary.js.map +1 -0
- package/dist/esm/models/test-scenario-written.d.ts +19 -0
- package/dist/esm/models/test-scenario-written.d.ts.map +1 -0
- package/dist/esm/models/test-scenario-written.js +20 -0
- package/dist/esm/models/test-scenario-written.js.map +1 -0
- package/dist/{commonjs/models/sandbox-scenario.d.ts → esm/models/test-scenario.d.ts} +8 -8
- package/dist/esm/models/test-scenario.d.ts.map +1 -0
- package/dist/esm/models/test-scenario.js +25 -0
- package/dist/esm/models/test-scenario.js.map +1 -0
- package/dist/esm/models/update-test-scenario-request.d.ts +24 -0
- package/dist/esm/models/update-test-scenario-request.d.ts.map +1 -0
- package/dist/esm/models/update-test-scenario-request.js +17 -0
- package/dist/esm/models/update-test-scenario-request.js.map +1 -0
- package/dist/esm/sdk/devices.d.ts +1 -1
- package/dist/esm/sdk/devices.d.ts.map +1 -1
- package/dist/esm/sdk/devices.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +3 -3
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/test-scenarios.d.ts +41 -0
- package/dist/esm/sdk/test-scenarios.d.ts.map +1 -0
- package/dist/esm/sdk/test-scenarios.js +58 -0
- package/dist/esm/sdk/test-scenarios.js.map +1 -0
- package/dist/esm/types/discriminated-union.d.ts +25 -0
- package/dist/esm/types/discriminated-union.d.ts.map +1 -0
- package/dist/esm/types/discriminated-union.js +57 -0
- package/dist/esm/types/discriminated-union.js.map +1 -0
- package/dist/esm/types/index.d.ts +0 -2
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +0 -2
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/smart-union.d.ts.map +1 -1
- package/dist/esm/types/smart-union.js +3 -7
- package/dist/esm/types/smart-union.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/addresses-retrieve.ts +2 -2
- package/src/funcs/addresses-search.ts +2 -2
- package/src/funcs/devices-add.ts +1 -1
- package/src/funcs/devices-connect.ts +8 -5
- package/src/funcs/devices-refresh.ts +1 -1
- package/src/funcs/devices-validate.ts +1 -1
- package/src/funcs/instances-delete.ts +3 -3
- package/src/funcs/instances-handoff-token.ts +3 -3
- package/src/funcs/interactions-fetch.ts +3 -3
- package/src/funcs/interactions-submit.ts +3 -3
- package/src/funcs/interactions-upload-asset.ts +2 -2
- package/src/funcs/journeys-get-schemas.ts +2 -2
- package/src/funcs/journeys-get-state.ts +2 -2
- package/src/funcs/journeys-start.ts +5 -2
- package/src/funcs/journeys-terminate.ts +3 -3
- package/src/funcs/tasks-get-schema.ts +2 -2
- package/src/funcs/{sandbox-create-scenario.ts → test-scenarios-create.ts} +13 -15
- package/src/funcs/{sandbox-delete-scenario.ts → test-scenarios-delete.ts} +11 -11
- package/src/funcs/{sandbox-get-scenario.ts → test-scenarios-get.ts} +15 -16
- package/src/funcs/{sandbox-list-scenarios.ts → test-scenarios-list.ts} +13 -15
- package/src/funcs/{sandbox-put-scenario.ts → test-scenarios-put.ts} +15 -16
- package/src/funcs/tokens-generate.ts +11 -2
- package/src/lib/config.ts +6 -6
- package/src/models/create-test-scenario-request.ts +63 -0
- package/src/models/delete-response.ts +2 -3
- package/src/models/device-connect-request.ts +60 -0
- package/src/models/device-connect-response.ts +10 -7
- package/src/models/device-refresh-response.ts +7 -8
- package/src/models/device-start-response.ts +3 -4
- package/src/models/device-validate-response.ts +5 -6
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/o-auth-error-response.ts +74 -0
- package/src/models/gbg-error.ts +12 -11
- package/src/models/handoff-token-response.ts +2 -3
- package/src/models/index.ts +8 -5
- package/src/models/interaction-fetch-response.ts +19 -63
- package/src/models/journey-start-response.ts +14 -7
- package/src/models/operations/create-test-scenario.ts +37 -0
- package/src/models/operations/{delete-sandbox-scenario.ts → delete-test-scenario.ts} +8 -10
- package/src/models/operations/device-connect.ts +0 -61
- package/src/models/operations/fetch-interaction.ts +8 -6
- package/src/models/operations/get-journey-state.ts +12 -7
- package/src/models/operations/{get-sandbox-scenario.ts → get-test-scenario.ts} +16 -16
- package/src/models/operations/index.ts +5 -5
- package/src/models/operations/list-test-scenarios.ts +59 -0
- package/src/models/operations/post-as-token-oauth2.ts +3 -4
- package/src/models/operations/{put-sandbox-scenario.ts → put-test-scenario.ts} +11 -11
- package/src/models/operations/start-journey.ts +268 -27
- package/src/models/operations/submit-interaction.ts +177 -16
- package/src/models/operations/upload-interaction-asset.ts +2 -3
- package/src/models/outstanding-group.ts +37 -0
- package/src/models/schema-fetch-response.ts +4 -5
- package/src/models/slim-document.ts +27 -28
- package/src/models/slim-extraction.ts +29 -30
- package/src/models/slim-identity.ts +57 -58
- package/src/models/slim-interaction-fetch-response.ts +18 -63
- package/src/models/slim-journey.ts +5 -6
- package/src/models/slim-module-step-error.ts +99 -0
- package/src/models/slim-result.ts +15 -10
- package/src/models/slim-state-fetch-response.ts +6 -5
- package/src/models/slim-step.ts +31 -5
- package/src/models/slim-validation.ts +30 -31
- package/src/models/slim-verified-data.ts +2 -3
- package/src/models/state-fetch-response.ts +17 -5
- package/src/models/terminate-response.ts +1 -2
- package/src/models/test-scenario-summary.ts +62 -0
- package/src/models/test-scenario-written.ts +47 -0
- package/src/models/test-scenario.ts +60 -0
- package/src/models/update-test-scenario-request.ts +57 -0
- package/src/sdk/devices.ts +1 -1
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/test-scenarios.ts +100 -0
- package/src/types/discriminated-union.ts +98 -0
- package/src/types/index.ts +0 -2
- package/src/types/smart-union.ts +4 -7
- package/dist/commonjs/funcs/sandbox-create-scenario.d.ts +0 -21
- package/dist/commonjs/funcs/sandbox-create-scenario.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-create-scenario.js.map +0 -1
- package/dist/commonjs/funcs/sandbox-delete-scenario.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-delete-scenario.js.map +0 -1
- package/dist/commonjs/funcs/sandbox-get-scenario.d.ts +0 -21
- package/dist/commonjs/funcs/sandbox-get-scenario.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-get-scenario.js.map +0 -1
- package/dist/commonjs/funcs/sandbox-list-scenarios.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-list-scenarios.js.map +0 -1
- package/dist/commonjs/funcs/sandbox-put-scenario.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-put-scenario.js.map +0 -1
- package/dist/commonjs/models/create-sandbox-scenario-request.d.ts +0 -29
- package/dist/commonjs/models/create-sandbox-scenario-request.d.ts.map +0 -1
- package/dist/commonjs/models/create-sandbox-scenario-request.js.map +0 -1
- package/dist/commonjs/models/operations/create-sandbox-scenario.d.ts +0 -18
- package/dist/commonjs/models/operations/create-sandbox-scenario.d.ts.map +0 -1
- package/dist/commonjs/models/operations/create-sandbox-scenario.js.map +0 -1
- package/dist/commonjs/models/operations/delete-sandbox-scenario.d.ts +0 -20
- package/dist/commonjs/models/operations/delete-sandbox-scenario.d.ts.map +0 -1
- package/dist/commonjs/models/operations/delete-sandbox-scenario.js.map +0 -1
- package/dist/commonjs/models/operations/get-sandbox-scenario.d.ts.map +0 -1
- package/dist/commonjs/models/operations/get-sandbox-scenario.js.map +0 -1
- package/dist/commonjs/models/operations/list-sandbox-scenarios.d.ts +0 -34
- package/dist/commonjs/models/operations/list-sandbox-scenarios.d.ts.map +0 -1
- package/dist/commonjs/models/operations/list-sandbox-scenarios.js.map +0 -1
- package/dist/commonjs/models/operations/put-sandbox-scenario.d.ts +0 -23
- package/dist/commonjs/models/operations/put-sandbox-scenario.d.ts.map +0 -1
- package/dist/commonjs/models/operations/put-sandbox-scenario.js.map +0 -1
- package/dist/commonjs/models/sandbox-scenario-summary.d.ts +0 -29
- package/dist/commonjs/models/sandbox-scenario-summary.d.ts.map +0 -1
- package/dist/commonjs/models/sandbox-scenario-summary.js.map +0 -1
- package/dist/commonjs/models/sandbox-scenario-written.d.ts +0 -19
- package/dist/commonjs/models/sandbox-scenario-written.d.ts.map +0 -1
- package/dist/commonjs/models/sandbox-scenario-written.js.map +0 -1
- package/dist/commonjs/models/sandbox-scenario.d.ts.map +0 -1
- package/dist/commonjs/models/sandbox-scenario.js.map +0 -1
- package/dist/commonjs/models/update-sandbox-scenario-request.d.ts +0 -24
- package/dist/commonjs/models/update-sandbox-scenario-request.d.ts.map +0 -1
- package/dist/commonjs/models/update-sandbox-scenario-request.js +0 -55
- package/dist/commonjs/models/update-sandbox-scenario-request.js.map +0 -1
- package/dist/commonjs/sdk/sandbox.d.ts +0 -41
- package/dist/commonjs/sdk/sandbox.d.ts.map +0 -1
- package/dist/commonjs/sdk/sandbox.js +0 -62
- package/dist/commonjs/sdk/sandbox.js.map +0 -1
- package/dist/commonjs/types/default-to-zero-value.d.ts +0 -12
- package/dist/commonjs/types/default-to-zero-value.d.ts.map +0 -1
- package/dist/commonjs/types/default-to-zero-value.js +0 -35
- package/dist/commonjs/types/default-to-zero-value.js.map +0 -1
- package/dist/commonjs/types/primitives.d.ts +0 -9
- package/dist/commonjs/types/primitives.d.ts.map +0 -1
- package/dist/commonjs/types/primitives.js +0 -151
- package/dist/commonjs/types/primitives.js.map +0 -1
- package/dist/esm/funcs/sandbox-create-scenario.d.ts +0 -21
- package/dist/esm/funcs/sandbox-create-scenario.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-create-scenario.js.map +0 -1
- package/dist/esm/funcs/sandbox-delete-scenario.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-delete-scenario.js.map +0 -1
- package/dist/esm/funcs/sandbox-get-scenario.d.ts +0 -21
- package/dist/esm/funcs/sandbox-get-scenario.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-get-scenario.js.map +0 -1
- package/dist/esm/funcs/sandbox-list-scenarios.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-list-scenarios.js.map +0 -1
- package/dist/esm/funcs/sandbox-put-scenario.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-put-scenario.js.map +0 -1
- package/dist/esm/models/create-sandbox-scenario-request.d.ts +0 -29
- package/dist/esm/models/create-sandbox-scenario-request.d.ts.map +0 -1
- package/dist/esm/models/create-sandbox-scenario-request.js +0 -18
- package/dist/esm/models/create-sandbox-scenario-request.js.map +0 -1
- package/dist/esm/models/operations/create-sandbox-scenario.d.ts +0 -18
- package/dist/esm/models/operations/create-sandbox-scenario.d.ts.map +0 -1
- package/dist/esm/models/operations/create-sandbox-scenario.js +0 -14
- package/dist/esm/models/operations/create-sandbox-scenario.js.map +0 -1
- package/dist/esm/models/operations/delete-sandbox-scenario.d.ts +0 -20
- package/dist/esm/models/operations/delete-sandbox-scenario.d.ts.map +0 -1
- package/dist/esm/models/operations/delete-sandbox-scenario.js +0 -13
- package/dist/esm/models/operations/delete-sandbox-scenario.js.map +0 -1
- package/dist/esm/models/operations/get-sandbox-scenario.d.ts.map +0 -1
- package/dist/esm/models/operations/get-sandbox-scenario.js +0 -23
- package/dist/esm/models/operations/get-sandbox-scenario.js.map +0 -1
- package/dist/esm/models/operations/list-sandbox-scenarios.d.ts +0 -34
- package/dist/esm/models/operations/list-sandbox-scenarios.d.ts.map +0 -1
- package/dist/esm/models/operations/list-sandbox-scenarios.js +0 -22
- package/dist/esm/models/operations/list-sandbox-scenarios.js.map +0 -1
- package/dist/esm/models/operations/put-sandbox-scenario.d.ts +0 -23
- package/dist/esm/models/operations/put-sandbox-scenario.d.ts.map +0 -1
- package/dist/esm/models/operations/put-sandbox-scenario.js +0 -15
- package/dist/esm/models/operations/put-sandbox-scenario.js.map +0 -1
- package/dist/esm/models/sandbox-scenario-summary.d.ts +0 -29
- package/dist/esm/models/sandbox-scenario-summary.d.ts.map +0 -1
- package/dist/esm/models/sandbox-scenario-summary.js +0 -26
- package/dist/esm/models/sandbox-scenario-summary.js.map +0 -1
- package/dist/esm/models/sandbox-scenario-written.d.ts +0 -19
- package/dist/esm/models/sandbox-scenario-written.d.ts.map +0 -1
- package/dist/esm/models/sandbox-scenario-written.js +0 -21
- package/dist/esm/models/sandbox-scenario-written.js.map +0 -1
- package/dist/esm/models/sandbox-scenario.d.ts.map +0 -1
- package/dist/esm/models/sandbox-scenario.js +0 -26
- package/dist/esm/models/sandbox-scenario.js.map +0 -1
- package/dist/esm/models/update-sandbox-scenario-request.d.ts +0 -24
- package/dist/esm/models/update-sandbox-scenario-request.d.ts.map +0 -1
- package/dist/esm/models/update-sandbox-scenario-request.js +0 -17
- package/dist/esm/models/update-sandbox-scenario-request.js.map +0 -1
- package/dist/esm/sdk/sandbox.d.ts +0 -41
- package/dist/esm/sdk/sandbox.d.ts.map +0 -1
- package/dist/esm/sdk/sandbox.js +0 -58
- package/dist/esm/sdk/sandbox.js.map +0 -1
- package/dist/esm/types/default-to-zero-value.d.ts +0 -12
- package/dist/esm/types/default-to-zero-value.d.ts.map +0 -1
- package/dist/esm/types/default-to-zero-value.js +0 -31
- package/dist/esm/types/default-to-zero-value.js.map +0 -1
- package/dist/esm/types/primitives.d.ts +0 -9
- package/dist/esm/types/primitives.d.ts.map +0 -1
- package/dist/esm/types/primitives.js +0 -109
- package/dist/esm/types/primitives.js.map +0 -1
- package/src/models/create-sandbox-scenario-request.ts +0 -65
- package/src/models/operations/create-sandbox-scenario.ts +0 -39
- package/src/models/operations/list-sandbox-scenarios.ts +0 -63
- package/src/models/sandbox-scenario-summary.ts +0 -63
- package/src/models/sandbox-scenario-written.ts +0 -48
- package/src/models/sandbox-scenario.ts +0 -61
- package/src/models/update-sandbox-scenario-request.ts +0 -59
- package/src/sdk/sandbox.ts +0 -100
- package/src/types/default-to-zero-value.ts +0 -33
- package/src/types/primitives.ts +0 -140
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Scenario payload (ScenarioPayload). Requires `modules`; optionally `defaultOutcome`, `description`, and extra passthrough fields. Validated by the store against the same schema the sandbox runtime enforces, so an accepted document is guaranteed runnable.
|
|
9
|
-
*/
|
|
10
|
-
export type CreateSandboxScenarioRequestData = {};
|
|
11
|
-
|
|
12
|
-
export type CreateSandboxScenarioRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Scenario identifier, unique per journey (GGO-18332). The same name may exist on other journeys of the org with different content.
|
|
15
|
-
*/
|
|
16
|
-
name: string;
|
|
17
|
-
/**
|
|
18
|
-
* Scenario payload (ScenarioPayload). Requires `modules`; optionally `defaultOutcome`, `description`, and extra passthrough fields. Validated by the store against the same schema the sandbox runtime enforces, so an accepted document is guaranteed runnable.
|
|
19
|
-
*/
|
|
20
|
-
data: CreateSandboxScenarioRequestData;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type CreateSandboxScenarioRequestData$Outbound = {};
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const CreateSandboxScenarioRequestData$outboundSchema: z.ZodMiniType<
|
|
28
|
-
CreateSandboxScenarioRequestData$Outbound,
|
|
29
|
-
CreateSandboxScenarioRequestData
|
|
30
|
-
> = z.object({});
|
|
31
|
-
|
|
32
|
-
export function createSandboxScenarioRequestDataToJSON(
|
|
33
|
-
createSandboxScenarioRequestData: CreateSandboxScenarioRequestData,
|
|
34
|
-
): string {
|
|
35
|
-
return JSON.stringify(
|
|
36
|
-
CreateSandboxScenarioRequestData$outboundSchema.parse(
|
|
37
|
-
createSandboxScenarioRequestData,
|
|
38
|
-
),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type CreateSandboxScenarioRequest$Outbound = {
|
|
44
|
-
name: string;
|
|
45
|
-
data: CreateSandboxScenarioRequestData$Outbound;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const CreateSandboxScenarioRequest$outboundSchema: z.ZodMiniType<
|
|
50
|
-
CreateSandboxScenarioRequest$Outbound,
|
|
51
|
-
CreateSandboxScenarioRequest
|
|
52
|
-
> = z.object({
|
|
53
|
-
name: z.string(),
|
|
54
|
-
data: z.lazy(() => CreateSandboxScenarioRequestData$outboundSchema),
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export function createSandboxScenarioRequestToJSON(
|
|
58
|
-
createSandboxScenarioRequest: CreateSandboxScenarioRequest,
|
|
59
|
-
): string {
|
|
60
|
-
return JSON.stringify(
|
|
61
|
-
CreateSandboxScenarioRequest$outboundSchema.parse(
|
|
62
|
-
createSandboxScenarioRequest,
|
|
63
|
-
),
|
|
64
|
-
);
|
|
65
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
|
|
8
|
-
export type CreateSandboxScenarioRequest = {
|
|
9
|
-
/**
|
|
10
|
-
* Id of the journey the scenario belongs to. Scenarios are listed, read and resolved per journey.
|
|
11
|
-
*/
|
|
12
|
-
journeyId: string;
|
|
13
|
-
body?: models.CreateSandboxScenarioRequest | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type CreateSandboxScenarioRequest$Outbound = {
|
|
18
|
-
journeyId: string;
|
|
19
|
-
body?: models.CreateSandboxScenarioRequest$Outbound | undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const CreateSandboxScenarioRequest$outboundSchema: z.ZodMiniType<
|
|
24
|
-
CreateSandboxScenarioRequest$Outbound,
|
|
25
|
-
CreateSandboxScenarioRequest
|
|
26
|
-
> = z.object({
|
|
27
|
-
journeyId: z.string(),
|
|
28
|
-
body: z.optional(models.CreateSandboxScenarioRequest$outboundSchema),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export function createSandboxScenarioRequestToJSON(
|
|
32
|
-
createSandboxScenarioRequest: CreateSandboxScenarioRequest,
|
|
33
|
-
): string {
|
|
34
|
-
return JSON.stringify(
|
|
35
|
-
CreateSandboxScenarioRequest$outboundSchema.parse(
|
|
36
|
-
createSandboxScenarioRequest,
|
|
37
|
-
),
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Include read-only platform-tier scenarios in the listing. Defaults to false.
|
|
10
|
-
*/
|
|
11
|
-
export const ListSandboxScenariosIncludePlatform = {
|
|
12
|
-
True: "true",
|
|
13
|
-
False: "false",
|
|
14
|
-
} as const;
|
|
15
|
-
/**
|
|
16
|
-
* Include read-only platform-tier scenarios in the listing. Defaults to false.
|
|
17
|
-
*/
|
|
18
|
-
export type ListSandboxScenariosIncludePlatform = ClosedEnum<
|
|
19
|
-
typeof ListSandboxScenariosIncludePlatform
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type ListSandboxScenariosRequest = {
|
|
23
|
-
/**
|
|
24
|
-
* Id of the journey the scenario belongs to. Scenarios are listed, read and resolved per journey.
|
|
25
|
-
*/
|
|
26
|
-
journeyId: string;
|
|
27
|
-
/**
|
|
28
|
-
* Include read-only platform-tier scenarios in the listing. Defaults to false.
|
|
29
|
-
*/
|
|
30
|
-
includePlatform?: ListSandboxScenariosIncludePlatform | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const ListSandboxScenariosIncludePlatform$outboundSchema: z.ZodMiniEnum<
|
|
35
|
-
typeof ListSandboxScenariosIncludePlatform
|
|
36
|
-
> = z.enum(ListSandboxScenariosIncludePlatform);
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type ListSandboxScenariosRequest$Outbound = {
|
|
40
|
-
journeyId: string;
|
|
41
|
-
includePlatform?: string | undefined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const ListSandboxScenariosRequest$outboundSchema: z.ZodMiniType<
|
|
46
|
-
ListSandboxScenariosRequest$Outbound,
|
|
47
|
-
ListSandboxScenariosRequest
|
|
48
|
-
> = z.object({
|
|
49
|
-
journeyId: z.string(),
|
|
50
|
-
includePlatform: z.optional(
|
|
51
|
-
ListSandboxScenariosIncludePlatform$outboundSchema,
|
|
52
|
-
),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function listSandboxScenariosRequestToJSON(
|
|
56
|
-
listSandboxScenariosRequest: ListSandboxScenariosRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
ListSandboxScenariosRequest$outboundSchema.parse(
|
|
60
|
-
listSandboxScenariosRequest,
|
|
61
|
-
),
|
|
62
|
-
);
|
|
63
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
-
import * as types from "../types/primitives.js";
|
|
11
|
-
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
-
|
|
13
|
-
export const SandboxScenarioSummaryTier = {
|
|
14
|
-
Platform: "platform",
|
|
15
|
-
Org: "org",
|
|
16
|
-
} as const;
|
|
17
|
-
export type SandboxScenarioSummaryTier = OpenEnum<
|
|
18
|
-
typeof SandboxScenarioSummaryTier
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
export type SandboxScenarioSummary = {
|
|
22
|
-
name: string;
|
|
23
|
-
tier: SandboxScenarioSummaryTier;
|
|
24
|
-
editable: boolean;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* When the scenario was last saved (ISO 8601).
|
|
28
|
-
*/
|
|
29
|
-
lastModifiedTime?: Date | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Principal (JWT sub) who last saved the scenario.
|
|
32
|
-
*/
|
|
33
|
-
lastModifiedBy?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const SandboxScenarioSummaryTier$inboundSchema: z.ZodMiniType<
|
|
38
|
-
SandboxScenarioSummaryTier,
|
|
39
|
-
unknown
|
|
40
|
-
> = openEnums.inboundSchema(SandboxScenarioSummaryTier);
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const SandboxScenarioSummary$inboundSchema: z.ZodMiniType<
|
|
44
|
-
SandboxScenarioSummary,
|
|
45
|
-
unknown
|
|
46
|
-
> = z.object({
|
|
47
|
-
name: types.string(),
|
|
48
|
-
tier: SandboxScenarioSummaryTier$inboundSchema,
|
|
49
|
-
editable: types.boolean(),
|
|
50
|
-
description: types.optional(types.string()),
|
|
51
|
-
lastModifiedTime: types.optional(types.date()),
|
|
52
|
-
lastModifiedBy: types.optional(types.string()),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function sandboxScenarioSummaryFromJSON(
|
|
56
|
-
jsonString: string,
|
|
57
|
-
): SafeParseResult<SandboxScenarioSummary, SDKValidationError> {
|
|
58
|
-
return safeParse(
|
|
59
|
-
jsonString,
|
|
60
|
-
(x) => SandboxScenarioSummary$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
-
`Failed to parse 'SandboxScenarioSummary' from JSON`,
|
|
62
|
-
);
|
|
63
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import * as types from "../types/primitives.js";
|
|
10
|
-
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
-
|
|
12
|
-
export const SandboxScenarioWrittenTier = {
|
|
13
|
-
Org: "org",
|
|
14
|
-
} as const;
|
|
15
|
-
export type SandboxScenarioWrittenTier = ClosedEnum<
|
|
16
|
-
typeof SandboxScenarioWrittenTier
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
export type SandboxScenarioWritten = {
|
|
20
|
-
name: string;
|
|
21
|
-
journeyId: string;
|
|
22
|
-
tier: SandboxScenarioWrittenTier;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const SandboxScenarioWrittenTier$inboundSchema: z.ZodMiniEnum<
|
|
27
|
-
typeof SandboxScenarioWrittenTier
|
|
28
|
-
> = z.enum(SandboxScenarioWrittenTier);
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const SandboxScenarioWritten$inboundSchema: z.ZodMiniType<
|
|
32
|
-
SandboxScenarioWritten,
|
|
33
|
-
unknown
|
|
34
|
-
> = z.object({
|
|
35
|
-
name: types.string(),
|
|
36
|
-
journeyId: types.string(),
|
|
37
|
-
tier: SandboxScenarioWrittenTier$inboundSchema,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export function sandboxScenarioWrittenFromJSON(
|
|
41
|
-
jsonString: string,
|
|
42
|
-
): SafeParseResult<SandboxScenarioWritten, SDKValidationError> {
|
|
43
|
-
return safeParse(
|
|
44
|
-
jsonString,
|
|
45
|
-
(x) => SandboxScenarioWritten$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
-
`Failed to parse 'SandboxScenarioWritten' from JSON`,
|
|
47
|
-
);
|
|
48
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
-
import * as types from "../types/primitives.js";
|
|
11
|
-
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
-
|
|
13
|
-
export const SandboxScenarioTier = {
|
|
14
|
-
Platform: "platform",
|
|
15
|
-
Org: "org",
|
|
16
|
-
} as const;
|
|
17
|
-
export type SandboxScenarioTier = OpenEnum<typeof SandboxScenarioTier>;
|
|
18
|
-
|
|
19
|
-
export type SandboxScenario = {
|
|
20
|
-
name: string;
|
|
21
|
-
journeyId: string;
|
|
22
|
-
tier: SandboxScenarioTier;
|
|
23
|
-
data: { [k: string]: any };
|
|
24
|
-
/**
|
|
25
|
-
* When the scenario was last saved (ISO 8601).
|
|
26
|
-
*/
|
|
27
|
-
lastModifiedTime?: Date | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Principal (JWT sub) who last saved the scenario.
|
|
30
|
-
*/
|
|
31
|
-
lastModifiedBy?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const SandboxScenarioTier$inboundSchema: z.ZodMiniType<
|
|
36
|
-
SandboxScenarioTier,
|
|
37
|
-
unknown
|
|
38
|
-
> = openEnums.inboundSchema(SandboxScenarioTier);
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const SandboxScenario$inboundSchema: z.ZodMiniType<
|
|
42
|
-
SandboxScenario,
|
|
43
|
-
unknown
|
|
44
|
-
> = z.object({
|
|
45
|
-
name: types.string(),
|
|
46
|
-
journeyId: types.string(),
|
|
47
|
-
tier: SandboxScenarioTier$inboundSchema,
|
|
48
|
-
data: z.record(z.string(), z.any()),
|
|
49
|
-
lastModifiedTime: types.optional(types.date()),
|
|
50
|
-
lastModifiedBy: types.optional(types.string()),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function sandboxScenarioFromJSON(
|
|
54
|
-
jsonString: string,
|
|
55
|
-
): SafeParseResult<SandboxScenario, SDKValidationError> {
|
|
56
|
-
return safeParse(
|
|
57
|
-
jsonString,
|
|
58
|
-
(x) => SandboxScenario$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
-
`Failed to parse 'SandboxScenario' from JSON`,
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Scenario payload (ScenarioPayload). Requires `modules`; optionally `defaultOutcome`, `description`, and extra passthrough fields. Validated by the store against the same schema the sandbox runtime enforces, so an accepted document is guaranteed runnable.
|
|
9
|
-
*/
|
|
10
|
-
export type UpdateSandboxScenarioRequestData = {};
|
|
11
|
-
|
|
12
|
-
export type UpdateSandboxScenarioRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Scenario payload (ScenarioPayload). Requires `modules`; optionally `defaultOutcome`, `description`, and extra passthrough fields. Validated by the store against the same schema the sandbox runtime enforces, so an accepted document is guaranteed runnable.
|
|
15
|
-
*/
|
|
16
|
-
data: UpdateSandboxScenarioRequestData;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type UpdateSandboxScenarioRequestData$Outbound = {};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const UpdateSandboxScenarioRequestData$outboundSchema: z.ZodMiniType<
|
|
24
|
-
UpdateSandboxScenarioRequestData$Outbound,
|
|
25
|
-
UpdateSandboxScenarioRequestData
|
|
26
|
-
> = z.object({});
|
|
27
|
-
|
|
28
|
-
export function updateSandboxScenarioRequestDataToJSON(
|
|
29
|
-
updateSandboxScenarioRequestData: UpdateSandboxScenarioRequestData,
|
|
30
|
-
): string {
|
|
31
|
-
return JSON.stringify(
|
|
32
|
-
UpdateSandboxScenarioRequestData$outboundSchema.parse(
|
|
33
|
-
updateSandboxScenarioRequestData,
|
|
34
|
-
),
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type UpdateSandboxScenarioRequest$Outbound = {
|
|
40
|
-
data: UpdateSandboxScenarioRequestData$Outbound;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const UpdateSandboxScenarioRequest$outboundSchema: z.ZodMiniType<
|
|
45
|
-
UpdateSandboxScenarioRequest$Outbound,
|
|
46
|
-
UpdateSandboxScenarioRequest
|
|
47
|
-
> = z.object({
|
|
48
|
-
data: z.lazy(() => UpdateSandboxScenarioRequestData$outboundSchema),
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export function updateSandboxScenarioRequestToJSON(
|
|
52
|
-
updateSandboxScenarioRequest: UpdateSandboxScenarioRequest,
|
|
53
|
-
): string {
|
|
54
|
-
return JSON.stringify(
|
|
55
|
-
UpdateSandboxScenarioRequest$outboundSchema.parse(
|
|
56
|
-
updateSandboxScenarioRequest,
|
|
57
|
-
),
|
|
58
|
-
);
|
|
59
|
-
}
|
package/src/sdk/sandbox.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { sandboxCreateScenario } from "../funcs/sandbox-create-scenario.js";
|
|
6
|
-
import { sandboxDeleteScenario } from "../funcs/sandbox-delete-scenario.js";
|
|
7
|
-
import { sandboxGetScenario } from "../funcs/sandbox-get-scenario.js";
|
|
8
|
-
import { sandboxListScenarios } from "../funcs/sandbox-list-scenarios.js";
|
|
9
|
-
import { sandboxPutScenario } from "../funcs/sandbox-put-scenario.js";
|
|
10
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import * as models from "../models/index.js";
|
|
12
|
-
import * as operations from "../models/operations/index.js";
|
|
13
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
-
|
|
15
|
-
export class Sandbox extends ClientSDK {
|
|
16
|
-
/**
|
|
17
|
-
* Create a sandbox scenario on a journey
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* Creates an org-tier sandbox scenario belonging to the journey in the path. Returns 409 if the name is taken on that journey (the same name may exist on other journeys). The scenario is resolvable at journey-start, for runs of that journey only, via the x-gbg-scenario header. Org is taken from the token.
|
|
21
|
-
*/
|
|
22
|
-
async createScenario(
|
|
23
|
-
request: operations.CreateSandboxScenarioRequest,
|
|
24
|
-
options?: RequestOptions,
|
|
25
|
-
): Promise<models.SandboxScenarioWritten> {
|
|
26
|
-
return unwrapAsync(sandboxCreateScenario(
|
|
27
|
-
this,
|
|
28
|
-
request,
|
|
29
|
-
options,
|
|
30
|
-
));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* List a journey's sandbox scenarios
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Lists the org's sandbox scenarios belonging to the journey in the path — never another journey's. Pass includePlatform=true to also return read-only GBG-provided platform scenarios (available on every journey); an org scenario shadows a platform scenario of the same name.
|
|
38
|
-
*/
|
|
39
|
-
async listScenarios(
|
|
40
|
-
request: operations.ListSandboxScenariosRequest,
|
|
41
|
-
options?: RequestOptions,
|
|
42
|
-
): Promise<Array<models.SandboxScenarioSummary>> {
|
|
43
|
-
return unwrapAsync(sandboxListScenarios(
|
|
44
|
-
this,
|
|
45
|
-
request,
|
|
46
|
-
options,
|
|
47
|
-
));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Read a sandbox scenario
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Reads one org-tier sandbox scenario of the journey in the path. By default does not fall back to the platform tier or to another journey, so a name that exists only at platform level, or only on another journey, returns 404. Pass includePlatform=true to fall back to the read-only GBG-provided scenario of that name; the response `tier` says which tier served it. Another journey is never consulted either way.
|
|
55
|
-
*/
|
|
56
|
-
async getScenario(
|
|
57
|
-
request: operations.GetSandboxScenarioRequest,
|
|
58
|
-
options?: RequestOptions,
|
|
59
|
-
): Promise<models.SandboxScenario> {
|
|
60
|
-
return unwrapAsync(sandboxGetScenario(
|
|
61
|
-
this,
|
|
62
|
-
request,
|
|
63
|
-
options,
|
|
64
|
-
));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Replace a sandbox scenario
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* Replaces an existing org-tier sandbox scenario of the journey in the path. Returns 404 if it does not exist on that journey — use POST to create. Requires UPDATE:journey; creating (POST) requires CREATE:journey, so an edit-only grant cannot mint new scenarios through this endpoint.
|
|
72
|
-
*/
|
|
73
|
-
async putScenario(
|
|
74
|
-
request: operations.PutSandboxScenarioRequest,
|
|
75
|
-
options?: RequestOptions,
|
|
76
|
-
): Promise<models.SandboxScenarioWritten> {
|
|
77
|
-
return unwrapAsync(sandboxPutScenario(
|
|
78
|
-
this,
|
|
79
|
-
request,
|
|
80
|
-
options,
|
|
81
|
-
));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Delete a sandbox scenario
|
|
86
|
-
*
|
|
87
|
-
* @remarks
|
|
88
|
-
* Deletes an org-tier sandbox scenario of the journey in the path by archiving it: it disappears from listings and journey-start resolution, but its version history is retained and creating the same name again restores it. A platform scenario of the same name, previously shadowed by this one on this journey, becomes resolvable again at journey-start.
|
|
89
|
-
*/
|
|
90
|
-
async deleteScenario(
|
|
91
|
-
request: operations.DeleteSandboxScenarioRequest,
|
|
92
|
-
options?: RequestOptions,
|
|
93
|
-
): Promise<void> {
|
|
94
|
-
return unwrapAsync(sandboxDeleteScenario(
|
|
95
|
-
this,
|
|
96
|
-
request,
|
|
97
|
-
options,
|
|
98
|
-
));
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { type Unrecognized, unrecognized } from "./unrecognized.js";
|
|
6
|
-
|
|
7
|
-
let globalCount = 0;
|
|
8
|
-
let refCount = 0;
|
|
9
|
-
|
|
10
|
-
export function defaultToZeroValue<T>(value: T): Unrecognized<T> {
|
|
11
|
-
globalCount++;
|
|
12
|
-
return unrecognized(value);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function startCountingDefaultToZeroValue() {
|
|
16
|
-
refCount++;
|
|
17
|
-
const start = globalCount;
|
|
18
|
-
return {
|
|
19
|
-
/**
|
|
20
|
-
* Ends counting and returns the delta.
|
|
21
|
-
* @param delta - If provided, only this amount is added to the parent counter
|
|
22
|
-
* (used for nested unions where we only want to record the winning option's count).
|
|
23
|
-
* If not provided, records all counts since start().
|
|
24
|
-
*/
|
|
25
|
-
end: (delta?: number) => {
|
|
26
|
-
const count = globalCount - start;
|
|
27
|
-
// Reset globalCount back to start, then add only the specified delta
|
|
28
|
-
globalCount = start + (delta ?? count);
|
|
29
|
-
if (--refCount === 0) globalCount = 0;
|
|
30
|
-
return count;
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
}
|
package/src/types/primitives.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { defaultToZeroValue } from "./default-to-zero-value.js";
|
|
7
|
-
import { unrecognized } from "./unrecognized.js";
|
|
8
|
-
|
|
9
|
-
export function string(): z.ZodMiniType<string> {
|
|
10
|
-
return z.union([
|
|
11
|
-
z.string(),
|
|
12
|
-
|
|
13
|
-
// Null or undefined -> ""
|
|
14
|
-
zodDefaultToZeroValue(""),
|
|
15
|
-
|
|
16
|
-
// Any other value -> String(x)
|
|
17
|
-
z.pipe(z.any(), z.transform((x) => unrecognized(JSON.stringify(x)))),
|
|
18
|
-
]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function boolean(): z.ZodMiniType<boolean> {
|
|
22
|
-
return z.union([
|
|
23
|
-
z.boolean(),
|
|
24
|
-
|
|
25
|
-
// String "true" (case insensitive) -> true, "false" -> false
|
|
26
|
-
z.pipe(
|
|
27
|
-
z.string(),
|
|
28
|
-
z.transform((x, ctx) => {
|
|
29
|
-
const lower = x.toLowerCase();
|
|
30
|
-
if (lower === "true") return unrecognized(true);
|
|
31
|
-
if (lower === "false") return unrecognized(false);
|
|
32
|
-
ctx.issues.push({
|
|
33
|
-
input: x,
|
|
34
|
-
code: "invalid_type",
|
|
35
|
-
expected: "boolean",
|
|
36
|
-
received: "string",
|
|
37
|
-
});
|
|
38
|
-
return z.NEVER;
|
|
39
|
-
}),
|
|
40
|
-
),
|
|
41
|
-
|
|
42
|
-
zodDefaultToZeroValue(false),
|
|
43
|
-
]);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function number(): z.ZodMiniType<number> {
|
|
47
|
-
return z.union([
|
|
48
|
-
z.number(),
|
|
49
|
-
|
|
50
|
-
// String -> Number
|
|
51
|
-
z.pipe(
|
|
52
|
-
z.string(),
|
|
53
|
-
z.transform((x, ctx) => {
|
|
54
|
-
const num = Number(x);
|
|
55
|
-
if (isNaN(num)) {
|
|
56
|
-
ctx.issues.push({
|
|
57
|
-
input: x,
|
|
58
|
-
code: "invalid_type",
|
|
59
|
-
expected: "number",
|
|
60
|
-
received: "string",
|
|
61
|
-
});
|
|
62
|
-
return z.NEVER;
|
|
63
|
-
}
|
|
64
|
-
return unrecognized(num);
|
|
65
|
-
}),
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
// Null or undefined -> 0
|
|
69
|
-
zodDefaultToZeroValue(0),
|
|
70
|
-
]);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function date(): z.ZodMiniType<Date> {
|
|
74
|
-
return z.union([
|
|
75
|
-
z.pipe(
|
|
76
|
-
z.pipe(
|
|
77
|
-
z.union([z.string(), zodDefaultToZeroValue(0)]),
|
|
78
|
-
z.transform((x) => new Date(x)),
|
|
79
|
-
),
|
|
80
|
-
z.date(),
|
|
81
|
-
),
|
|
82
|
-
z.pipe(
|
|
83
|
-
z.number(),
|
|
84
|
-
z.transform((x, ctx) => {
|
|
85
|
-
const date = new Date(x);
|
|
86
|
-
if (isNaN(date.getTime())) {
|
|
87
|
-
ctx.issues.push({
|
|
88
|
-
input: x,
|
|
89
|
-
code: "invalid_type",
|
|
90
|
-
expected: "date",
|
|
91
|
-
received: "number",
|
|
92
|
-
});
|
|
93
|
-
return z.NEVER;
|
|
94
|
-
}
|
|
95
|
-
return unrecognized(date);
|
|
96
|
-
}),
|
|
97
|
-
),
|
|
98
|
-
]);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function literal<T extends string | number | boolean>(
|
|
102
|
-
value: T,
|
|
103
|
-
): z.ZodMiniType<T> {
|
|
104
|
-
return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function optional<T extends z.ZodMiniType>(t: T) {
|
|
108
|
-
return z.optional(z.union([
|
|
109
|
-
// Null -> undefined
|
|
110
|
-
z.pipe(z.null(), z.transform(() => unrecognized(undefined))),
|
|
111
|
-
t,
|
|
112
|
-
]));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function nullable<T extends z.ZodMiniType>(t: T) {
|
|
116
|
-
return z.union([
|
|
117
|
-
z.null(),
|
|
118
|
-
|
|
119
|
-
// Undefined -> null
|
|
120
|
-
z.pipe(z.undefined(), z.transform(() => defaultToZeroValue(null))),
|
|
121
|
-
t,
|
|
122
|
-
]);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function zodDefaultToZeroValue<T>(value: T): z.ZodMiniType<T> {
|
|
126
|
-
return z.pipe(
|
|
127
|
-
z.any(),
|
|
128
|
-
z.transform((input, ctx) => {
|
|
129
|
-
if (input === undefined) return defaultToZeroValue(value);
|
|
130
|
-
if (input === null) return defaultToZeroValue(value);
|
|
131
|
-
ctx.issues.push({
|
|
132
|
-
input: input,
|
|
133
|
-
code: "invalid_type",
|
|
134
|
-
expected: "undefined",
|
|
135
|
-
received: "unknown",
|
|
136
|
-
});
|
|
137
|
-
return z.NEVER;
|
|
138
|
-
}),
|
|
139
|
-
);
|
|
140
|
-
}
|