botshield-sdk 1.8.3 → 2.0.0
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/README.md +485 -295
- package/RUNTIMES.md +48 -0
- package/bin/mcp-server.js +52962 -0
- package/bin/mcp-server.js.map +379 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/actions-cancel-action.d.ts +18 -0
- package/dist/commonjs/funcs/actions-cancel-action.d.ts.map +1 -0
- package/dist/commonjs/funcs/actions-cancel-action.js +118 -0
- package/dist/commonjs/funcs/actions-cancel-action.js.map +1 -0
- package/dist/commonjs/funcs/actions-check-action-status.d.ts +18 -0
- package/dist/commonjs/funcs/actions-check-action-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/actions-check-action-status.js +122 -0
- package/dist/commonjs/funcs/actions-check-action-status.js.map +1 -0
- package/dist/commonjs/funcs/actions-propose-action.d.ts +18 -0
- package/dist/commonjs/funcs/actions-propose-action.d.ts.map +1 -0
- package/dist/commonjs/funcs/actions-propose-action.js +118 -0
- package/dist/commonjs/funcs/actions-propose-action.js.map +1 -0
- package/dist/commonjs/funcs/census-create-session.d.ts +18 -0
- package/dist/commonjs/funcs/census-create-session.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-create-session.js +123 -0
- package/dist/commonjs/funcs/census-create-session.js.map +1 -0
- package/dist/commonjs/funcs/census-create-verification-link.d.ts +18 -0
- package/dist/commonjs/funcs/census-create-verification-link.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-create-verification-link.js +123 -0
- package/dist/commonjs/funcs/census-create-verification-link.js.map +1 -0
- package/dist/commonjs/funcs/census-get-partner-config.d.ts +18 -0
- package/dist/commonjs/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-get-partner-config.js +138 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -0
- package/dist/commonjs/funcs/census-logout.d.ts +15 -0
- package/dist/commonjs/funcs/census-logout.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-logout.js +120 -0
- package/dist/commonjs/funcs/census-logout.js.map +1 -0
- package/dist/commonjs/funcs/census-revoke-verification.d.ts +18 -0
- package/dist/commonjs/funcs/census-revoke-verification.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-revoke-verification.js +123 -0
- package/dist/commonjs/funcs/census-revoke-verification.js.map +1 -0
- package/dist/commonjs/funcs/census-store-signal.d.ts +18 -0
- package/dist/commonjs/funcs/census-store-signal.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-store-signal.js +114 -0
- package/dist/commonjs/funcs/census-store-signal.js.map +1 -0
- package/dist/commonjs/funcs/census-validate-signal.d.ts +18 -0
- package/dist/commonjs/funcs/census-validate-signal.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-validate-signal.js +114 -0
- package/dist/commonjs/funcs/census-validate-signal.js.map +1 -0
- package/dist/commonjs/funcs/census-verify-token.d.ts +18 -0
- package/dist/commonjs/funcs/census-verify-token.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-verify-token.js +135 -0
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.d.ts +18 -0
- package/dist/commonjs/funcs/verification-get-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.js +138 -0
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +25 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +84 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +77 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +71 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +42 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +42 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +54 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +406 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +26 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +96 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +219 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +221 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +27 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +129 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +163 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +19 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +62 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +294 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +84 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +167 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +27 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/command.d.ts +2 -0
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/command.js +149 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +20 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js +112 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -0
- package/dist/commonjs/mcp-server/cli.d.ts +6 -0
- package/dist/commonjs/mcp-server/cli.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli.js +10 -0
- package/dist/commonjs/mcp-server/cli.js.map +1 -0
- package/dist/commonjs/mcp-server/console-logger.d.ts +7 -0
- package/dist/commonjs/mcp-server/console-logger.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/console-logger.js +59 -0
- package/dist/commonjs/mcp-server/console-logger.js.map +1 -0
- package/dist/commonjs/mcp-server/extensions.d.ts +11 -0
- package/dist/commonjs/mcp-server/extensions.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/extensions.js +6 -0
- package/dist/commonjs/mcp-server/extensions.js.map +1 -0
- package/dist/commonjs/mcp-server/mcp-server.d.ts +2 -0
- package/dist/commonjs/mcp-server/mcp-server.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/mcp-server.js +29 -0
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -0
- package/dist/commonjs/mcp-server/prompts.d.ts +26 -0
- package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/prompts.js +51 -0
- package/dist/commonjs/mcp-server/prompts.js.map +1 -0
- package/dist/commonjs/mcp-server/resources.d.ts +32 -0
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/resources.js +87 -0
- package/dist/commonjs/mcp-server/resources.js.map +1 -0
- package/dist/commonjs/mcp-server/scopes.d.ts +3 -0
- package/dist/commonjs/mcp-server/scopes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/scopes.js +10 -0
- package/dist/commonjs/mcp-server/scopes.js.map +1 -0
- package/dist/commonjs/mcp-server/server.d.ts +13 -0
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/server.js +38 -0
- package/dist/commonjs/mcp-server/server.js.map +1 -0
- package/dist/commonjs/mcp-server/shared.d.ts +7 -0
- package/dist/commonjs/mcp-server/shared.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/shared.js +98 -0
- package/dist/commonjs/mcp-server/shared.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +63 -0
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +63 -0
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +63 -0
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -0
- package/dist/commonjs/mcp-server/tools.d.ts +25 -0
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools.js +82 -0
- package/dist/commonjs/mcp-server/tools.js.map +1 -0
- package/dist/commonjs/models/error-body.d.ts +56 -0
- package/dist/commonjs/models/error-body.d.ts.map +1 -0
- package/dist/commonjs/models/error-body.js +100 -0
- package/dist/commonjs/models/error-body.js.map +1 -0
- package/dist/commonjs/models/error-response.d.ts +19 -0
- package/dist/commonjs/models/error-response.d.ts.map +1 -0
- package/dist/commonjs/models/error-response.js +61 -0
- package/dist/commonjs/models/error-response.js.map +1 -0
- package/dist/commonjs/models/errors/bot-shield-default-error.d.ts +10 -0
- package/dist/commonjs/models/errors/bot-shield-default-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/bot-shield-default-error.js +34 -0
- package/dist/commonjs/models/errors/bot-shield-default-error.js.map +1 -0
- package/dist/commonjs/models/errors/bot-shield-error.d.ts +19 -0
- package/dist/commonjs/models/errors/bot-shield-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/bot-shield-error.js +30 -0
- package/dist/commonjs/models/errors/bot-shield-error.js.map +1 -0
- package/dist/commonjs/models/errors/error-response.d.ts +31 -0
- package/dist/commonjs/models/errors/error-response.d.ts.map +1 -0
- package/dist/commonjs/models/errors/error-response.js +80 -0
- package/dist/commonjs/models/errors/error-response.js.map +1 -0
- package/dist/commonjs/models/errors/http-client-errors.d.ts +44 -0
- package/dist/commonjs/models/errors/http-client-errors.d.ts.map +1 -0
- package/dist/commonjs/models/errors/http-client-errors.js +65 -0
- package/dist/commonjs/models/errors/http-client-errors.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +8 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/models/errors/index.js +27 -0
- package/dist/commonjs/models/errors/index.js.map +1 -0
- package/dist/commonjs/models/errors/invalid-input-error.d.ts +42 -0
- package/dist/commonjs/models/errors/invalid-input-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/invalid-input-error.js +86 -0
- package/dist/commonjs/models/errors/invalid-input-error.js.map +1 -0
- package/dist/commonjs/models/errors/response-validation-error.d.ts +26 -0
- package/dist/commonjs/models/errors/response-validation-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/response-validation-error.js +74 -0
- package/dist/commonjs/models/errors/response-validation-error.js.map +1 -0
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts +21 -0
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sdk-validation-error.js +137 -0
- package/dist/commonjs/models/errors/sdk-validation-error.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +5 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +24 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/invalid-input-error.d.ts +24 -0
- package/dist/commonjs/models/invalid-input-error.d.ts.map +1 -0
- package/dist/commonjs/models/invalid-input-error.js +63 -0
- package/dist/commonjs/models/invalid-input-error.js.map +1 -0
- package/dist/commonjs/models/operations/actions-cancel.d.ts +104 -0
- package/dist/commonjs/models/operations/actions-cancel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/actions-cancel.js +154 -0
- package/dist/commonjs/models/operations/actions-cancel.js.map +1 -0
- package/dist/commonjs/models/operations/actions-check-status.d.ts +121 -0
- package/dist/commonjs/models/operations/actions-check-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/actions-check-status.js +176 -0
- package/dist/commonjs/models/operations/actions-check-status.js.map +1 -0
- package/dist/commonjs/models/operations/actions-propose.d.ts +187 -0
- package/dist/commonjs/models/operations/actions-propose.d.ts.map +1 -0
- package/dist/commonjs/models/operations/actions-propose.js +227 -0
- package/dist/commonjs/models/operations/actions-propose.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +13 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -0
- package/dist/commonjs/models/operations/index.js +32 -0
- package/dist/commonjs/models/operations/index.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +139 -0
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-create-session.js +205 -0
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +210 -0
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +270 -0
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +128 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +181 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-logout.d.ts +74 -0
- package/dist/commonjs/models/operations/sdk-logout.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-logout.js +143 -0
- package/dist/commonjs/models/operations/sdk-logout.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts +97 -0
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-revoke-verification.js +161 -0
- package/dist/commonjs/models/operations/sdk-revoke-verification.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-store-signal.d.ts +93 -0
- package/dist/commonjs/models/operations/sdk-store-signal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-store-signal.js +155 -0
- package/dist/commonjs/models/operations/sdk-store-signal.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts +101 -0
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-validate-signal.js +164 -0
- package/dist/commonjs/models/operations/sdk-validate-signal.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +122 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-token.js +188 -0
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +153 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.js +234 -0
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +21 -0
- package/dist/commonjs/models/security.d.ts.map +1 -0
- package/dist/commonjs/models/security.js +63 -0
- package/dist/commonjs/models/security.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/actions.d.ts +26 -0
- package/dist/commonjs/sdk/actions.d.ts.map +1 -0
- package/dist/commonjs/sdk/actions.js +42 -0
- package/dist/commonjs/sdk/actions.js.map +1 -0
- package/dist/commonjs/sdk/census.d.ts +58 -0
- package/dist/commonjs/sdk/census.d.ts.map +1 -0
- package/dist/commonjs/sdk/census.js +89 -0
- package/dist/commonjs/sdk/census.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +13 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +26 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/sdk/verification.d.ts +12 -0
- package/dist/commonjs/sdk/verification.d.ts.map +1 -0
- package/dist/commonjs/sdk/verification.js +22 -0
- package/dist/commonjs/sdk/verification.js.map +1 -0
- package/dist/commonjs/types/async.d.ts +23 -0
- package/dist/commonjs/types/async.d.ts.map +1 -0
- package/dist/commonjs/types/async.js +32 -0
- package/dist/commonjs/types/async.js.map +1 -0
- package/dist/commonjs/types/blobs.d.ts +4 -0
- package/dist/commonjs/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/types/blobs.js +62 -0
- package/dist/commonjs/types/blobs.js.map +1 -0
- package/dist/commonjs/types/const-date-time.d.ts +3 -0
- package/dist/commonjs/types/const-date-time.d.ts.map +1 -0
- package/dist/commonjs/types/const-date-time.js +46 -0
- package/dist/commonjs/types/const-date-time.js.map +1 -0
- package/dist/commonjs/types/default-to-zero-value.d.ts +12 -0
- package/dist/commonjs/types/default-to-zero-value.d.ts.map +1 -0
- package/dist/commonjs/types/default-to-zero-value.js +35 -0
- package/dist/commonjs/types/default-to-zero-value.js.map +1 -0
- package/dist/commonjs/types/enums.d.ts +9 -0
- package/dist/commonjs/types/enums.d.ts.map +1 -0
- package/dist/commonjs/types/enums.js +66 -0
- package/dist/commonjs/types/enums.js.map +1 -0
- package/dist/commonjs/types/fp.d.ts +31 -0
- package/dist/commonjs/types/fp.d.ts.map +1 -0
- package/dist/commonjs/types/fp.js +37 -0
- package/dist/commonjs/types/fp.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +10 -0
- package/dist/commonjs/types/index.d.ts.map +1 -0
- package/dist/commonjs/types/index.js +31 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/types/operations.d.ts +27 -0
- package/dist/commonjs/types/operations.d.ts.map +1 -0
- package/dist/commonjs/types/operations.js +83 -0
- package/dist/commonjs/types/operations.js.map +1 -0
- package/dist/commonjs/types/primitives.d.ts +9 -0
- package/dist/commonjs/types/primitives.d.ts.map +1 -0
- package/dist/commonjs/types/primitives.js +147 -0
- package/dist/commonjs/types/primitives.js.map +1 -0
- package/dist/commonjs/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/types/rfcdate.js +47 -0
- package/dist/commonjs/types/rfcdate.js.map +1 -0
- package/dist/commonjs/types/smart-union.d.ts +7 -0
- package/dist/commonjs/types/smart-union.d.ts.map +1 -0
- package/dist/commonjs/types/smart-union.js +152 -0
- package/dist/commonjs/types/smart-union.js.map +1 -0
- package/dist/commonjs/types/streams.d.ts +2 -0
- package/dist/commonjs/types/streams.d.ts.map +1 -0
- package/dist/commonjs/types/streams.js +18 -0
- package/dist/commonjs/types/streams.js.map +1 -0
- package/dist/commonjs/types/unrecognized.d.ts +16 -0
- package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
- package/dist/commonjs/types/unrecognized.js +34 -0
- package/dist/commonjs/types/unrecognized.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/actions-cancel-action.d.ts +18 -0
- package/dist/esm/funcs/actions-cancel-action.d.ts.map +1 -0
- package/dist/esm/funcs/actions-cancel-action.js +82 -0
- package/dist/esm/funcs/actions-cancel-action.js.map +1 -0
- package/dist/esm/funcs/actions-check-action-status.d.ts +18 -0
- package/dist/esm/funcs/actions-check-action-status.d.ts.map +1 -0
- package/dist/esm/funcs/actions-check-action-status.js +86 -0
- package/dist/esm/funcs/actions-check-action-status.js.map +1 -0
- package/dist/esm/funcs/actions-propose-action.d.ts +18 -0
- package/dist/esm/funcs/actions-propose-action.d.ts.map +1 -0
- package/dist/esm/funcs/actions-propose-action.js +82 -0
- package/dist/esm/funcs/actions-propose-action.js.map +1 -0
- package/dist/esm/funcs/census-create-session.d.ts +18 -0
- package/dist/esm/funcs/census-create-session.d.ts.map +1 -0
- package/dist/esm/funcs/census-create-session.js +87 -0
- package/dist/esm/funcs/census-create-session.js.map +1 -0
- package/dist/esm/funcs/census-create-verification-link.d.ts +18 -0
- package/dist/esm/funcs/census-create-verification-link.d.ts.map +1 -0
- package/dist/esm/funcs/census-create-verification-link.js +87 -0
- package/dist/esm/funcs/census-create-verification-link.js.map +1 -0
- package/dist/esm/funcs/census-get-partner-config.d.ts +18 -0
- package/dist/esm/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/esm/funcs/census-get-partner-config.js +102 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -0
- package/dist/esm/funcs/census-logout.d.ts +15 -0
- package/dist/esm/funcs/census-logout.d.ts.map +1 -0
- package/dist/esm/funcs/census-logout.js +84 -0
- package/dist/esm/funcs/census-logout.js.map +1 -0
- package/dist/esm/funcs/census-revoke-verification.d.ts +18 -0
- package/dist/esm/funcs/census-revoke-verification.d.ts.map +1 -0
- package/dist/esm/funcs/census-revoke-verification.js +87 -0
- package/dist/esm/funcs/census-revoke-verification.js.map +1 -0
- package/dist/esm/funcs/census-store-signal.d.ts +18 -0
- package/dist/esm/funcs/census-store-signal.d.ts.map +1 -0
- package/dist/esm/funcs/census-store-signal.js +78 -0
- package/dist/esm/funcs/census-store-signal.js.map +1 -0
- package/dist/esm/funcs/census-validate-signal.d.ts +18 -0
- package/dist/esm/funcs/census-validate-signal.d.ts.map +1 -0
- package/dist/esm/funcs/census-validate-signal.js +78 -0
- package/dist/esm/funcs/census-validate-signal.js.map +1 -0
- package/dist/esm/funcs/census-verify-token.d.ts +18 -0
- package/dist/esm/funcs/census-verify-token.d.ts.map +1 -0
- package/dist/esm/funcs/census-verify-token.js +99 -0
- package/dist/esm/funcs/census-verify-token.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.d.ts +18 -0
- package/dist/esm/funcs/verification-get-status.d.ts.map +1 -0
- package/dist/esm/funcs/verification-get-status.js +102 -0
- package/dist/esm/funcs/verification-get-status.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +25 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +80 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +77 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +29 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +42 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +38 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +54 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +391 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/files.d.ts +26 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +91 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +209 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +202 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +27 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +120 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +157 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +19 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +290 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +84 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +160 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +24 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/mcp-server/build.d.mts.map +1 -0
- package/dist/esm/mcp-server/build.mjs +14 -0
- package/dist/esm/mcp-server/build.mjs.map +1 -0
- package/dist/esm/mcp-server/cli/start/command.d.ts +2 -0
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli/start/command.js +113 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts +20 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli/start/impl.js +106 -0
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -0
- package/dist/esm/mcp-server/cli.d.ts +6 -0
- package/dist/esm/mcp-server/cli.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli.js +7 -0
- package/dist/esm/mcp-server/cli.js.map +1 -0
- package/dist/esm/mcp-server/console-logger.d.ts +7 -0
- package/dist/esm/mcp-server/console-logger.d.ts.map +1 -0
- package/dist/esm/mcp-server/console-logger.js +55 -0
- package/dist/esm/mcp-server/console-logger.js.map +1 -0
- package/dist/esm/mcp-server/extensions.d.ts +11 -0
- package/dist/esm/mcp-server/extensions.d.ts.map +1 -0
- package/dist/esm/mcp-server/extensions.js +5 -0
- package/dist/esm/mcp-server/extensions.js.map +1 -0
- package/dist/esm/mcp-server/mcp-server.d.ts +2 -0
- package/dist/esm/mcp-server/mcp-server.d.ts.map +1 -0
- package/dist/esm/mcp-server/mcp-server.js +23 -0
- package/dist/esm/mcp-server/mcp-server.js.map +1 -0
- package/dist/esm/mcp-server/prompts.d.ts +26 -0
- package/dist/esm/mcp-server/prompts.d.ts.map +1 -0
- package/dist/esm/mcp-server/prompts.js +47 -0
- package/dist/esm/mcp-server/prompts.js.map +1 -0
- package/dist/esm/mcp-server/resources.d.ts +32 -0
- package/dist/esm/mcp-server/resources.d.ts.map +1 -0
- package/dist/esm/mcp-server/resources.js +82 -0
- package/dist/esm/mcp-server/resources.js.map +1 -0
- package/dist/esm/mcp-server/scopes.d.ts +3 -0
- package/dist/esm/mcp-server/scopes.d.ts.map +1 -0
- package/dist/esm/mcp-server/scopes.js +7 -0
- package/dist/esm/mcp-server/scopes.js.map +1 -0
- package/dist/esm/mcp-server/server.d.ts +13 -0
- package/dist/esm/mcp-server/server.d.ts.map +1 -0
- package/dist/esm/mcp-server/server.js +35 -0
- package/dist/esm/mcp-server/server.js.map +1 -0
- package/dist/esm/mcp-server/shared.d.ts +7 -0
- package/dist/esm/mcp-server/shared.d.ts.map +1 -0
- package/dist/esm/mcp-server/shared.js +59 -0
- package/dist/esm/mcp-server/shared.js.map +1 -0
- package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts +8 -0
- package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +27 -0
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -0
- package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts +8 -0
- package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +27 -0
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -0
- package/dist/esm/mcp-server/tools/actions-propose-action.d.ts +8 -0
- package/dist/esm/mcp-server/tools/actions-propose-action.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/actions-propose-action.js +27 -0
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -0
- package/dist/esm/mcp-server/tools.d.ts +25 -0
- package/dist/esm/mcp-server/tools.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools.js +78 -0
- package/dist/esm/mcp-server/tools.js.map +1 -0
- package/dist/esm/models/error-body.d.ts +56 -0
- package/dist/esm/models/error-body.d.ts.map +1 -0
- package/dist/esm/models/error-body.js +60 -0
- package/dist/esm/models/error-body.js.map +1 -0
- package/dist/esm/models/error-response.d.ts +19 -0
- package/dist/esm/models/error-response.d.ts.map +1 -0
- package/dist/esm/models/error-response.js +23 -0
- package/dist/esm/models/error-response.js.map +1 -0
- package/dist/esm/models/errors/bot-shield-default-error.d.ts +10 -0
- package/dist/esm/models/errors/bot-shield-default-error.d.ts.map +1 -0
- package/dist/esm/models/errors/bot-shield-default-error.js +30 -0
- package/dist/esm/models/errors/bot-shield-default-error.js.map +1 -0
- package/dist/esm/models/errors/bot-shield-error.d.ts +19 -0
- package/dist/esm/models/errors/bot-shield-error.d.ts.map +1 -0
- package/dist/esm/models/errors/bot-shield-error.js +26 -0
- package/dist/esm/models/errors/bot-shield-error.js.map +1 -0
- package/dist/esm/models/errors/error-response.d.ts +31 -0
- package/dist/esm/models/errors/error-response.d.ts.map +1 -0
- package/dist/esm/models/errors/error-response.js +43 -0
- package/dist/esm/models/errors/error-response.js.map +1 -0
- package/dist/esm/models/errors/http-client-errors.d.ts +44 -0
- package/dist/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/dist/esm/models/errors/http-client-errors.js +56 -0
- package/dist/esm/models/errors/http-client-errors.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +8 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -0
- package/dist/esm/models/errors/index.js +11 -0
- package/dist/esm/models/errors/index.js.map +1 -0
- package/dist/esm/models/errors/invalid-input-error.d.ts +42 -0
- package/dist/esm/models/errors/invalid-input-error.d.ts.map +1 -0
- package/dist/esm/models/errors/invalid-input-error.js +49 -0
- package/dist/esm/models/errors/invalid-input-error.js.map +1 -0
- package/dist/esm/models/errors/response-validation-error.d.ts +26 -0
- package/dist/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/dist/esm/models/errors/response-validation-error.js +37 -0
- package/dist/esm/models/errors/response-validation-error.js.map +1 -0
- package/dist/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/dist/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/dist/esm/models/errors/sdk-validation-error.js +99 -0
- package/dist/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/invalid-input-error.d.ts +24 -0
- package/dist/esm/models/invalid-input-error.d.ts.map +1 -0
- package/dist/esm/models/invalid-input-error.js +25 -0
- package/dist/esm/models/invalid-input-error.js.map +1 -0
- package/dist/esm/models/operations/actions-cancel.d.ts +104 -0
- package/dist/esm/models/operations/actions-cancel.d.ts.map +1 -0
- package/dist/esm/models/operations/actions-cancel.js +110 -0
- package/dist/esm/models/operations/actions-cancel.js.map +1 -0
- package/dist/esm/models/operations/actions-check-status.d.ts +121 -0
- package/dist/esm/models/operations/actions-check-status.d.ts.map +1 -0
- package/dist/esm/models/operations/actions-check-status.js +132 -0
- package/dist/esm/models/operations/actions-check-status.js.map +1 -0
- package/dist/esm/models/operations/actions-propose.d.ts +187 -0
- package/dist/esm/models/operations/actions-propose.d.ts.map +1 -0
- package/dist/esm/models/operations/actions-propose.js +179 -0
- package/dist/esm/models/operations/actions-propose.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +13 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -0
- package/dist/esm/models/operations/index.js +16 -0
- package/dist/esm/models/operations/index.js.map +1 -0
- package/dist/esm/models/operations/sdk-create-session.d.ts +139 -0
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-create-session.js +157 -0
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -0
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +210 -0
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js +222 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +128 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js +133 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/esm/models/operations/sdk-logout.d.ts +74 -0
- package/dist/esm/models/operations/sdk-logout.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-logout.js +99 -0
- package/dist/esm/models/operations/sdk-logout.js.map +1 -0
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts +97 -0
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-revoke-verification.js +115 -0
- package/dist/esm/models/operations/sdk-revoke-verification.js.map +1 -0
- package/dist/esm/models/operations/sdk-store-signal.d.ts +93 -0
- package/dist/esm/models/operations/sdk-store-signal.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-store-signal.js +111 -0
- package/dist/esm/models/operations/sdk-store-signal.js.map +1 -0
- package/dist/esm/models/operations/sdk-validate-signal.d.ts +101 -0
- package/dist/esm/models/operations/sdk-validate-signal.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-validate-signal.js +120 -0
- package/dist/esm/models/operations/sdk-validate-signal.js.map +1 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts +122 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-verify-token.js +140 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +153 -0
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -0
- package/dist/esm/models/operations/verification-get-status.js +188 -0
- package/dist/esm/models/operations/verification-get-status.js.map +1 -0
- package/dist/esm/models/security.d.ts +21 -0
- package/dist/esm/models/security.d.ts.map +1 -0
- package/dist/esm/models/security.js +25 -0
- package/dist/esm/models/security.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/actions.d.ts +26 -0
- package/dist/esm/sdk/actions.d.ts.map +1 -0
- package/dist/esm/sdk/actions.js +38 -0
- package/dist/esm/sdk/actions.js.map +1 -0
- package/dist/esm/sdk/census.d.ts +58 -0
- package/dist/esm/sdk/census.d.ts.map +1 -0
- package/dist/esm/sdk/census.js +85 -0
- package/dist/esm/sdk/census.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +13 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +22 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/sdk/verification.d.ts +12 -0
- package/dist/esm/sdk/verification.d.ts.map +1 -0
- package/dist/esm/sdk/verification.js +18 -0
- package/dist/esm/sdk/verification.js.map +1 -0
- package/dist/esm/types/async.d.ts +23 -0
- package/dist/esm/types/async.d.ts.map +1 -0
- package/dist/esm/types/async.js +28 -0
- package/dist/esm/types/async.js.map +1 -0
- package/dist/esm/types/blobs.d.ts +4 -0
- package/dist/esm/types/blobs.d.ts.map +1 -0
- package/dist/esm/types/blobs.js +25 -0
- package/dist/esm/types/blobs.js.map +1 -0
- package/dist/esm/types/const-date-time.d.ts +3 -0
- package/dist/esm/types/const-date-time.d.ts.map +1 -0
- package/dist/esm/types/const-date-time.js +10 -0
- package/dist/esm/types/const-date-time.js.map +1 -0
- package/dist/esm/types/default-to-zero-value.d.ts +12 -0
- package/dist/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/dist/esm/types/default-to-zero-value.js +31 -0
- package/dist/esm/types/default-to-zero-value.js.map +1 -0
- package/dist/esm/types/enums.d.ts +9 -0
- package/dist/esm/types/enums.d.ts.map +1 -0
- package/dist/esm/types/enums.js +27 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/fp.d.ts +31 -0
- package/dist/esm/types/fp.d.ts.map +1 -0
- package/dist/esm/types/fp.js +31 -0
- package/dist/esm/types/fp.js.map +1 -0
- package/dist/esm/types/index.d.ts +10 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +10 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/operations.d.ts +27 -0
- package/dist/esm/types/operations.d.ts.map +1 -0
- package/dist/esm/types/operations.js +77 -0
- package/dist/esm/types/operations.js.map +1 -0
- package/dist/esm/types/primitives.d.ts +9 -0
- package/dist/esm/types/primitives.d.ts.map +1 -0
- package/dist/esm/types/primitives.js +105 -0
- package/dist/esm/types/primitives.js.map +1 -0
- package/dist/esm/types/rfcdate.d.ts +21 -0
- package/dist/esm/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/types/rfcdate.js +43 -0
- package/dist/esm/types/rfcdate.js.map +1 -0
- package/dist/esm/types/smart-union.d.ts +7 -0
- package/dist/esm/types/smart-union.d.ts.map +1 -0
- package/dist/esm/types/smart-union.js +116 -0
- package/dist/esm/types/smart-union.js.map +1 -0
- package/dist/esm/types/streams.d.ts +2 -0
- package/dist/esm/types/streams.d.ts.map +1 -0
- package/dist/esm/types/streams.js +15 -0
- package/dist/esm/types/streams.js.map +1 -0
- package/dist/esm/types/unrecognized.d.ts +16 -0
- package/dist/esm/types/unrecognized.d.ts.map +1 -0
- package/dist/esm/types/unrecognized.js +31 -0
- package/dist/esm/types/unrecognized.js.map +1 -0
- package/examples/censusCreateSession.example.ts +26 -0
- package/jsr.json +27 -0
- package/package.json +124 -132
- package/src/core.ts +13 -0
- package/src/funcs/actions-cancel-action.ts +174 -0
- package/src/funcs/actions-check-action-status.ts +179 -0
- package/src/funcs/actions-propose-action.ts +174 -0
- package/src/funcs/census-create-session.ts +184 -0
- package/src/funcs/census-create-verification-link.ts +185 -0
- package/src/funcs/census-get-partner-config.ts +203 -0
- package/src/funcs/census-logout.ts +181 -0
- package/src/funcs/census-revoke-verification.ts +185 -0
- package/src/funcs/census-store-signal.ts +169 -0
- package/src/funcs/census-validate-signal.ts +169 -0
- package/src/funcs/census-verify-token.ts +198 -0
- package/src/funcs/verification-get-status.ts +203 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +108 -0
- package/src/index.ts +8 -21
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +75 -0
- package/src/lib/encodings.ts +529 -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 +91 -0
- package/src/lib/sdks.ts +438 -0
- package/src/lib/security.ts +293 -0
- package/src/lib/url.ts +35 -0
- package/src/mcp-server/cli/start/command.ts +117 -0
- package/src/mcp-server/cli/start/impl.ts +144 -0
- package/src/mcp-server/cli.ts +13 -0
- package/src/mcp-server/console-logger.ts +71 -0
- package/src/mcp-server/extensions.ts +17 -0
- package/src/mcp-server/mcp-server.ts +26 -0
- package/src/mcp-server/prompts.ts +121 -0
- package/src/mcp-server/resources.ts +176 -0
- package/src/mcp-server/scopes.ts +9 -0
- package/src/mcp-server/server.ts +65 -0
- package/src/mcp-server/shared.ts +74 -0
- package/src/mcp-server/tools/actions-cancel-action.ts +37 -0
- package/src/mcp-server/tools/actions-check-action-status.ts +37 -0
- package/src/mcp-server/tools/actions-propose-action.ts +37 -0
- package/src/mcp-server/tools.ts +133 -0
- package/src/models/error-body.ts +138 -0
- package/src/models/error-response.ts +56 -0
- package/src/models/errors/bot-shield-default-error.ts +40 -0
- package/src/models/errors/bot-shield-error.ts +35 -0
- package/src/models/errors/error-response.ts +72 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +11 -0
- package/src/models/errors/invalid-input-error.ts +82 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +109 -0
- package/src/models/index.ts +8 -0
- package/src/models/invalid-input-error.ts +63 -0
- package/src/models/operations/actions-cancel.ts +271 -0
- package/src/models/operations/actions-check-status.ts +308 -0
- package/src/models/operations/actions-propose.ts +439 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/sdk-create-session.ts +388 -0
- package/src/models/operations/sdk-create-verification-link.ts +540 -0
- package/src/models/operations/sdk-get-partner-config.ts +349 -0
- package/src/models/operations/sdk-logout.ts +230 -0
- package/src/models/operations/sdk-revoke-verification.ts +299 -0
- package/src/models/operations/sdk-store-signal.ts +261 -0
- package/src/models/operations/sdk-validate-signal.ts +274 -0
- package/src/models/operations/sdk-verify-token.ts +347 -0
- package/src/models/operations/verification-get-status.ts +424 -0
- package/src/models/security.ts +56 -0
- package/src/sdk/actions.ts +63 -0
- package/src/sdk/census.ts +162 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/verification.ts +29 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +32 -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 +122 -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
- package/CHANGELOG.md +0 -262
- package/LICENSE +0 -201
- package/api-promise.d.mts +0 -3
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -3
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -3
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -218
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -218
- package/client.d.ts.map +0 -1
- package/client.js +0 -534
- package/client.js.map +0 -1
- package/client.mjs +0 -530
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -3
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -3
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -3
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -6
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/index.js +0 -30
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -40
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -37
- package/internal/parse.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -75
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -75
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -26
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -26
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -87
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -81
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -5
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts +0 -5
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -23
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs +0 -20
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -12
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -9
- package/internal/utils.mjs.map +0 -1
- package/resource.d.mts +0 -3
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -3
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -3
- package/resource.mjs.map +0 -1
- package/resources/actions.d.mts +0 -133
- package/resources/actions.d.mts.map +0 -1
- package/resources/actions.d.ts +0 -133
- package/resources/actions.d.ts.map +0 -1
- package/resources/actions.js +0 -36
- package/resources/actions.js.map +0 -1
- package/resources/actions.mjs +0 -32
- package/resources/actions.mjs.map +0 -1
- package/resources/index.d.mts +0 -4
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -4
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -11
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +0 -1
- package/resources/sdk.d.mts +0 -261
- package/resources/sdk.d.mts.map +0 -1
- package/resources/sdk.d.ts +0 -261
- package/resources/sdk.d.ts.map +0 -1
- package/resources/sdk.js +0 -69
- package/resources/sdk.js.map +0 -1
- package/resources/sdk.mjs +0 -65
- package/resources/sdk.mjs.map +0 -1
- package/resources/verification.d.mts +0 -64
- package/resources/verification.d.mts.map +0 -1
- package/resources/verification.d.ts +0 -64
- package/resources/verification.d.ts.map +0 -1
- package/resources/verification.js +0 -25
- package/resources/verification.js.map +0 -1
- package/resources/verification.mjs +0 -21
- package/resources/verification.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -892
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -56
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -93
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -128
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/query.ts +0 -23
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -9
- package/src/lib/.keep +0 -4
- package/src/resource.ts +0 -2
- package/src/resources/actions.ts +0 -184
- package/src/resources/index.ts +0 -37
- package/src/resources/sdk.ts +0 -403
- package/src/resources/verification.ts +0 -107
- package/src/resources.ts +0 -1
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/uploads.d.mts +0 -3
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -3
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -3
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Not needed if lax mode
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { startCountingDefaultToZeroValue } from "./default-to-zero-value.js";
|
|
8
|
+
import { RFCDate } from "./rfcdate.js";
|
|
9
|
+
import { startCountingUnrecognized } from "./unrecognized.js";
|
|
10
|
+
|
|
11
|
+
interface Candidate {
|
|
12
|
+
data: unknown;
|
|
13
|
+
/** Total number of fields in the parsed data */
|
|
14
|
+
fieldCount: number;
|
|
15
|
+
/** Number of fields which only matched due to lax parsing */
|
|
16
|
+
inexactCount: number;
|
|
17
|
+
/** Number of fields which defaulted to zero values */
|
|
18
|
+
zeroDefaultCount: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Smart union parser that tries all schemas and returns the best match
|
|
23
|
+
* based on the number of populated fields.
|
|
24
|
+
*/
|
|
25
|
+
export function smartUnion<
|
|
26
|
+
Options extends readonly [z.ZodType, z.ZodType, ...z.ZodType[]],
|
|
27
|
+
>(
|
|
28
|
+
options: Options,
|
|
29
|
+
): z.ZodType<
|
|
30
|
+
z.output<Options[number]>,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
z.input<Options[number]>
|
|
33
|
+
> {
|
|
34
|
+
return z.unknown().transform((input, ctx) => {
|
|
35
|
+
const candidates: Candidate[] = [];
|
|
36
|
+
const errors: z.ZodIssue[][] = options.map(() => []);
|
|
37
|
+
|
|
38
|
+
const parentUnrecognizedCtr = startCountingUnrecognized();
|
|
39
|
+
const parentZeroDefaultCtr = startCountingDefaultToZeroValue();
|
|
40
|
+
|
|
41
|
+
// Filter out invalid options
|
|
42
|
+
for (const [i, option] of options.entries()) {
|
|
43
|
+
const unrecognizedCtr = startCountingUnrecognized();
|
|
44
|
+
const zeroDefaultCtr = startCountingDefaultToZeroValue();
|
|
45
|
+
const result = option.safeParse(input);
|
|
46
|
+
const inexactCount = unrecognizedCtr.end();
|
|
47
|
+
const zeroDefaultCount = zeroDefaultCtr.end();
|
|
48
|
+
if (result.success) {
|
|
49
|
+
candidates.push({
|
|
50
|
+
data: result.data,
|
|
51
|
+
inexactCount,
|
|
52
|
+
zeroDefaultCount,
|
|
53
|
+
fieldCount: -1, // We'll count this later if needed
|
|
54
|
+
});
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
errors[i]!.push(...result.error.issues);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// No valid options
|
|
61
|
+
if (candidates.length === 0) {
|
|
62
|
+
parentUnrecognizedCtr.end(0);
|
|
63
|
+
parentZeroDefaultCtr.end(0);
|
|
64
|
+
ctx.addIssue({
|
|
65
|
+
code: "invalid_union",
|
|
66
|
+
unionErrors: errors.map(issues => new z.ZodError(issues)),
|
|
67
|
+
});
|
|
68
|
+
return z.NEVER;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
let best = candidates[0]!;
|
|
72
|
+
|
|
73
|
+
// Find the best option
|
|
74
|
+
for (const candidate of candidates) {
|
|
75
|
+
// Minor optimization to avoid counting fields if there's only one candidate
|
|
76
|
+
if (candidates.length > 1) {
|
|
77
|
+
candidate.fieldCount = countFieldsRecursive(candidate.data);
|
|
78
|
+
}
|
|
79
|
+
best = better(candidate, best);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// The cost of this union should be the cost of the best candidate not all the candidates
|
|
83
|
+
parentUnrecognizedCtr.end(best.inexactCount);
|
|
84
|
+
parentZeroDefaultCtr.end(best.zeroDefaultCount);
|
|
85
|
+
|
|
86
|
+
return best.data;
|
|
87
|
+
}) as any;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function better(a: Candidate, b: Candidate): Candidate {
|
|
91
|
+
// First prefer exact matches over inexact ones
|
|
92
|
+
const aIsExact = a.inexactCount === 0;
|
|
93
|
+
const bIsExact = b.inexactCount === 0;
|
|
94
|
+
if (aIsExact !== bIsExact) {
|
|
95
|
+
return aIsExact ? a : b;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Then compare field counts
|
|
99
|
+
const actualFieldCountA = a.fieldCount - a.zeroDefaultCount;
|
|
100
|
+
const actualFieldCountB = b.fieldCount - b.zeroDefaultCount;
|
|
101
|
+
if (actualFieldCountA !== actualFieldCountB) {
|
|
102
|
+
return actualFieldCountA > actualFieldCountB ? a : b;
|
|
103
|
+
}
|
|
104
|
+
return a.inexactCount < b.inexactCount ? a : b;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Counts the number of fields in a parsed value recursively.
|
|
109
|
+
* @param `parsed` assumed to *not* contain cycles
|
|
110
|
+
* fieldCount: total number of fields found
|
|
111
|
+
* inexactCount: number of primitive values that are not unrecognized enum values
|
|
112
|
+
*/
|
|
113
|
+
function countFieldsRecursive(parsed: unknown): number {
|
|
114
|
+
let fieldCount = 0;
|
|
115
|
+
|
|
116
|
+
const queue: unknown[] = [parsed];
|
|
117
|
+
let index = 0;
|
|
118
|
+
|
|
119
|
+
while (index < queue.length) {
|
|
120
|
+
const value = queue[index++];
|
|
121
|
+
if (value === undefined) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Check if it's a primitive value
|
|
126
|
+
const type = typeof value;
|
|
127
|
+
if (
|
|
128
|
+
value === null
|
|
129
|
+
|| type === "number"
|
|
130
|
+
|| type === "string"
|
|
131
|
+
|| type === "boolean"
|
|
132
|
+
|| type === "bigint"
|
|
133
|
+
|| value instanceof Date
|
|
134
|
+
|| value instanceof RFCDate
|
|
135
|
+
) {
|
|
136
|
+
fieldCount++;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Handle arrays
|
|
141
|
+
if (Array.isArray(value)) {
|
|
142
|
+
queue.push(...value);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Handle objects
|
|
147
|
+
if (type === "object") {
|
|
148
|
+
queue.push(...Object.values(value));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return fieldCount;
|
|
153
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export function isReadableStream<T = Uint8Array>(
|
|
6
|
+
val: unknown,
|
|
7
|
+
): val is ReadableStream<T> {
|
|
8
|
+
if (typeof val !== "object" || val === null) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Check for the presence of methods specific to ReadableStream
|
|
13
|
+
const stream = val as ReadableStream<Uint8Array>;
|
|
14
|
+
|
|
15
|
+
// ReadableStream has methods like getReader, cancel, and tee
|
|
16
|
+
return (
|
|
17
|
+
typeof stream.getReader === "function" &&
|
|
18
|
+
typeof stream.cancel === "function" &&
|
|
19
|
+
typeof stream.tee === "function"
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare const __brand: unique symbol;
|
|
6
|
+
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
7
|
+
|
|
8
|
+
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value as Unrecognized<T>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let globalCount = 0;
|
|
14
|
+
let refCount = 0;
|
|
15
|
+
export function startCountingUnrecognized() {
|
|
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
|
+
}
|
|
34
|
+
|
|
35
|
+
export { unrecognized };
|
package/CHANGELOG.md
DELETED
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.8.3 (2026-07-11)
|
|
4
|
-
|
|
5
|
-
Full Changelog: [v1.8.2...v1.8.3](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.8.2...v1.8.3)
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
* **ci:** bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 ([ff2a040](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/ff2a040c2c9dcbd5f842eb851a4f1a0c14b06864))
|
|
10
|
-
|
|
11
|
-
## 1.8.2 (2026-06-17)
|
|
12
|
-
|
|
13
|
-
Full Changelog: [v1.8.1...v1.8.2](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.8.1...v1.8.2)
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* **client:** send content-type header for requests with an omitted optional body ([faa19dd](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/faa19dd6ee80da5780526296092478090e5f426d))
|
|
18
|
-
|
|
19
|
-
## 1.8.1 (2026-05-19)
|
|
20
|
-
|
|
21
|
-
Full Changelog: [v1.8.0...v1.8.1](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.8.0...v1.8.1)
|
|
22
|
-
|
|
23
|
-
### Bug Fixes
|
|
24
|
-
|
|
25
|
-
* **typescript:** upgrade tsc-multi so that it works with Node 26 ([a526448](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a526448718326a357d089316fb270ae2d1682b5e))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Chores
|
|
29
|
-
|
|
30
|
-
* **tests:** remove redundant File import ([dc4ae2e](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/dc4ae2ed5b040bb698199291fc5788ce8bc8c8c2))
|
|
31
|
-
|
|
32
|
-
## 1.8.0 (2026-05-08)
|
|
33
|
-
|
|
34
|
-
Full Changelog: [v1.7.0...v1.8.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.7.0...v1.8.0)
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* **api:** manual updates ([dbec7b8](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/dbec7b83088faba21f9c225b95a3647025e745e9))
|
|
39
|
-
* **api:** manual updates ([092fa35](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/092fa35de6601a91cf4ae479f776783b3aaa2de7))
|
|
40
|
-
* **api:** manual updates ([8e36669](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/8e36669b68a18181db9492071ae30bb6a617b477))
|
|
41
|
-
|
|
42
|
-
## 1.7.0 (2026-05-08)
|
|
43
|
-
|
|
44
|
-
Full Changelog: [v1.6.0...v1.7.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.6.0...v1.7.0)
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
* **api:** manual updates ([b4b9a9c](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/b4b9a9c63ed0d3d63803008a02aac030ee053dd3))
|
|
49
|
-
|
|
50
|
-
## 1.6.0 (2026-05-08)
|
|
51
|
-
|
|
52
|
-
Full Changelog: [v1.5.1...v1.6.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.5.1...v1.6.0)
|
|
53
|
-
|
|
54
|
-
### Features
|
|
55
|
-
|
|
56
|
-
* **api:** manual updates ([448a1f8](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/448a1f809684689193a4878126d23f8512e8388f))
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Chores
|
|
60
|
-
|
|
61
|
-
* redact api-key headers in debug logs ([cc8fb77](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/cc8fb7708489f93ea0db186710fb206b8d6ff006))
|
|
62
|
-
|
|
63
|
-
## 1.5.1 (2026-05-01)
|
|
64
|
-
|
|
65
|
-
Full Changelog: [v1.5.0...v1.5.1](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.5.0...v1.5.1)
|
|
66
|
-
|
|
67
|
-
### Chores
|
|
68
|
-
|
|
69
|
-
* avoid formatting file that gets changed during releases ([34a2d33](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/34a2d335cc9934aede77c28f0a568b9701707187))
|
|
70
|
-
* **format:** run eslint and prettier separately ([1640918](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/16409187d2f6894fb1580a108801f735dbebcd5d))
|
|
71
|
-
|
|
72
|
-
## 1.5.0 (2026-04-28)
|
|
73
|
-
|
|
74
|
-
Full Changelog: [v1.4.1...v1.5.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.4.1...v1.5.0)
|
|
75
|
-
|
|
76
|
-
### Features
|
|
77
|
-
|
|
78
|
-
* support setting headers via env ([455431f](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/455431f777142e0dbac92323e521a416c0bd5eeb))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Chores
|
|
82
|
-
|
|
83
|
-
* **formatter:** run prettier and eslint separately ([a9490ba](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a9490ba4a63e16636644e53fa1c4c2b5bd412adb))
|
|
84
|
-
* **internal:** codegen related update ([c091b90](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/c091b90c207f7425e15b2afbbe752c31d4bea394))
|
|
85
|
-
* **internal:** codegen related update ([cb32c29](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/cb32c29487ab7dcfe3bf7bbbc276cc864d881c81))
|
|
86
|
-
* **internal:** fix MCP server import ordering ([60ca537](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/60ca5376929686db1933480f65bd593d77433767))
|
|
87
|
-
* **internal:** more robust bootstrap script ([0c01cbd](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0c01cbd7d8d44623b801be05e24bbd19a0703623))
|
|
88
|
-
* **internal:** show error causes in MCP servers when running in local mode ([3bacef9](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/3bacef9c7ad3d005c69248de4d308bdac592812e))
|
|
89
|
-
* **internal:** support type annotations when running MCP in local execution mode ([aeed14b](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/aeed14bf545996bf431d3d117914a4f944b63185))
|
|
90
|
-
* **mcp-server:** increase local docs search result count from 5 to 10 ([8b20761](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/8b20761e719a79c218c1dacb5b7567b1a491b238))
|
|
91
|
-
* **mcp-server:** log client info ([2b00967](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/2b0096772c73522733735791f79752c7e5bfc070))
|
|
92
|
-
* restructure docs search code ([6c685e1](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/6c685e1a8ea718b3ecd03d8c776a3d98aa5e0ce4))
|
|
93
|
-
|
|
94
|
-
## 1.4.1 (2026-04-01)
|
|
95
|
-
|
|
96
|
-
Full Changelog: [v1.4.0...v1.4.1](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.4.0...v1.4.1)
|
|
97
|
-
|
|
98
|
-
### Bug Fixes
|
|
99
|
-
|
|
100
|
-
* **internal:** gitignore generated `oidc` dir ([78a5fcb](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/78a5fcb73bcbe43021f92ddde1372ad923bd029d))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Chores
|
|
104
|
-
|
|
105
|
-
* **ci:** escape input path in publish-npm workflow ([f27ba22](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/f27ba22c8d09443341da87bee49fc8ceb2560a83))
|
|
106
|
-
* **ci:** skip lint on metadata-only changes ([a9afccd](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a9afccde4620e2b8ce8671e45fc81a5b49477d11))
|
|
107
|
-
* **internal:** fix MCP server TS errors that occur with required client options ([4fa6325](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/4fa6325c8bfb46ee8f4eeaef24b6d3ebc88f0e93))
|
|
108
|
-
* **internal:** improve local docs search for MCP servers ([0db9e04](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0db9e04c8789d7bf9a83749837b029a56192f02a))
|
|
109
|
-
* **internal:** improve local docs search for MCP servers ([a8d180e](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a8d180e333d920f35a12539c6110ccf96bac1b2b))
|
|
110
|
-
* **internal:** support custom-instructions-path flag in MCP servers ([6bf0177](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/6bf017759e7f37311f10dbf7b7f05d5d09a67d04))
|
|
111
|
-
* **internal:** support local docs search in MCP servers ([9316a35](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/9316a35ef60ca867d6166a32aafb14f48e6dba4e))
|
|
112
|
-
* **internal:** update gitignore ([469d12a](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/469d12aff02609ebfbb8a041279fb97be1af28ff))
|
|
113
|
-
* **mcp-server:** add support for session id, forward client info ([0faee4f](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0faee4f77876f75cf41af7cd70083cc9713522f9))
|
|
114
|
-
|
|
115
|
-
## 1.4.0 (2026-03-22)
|
|
116
|
-
|
|
117
|
-
Full Changelog: [v1.3.1...v1.4.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.3.1...v1.4.0)
|
|
118
|
-
|
|
119
|
-
### Features
|
|
120
|
-
|
|
121
|
-
* **api:** manual updates ([d601328](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/d60132816b9520f7c7208a4e71d9f7cb11b425d2))
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### Chores
|
|
125
|
-
|
|
126
|
-
* configure new SDK language ([0d23467](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0d23467e288e96d92f158eacda88cfb579d0fdca))
|
|
127
|
-
|
|
128
|
-
## 1.3.1 (2026-03-17)
|
|
129
|
-
|
|
130
|
-
Full Changelog: [v1.3.0...v1.3.1](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.3.0...v1.3.1)
|
|
131
|
-
|
|
132
|
-
### Chores
|
|
133
|
-
|
|
134
|
-
* update SDK settings ([a72f8b2](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a72f8b20e7474060ee195249b5b694916677eb1f))
|
|
135
|
-
|
|
136
|
-
## 1.3.0 (2026-03-17)
|
|
137
|
-
|
|
138
|
-
Full Changelog: [v1.2.4...v1.3.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.2.4...v1.3.0)
|
|
139
|
-
|
|
140
|
-
### Features
|
|
141
|
-
|
|
142
|
-
* **api:** manual updates ([3f1cab5](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/3f1cab5930e180fbb26a2a1f5673b0249040fdaa))
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Chores
|
|
146
|
-
|
|
147
|
-
* **internal:** tweak CI branches ([0b358d3](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0b358d336c13334f4a4363c2b6a06908ad1e79a0))
|
|
148
|
-
* **internal:** update dependencies to address dependabot vulnerabilities ([1a03dd8](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/1a03dd8d075e3067ca690481b3d11b373d05e358))
|
|
149
|
-
|
|
150
|
-
## 1.2.4 (2026-03-08)
|
|
151
|
-
|
|
152
|
-
Full Changelog: [v1.2.3...v1.2.4](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.2.3...v1.2.4)
|
|
153
|
-
|
|
154
|
-
### Bug Fixes
|
|
155
|
-
|
|
156
|
-
* **client:** preserve URL params already embedded in path ([51c9b78](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/51c9b78d1093cbef5f128c5ad010a007053d3dc0))
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### Chores
|
|
160
|
-
|
|
161
|
-
* **ci:** skip uploading artifacts on stainless-internal branches ([d8ac934](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/d8ac9348ab11d6e2c79c4ed4df3ade22d64ecf43))
|
|
162
|
-
* **internal:** codegen related update ([0b481cd](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/0b481cd53192a2e498dd750213989fbc2e174d17))
|
|
163
|
-
* **internal:** codegen related update ([436b126](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/436b126c95c4d0c7f473f4504732a5aaa482368f))
|
|
164
|
-
* **internal:** move stringifyQuery implementation to internal function ([88d0408](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/88d04086f82f0851e2aa842028a4edec219398f6))
|
|
165
|
-
|
|
166
|
-
## 1.2.3 (2026-02-24)
|
|
167
|
-
|
|
168
|
-
Full Changelog: [v1.2.2...v1.2.3](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.2.2...v1.2.3)
|
|
169
|
-
|
|
170
|
-
### Bug Fixes
|
|
171
|
-
|
|
172
|
-
* **docs/contributing:** correct pnpm link command ([b1befc8](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/b1befc8ad3e86eab887e116f01c54092a3e7ead7))
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Chores
|
|
176
|
-
|
|
177
|
-
* **internal/client:** fix form-urlencoded requests ([082f87e](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/082f87e55045c4440be04dbc81dbfdc105857fb7))
|
|
178
|
-
* **internal:** avoid type checking errors with ts-reset ([8b7d7b5](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/8b7d7b5f3a47cda279c3cb1b835e244b0751f9f8))
|
|
179
|
-
* **internal:** remove mock server code ([a3f7669](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a3f76693c8abad6d6e6c460b4618b96d44426739))
|
|
180
|
-
* **internal:** upgrade pnpm ([48f3154](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/48f3154c50ef3ffee90f342a199d44272e2d0254))
|
|
181
|
-
* **internal:** upgrade pnpm version ([fe98b57](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/fe98b57d8a504c111db024a271d85801c7e0c4a1))
|
|
182
|
-
* update mock server docs ([51dd9bf](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/51dd9bf9c8303f90e769bd8d5ade5259cf17c8ae))
|
|
183
|
-
|
|
184
|
-
## 1.2.2 (2026-02-06)
|
|
185
|
-
|
|
186
|
-
Full Changelog: [v1.2.1...v1.2.2](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.2.1...v1.2.2)
|
|
187
|
-
|
|
188
|
-
### Bug Fixes
|
|
189
|
-
|
|
190
|
-
* **client:** avoid removing abort listener too early ([a77884d](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/a77884dc1ee67520de0309d81d6a61bb7f25516f))
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### Chores
|
|
194
|
-
|
|
195
|
-
* **client:** do not parse responses with empty content-length ([91d2068](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/91d2068cff02145bf21117155c625ca2283bcb7c))
|
|
196
|
-
* **client:** restructure abort controller binding ([9f2f09e](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/9f2f09e8a5ea65d5a53b1b5d25931f1cd5e04a99))
|
|
197
|
-
|
|
198
|
-
## 1.2.1 (2026-02-03)
|
|
199
|
-
|
|
200
|
-
Full Changelog: [v1.2.0...v1.2.1](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.2.0...v1.2.1)
|
|
201
|
-
|
|
202
|
-
### Bug Fixes
|
|
203
|
-
|
|
204
|
-
* **client:** avoid memory leak with abort signals ([3eacbb4](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/3eacbb499d97a203ba7e2ddc9746659c57fc3ed0))
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
### Chores
|
|
208
|
-
|
|
209
|
-
* break long lines in snippets into multiline ([5c9fbdb](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/5c9fbdb6eade8fa9baf43129ecd916c7a9d9162e))
|
|
210
|
-
* **ci:** upgrade `actions/github-script` ([3bcf3de](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/3bcf3dea85ed6656e6a6e0eec3ee2be3630afb6b))
|
|
211
|
-
* **internal:** codegen related update ([286e4fd](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/286e4fd3a7fdb9b8184fd22ffc44e37aa853dd64))
|
|
212
|
-
* **internal:** update `actions/checkout` version ([b521781](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/b52178163af9aae9c6e1e937b4bfd9d100017b5a))
|
|
213
|
-
* **internal:** update lock file ([f44d4d0](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/f44d4d0ea52a1933ad2e68b7cdbddff58a2b0e3c))
|
|
214
|
-
* **internal:** upgrade babel, qs, js-yaml ([b4282f5](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/b4282f5d44210e89f9152635962f575b161f7458))
|
|
215
|
-
* **internal:** upgrade brace-expansion and @babel/helpers ([9618e38](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/9618e385feace4f8b233f02b170ce015fcb149b2))
|
|
216
|
-
|
|
217
|
-
## 1.2.0 (2025-12-14)
|
|
218
|
-
|
|
219
|
-
Full Changelog: [v1.1.0...v1.2.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.1.0...v1.2.0)
|
|
220
|
-
|
|
221
|
-
### Features
|
|
222
|
-
|
|
223
|
-
* **api:** manual updates ([55a1942](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/55a19427f39fd14f7a1fc7a5cd391f7cffb72228))
|
|
224
|
-
|
|
225
|
-
## 1.1.0 (2025-12-14)
|
|
226
|
-
|
|
227
|
-
Full Changelog: [v1.0.0...v1.1.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v1.0.0...v1.1.0)
|
|
228
|
-
|
|
229
|
-
### Features
|
|
230
|
-
|
|
231
|
-
* **api:** manual updates ([52634fc](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/52634fc0060c810351fd42edb5e1b59873285fde))
|
|
232
|
-
|
|
233
|
-
## 1.0.0 (2025-12-12)
|
|
234
|
-
|
|
235
|
-
Full Changelog: [v0.2.0...v1.0.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v0.2.0...v1.0.0)
|
|
236
|
-
|
|
237
|
-
### Chores
|
|
238
|
-
|
|
239
|
-
* update SDK settings ([188cb1c](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/188cb1c86b64f53aa90b59be109f2cf7fcaaf59f))
|
|
240
|
-
|
|
241
|
-
## 0.2.0 (2025-12-12)
|
|
242
|
-
|
|
243
|
-
Full Changelog: [v0.1.0...v0.2.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v0.1.0...v0.2.0)
|
|
244
|
-
|
|
245
|
-
### Features
|
|
246
|
-
|
|
247
|
-
* **api:** manual updates ([c244b23](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/c244b234d65d00c3d9ae642220ce17156bf2c1ab))
|
|
248
|
-
|
|
249
|
-
## 0.1.0 (2025-12-12)
|
|
250
|
-
|
|
251
|
-
Full Changelog: [v0.0.1...v0.1.0](https://github.com/Bot-Shield/botshield-sdk-typescript/compare/v0.0.1...v0.1.0)
|
|
252
|
-
|
|
253
|
-
### Features
|
|
254
|
-
|
|
255
|
-
* **api:** manual updates ([ca78fd0](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/ca78fd0e636eb412507b09f13561a58c084e35d2))
|
|
256
|
-
* **api:** manual updates ([6b855d4](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/6b855d4d52b742d447903268d94943c4cf413ca5))
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
### Chores
|
|
260
|
-
|
|
261
|
-
* update SDK settings ([769983b](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/769983b1c8ee4adfd3a4d11367ef2fc8217009d9))
|
|
262
|
-
* update SDK settings ([e30aeba](https://github.com/Bot-Shield/botshield-sdk-typescript/commit/e30aebaa946c0ae6c0443f78804621203c7f1491))
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2026 Bot Shield
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|