@interfere/sdk 0.0.1-alpha.31 → 0.1.0-alpha.32
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/CHANGELOG.md +13 -0
- package/package.json +8 -8
- package/dist/commonjs/core.d.ts +0 -10
- package/dist/commonjs/core.d.ts.map +0 -1
- package/dist/commonjs/core.js +0 -18
- package/dist/commonjs/core.js.map +0 -1
- package/dist/commonjs/funcs/get-health.d.ts +0 -11
- package/dist/commonjs/funcs/get-health.d.ts.map +0 -1
- package/dist/commonjs/funcs/get-health.js +0 -94
- package/dist/commonjs/funcs/get-health.js.map +0 -1
- package/dist/commonjs/funcs/releases-create-release.d.ts +0 -12
- package/dist/commonjs/funcs/releases-create-release.d.ts.map +0 -1
- package/dist/commonjs/funcs/releases-create-release.js +0 -106
- package/dist/commonjs/funcs/releases-create-release.js.map +0 -1
- package/dist/commonjs/funcs/releases-upload-source-maps.d.ts +0 -12
- package/dist/commonjs/funcs/releases-upload-source-maps.d.ts.map +0 -1
- package/dist/commonjs/funcs/releases-upload-source-maps.js +0 -144
- package/dist/commonjs/funcs/releases-upload-source-maps.js.map +0 -1
- package/dist/commonjs/funcs/session-create-session.d.ts +0 -12
- package/dist/commonjs/funcs/session-create-session.d.ts.map +0 -1
- package/dist/commonjs/funcs/session-create-session.js +0 -106
- package/dist/commonjs/funcs/session-create-session.js.map +0 -1
- package/dist/commonjs/funcs/session-identify-session.d.ts +0 -12
- package/dist/commonjs/funcs/session-identify-session.d.ts.map +0 -1
- package/dist/commonjs/funcs/session-identify-session.js +0 -106
- package/dist/commonjs/funcs/session-identify-session.js.map +0 -1
- package/dist/commonjs/hooks/hooks.d.ts +0 -25
- package/dist/commonjs/hooks/hooks.d.ts.map +0 -1
- package/dist/commonjs/hooks/hooks.js +0 -87
- package/dist/commonjs/hooks/hooks.js.map +0 -1
- package/dist/commonjs/hooks/registration.d.ts +0 -3
- package/dist/commonjs/hooks/registration.d.ts.map +0 -1
- package/dist/commonjs/hooks/registration.js +0 -15
- package/dist/commonjs/hooks/registration.js.map +0 -1
- package/dist/commonjs/hooks/types.d.ts +0 -76
- package/dist/commonjs/hooks/types.d.ts.map +0 -1
- package/dist/commonjs/hooks/types.js +0 -7
- package/dist/commonjs/hooks/types.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -6
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/index.js +0 -49
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/lib/base64.d.ts +0 -10
- package/dist/commonjs/lib/base64.d.ts.map +0 -1
- package/dist/commonjs/lib/base64.js +0 -74
- package/dist/commonjs/lib/base64.js.map +0 -1
- package/dist/commonjs/lib/config.d.ts +0 -37
- package/dist/commonjs/lib/config.d.ts.map +0 -1
- package/dist/commonjs/lib/config.js +0 -39
- package/dist/commonjs/lib/config.js.map +0 -1
- package/dist/commonjs/lib/dlv.d.ts +0 -14
- package/dist/commonjs/lib/dlv.d.ts.map +0 -1
- package/dist/commonjs/lib/dlv.js +0 -50
- package/dist/commonjs/lib/dlv.js.map +0 -1
- package/dist/commonjs/lib/encodings.d.ts +0 -53
- package/dist/commonjs/lib/encodings.d.ts.map +0 -1
- package/dist/commonjs/lib/encodings.js +0 -385
- package/dist/commonjs/lib/encodings.js.map +0 -1
- package/dist/commonjs/lib/env.d.ts +0 -14
- package/dist/commonjs/lib/env.d.ts.map +0 -1
- package/dist/commonjs/lib/env.js +0 -82
- package/dist/commonjs/lib/env.js.map +0 -1
- package/dist/commonjs/lib/files.d.ts +0 -13
- package/dist/commonjs/lib/files.d.ts.map +0 -1
- package/dist/commonjs/lib/files.js +0 -78
- package/dist/commonjs/lib/files.js.map +0 -1
- package/dist/commonjs/lib/http.d.ts +0 -67
- package/dist/commonjs/lib/http.d.ts.map +0 -1
- package/dist/commonjs/lib/http.js +0 -218
- package/dist/commonjs/lib/http.js.map +0 -1
- package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
- package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
- package/dist/commonjs/lib/is-plain-object.js +0 -42
- package/dist/commonjs/lib/is-plain-object.js.map +0 -1
- package/dist/commonjs/lib/logger.d.ts +0 -6
- package/dist/commonjs/lib/logger.d.ts.map +0 -1
- package/dist/commonjs/lib/logger.js +0 -7
- package/dist/commonjs/lib/logger.js.map +0 -1
- package/dist/commonjs/lib/matchers.d.ts +0 -59
- package/dist/commonjs/lib/matchers.d.ts.map +0 -1
- package/dist/commonjs/lib/matchers.js +0 -222
- package/dist/commonjs/lib/matchers.js.map +0 -1
- package/dist/commonjs/lib/primitives.d.ts +0 -26
- package/dist/commonjs/lib/primitives.d.ts.map +0 -1
- package/dist/commonjs/lib/primitives.js +0 -112
- package/dist/commonjs/lib/primitives.js.map +0 -1
- package/dist/commonjs/lib/retries.d.ts +0 -38
- package/dist/commonjs/lib/retries.d.ts.map +0 -1
- package/dist/commonjs/lib/retries.js +0 -154
- package/dist/commonjs/lib/retries.js.map +0 -1
- package/dist/commonjs/lib/schemas.d.ts +0 -21
- package/dist/commonjs/lib/schemas.d.ts.map +0 -1
- package/dist/commonjs/lib/schemas.js +0 -96
- package/dist/commonjs/lib/schemas.js.map +0 -1
- package/dist/commonjs/lib/sdks.d.ts +0 -63
- package/dist/commonjs/lib/sdks.d.ts.map +0 -1
- package/dist/commonjs/lib/sdks.js +0 -274
- package/dist/commonjs/lib/sdks.js.map +0 -1
- package/dist/commonjs/lib/security.d.ts +0 -80
- package/dist/commonjs/lib/security.d.ts.map +0 -1
- package/dist/commonjs/lib/security.js +0 -126
- package/dist/commonjs/lib/security.js.map +0 -1
- package/dist/commonjs/lib/url.d.ts +0 -5
- package/dist/commonjs/lib/url.d.ts.map +0 -1
- package/dist/commonjs/lib/url.js +0 -26
- package/dist/commonjs/lib/url.js.map +0 -1
- package/dist/commonjs/models/errors/http-client-errors.d.ts +0 -44
- package/dist/commonjs/models/errors/http-client-errors.d.ts.map +0 -1
- package/dist/commonjs/models/errors/http-client-errors.js +0 -79
- package/dist/commonjs/models/errors/http-client-errors.js.map +0 -1
- package/dist/commonjs/models/errors/interfere-error.d.ts +0 -10
- package/dist/commonjs/models/errors/interfere-error.d.ts.map +0 -1
- package/dist/commonjs/models/errors/interfere-error.js +0 -35
- package/dist/commonjs/models/errors/interfere-error.js.map +0 -1
- package/dist/commonjs/models/errors/interfere-http-error.d.ts +0 -19
- package/dist/commonjs/models/errors/interfere-http-error.d.ts.map +0 -1
- package/dist/commonjs/models/errors/interfere-http-error.js +0 -21
- package/dist/commonjs/models/errors/interfere-http-error.js.map +0 -1
- package/dist/commonjs/models/errors/response-validation-error.d.ts +0 -26
- package/dist/commonjs/models/errors/response-validation-error.d.ts.map +0 -1
- package/dist/commonjs/models/errors/response-validation-error.js +0 -67
- package/dist/commonjs/models/errors/response-validation-error.js.map +0 -1
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts +0 -21
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts.map +0 -1
- package/dist/commonjs/models/errors/sdk-validation-error.js +0 -83
- package/dist/commonjs/models/errors/sdk-validation-error.js.map +0 -1
- package/dist/commonjs/models/health-ok.d.ts +0 -10
- package/dist/commonjs/models/health-ok.d.ts.map +0 -1
- package/dist/commonjs/models/health-ok.js +0 -53
- package/dist/commonjs/models/health-ok.js.map +0 -1
- package/dist/commonjs/models/operations/upload-source-maps.d.ts +0 -15
- package/dist/commonjs/models/operations/upload-source-maps.d.ts.map +0 -1
- package/dist/commonjs/models/operations/upload-source-maps.js +0 -52
- package/dist/commonjs/models/operations/upload-source-maps.js.map +0 -1
- package/dist/commonjs/models/releases-create-release-request.d.ts +0 -64
- package/dist/commonjs/models/releases-create-release-request.d.ts.map +0 -1
- package/dist/commonjs/models/releases-create-release-request.js +0 -89
- package/dist/commonjs/models/releases-create-release-request.js.map +0 -1
- package/dist/commonjs/models/releases-create-release-response.d.ts +0 -48
- package/dist/commonjs/models/releases-create-release-response.d.ts.map +0 -1
- package/dist/commonjs/models/releases-create-release-response.js +0 -100
- package/dist/commonjs/models/releases-create-release-response.js.map +0 -1
- package/dist/commonjs/models/releases-upload-source-maps-request.d.ts +0 -78
- package/dist/commonjs/models/releases-upload-source-maps-request.d.ts.map +0 -1
- package/dist/commonjs/models/releases-upload-source-maps-request.js +0 -103
- package/dist/commonjs/models/releases-upload-source-maps-request.js.map +0 -1
- package/dist/commonjs/models/releases-upload-source-maps-response.d.ts +0 -13
- package/dist/commonjs/models/releases-upload-source-maps-response.d.ts.map +0 -1
- package/dist/commonjs/models/releases-upload-source-maps-response.js +0 -55
- package/dist/commonjs/models/releases-upload-source-maps-response.js.map +0 -1
- package/dist/commonjs/models/session-create-session-request.d.ts +0 -14
- package/dist/commonjs/models/session-create-session-request.d.ts.map +0 -1
- package/dist/commonjs/models/session-create-session-request.js +0 -51
- package/dist/commonjs/models/session-create-session-request.js.map +0 -1
- package/dist/commonjs/models/session-identify-session-request.d.ts +0 -30
- package/dist/commonjs/models/session-identify-session-request.d.ts.map +0 -1
- package/dist/commonjs/models/session-identify-session-request.js +0 -63
- package/dist/commonjs/models/session-identify-session-request.js.map +0 -1
- package/dist/commonjs/models/session-session-response.d.ts +0 -10
- package/dist/commonjs/models/session-session-response.d.ts.map +0 -1
- package/dist/commonjs/models/session-session-response.js +0 -52
- package/dist/commonjs/models/session-session-response.js.map +0 -1
- package/dist/commonjs/package.json +0 -3
- package/dist/commonjs/sdk/releases.d.ts +0 -10
- package/dist/commonjs/sdk/releases.d.ts.map +0 -1
- package/dist/commonjs/sdk/releases.js +0 -21
- package/dist/commonjs/sdk/releases.js.map +0 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -12
- package/dist/commonjs/sdk/sdk.d.ts.map +0 -1
- package/dist/commonjs/sdk/sdk.js +0 -25
- package/dist/commonjs/sdk/sdk.js.map +0 -1
- package/dist/commonjs/sdk/session.d.ts +0 -9
- package/dist/commonjs/sdk/session.d.ts.map +0 -1
- package/dist/commonjs/sdk/session.js +0 -21
- package/dist/commonjs/sdk/session.js.map +0 -1
- package/dist/commonjs/types/async.d.ts +0 -23
- package/dist/commonjs/types/async.d.ts.map +0 -1
- package/dist/commonjs/types/async.js +0 -45
- package/dist/commonjs/types/async.js.map +0 -1
- package/dist/commonjs/types/blobs.d.ts +0 -4
- package/dist/commonjs/types/blobs.d.ts.map +0 -1
- package/dist/commonjs/types/blobs.js +0 -63
- package/dist/commonjs/types/blobs.js.map +0 -1
- package/dist/commonjs/types/const-date-time.d.ts +0 -3
- package/dist/commonjs/types/const-date-time.d.ts.map +0 -1
- package/dist/commonjs/types/const-date-time.js +0 -47
- package/dist/commonjs/types/const-date-time.js.map +0 -1
- package/dist/commonjs/types/default-to-zero-value.d.ts +0 -12
- package/dist/commonjs/types/default-to-zero-value.d.ts.map +0 -1
- package/dist/commonjs/types/default-to-zero-value.js +0 -36
- package/dist/commonjs/types/default-to-zero-value.js.map +0 -1
- package/dist/commonjs/types/enums.d.ts +0 -9
- package/dist/commonjs/types/enums.d.ts.map +0 -1
- package/dist/commonjs/types/enums.js +0 -67
- package/dist/commonjs/types/enums.js.map +0 -1
- package/dist/commonjs/types/fp.d.ts +0 -31
- package/dist/commonjs/types/fp.d.ts.map +0 -1
- package/dist/commonjs/types/fp.js +0 -38
- package/dist/commonjs/types/fp.js.map +0 -1
- package/dist/commonjs/types/operations.d.ts +0 -27
- package/dist/commonjs/types/operations.d.ts.map +0 -1
- package/dist/commonjs/types/operations.js +0 -84
- package/dist/commonjs/types/operations.js.map +0 -1
- package/dist/commonjs/types/primitives.d.ts +0 -11
- package/dist/commonjs/types/primitives.d.ts.map +0 -1
- package/dist/commonjs/types/primitives.js +0 -177
- package/dist/commonjs/types/primitives.js.map +0 -1
- package/dist/commonjs/types/rfcdate.d.ts +0 -21
- package/dist/commonjs/types/rfcdate.d.ts.map +0 -1
- package/dist/commonjs/types/rfcdate.js +0 -47
- package/dist/commonjs/types/rfcdate.js.map +0 -1
- package/dist/commonjs/types/smart-union.d.ts +0 -7
- package/dist/commonjs/types/smart-union.d.ts.map +0 -1
- package/dist/commonjs/types/smart-union.js +0 -154
- package/dist/commonjs/types/smart-union.js.map +0 -1
- package/dist/commonjs/types/streams.d.ts +0 -2
- package/dist/commonjs/types/streams.d.ts.map +0 -1
- package/dist/commonjs/types/streams.js +0 -19
- package/dist/commonjs/types/streams.js.map +0 -1
- package/dist/commonjs/types/unrecognized.d.ts +0 -16
- package/dist/commonjs/types/unrecognized.d.ts.map +0 -1
- package/dist/commonjs/types/unrecognized.js +0 -35
- package/dist/commonjs/types/unrecognized.js.map +0 -1
- package/dist/esm/core.d.ts +0 -10
- package/dist/esm/core.d.ts.map +0 -1
- package/dist/esm/core.js +0 -14
- package/dist/esm/core.js.map +0 -1
- package/dist/esm/funcs/get-health.d.ts +0 -11
- package/dist/esm/funcs/get-health.d.ts.map +0 -1
- package/dist/esm/funcs/get-health.js +0 -58
- package/dist/esm/funcs/get-health.js.map +0 -1
- package/dist/esm/funcs/releases-create-release.d.ts +0 -12
- package/dist/esm/funcs/releases-create-release.d.ts.map +0 -1
- package/dist/esm/funcs/releases-create-release.js +0 -70
- package/dist/esm/funcs/releases-create-release.js.map +0 -1
- package/dist/esm/funcs/releases-upload-source-maps.d.ts +0 -12
- package/dist/esm/funcs/releases-upload-source-maps.d.ts.map +0 -1
- package/dist/esm/funcs/releases-upload-source-maps.js +0 -108
- package/dist/esm/funcs/releases-upload-source-maps.js.map +0 -1
- package/dist/esm/funcs/session-create-session.d.ts +0 -12
- package/dist/esm/funcs/session-create-session.d.ts.map +0 -1
- package/dist/esm/funcs/session-create-session.js +0 -70
- package/dist/esm/funcs/session-create-session.js.map +0 -1
- package/dist/esm/funcs/session-identify-session.d.ts +0 -12
- package/dist/esm/funcs/session-identify-session.d.ts.map +0 -1
- package/dist/esm/funcs/session-identify-session.js +0 -70
- package/dist/esm/funcs/session-identify-session.js.map +0 -1
- package/dist/esm/hooks/hooks.d.ts +0 -25
- package/dist/esm/hooks/hooks.d.ts.map +0 -1
- package/dist/esm/hooks/hooks.js +0 -83
- package/dist/esm/hooks/hooks.js.map +0 -1
- package/dist/esm/hooks/registration.d.ts +0 -3
- package/dist/esm/hooks/registration.d.ts.map +0 -1
- package/dist/esm/hooks/registration.js +0 -12
- package/dist/esm/hooks/registration.js.map +0 -1
- package/dist/esm/hooks/types.d.ts +0 -76
- package/dist/esm/hooks/types.d.ts.map +0 -1
- package/dist/esm/hooks/types.js +0 -6
- package/dist/esm/hooks/types.js.map +0 -1
- package/dist/esm/index.d.ts +0 -6
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -9
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/lib/base64.d.ts +0 -10
- package/dist/esm/lib/base64.d.ts.map +0 -1
- package/dist/esm/lib/base64.js +0 -32
- package/dist/esm/lib/base64.js.map +0 -1
- package/dist/esm/lib/config.d.ts +0 -37
- package/dist/esm/lib/config.d.ts.map +0 -1
- package/dist/esm/lib/config.js +0 -35
- package/dist/esm/lib/config.js.map +0 -1
- package/dist/esm/lib/dlv.d.ts +0 -14
- package/dist/esm/lib/dlv.d.ts.map +0 -1
- package/dist/esm/lib/dlv.js +0 -47
- package/dist/esm/lib/dlv.js.map +0 -1
- package/dist/esm/lib/encodings.d.ts +0 -53
- package/dist/esm/lib/encodings.d.ts.map +0 -1
- package/dist/esm/lib/encodings.js +0 -371
- package/dist/esm/lib/encodings.js.map +0 -1
- package/dist/esm/lib/env.d.ts +0 -14
- package/dist/esm/lib/env.d.ts.map +0 -1
- package/dist/esm/lib/env.js +0 -44
- package/dist/esm/lib/env.js.map +0 -1
- package/dist/esm/lib/files.d.ts +0 -13
- package/dist/esm/lib/files.d.ts.map +0 -1
- package/dist/esm/lib/files.js +0 -74
- package/dist/esm/lib/files.js.map +0 -1
- package/dist/esm/lib/http.d.ts +0 -67
- package/dist/esm/lib/http.d.ts.map +0 -1
- package/dist/esm/lib/http.js +0 -208
- package/dist/esm/lib/http.js.map +0 -1
- package/dist/esm/lib/is-plain-object.d.ts +0 -2
- package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
- package/dist/esm/lib/is-plain-object.js +0 -39
- package/dist/esm/lib/is-plain-object.js.map +0 -1
- package/dist/esm/lib/logger.d.ts +0 -6
- package/dist/esm/lib/logger.d.ts.map +0 -1
- package/dist/esm/lib/logger.js +0 -6
- package/dist/esm/lib/logger.js.map +0 -1
- package/dist/esm/lib/matchers.d.ts +0 -59
- package/dist/esm/lib/matchers.d.ts.map +0 -1
- package/dist/esm/lib/matchers.js +0 -203
- package/dist/esm/lib/matchers.js.map +0 -1
- package/dist/esm/lib/primitives.d.ts +0 -26
- package/dist/esm/lib/primitives.d.ts.map +0 -1
- package/dist/esm/lib/primitives.js +0 -104
- package/dist/esm/lib/primitives.js.map +0 -1
- package/dist/esm/lib/retries.d.ts +0 -38
- package/dist/esm/lib/retries.d.ts.map +0 -1
- package/dist/esm/lib/retries.js +0 -148
- package/dist/esm/lib/retries.js.map +0 -1
- package/dist/esm/lib/schemas.d.ts +0 -21
- package/dist/esm/lib/schemas.d.ts.map +0 -1
- package/dist/esm/lib/schemas.js +0 -58
- package/dist/esm/lib/schemas.js.map +0 -1
- package/dist/esm/lib/sdks.d.ts +0 -63
- package/dist/esm/lib/sdks.d.ts.map +0 -1
- package/dist/esm/lib/sdks.js +0 -270
- package/dist/esm/lib/sdks.js.map +0 -1
- package/dist/esm/lib/security.d.ts +0 -80
- package/dist/esm/lib/security.d.ts.map +0 -1
- package/dist/esm/lib/security.js +0 -121
- package/dist/esm/lib/security.js.map +0 -1
- package/dist/esm/lib/url.d.ts +0 -5
- package/dist/esm/lib/url.d.ts.map +0 -1
- package/dist/esm/lib/url.js +0 -23
- package/dist/esm/lib/url.js.map +0 -1
- package/dist/esm/models/errors/http-client-errors.d.ts +0 -44
- package/dist/esm/models/errors/http-client-errors.d.ts.map +0 -1
- package/dist/esm/models/errors/http-client-errors.js +0 -70
- package/dist/esm/models/errors/http-client-errors.js.map +0 -1
- package/dist/esm/models/errors/interfere-error.d.ts +0 -10
- package/dist/esm/models/errors/interfere-error.d.ts.map +0 -1
- package/dist/esm/models/errors/interfere-error.js +0 -31
- package/dist/esm/models/errors/interfere-error.js.map +0 -1
- package/dist/esm/models/errors/interfere-http-error.d.ts +0 -19
- package/dist/esm/models/errors/interfere-http-error.d.ts.map +0 -1
- package/dist/esm/models/errors/interfere-http-error.js +0 -17
- package/dist/esm/models/errors/interfere-http-error.js.map +0 -1
- package/dist/esm/models/errors/response-validation-error.d.ts +0 -26
- package/dist/esm/models/errors/response-validation-error.d.ts.map +0 -1
- package/dist/esm/models/errors/response-validation-error.js +0 -30
- package/dist/esm/models/errors/response-validation-error.js.map +0 -1
- package/dist/esm/models/errors/sdk-validation-error.d.ts +0 -21
- package/dist/esm/models/errors/sdk-validation-error.d.ts.map +0 -1
- package/dist/esm/models/errors/sdk-validation-error.js +0 -45
- package/dist/esm/models/errors/sdk-validation-error.js.map +0 -1
- package/dist/esm/models/health-ok.d.ts +0 -10
- package/dist/esm/models/health-ok.d.ts.map +0 -1
- package/dist/esm/models/health-ok.js +0 -16
- package/dist/esm/models/health-ok.js.map +0 -1
- package/dist/esm/models/operations/upload-source-maps.d.ts +0 -15
- package/dist/esm/models/operations/upload-source-maps.d.ts.map +0 -1
- package/dist/esm/models/operations/upload-source-maps.js +0 -15
- package/dist/esm/models/operations/upload-source-maps.js.map +0 -1
- package/dist/esm/models/releases-create-release-request.d.ts +0 -64
- package/dist/esm/models/releases-create-release-request.d.ts.map +0 -1
- package/dist/esm/models/releases-create-release-request.js +0 -48
- package/dist/esm/models/releases-create-release-request.js.map +0 -1
- package/dist/esm/models/releases-create-release-response.d.ts +0 -48
- package/dist/esm/models/releases-create-release-response.d.ts.map +0 -1
- package/dist/esm/models/releases-create-release-response.js +0 -58
- package/dist/esm/models/releases-create-release-response.js.map +0 -1
- package/dist/esm/models/releases-upload-source-maps-request.d.ts +0 -78
- package/dist/esm/models/releases-upload-source-maps-request.d.ts.map +0 -1
- package/dist/esm/models/releases-upload-source-maps-request.js +0 -61
- package/dist/esm/models/releases-upload-source-maps-request.js.map +0 -1
- package/dist/esm/models/releases-upload-source-maps-response.d.ts +0 -13
- package/dist/esm/models/releases-upload-source-maps-response.d.ts.map +0 -1
- package/dist/esm/models/releases-upload-source-maps-response.js +0 -18
- package/dist/esm/models/releases-upload-source-maps-response.js.map +0 -1
- package/dist/esm/models/session-create-session-request.d.ts +0 -14
- package/dist/esm/models/session-create-session-request.d.ts.map +0 -1
- package/dist/esm/models/session-create-session-request.js +0 -14
- package/dist/esm/models/session-create-session-request.js.map +0 -1
- package/dist/esm/models/session-identify-session-request.d.ts +0 -30
- package/dist/esm/models/session-identify-session-request.d.ts.map +0 -1
- package/dist/esm/models/session-identify-session-request.js +0 -25
- package/dist/esm/models/session-identify-session-request.js.map +0 -1
- package/dist/esm/models/session-session-response.d.ts +0 -10
- package/dist/esm/models/session-session-response.d.ts.map +0 -1
- package/dist/esm/models/session-session-response.js +0 -15
- package/dist/esm/models/session-session-response.js.map +0 -1
- package/dist/esm/package.json +0 -3
- package/dist/esm/sdk/releases.d.ts +0 -10
- package/dist/esm/sdk/releases.d.ts.map +0 -1
- package/dist/esm/sdk/releases.js +0 -17
- package/dist/esm/sdk/releases.js.map +0 -1
- package/dist/esm/sdk/sdk.d.ts +0 -12
- package/dist/esm/sdk/sdk.d.ts.map +0 -1
- package/dist/esm/sdk/sdk.js +0 -21
- package/dist/esm/sdk/sdk.js.map +0 -1
- package/dist/esm/sdk/session.d.ts +0 -9
- package/dist/esm/sdk/session.d.ts.map +0 -1
- package/dist/esm/sdk/session.js +0 -17
- package/dist/esm/sdk/session.js.map +0 -1
- package/dist/esm/types/async.d.ts +0 -23
- package/dist/esm/types/async.d.ts.map +0 -1
- package/dist/esm/types/async.js +0 -41
- package/dist/esm/types/async.js.map +0 -1
- package/dist/esm/types/blobs.d.ts +0 -4
- package/dist/esm/types/blobs.d.ts.map +0 -1
- package/dist/esm/types/blobs.js +0 -26
- package/dist/esm/types/blobs.js.map +0 -1
- package/dist/esm/types/const-date-time.d.ts +0 -3
- package/dist/esm/types/const-date-time.d.ts.map +0 -1
- package/dist/esm/types/const-date-time.js +0 -11
- package/dist/esm/types/const-date-time.js.map +0 -1
- package/dist/esm/types/default-to-zero-value.d.ts +0 -12
- package/dist/esm/types/default-to-zero-value.d.ts.map +0 -1
- package/dist/esm/types/default-to-zero-value.js +0 -32
- package/dist/esm/types/default-to-zero-value.js.map +0 -1
- package/dist/esm/types/enums.d.ts +0 -9
- package/dist/esm/types/enums.d.ts.map +0 -1
- package/dist/esm/types/enums.js +0 -28
- package/dist/esm/types/enums.js.map +0 -1
- package/dist/esm/types/fp.d.ts +0 -31
- package/dist/esm/types/fp.d.ts.map +0 -1
- package/dist/esm/types/fp.js +0 -32
- package/dist/esm/types/fp.js.map +0 -1
- package/dist/esm/types/operations.d.ts +0 -27
- package/dist/esm/types/operations.d.ts.map +0 -1
- package/dist/esm/types/operations.js +0 -78
- package/dist/esm/types/operations.js.map +0 -1
- package/dist/esm/types/primitives.d.ts +0 -11
- package/dist/esm/types/primitives.d.ts.map +0 -1
- package/dist/esm/types/primitives.js +0 -133
- package/dist/esm/types/primitives.js.map +0 -1
- package/dist/esm/types/rfcdate.d.ts +0 -21
- package/dist/esm/types/rfcdate.d.ts.map +0 -1
- package/dist/esm/types/rfcdate.js +0 -43
- package/dist/esm/types/rfcdate.js.map +0 -1
- package/dist/esm/types/smart-union.d.ts +0 -7
- package/dist/esm/types/smart-union.d.ts.map +0 -1
- package/dist/esm/types/smart-union.js +0 -118
- package/dist/esm/types/smart-union.js.map +0 -1
- package/dist/esm/types/streams.d.ts +0 -2
- package/dist/esm/types/streams.d.ts.map +0 -1
- package/dist/esm/types/streams.js +0 -16
- package/dist/esm/types/streams.js.map +0 -1
- package/dist/esm/types/unrecognized.d.ts +0 -16
- package/dist/esm/types/unrecognized.d.ts.map +0 -1
- package/dist/esm/types/unrecognized.js +0 -32
- package/dist/esm/types/unrecognized.js.map +0 -1
- package/examples/getHealth.example.ts +0 -25
- package/src/core.ts +0 -14
- package/src/funcs/get-health.ts +0 -131
- package/src/funcs/releases-create-release.ts +0 -157
- package/src/funcs/releases-upload-source-maps.ts +0 -211
- package/src/funcs/session-create-session.ts +0 -157
- package/src/funcs/session-identify-session.ts +0 -157
- package/src/hooks/hooks.ts +0 -133
- package/src/hooks/registration.ts +0 -14
- package/src/hooks/types.ts +0 -108
- package/src/index.ts +0 -10
- package/src/lib/base64.ts +0 -40
- package/src/lib/config.ts +0 -67
- package/src/lib/dlv.ts +0 -54
- package/src/lib/encodings.ts +0 -502
- package/src/lib/env.ts +0 -54
- package/src/lib/files.ts +0 -83
- package/src/lib/http.ts +0 -324
- package/src/lib/is-plain-object.ts +0 -44
- package/src/lib/logger.ts +0 -10
- package/src/lib/matchers.ts +0 -354
- package/src/lib/primitives.ts +0 -151
- package/src/lib/retries.ts +0 -219
- package/src/lib/schemas.ts +0 -95
- package/src/lib/sdks.ts +0 -407
- package/src/lib/security.ts +0 -237
- package/src/lib/url.ts +0 -34
- package/src/models/errors/http-client-errors.ts +0 -63
- package/src/models/errors/interfere-error.ts +0 -41
- package/src/models/errors/interfere-http-error.ts +0 -36
- package/src/models/errors/response-validation-error.ts +0 -51
- package/src/models/errors/sdk-validation-error.ts +0 -55
- package/src/models/health-ok.ts +0 -30
- package/src/models/operations/upload-source-maps.ts +0 -39
- package/src/models/releases-create-release-request.ts +0 -137
- package/src/models/releases-create-release-response.ts +0 -156
- package/src/models/releases-upload-source-maps-request.ts +0 -151
- package/src/models/releases-upload-source-maps-response.ts +0 -38
- package/src/models/session-create-session-request.ts +0 -36
- package/src/models/session-identify-session-request.ts +0 -64
- package/src/models/session-session-response.ts +0 -32
- package/src/sdk/releases.ts +0 -37
- package/src/sdk/sdk.ts +0 -32
- package/src/sdk/session.ts +0 -36
- package/src/types/async.ts +0 -69
- package/src/types/blobs.ts +0 -34
- package/src/types/const-date-time.ts +0 -16
- package/src/types/default-to-zero-value.ts +0 -34
- package/src/types/enums.ts +0 -46
- package/src/types/fp.ts +0 -51
- package/src/types/operations.ts +0 -106
- package/src/types/primitives.ts +0 -169
- package/src/types/rfcdate.ts +0 -55
- package/src/types/smart-union.ts +0 -154
- package/src/types/streams.ts +0 -22
- package/src/types/unrecognized.ts +0 -36
package/src/lib/security.ts
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 560349437417
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
type OAuth2PasswordFlow = {
|
|
7
|
-
username: string;
|
|
8
|
-
password: string;
|
|
9
|
-
clientID?: string | undefined;
|
|
10
|
-
clientSecret?: string | undefined;
|
|
11
|
-
tokenURL: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export enum SecurityErrorCode {
|
|
15
|
-
Incomplete = "incomplete",
|
|
16
|
-
UnrecognisedSecurityType = "unrecognized_security_type",
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class SecurityError extends Error {
|
|
20
|
-
constructor(
|
|
21
|
-
public code: SecurityErrorCode,
|
|
22
|
-
message: string,
|
|
23
|
-
) {
|
|
24
|
-
super(message);
|
|
25
|
-
this.name = "SecurityError";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static incomplete(): SecurityError {
|
|
29
|
-
return new SecurityError(
|
|
30
|
-
SecurityErrorCode.Incomplete,
|
|
31
|
-
"Security requirements not met in order to perform the operation",
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
static unrecognizedType(type: string): SecurityError {
|
|
35
|
-
return new SecurityError(
|
|
36
|
-
SecurityErrorCode.UnrecognisedSecurityType,
|
|
37
|
-
`Unrecognised security type: ${type}`,
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type SecurityState = {
|
|
43
|
-
basic: { username?: string | undefined; password?: string | undefined };
|
|
44
|
-
headers: Record<string, string>;
|
|
45
|
-
queryParams: Record<string, string>;
|
|
46
|
-
cookies: Record<string, string>;
|
|
47
|
-
oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" };
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
type SecurityInputBasic = {
|
|
51
|
-
type: "http:basic";
|
|
52
|
-
value:
|
|
53
|
-
| { username?: string | undefined; password?: string | undefined }
|
|
54
|
-
| null
|
|
55
|
-
| undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
type SecurityInputBearer = {
|
|
59
|
-
type: "http:bearer";
|
|
60
|
-
value: string | null | undefined;
|
|
61
|
-
fieldName: string;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
type SecurityInputAPIKey = {
|
|
65
|
-
type: "apiKey:header" | "apiKey:query" | "apiKey:cookie";
|
|
66
|
-
value: string | null | undefined;
|
|
67
|
-
fieldName: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
type SecurityInputOIDC = {
|
|
71
|
-
type: "openIdConnect";
|
|
72
|
-
value: string | null | undefined;
|
|
73
|
-
fieldName: string;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
type SecurityInputOAuth2 = {
|
|
77
|
-
type: "oauth2";
|
|
78
|
-
value: string | null | undefined;
|
|
79
|
-
fieldName: string;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
type SecurityInputOAuth2ClientCredentials = {
|
|
83
|
-
type: "oauth2:client_credentials";
|
|
84
|
-
value:
|
|
85
|
-
| {
|
|
86
|
-
clientID?: string | undefined;
|
|
87
|
-
clientSecret?: string | undefined;
|
|
88
|
-
}
|
|
89
|
-
| null
|
|
90
|
-
| string
|
|
91
|
-
| undefined;
|
|
92
|
-
fieldName?: string;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
type SecurityInputOAuth2PasswordCredentials = {
|
|
96
|
-
type: "oauth2:password";
|
|
97
|
-
value:
|
|
98
|
-
| string
|
|
99
|
-
| null
|
|
100
|
-
| undefined;
|
|
101
|
-
fieldName?: string;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
type SecurityInputCustom = {
|
|
105
|
-
type: "http:custom";
|
|
106
|
-
value: any | null | undefined;
|
|
107
|
-
fieldName?: string;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export type SecurityInput =
|
|
111
|
-
| SecurityInputBasic
|
|
112
|
-
| SecurityInputBearer
|
|
113
|
-
| SecurityInputAPIKey
|
|
114
|
-
| SecurityInputOAuth2
|
|
115
|
-
| SecurityInputOAuth2ClientCredentials
|
|
116
|
-
| SecurityInputOAuth2PasswordCredentials
|
|
117
|
-
| SecurityInputOIDC
|
|
118
|
-
| SecurityInputCustom;
|
|
119
|
-
|
|
120
|
-
export function resolveSecurity(
|
|
121
|
-
...options: SecurityInput[][]
|
|
122
|
-
): SecurityState | null {
|
|
123
|
-
const state: SecurityState = {
|
|
124
|
-
basic: {},
|
|
125
|
-
headers: {},
|
|
126
|
-
queryParams: {},
|
|
127
|
-
cookies: {},
|
|
128
|
-
oauth2: { type: "none" },
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const option = options.find((opts) => {
|
|
132
|
-
return opts.every((o) => {
|
|
133
|
-
if (o.value == null) {
|
|
134
|
-
return false;
|
|
135
|
-
} else if (o.type === "http:basic") {
|
|
136
|
-
return o.value.username != null || o.value.password != null;
|
|
137
|
-
} else if (o.type === "http:custom") {
|
|
138
|
-
return null;
|
|
139
|
-
} else if (o.type === "oauth2:password") {
|
|
140
|
-
return (
|
|
141
|
-
typeof o.value === "string" && !!o.value
|
|
142
|
-
);
|
|
143
|
-
} else if (o.type === "oauth2:client_credentials") {
|
|
144
|
-
if (typeof o.value == "string") {
|
|
145
|
-
return !!o.value;
|
|
146
|
-
}
|
|
147
|
-
return o.value.clientID != null || o.value.clientSecret != null;
|
|
148
|
-
} else if (typeof o.value === "string") {
|
|
149
|
-
return !!o.value;
|
|
150
|
-
} else {
|
|
151
|
-
throw new Error(
|
|
152
|
-
`Unrecognized security type: ${o.type} (value type: ${typeof o
|
|
153
|
-
.value})`,
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
if (option == null) {
|
|
159
|
-
return null;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
option.forEach((spec) => {
|
|
163
|
-
if (spec.value == null) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const { type } = spec;
|
|
168
|
-
|
|
169
|
-
switch (type) {
|
|
170
|
-
case "apiKey:header":
|
|
171
|
-
state.headers[spec.fieldName] = spec.value;
|
|
172
|
-
break;
|
|
173
|
-
case "apiKey:query":
|
|
174
|
-
state.queryParams[spec.fieldName] = spec.value;
|
|
175
|
-
break;
|
|
176
|
-
case "apiKey:cookie":
|
|
177
|
-
state.cookies[spec.fieldName] = spec.value;
|
|
178
|
-
break;
|
|
179
|
-
case "http:basic":
|
|
180
|
-
applyBasic(state, spec);
|
|
181
|
-
break;
|
|
182
|
-
case "http:custom":
|
|
183
|
-
break;
|
|
184
|
-
case "http:bearer":
|
|
185
|
-
applyBearer(state, spec);
|
|
186
|
-
break;
|
|
187
|
-
case "oauth2":
|
|
188
|
-
applyBearer(state, spec);
|
|
189
|
-
break;
|
|
190
|
-
case "oauth2:password":
|
|
191
|
-
applyBearer(state, spec);
|
|
192
|
-
break;
|
|
193
|
-
case "oauth2:client_credentials":
|
|
194
|
-
break;
|
|
195
|
-
case "openIdConnect":
|
|
196
|
-
applyBearer(state, spec);
|
|
197
|
-
break;
|
|
198
|
-
default:
|
|
199
|
-
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
return state;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
function applyBasic(
|
|
207
|
-
state: SecurityState,
|
|
208
|
-
spec: SecurityInputBasic,
|
|
209
|
-
) {
|
|
210
|
-
if (spec.value == null) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
state.basic = spec.value;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
function applyBearer(
|
|
218
|
-
state: SecurityState,
|
|
219
|
-
spec:
|
|
220
|
-
| SecurityInputBearer
|
|
221
|
-
| SecurityInputOAuth2
|
|
222
|
-
| SecurityInputOIDC
|
|
223
|
-
| SecurityInputOAuth2PasswordCredentials,
|
|
224
|
-
) {
|
|
225
|
-
if (typeof spec.value !== "string" || !spec.value) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
let value = spec.value;
|
|
230
|
-
if (value.slice(0, 7).toLowerCase() !== "bearer ") {
|
|
231
|
-
value = `Bearer ${value}`;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (spec.fieldName !== undefined) {
|
|
235
|
-
state.headers[spec.fieldName] = value;
|
|
236
|
-
}
|
|
237
|
-
}
|
package/src/lib/url.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 3847d9f3af97
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
const hasOwn = Object.prototype.hasOwnProperty;
|
|
7
|
-
|
|
8
|
-
export type Params = Partial<Record<string, string | number>>;
|
|
9
|
-
|
|
10
|
-
export function pathToFunc(
|
|
11
|
-
pathPattern: string,
|
|
12
|
-
options?: { charEncoding?: "percent" | "none" },
|
|
13
|
-
): (params?: Params) => string {
|
|
14
|
-
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
15
|
-
|
|
16
|
-
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
17
|
-
return pathPattern.replace(paramRE, (_, placeholder) => {
|
|
18
|
-
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
-
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const value = params[placeholder];
|
|
23
|
-
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
-
throw new Error(
|
|
25
|
-
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return options?.charEncoding === "percent"
|
|
30
|
-
? encodeURIComponent(`${value}`)
|
|
31
|
-
: `${value}`;
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: eab54514d4ae
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Base class for all HTTP errors.
|
|
8
|
-
*/
|
|
9
|
-
export class HTTPClientError extends Error {
|
|
10
|
-
/** The underlying cause of the error. */
|
|
11
|
-
override readonly cause: unknown;
|
|
12
|
-
override name = "HTTPClientError";
|
|
13
|
-
constructor(message: string, opts?: { cause?: unknown }) {
|
|
14
|
-
let msg = message;
|
|
15
|
-
if (opts?.cause) {
|
|
16
|
-
msg += `: ${opts.cause}`;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
super(msg, opts);
|
|
20
|
-
// In older runtimes, the cause field would not have been assigned through
|
|
21
|
-
// the super() call.
|
|
22
|
-
if (typeof this.cause === "undefined") {
|
|
23
|
-
this.cause = opts?.cause;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
30
|
-
*/
|
|
31
|
-
export class UnexpectedClientError extends HTTPClientError {
|
|
32
|
-
override name = "UnexpectedClientError";
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* An error that is raised when any inputs used to create a request are invalid.
|
|
37
|
-
*/
|
|
38
|
-
export class InvalidRequestError extends HTTPClientError {
|
|
39
|
-
override name = "InvalidRequestError";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* An error that is raised when a HTTP request was aborted by the client error.
|
|
44
|
-
*/
|
|
45
|
-
export class RequestAbortedError extends HTTPClientError {
|
|
46
|
-
override readonly name = "RequestAbortedError";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
51
|
-
* signal timeout.
|
|
52
|
-
*/
|
|
53
|
-
export class RequestTimeoutError extends HTTPClientError {
|
|
54
|
-
override readonly name = "RequestTimeoutError";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* An error that is raised when a HTTP client is unable to make a request to
|
|
59
|
-
* a server.
|
|
60
|
-
*/
|
|
61
|
-
export class ConnectionError extends HTTPClientError {
|
|
62
|
-
override readonly name = "ConnectionError";
|
|
63
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 9cd9f9f54f88
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { InterfereHTTPError } from "./interfere-http-error.js";
|
|
7
|
-
|
|
8
|
-
/** The fallback error class if no more specific error class is matched */
|
|
9
|
-
export class InterfereError extends InterfereHTTPError {
|
|
10
|
-
constructor(
|
|
11
|
-
message: string,
|
|
12
|
-
httpMeta: {
|
|
13
|
-
response: Response;
|
|
14
|
-
request: Request;
|
|
15
|
-
body: string;
|
|
16
|
-
},
|
|
17
|
-
) {
|
|
18
|
-
if (message) {
|
|
19
|
-
message += `: `;
|
|
20
|
-
}
|
|
21
|
-
message += `Status ${httpMeta.response.status}`;
|
|
22
|
-
const contentType = httpMeta.response.headers.get("content-type") || `""`;
|
|
23
|
-
if (contentType !== "application/json") {
|
|
24
|
-
message += ` Content-Type ${
|
|
25
|
-
contentType.includes(" ") ? `"${contentType}"` : contentType
|
|
26
|
-
}`;
|
|
27
|
-
}
|
|
28
|
-
const body = httpMeta.body || `""`;
|
|
29
|
-
message += body.length > 100 ? "\n" : ". ";
|
|
30
|
-
let bodyDisplay = body;
|
|
31
|
-
if (body.length > 10000) {
|
|
32
|
-
const truncated = body.substring(0, 10000);
|
|
33
|
-
const remaining = body.length - 10000;
|
|
34
|
-
bodyDisplay = `${truncated}...and ${remaining} more chars`;
|
|
35
|
-
}
|
|
36
|
-
message += `Body: ${bodyDisplay}`;
|
|
37
|
-
message = message.trim();
|
|
38
|
-
super(message, httpMeta);
|
|
39
|
-
this.name = "InterfereError";
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 51455e93b692
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/** The base class for all HTTP error responses */
|
|
7
|
-
export class InterfereHTTPError extends Error {
|
|
8
|
-
/** HTTP status code */
|
|
9
|
-
public readonly statusCode: number;
|
|
10
|
-
/** HTTP body */
|
|
11
|
-
public readonly body: string;
|
|
12
|
-
/** HTTP headers */
|
|
13
|
-
public readonly headers: Headers;
|
|
14
|
-
/** HTTP content type */
|
|
15
|
-
public readonly contentType: string;
|
|
16
|
-
/** Raw response */
|
|
17
|
-
public readonly rawResponse: Response;
|
|
18
|
-
|
|
19
|
-
constructor(
|
|
20
|
-
message: string,
|
|
21
|
-
httpMeta: {
|
|
22
|
-
response: Response;
|
|
23
|
-
request: Request;
|
|
24
|
-
body: string;
|
|
25
|
-
},
|
|
26
|
-
) {
|
|
27
|
-
super(message);
|
|
28
|
-
this.statusCode = httpMeta.response.status;
|
|
29
|
-
this.body = httpMeta.body;
|
|
30
|
-
this.headers = httpMeta.response.headers;
|
|
31
|
-
this.contentType = httpMeta.response.headers.get("content-type") || "";
|
|
32
|
-
this.rawResponse = httpMeta.response;
|
|
33
|
-
|
|
34
|
-
this.name = "InterfereHTTPError";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 834f9a5bfe5e
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4/core";
|
|
7
|
-
import { InterfereHTTPError } from "./interfere-http-error.js";
|
|
8
|
-
import { formatZodError } from "./sdk-validation-error.js";
|
|
9
|
-
|
|
10
|
-
export class ResponseValidationError extends InterfereHTTPError {
|
|
11
|
-
/**
|
|
12
|
-
* The raw value that failed validation.
|
|
13
|
-
*/
|
|
14
|
-
public readonly rawValue: unknown;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The raw message that failed validation.
|
|
18
|
-
*/
|
|
19
|
-
public readonly rawMessage: unknown;
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
message: string,
|
|
23
|
-
extra: {
|
|
24
|
-
response: Response;
|
|
25
|
-
request: Request;
|
|
26
|
-
body: string;
|
|
27
|
-
cause: unknown;
|
|
28
|
-
rawValue: unknown;
|
|
29
|
-
rawMessage: unknown;
|
|
30
|
-
},
|
|
31
|
-
) {
|
|
32
|
-
super(message, extra);
|
|
33
|
-
this.name = "ResponseValidationError";
|
|
34
|
-
this.cause = extra.cause;
|
|
35
|
-
this.rawValue = extra.rawValue;
|
|
36
|
-
this.rawMessage = extra.rawMessage;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Return a pretty-formatted error message if the underlying validation error
|
|
41
|
-
* is a ZodError or some other recognized error type, otherwise return the
|
|
42
|
-
* default error message.
|
|
43
|
-
*/
|
|
44
|
-
public pretty(): string {
|
|
45
|
-
if (this.cause instanceof z.$ZodError) {
|
|
46
|
-
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
|
47
|
-
} else {
|
|
48
|
-
return this.toString();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: b5487e2cc54f
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4/core";
|
|
7
|
-
|
|
8
|
-
export class SDKValidationError extends Error {
|
|
9
|
-
/**
|
|
10
|
-
* The raw value that failed validation.
|
|
11
|
-
*/
|
|
12
|
-
public readonly rawValue: unknown;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The raw message that failed validation.
|
|
16
|
-
*/
|
|
17
|
-
public readonly rawMessage: unknown;
|
|
18
|
-
|
|
19
|
-
// Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError`
|
|
20
|
-
static override [Symbol.hasInstance](
|
|
21
|
-
instance: unknown,
|
|
22
|
-
): instance is SDKValidationError {
|
|
23
|
-
if (!(instance instanceof Error)) return false;
|
|
24
|
-
if (!("rawValue" in instance)) return false;
|
|
25
|
-
if (!("rawMessage" in instance)) return false;
|
|
26
|
-
if (!("pretty" in instance)) return false;
|
|
27
|
-
if (typeof instance.pretty !== "function") return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
constructor(message: string, cause: unknown, rawValue: unknown) {
|
|
32
|
-
super(`${message}: ${cause}`);
|
|
33
|
-
this.name = "SDKValidationError";
|
|
34
|
-
this.cause = cause;
|
|
35
|
-
this.rawValue = rawValue;
|
|
36
|
-
this.rawMessage = message;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Return a pretty-formatted error message if the underlying validation error
|
|
41
|
-
* is a ZodError or some other recognized error type, otherwise return the
|
|
42
|
-
* default error message.
|
|
43
|
-
*/
|
|
44
|
-
public pretty(): string {
|
|
45
|
-
if (this.cause instanceof z.$ZodError) {
|
|
46
|
-
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
|
47
|
-
} else {
|
|
48
|
-
return this.toString();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function formatZodError(err: z.$ZodError): string {
|
|
54
|
-
return z.prettifyError(err);
|
|
55
|
-
}
|
package/src/models/health-ok.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 0364eb8c38c7
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4-mini";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import type { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import * as types from "../types/primitives.js";
|
|
10
|
-
import type { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
-
|
|
12
|
-
export type HealthOk = {
|
|
13
|
-
status: "ok";
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const HealthOk$inboundSchema: z.ZodMiniType<HealthOk, unknown> = z
|
|
18
|
-
.object({
|
|
19
|
-
status: types.literal("ok"),
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export function healthOkFromJSON(
|
|
23
|
-
jsonString: string,
|
|
24
|
-
): SafeParseResult<HealthOk, SDKValidationError> {
|
|
25
|
-
return safeParse(
|
|
26
|
-
jsonString,
|
|
27
|
-
(x) => HealthOk$inboundSchema.parse(JSON.parse(x)),
|
|
28
|
-
`Failed to parse 'HealthOk' from JSON`,
|
|
29
|
-
);
|
|
30
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: c6cb209307c3
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4-mini";
|
|
7
|
-
import {
|
|
8
|
-
type ReleasesUploadSourceMapsRequest,
|
|
9
|
-
type ReleasesUploadSourceMapsRequest$Outbound,
|
|
10
|
-
ReleasesUploadSourceMapsRequest$outboundSchema,
|
|
11
|
-
} from "../releases-upload-source-maps-request.js";
|
|
12
|
-
|
|
13
|
-
export type UploadSourceMapsRequest = {
|
|
14
|
-
releaseSlug: string;
|
|
15
|
-
body: ReleasesUploadSourceMapsRequest;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export type UploadSourceMapsRequest$Outbound = {
|
|
20
|
-
releaseSlug: string;
|
|
21
|
-
body: ReleasesUploadSourceMapsRequest$Outbound;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const UploadSourceMapsRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
-
UploadSourceMapsRequest$Outbound,
|
|
27
|
-
UploadSourceMapsRequest
|
|
28
|
-
> = z.object({
|
|
29
|
-
releaseSlug: z.string(),
|
|
30
|
-
body: ReleasesUploadSourceMapsRequest$outboundSchema,
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export function uploadSourceMapsRequestToJSON(
|
|
34
|
-
uploadSourceMapsRequest: UploadSourceMapsRequest,
|
|
35
|
-
): string {
|
|
36
|
-
return JSON.stringify(
|
|
37
|
-
UploadSourceMapsRequest$outboundSchema.parse(uploadSourceMapsRequest),
|
|
38
|
-
);
|
|
39
|
-
}
|