@api-client/core 0.20.10 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/bin/test.ts +0 -16
- package/build/src/browser.d.ts +0 -19
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +0 -31
- package/build/src/browser.js.map +1 -1
- package/build/src/events/EventTypes.d.ts +0 -40
- package/build/src/events/EventTypes.d.ts.map +1 -1
- package/build/src/events/EventTypes.js +0 -8
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +0 -20
- package/build/src/events/Events.d.ts.map +1 -1
- package/build/src/events/Events.js +0 -8
- package/build/src/events/Events.js.map +1 -1
- package/build/src/events/index.d.ts +0 -3
- package/build/src/events/index.d.ts.map +1 -1
- package/build/src/events/index.js.map +1 -1
- package/build/src/index.d.ts +0 -31
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +0 -55
- package/build/src/index.js.map +1 -1
- package/build/src/lib/headers/Headers.d.ts +0 -9
- package/build/src/lib/headers/Headers.d.ts.map +1 -1
- package/build/src/lib/headers/Headers.js +0 -20
- package/build/src/lib/headers/Headers.js.map +1 -1
- package/build/src/mocking/lib/File.d.ts.map +1 -1
- package/build/src/mocking/lib/File.js +3 -5
- package/build/src/mocking/lib/File.js.map +1 -1
- package/build/src/mocking/lib/Trash.d.ts.map +1 -1
- package/build/src/mocking/lib/Trash.js +2 -8
- package/build/src/mocking/lib/Trash.js.map +1 -1
- package/build/src/models/Folder.d.ts +1 -1
- package/build/src/models/Folder.d.ts.map +1 -1
- package/build/src/models/Folder.js +3 -3
- package/build/src/models/Folder.js.map +1 -1
- package/build/src/models/index.d.ts +1 -51
- package/build/src/models/index.d.ts.map +1 -1
- package/build/src/models/index.js +1 -56
- package/build/src/models/index.js.map +1 -1
- package/build/src/models/kinds.d.ts +1 -6
- package/build/src/models/kinds.d.ts.map +1 -1
- package/build/src/models/kinds.js +1 -6
- package/build/src/models/kinds.js.map +1 -1
- package/build/src/sdk/FilesSdk.d.ts +8 -8
- package/build/src/sdk/FilesSdk.d.ts.map +1 -1
- package/build/src/sdk/FilesSdk.js +3 -3
- package/build/src/sdk/FilesSdk.js.map +1 -1
- package/build/src/sdk/HttpWeb.d.ts +1 -0
- package/build/src/sdk/HttpWeb.d.ts.map +1 -1
- package/build/src/sdk/HttpWeb.js +27 -2
- package/build/src/sdk/HttpWeb.js.map +1 -1
- package/build/src/sdk/RouteBuilder.d.ts +2 -2
- package/build/src/sdk/RouteBuilder.d.ts.map +1 -1
- package/build/src/sdk/RouteBuilder.js.map +1 -1
- package/build/src/sdk/Sdk.d.ts +0 -20
- package/build/src/sdk/Sdk.d.ts.map +1 -1
- package/build/src/sdk/Sdk.js +0 -15
- package/build/src/sdk/Sdk.js.map +1 -1
- package/build/src/sdk/SdkMock.js +1 -1
- package/build/src/sdk/SdkMock.js.map +1 -1
- package/build/src/sdk/SdkNetworkMock.d.ts +323 -0
- package/build/src/sdk/SdkNetworkMock.d.ts.map +1 -0
- package/build/src/sdk/SdkNetworkMock.js +1196 -0
- package/build/src/sdk/SdkNetworkMock.js.map +1 -0
- package/build/src/sdk/StoreSdkNode.d.ts +0 -2
- package/build/src/sdk/StoreSdkNode.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkNode.js +0 -2
- package/build/src/sdk/StoreSdkNode.js.map +1 -1
- package/build/src/sdk/StoreSdkWeb.d.ts +0 -2
- package/build/src/sdk/StoreSdkWeb.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkWeb.js +0 -2
- package/build/src/sdk/StoreSdkWeb.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -0
- package/eslint.config.js +0 -4
- package/knip.json +10 -0
- package/lupa.config.ts +43 -0
- package/package.json +25 -67
- package/src/events/EventTypes.ts +0 -8
- package/src/events/Events.ts +0 -8
- package/src/lib/headers/Headers.ts +0 -22
- package/src/mocking/lib/File.ts +3 -6
- package/src/mocking/lib/Trash.ts +2 -8
- package/src/models/Folder.ts +3 -3
- package/src/models/kinds.ts +1 -6
- package/src/sdk/FilesSdk.ts +10 -10
- package/src/sdk/HttpWeb.ts +27 -2
- package/src/sdk/RouteBuilder.ts +2 -2
- package/src/sdk/Sdk.ts +0 -21
- package/src/sdk/SdkMock.ts +1 -1
- package/src/sdk/SdkNetworkMock.ts +1607 -0
- package/src/sdk/StoreSdkNode.ts +0 -3
- package/src/sdk/StoreSdkWeb.ts +0 -3
- package/tests/client/env.ts +11 -0
- package/tests/client/lib/dom_purify.spec.ts +12 -0
- package/tests/client/sdk/DataCatalog.spec.ts +565 -0
- package/tests/client/sdk/Deployments.spec.ts +214 -0
- package/tests/client/sdk/FilesSdk.spec.ts +716 -0
- package/tests/client/sdk/groups.spec.ts +244 -0
- package/tests/client/sdk/network-mock/ai-mock.spec.ts +124 -0
- package/tests/client/sdk/network-mock/deployments-mock.spec.ts +182 -0
- package/tests/client/sdk/network-mock/files-mock.spec.ts +119 -0
- package/tests/client/sdk/network-mock/groups-mock.spec.ts +83 -0
- package/tests/client/sdk/network-mock/organizations-mock.spec.ts +129 -0
- package/tests/client/sdk/network-mock/shared-mock.spec.ts +25 -0
- package/tests/client/sdk/network-mock/trash-mock.spec.ts +43 -0
- package/tests/client/sdk/network-mock/users-mock.spec.ts +79 -0
- package/tests/client/sdk/organizations.spec.ts +2468 -0
- package/tests/client/src/platform.spec.ts +14 -0
- package/tests/unit/mocking/current/File.spec.ts +5 -5
- package/tests/unit/mocking/current/Trash.spec.ts +5 -5
- package/tests/unit/modeling/RuntimeApiModel.spec.ts +24 -4
- package/tests/unit/models/File/createFileCapabilities.spec.ts +3 -2
- package/tsconfig.build.json +8 -0
- package/RELEASE.md +0 -163
- package/RELEASE_SETUP.md +0 -237
- package/TESTING_SETUP.md +0 -198
- package/Testing.md +0 -21
- package/amf-models/dialects/ApiProjectVocabulary.yaml +0 -233
- package/amf-models/dialects/Environment.yaml +0 -38
- package/amf-models/dialects/HttpProject.yaml +0 -55
- package/amf-models/dialects/License.yaml +0 -31
- package/amf-models/dialects/ProjectFolder.yaml +0 -43
- package/amf-models/dialects/ProjectItem.yaml +0 -22
- package/amf-models/dialects/ProjectRequest.yaml +0 -23
- package/amf-models/dialects/ProjectSchema.yaml +0 -36
- package/amf-models/dialects/Property.yaml +0 -43
- package/amf-models/dialects/Provider.yaml +0 -32
- package/amf-models/dialects/Server.yaml +0 -31
- package/amf-models/dialects/Thing.yaml +0 -28
- package/bin/context.ts +0 -22
- package/bin/server.ts +0 -83
- package/build/src/authorization/AuthorizationError.d.ts +0 -24
- package/build/src/authorization/AuthorizationError.d.ts.map +0 -1
- package/build/src/authorization/AuthorizationError.js +0 -32
- package/build/src/authorization/AuthorizationError.js.map +0 -1
- package/build/src/authorization/CustomParameters.d.ts +0 -25
- package/build/src/authorization/CustomParameters.d.ts.map +0 -1
- package/build/src/authorization/CustomParameters.js +0 -61
- package/build/src/authorization/CustomParameters.js.map +0 -1
- package/build/src/authorization/OAuth2Authorization.d.ts +0 -333
- package/build/src/authorization/OAuth2Authorization.d.ts.map +0 -1
- package/build/src/authorization/OAuth2Authorization.js +0 -963
- package/build/src/authorization/OAuth2Authorization.js.map +0 -1
- package/build/src/authorization/OidcAuthorization.d.ts +0 -36
- package/build/src/authorization/OidcAuthorization.d.ts.map +0 -1
- package/build/src/authorization/OidcAuthorization.js +0 -146
- package/build/src/authorization/OidcAuthorization.js.map +0 -1
- package/build/src/authorization/Utils.d.ts +0 -52
- package/build/src/authorization/Utils.d.ts.map +0 -1
- package/build/src/authorization/Utils.js +0 -130
- package/build/src/authorization/Utils.js.map +0 -1
- package/build/src/authorization/index.d.ts +0 -10
- package/build/src/authorization/index.d.ts.map +0 -1
- package/build/src/authorization/index.js +0 -10
- package/build/src/authorization/index.js.map +0 -1
- package/build/src/authorization/lib/IframeAuthorization.d.ts +0 -54
- package/build/src/authorization/lib/IframeAuthorization.d.ts.map +0 -1
- package/build/src/authorization/lib/IframeAuthorization.js +0 -115
- package/build/src/authorization/lib/IframeAuthorization.js.map +0 -1
- package/build/src/authorization/lib/KnownGrants.d.ts +0 -7
- package/build/src/authorization/lib/KnownGrants.d.ts.map +0 -1
- package/build/src/authorization/lib/KnownGrants.js +0 -7
- package/build/src/authorization/lib/KnownGrants.js.map +0 -1
- package/build/src/authorization/lib/PopupAuthorization.d.ts +0 -42
- package/build/src/authorization/lib/PopupAuthorization.d.ts.map +0 -1
- package/build/src/authorization/lib/PopupAuthorization.js +0 -73
- package/build/src/authorization/lib/PopupAuthorization.js.map +0 -1
- package/build/src/authorization/lib/SecurityProcessor.d.ts +0 -67
- package/build/src/authorization/lib/SecurityProcessor.d.ts.map +0 -1
- package/build/src/authorization/lib/SecurityProcessor.js +0 -245
- package/build/src/authorization/lib/SecurityProcessor.js.map +0 -1
- package/build/src/authorization/lib/Tokens.d.ts +0 -56
- package/build/src/authorization/lib/Tokens.d.ts.map +0 -1
- package/build/src/authorization/lib/Tokens.js +0 -121
- package/build/src/authorization/lib/Tokens.js.map +0 -1
- package/build/src/authorization/lib/Utils.d.ts +0 -45
- package/build/src/authorization/lib/Utils.d.ts.map +0 -1
- package/build/src/authorization/lib/Utils.js +0 -91
- package/build/src/authorization/lib/Utils.js.map +0 -1
- package/build/src/authorization/types.d.ts +0 -196
- package/build/src/authorization/types.d.ts.map +0 -1
- package/build/src/authorization/types.js +0 -2
- package/build/src/authorization/types.js.map +0 -1
- package/build/src/cookies/CookieJar.d.ts +0 -24
- package/build/src/cookies/CookieJar.d.ts.map +0 -1
- package/build/src/cookies/CookieJar.js +0 -3
- package/build/src/cookies/CookieJar.js.map +0 -1
- package/build/src/cookies/CookieParser.d.ts +0 -81
- package/build/src/cookies/CookieParser.d.ts.map +0 -1
- package/build/src/cookies/CookieParser.js +0 -333
- package/build/src/cookies/CookieParser.js.map +0 -1
- package/build/src/cookies/InMemoryCookieJar.d.ts +0 -13
- package/build/src/cookies/InMemoryCookieJar.d.ts.map +0 -1
- package/build/src/cookies/InMemoryCookieJar.js +0 -68
- package/build/src/cookies/InMemoryCookieJar.js.map +0 -1
- package/build/src/cookies/Punycode.d.ts +0 -13
- package/build/src/cookies/Punycode.d.ts.map +0 -1
- package/build/src/cookies/Punycode.js +0 -127
- package/build/src/cookies/Punycode.js.map +0 -1
- package/build/src/data/DataExtractor.d.ts +0 -66
- package/build/src/data/DataExtractor.d.ts.map +0 -1
- package/build/src/data/DataExtractor.js +0 -178
- package/build/src/data/DataExtractor.js.map +0 -1
- package/build/src/data/DataReader.d.ts +0 -11
- package/build/src/data/DataReader.d.ts.map +0 -1
- package/build/src/data/DataReader.js +0 -4
- package/build/src/data/DataReader.js.map +0 -1
- package/build/src/data/JmespathReader.d.ts +0 -13
- package/build/src/data/JmespathReader.d.ts.map +0 -1
- package/build/src/data/JmespathReader.js +0 -27
- package/build/src/data/JmespathReader.js.map +0 -1
- package/build/src/data/Json2Xml.d.ts +0 -86
- package/build/src/data/Json2Xml.d.ts.map +0 -1
- package/build/src/data/Json2Xml.js +0 -187
- package/build/src/data/Json2Xml.js.map +0 -1
- package/build/src/data/JsonReader.d.ts +0 -9
- package/build/src/data/JsonReader.d.ts.map +0 -1
- package/build/src/data/JsonReader.js +0 -40
- package/build/src/data/JsonReader.js.map +0 -1
- package/build/src/data/PayloadPointer.d.ts +0 -22
- package/build/src/data/PayloadPointer.d.ts.map +0 -1
- package/build/src/data/PayloadPointer.js +0 -48
- package/build/src/data/PayloadPointer.js.map +0 -1
- package/build/src/data/RequestDataExtractor.d.ts +0 -49
- package/build/src/data/RequestDataExtractor.d.ts.map +0 -1
- package/build/src/data/RequestDataExtractor.js +0 -111
- package/build/src/data/RequestDataExtractor.js.map +0 -1
- package/build/src/data/UrlEncodedReader.d.ts +0 -13
- package/build/src/data/UrlEncodedReader.d.ts.map +0 -1
- package/build/src/data/UrlEncodedReader.js +0 -21
- package/build/src/data/UrlEncodedReader.js.map +0 -1
- package/build/src/data/XmlReader.d.ts +0 -15
- package/build/src/data/XmlReader.d.ts.map +0 -1
- package/build/src/data/XmlReader.js +0 -122
- package/build/src/data/XmlReader.js.map +0 -1
- package/build/src/data/index.d.ts +0 -10
- package/build/src/data/index.d.ts.map +0 -1
- package/build/src/data/index.js +0 -10
- package/build/src/data/index.js.map +0 -1
- package/build/src/events/authorization/AuthorizationEventTypes.d.ts +0 -23
- package/build/src/events/authorization/AuthorizationEventTypes.d.ts.map +0 -1
- package/build/src/events/authorization/AuthorizationEventTypes.js +0 -23
- package/build/src/events/authorization/AuthorizationEventTypes.js.map +0 -1
- package/build/src/events/authorization/AuthorizationEvents.d.ts +0 -35
- package/build/src/events/authorization/AuthorizationEvents.d.ts.map +0 -1
- package/build/src/events/authorization/AuthorizationEvents.js +0 -55
- package/build/src/events/authorization/AuthorizationEvents.js.map +0 -1
- package/build/src/events/cookies/CookieEventTypes.d.ts +0 -14
- package/build/src/events/cookies/CookieEventTypes.d.ts.map +0 -1
- package/build/src/events/cookies/CookieEventTypes.js +0 -14
- package/build/src/events/cookies/CookieEventTypes.js.map +0 -1
- package/build/src/events/cookies/CookieEvents.d.ts +0 -92
- package/build/src/events/cookies/CookieEvents.d.ts.map +0 -1
- package/build/src/events/cookies/CookieEvents.js +0 -128
- package/build/src/events/cookies/CookieEvents.js.map +0 -1
- package/build/src/events/environment/EnvironmentEventTypes.d.ts +0 -4
- package/build/src/events/environment/EnvironmentEventTypes.d.ts.map +0 -1
- package/build/src/events/environment/EnvironmentEventTypes.js +0 -4
- package/build/src/events/environment/EnvironmentEventTypes.js.map +0 -1
- package/build/src/events/environment/EnvironmentEvents.d.ts +0 -16
- package/build/src/events/environment/EnvironmentEvents.d.ts.map +0 -1
- package/build/src/events/environment/EnvironmentEvents.js +0 -20
- package/build/src/events/environment/EnvironmentEvents.js.map +0 -1
- package/build/src/events/transport/TransportEventTypes.d.ts +0 -30
- package/build/src/events/transport/TransportEventTypes.d.ts.map +0 -1
- package/build/src/events/transport/TransportEventTypes.js +0 -31
- package/build/src/events/transport/TransportEventTypes.js.map +0 -1
- package/build/src/events/transport/TransportEvents.d.ts +0 -63
- package/build/src/events/transport/TransportEvents.d.ts.map +0 -1
- package/build/src/events/transport/TransportEvents.js +0 -77
- package/build/src/events/transport/TransportEvents.js.map +0 -1
- package/build/src/legacy.d.ts +0 -40
- package/build/src/legacy.d.ts.map +0 -1
- package/build/src/legacy.js +0 -40
- package/build/src/legacy.js.map +0 -1
- package/build/src/lib/Buffer.d.ts +0 -21
- package/build/src/lib/Buffer.d.ts.map +0 -1
- package/build/src/lib/Buffer.js +0 -57
- package/build/src/lib/Buffer.js.map +0 -1
- package/build/src/lib/definitions/HttpDefinitions.d.ts +0 -35
- package/build/src/lib/definitions/HttpDefinitions.d.ts.map +0 -1
- package/build/src/lib/definitions/HttpDefinitions.js +0 -59
- package/build/src/lib/definitions/HttpDefinitions.js.map +0 -1
- package/build/src/lib/fs/Fs.d.ts +0 -53
- package/build/src/lib/fs/Fs.d.ts.map +0 -1
- package/build/src/lib/fs/Fs.js +0 -245
- package/build/src/lib/fs/Fs.js.map +0 -1
- package/build/src/lib/headers/HeadersData.d.ts +0 -36
- package/build/src/lib/headers/HeadersData.d.ts.map +0 -1
- package/build/src/lib/headers/HeadersData.js +0 -657
- package/build/src/lib/headers/HeadersData.js.map +0 -1
- package/build/src/lib/parsers/UriTemplate.d.ts +0 -110
- package/build/src/lib/parsers/UriTemplate.d.ts.map +0 -1
- package/build/src/lib/parsers/UriTemplate.js +0 -437
- package/build/src/lib/parsers/UriTemplate.js.map +0 -1
- package/build/src/lib/parsers/UrlEncoder.d.ts +0 -57
- package/build/src/lib/parsers/UrlEncoder.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlEncoder.js +0 -125
- package/build/src/lib/parsers/UrlEncoder.js.map +0 -1
- package/build/src/lib/parsers/UrlParser.d.ts +0 -105
- package/build/src/lib/parsers/UrlParser.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlParser.js +0 -190
- package/build/src/lib/parsers/UrlParser.js.map +0 -1
- package/build/src/lib/parsers/UrlProcessor.d.ts +0 -285
- package/build/src/lib/parsers/UrlProcessor.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlProcessor.js +0 -763
- package/build/src/lib/parsers/UrlProcessor.js.map +0 -1
- package/build/src/lib/parsers/UrlValueParser.d.ts +0 -93
- package/build/src/lib/parsers/UrlValueParser.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlValueParser.js +0 -172
- package/build/src/lib/parsers/UrlValueParser.js.map +0 -1
- package/build/src/lib/timers/Timers.d.ts +0 -15
- package/build/src/lib/timers/Timers.d.ts.map +0 -1
- package/build/src/lib/timers/Timers.js +0 -28
- package/build/src/lib/timers/Timers.js.map +0 -1
- package/build/src/lib/transformers/PayloadSerializer.d.ts +0 -221
- package/build/src/lib/transformers/PayloadSerializer.d.ts.map +0 -1
- package/build/src/lib/transformers/PayloadSerializer.js +0 -423
- package/build/src/lib/transformers/PayloadSerializer.js.map +0 -1
- package/build/src/mocking/LegacyInterfaces.d.ts +0 -47
- package/build/src/mocking/LegacyInterfaces.d.ts.map +0 -1
- package/build/src/mocking/LegacyInterfaces.js +0 -2
- package/build/src/mocking/LegacyInterfaces.js.map +0 -1
- package/build/src/mocking/LegacyMock.d.ts +0 -25
- package/build/src/mocking/LegacyMock.d.ts.map +0 -1
- package/build/src/mocking/LegacyMock.js +0 -34
- package/build/src/mocking/LegacyMock.js.map +0 -1
- package/build/src/mocking/ProjectMock.d.ts +0 -27
- package/build/src/mocking/ProjectMock.d.ts.map +0 -1
- package/build/src/mocking/ProjectMock.js +0 -31
- package/build/src/mocking/ProjectMock.js.map +0 -1
- package/build/src/mocking/legacy/Authorization.d.ts +0 -21
- package/build/src/mocking/legacy/Authorization.d.ts.map +0 -1
- package/build/src/mocking/legacy/Authorization.js +0 -35
- package/build/src/mocking/legacy/Authorization.js.map +0 -1
- package/build/src/mocking/legacy/Certificates.d.ts +0 -57
- package/build/src/mocking/legacy/Certificates.d.ts.map +0 -1
- package/build/src/mocking/legacy/Certificates.js +0 -128
- package/build/src/mocking/legacy/Certificates.js.map +0 -1
- package/build/src/mocking/legacy/Cookies.d.ts +0 -22
- package/build/src/mocking/legacy/Cookies.d.ts.map +0 -1
- package/build/src/mocking/legacy/Cookies.js +0 -48
- package/build/src/mocking/legacy/Cookies.js.map +0 -1
- package/build/src/mocking/legacy/HostRules.d.ts +0 -23
- package/build/src/mocking/legacy/HostRules.d.ts.map +0 -1
- package/build/src/mocking/legacy/HostRules.js +0 -40
- package/build/src/mocking/legacy/HostRules.js.map +0 -1
- package/build/src/mocking/legacy/Http.d.ts +0 -85
- package/build/src/mocking/legacy/Http.d.ts.map +0 -1
- package/build/src/mocking/legacy/Http.js +0 -199
- package/build/src/mocking/legacy/Http.js.map +0 -1
- package/build/src/mocking/legacy/HttpResponse.d.ts +0 -24
- package/build/src/mocking/legacy/HttpResponse.d.ts.map +0 -1
- package/build/src/mocking/legacy/HttpResponse.js +0 -98
- package/build/src/mocking/legacy/HttpResponse.js.map +0 -1
- package/build/src/mocking/legacy/RestApi.d.ts +0 -16
- package/build/src/mocking/legacy/RestApi.d.ts.map +0 -1
- package/build/src/mocking/legacy/RestApi.js +0 -63
- package/build/src/mocking/legacy/RestApi.js.map +0 -1
- package/build/src/mocking/legacy/Urls.d.ts +0 -22
- package/build/src/mocking/legacy/Urls.d.ts.map +0 -1
- package/build/src/mocking/legacy/Urls.js +0 -41
- package/build/src/mocking/legacy/Urls.js.map +0 -1
- package/build/src/mocking/legacy/Variables.d.ts +0 -19
- package/build/src/mocking/legacy/Variables.d.ts.map +0 -1
- package/build/src/mocking/legacy/Variables.js +0 -51
- package/build/src/mocking/legacy/Variables.js.map +0 -1
- package/build/src/mocking/lib/Certificates.d.ts +0 -28
- package/build/src/mocking/lib/Certificates.d.ts.map +0 -1
- package/build/src/mocking/lib/Certificates.js +0 -55
- package/build/src/mocking/lib/Certificates.js.map +0 -1
- package/build/src/mocking/lib/History.d.ts +0 -75
- package/build/src/mocking/lib/History.d.ts.map +0 -1
- package/build/src/mocking/lib/History.js +0 -128
- package/build/src/mocking/lib/History.js.map +0 -1
- package/build/src/mocking/lib/HostRules.d.ts +0 -23
- package/build/src/mocking/lib/HostRules.d.ts.map +0 -1
- package/build/src/mocking/lib/HostRules.js +0 -40
- package/build/src/mocking/lib/HostRules.js.map +0 -1
- package/build/src/mocking/lib/Request.d.ts +0 -44
- package/build/src/mocking/lib/Request.d.ts.map +0 -1
- package/build/src/mocking/lib/Request.js +0 -70
- package/build/src/mocking/lib/Request.js.map +0 -1
- package/build/src/mocking/lib/Response.d.ts +0 -38
- package/build/src/mocking/lib/Response.d.ts.map +0 -1
- package/build/src/mocking/lib/Response.js +0 -99
- package/build/src/mocking/lib/Response.js.map +0 -1
- package/build/src/mocking/lib/Url.d.ts +0 -22
- package/build/src/mocking/lib/Url.d.ts.map +0 -1
- package/build/src/mocking/lib/Url.js +0 -40
- package/build/src/mocking/lib/Url.js.map +0 -1
- package/build/src/models/Authorization.d.ts +0 -452
- package/build/src/models/Authorization.d.ts.map +0 -1
- package/build/src/models/Authorization.js +0 -2
- package/build/src/models/Authorization.js.map +0 -1
- package/build/src/models/AuthorizationData.d.ts +0 -30
- package/build/src/models/AuthorizationData.d.ts.map +0 -1
- package/build/src/models/AuthorizationData.js +0 -59
- package/build/src/models/AuthorizationData.js.map +0 -1
- package/build/src/models/CertificateFile.d.ts +0 -19
- package/build/src/models/CertificateFile.d.ts.map +0 -1
- package/build/src/models/CertificateFile.js +0 -70
- package/build/src/models/CertificateFile.js.map +0 -1
- package/build/src/models/ClientCertificate.d.ts +0 -188
- package/build/src/models/ClientCertificate.d.ts.map +0 -1
- package/build/src/models/ClientCertificate.js +0 -193
- package/build/src/models/ClientCertificate.js.map +0 -1
- package/build/src/models/Environment.d.ts +0 -134
- package/build/src/models/Environment.d.ts.map +0 -1
- package/build/src/models/Environment.js +0 -256
- package/build/src/models/Environment.js.map +0 -1
- package/build/src/models/ErrorResponse.d.ts +0 -37
- package/build/src/models/ErrorResponse.d.ts.map +0 -1
- package/build/src/models/ErrorResponse.js +0 -103
- package/build/src/models/ErrorResponse.js.map +0 -1
- package/build/src/models/HeadersArray.d.ts +0 -22
- package/build/src/models/HeadersArray.d.ts.map +0 -1
- package/build/src/models/HeadersArray.js +0 -58
- package/build/src/models/HeadersArray.js.map +0 -1
- package/build/src/models/HostRule.d.ts +0 -87
- package/build/src/models/HostRule.d.ts.map +0 -1
- package/build/src/models/HostRule.js +0 -142
- package/build/src/models/HostRule.js.map +0 -1
- package/build/src/models/HttpCookie.d.ts +0 -175
- package/build/src/models/HttpCookie.d.ts.map +0 -1
- package/build/src/models/HttpCookie.js +0 -343
- package/build/src/models/HttpCookie.js.map +0 -1
- package/build/src/models/HttpHistory.d.ts +0 -143
- package/build/src/models/HttpHistory.d.ts.map +0 -1
- package/build/src/models/HttpHistory.js +0 -179
- package/build/src/models/HttpHistory.js.map +0 -1
- package/build/src/models/HttpProject.d.ts +0 -540
- package/build/src/models/HttpProject.d.ts.map +0 -1
- package/build/src/models/HttpProject.js +0 -1237
- package/build/src/models/HttpProject.js.map +0 -1
- package/build/src/models/HttpRequest.d.ts +0 -88
- package/build/src/models/HttpRequest.d.ts.map +0 -1
- package/build/src/models/HttpRequest.js +0 -127
- package/build/src/models/HttpRequest.js.map +0 -1
- package/build/src/models/HttpResponse.d.ts +0 -54
- package/build/src/models/HttpResponse.d.ts.map +0 -1
- package/build/src/models/HttpResponse.js +0 -114
- package/build/src/models/HttpResponse.js.map +0 -1
- package/build/src/models/License.d.ts +0 -53
- package/build/src/models/License.d.ts.map +0 -1
- package/build/src/models/License.js +0 -91
- package/build/src/models/License.js.map +0 -1
- package/build/src/models/Project.d.ts +0 -27
- package/build/src/models/Project.d.ts.map +0 -1
- package/build/src/models/Project.js +0 -81
- package/build/src/models/Project.js.map +0 -1
- package/build/src/models/ProjectDefinitionProperty.d.ts +0 -35
- package/build/src/models/ProjectDefinitionProperty.d.ts.map +0 -1
- package/build/src/models/ProjectDefinitionProperty.js +0 -2
- package/build/src/models/ProjectDefinitionProperty.js.map +0 -1
- package/build/src/models/ProjectExecution.d.ts +0 -116
- package/build/src/models/ProjectExecution.d.ts.map +0 -1
- package/build/src/models/ProjectExecution.js +0 -147
- package/build/src/models/ProjectExecution.js.map +0 -1
- package/build/src/models/ProjectFolder.d.ts +0 -219
- package/build/src/models/ProjectFolder.d.ts.map +0 -1
- package/build/src/models/ProjectFolder.js +0 -341
- package/build/src/models/ProjectFolder.js.map +0 -1
- package/build/src/models/ProjectItem.d.ts +0 -68
- package/build/src/models/ProjectItem.d.ts.map +0 -1
- package/build/src/models/ProjectItem.js +0 -139
- package/build/src/models/ProjectItem.js.map +0 -1
- package/build/src/models/ProjectParent.d.ts +0 -27
- package/build/src/models/ProjectParent.d.ts.map +0 -1
- package/build/src/models/ProjectParent.js +0 -19
- package/build/src/models/ProjectParent.js.map +0 -1
- package/build/src/models/ProjectRequest.d.ts +0 -203
- package/build/src/models/ProjectRequest.d.ts.map +0 -1
- package/build/src/models/ProjectRequest.js +0 -440
- package/build/src/models/ProjectRequest.js.map +0 -1
- package/build/src/models/ProjectSchema.d.ts +0 -106
- package/build/src/models/ProjectSchema.d.ts.map +0 -1
- package/build/src/models/ProjectSchema.js +0 -156
- package/build/src/models/ProjectSchema.js.map +0 -1
- package/build/src/models/Property.d.ts +0 -140
- package/build/src/models/Property.d.ts.map +0 -1
- package/build/src/models/Property.js +0 -427
- package/build/src/models/Property.js.map +0 -1
- package/build/src/models/Provider.d.ts +0 -54
- package/build/src/models/Provider.d.ts.map +0 -1
- package/build/src/models/Provider.js +0 -75
- package/build/src/models/Provider.js.map +0 -1
- package/build/src/models/Request.d.ts +0 -175
- package/build/src/models/Request.d.ts.map +0 -1
- package/build/src/models/Request.js +0 -398
- package/build/src/models/Request.js.map +0 -1
- package/build/src/models/RequestAuthorization.d.ts +0 -58
- package/build/src/models/RequestAuthorization.d.ts.map +0 -1
- package/build/src/models/RequestAuthorization.js +0 -88
- package/build/src/models/RequestAuthorization.js.map +0 -1
- package/build/src/models/RequestConfig.d.ts +0 -174
- package/build/src/models/RequestConfig.d.ts.map +0 -1
- package/build/src/models/RequestConfig.js +0 -274
- package/build/src/models/RequestConfig.js.map +0 -1
- package/build/src/models/RequestLog.d.ts +0 -88
- package/build/src/models/RequestLog.d.ts.map +0 -1
- package/build/src/models/RequestLog.js +0 -158
- package/build/src/models/RequestLog.js.map +0 -1
- package/build/src/models/RequestTime.d.ts +0 -35
- package/build/src/models/RequestTime.d.ts.map +0 -1
- package/build/src/models/RequestTime.js +0 -89
- package/build/src/models/RequestTime.js.map +0 -1
- package/build/src/models/RequestUiMeta.d.ts +0 -166
- package/build/src/models/RequestUiMeta.d.ts.map +0 -1
- package/build/src/models/RequestUiMeta.js +0 -110
- package/build/src/models/RequestUiMeta.js.map +0 -1
- package/build/src/models/RequestsSize.d.ts +0 -33
- package/build/src/models/RequestsSize.d.ts.map +0 -1
- package/build/src/models/RequestsSize.js +0 -50
- package/build/src/models/RequestsSize.js.map +0 -1
- package/build/src/models/Response.d.ts +0 -61
- package/build/src/models/Response.d.ts.map +0 -1
- package/build/src/models/Response.js +0 -140
- package/build/src/models/Response.js.map +0 -1
- package/build/src/models/ResponseAuthorization.d.ts +0 -55
- package/build/src/models/ResponseAuthorization.d.ts.map +0 -1
- package/build/src/models/ResponseAuthorization.js +0 -82
- package/build/src/models/ResponseAuthorization.js.map +0 -1
- package/build/src/models/ResponseRedirect.d.ts +0 -72
- package/build/src/models/ResponseRedirect.d.ts.map +0 -1
- package/build/src/models/ResponseRedirect.js +0 -125
- package/build/src/models/ResponseRedirect.js.map +0 -1
- package/build/src/models/SentRequest.d.ts +0 -61
- package/build/src/models/SentRequest.d.ts.map +0 -1
- package/build/src/models/SentRequest.js +0 -91
- package/build/src/models/SentRequest.js.map +0 -1
- package/build/src/models/SerializablePayload.d.ts +0 -60
- package/build/src/models/SerializablePayload.d.ts.map +0 -1
- package/build/src/models/SerializablePayload.js +0 -79
- package/build/src/models/SerializablePayload.js.map +0 -1
- package/build/src/models/Server.d.ts +0 -89
- package/build/src/models/Server.d.ts.map +0 -1
- package/build/src/models/Server.js +0 -151
- package/build/src/models/Server.js.map +0 -1
- package/build/src/models/Url.d.ts +0 -50
- package/build/src/models/Url.d.ts.map +0 -1
- package/build/src/models/Url.js +0 -69
- package/build/src/models/Url.js.map +0 -1
- package/build/src/models/http-flows/AssertionError.d.ts +0 -37
- package/build/src/models/http-flows/AssertionError.d.ts.map +0 -1
- package/build/src/models/http-flows/AssertionError.js +0 -35
- package/build/src/models/http-flows/AssertionError.js.map +0 -1
- package/build/src/models/http-flows/HttpAssertion.d.ts +0 -86
- package/build/src/models/http-flows/HttpAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpAssertion.js +0 -53
- package/build/src/models/http-flows/HttpAssertion.js.map +0 -1
- package/build/src/models/http-flows/HttpFlows.d.ts +0 -78
- package/build/src/models/http-flows/HttpFlows.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpFlows.js +0 -35
- package/build/src/models/http-flows/HttpFlows.js.map +0 -1
- package/build/src/models/http-flows/HttpStep.d.ts +0 -30
- package/build/src/models/http-flows/HttpStep.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpStep.js +0 -30
- package/build/src/models/http-flows/HttpStep.js.map +0 -1
- package/build/src/models/http-flows/LegacyTranslator.d.ts +0 -18
- package/build/src/models/http-flows/LegacyTranslator.d.ts.map +0 -1
- package/build/src/models/http-flows/LegacyTranslator.js +0 -278
- package/build/src/models/http-flows/LegacyTranslator.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts +0 -75
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.js +0 -79
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts +0 -35
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js +0 -59
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts +0 -35
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js +0 -59
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts +0 -39
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js +0 -60
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts +0 -75
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js +0 -79
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts +0 -28
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/OkAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/OkAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts +0 -34
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js +0 -53
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/index.d.ts +0 -16
- package/build/src/models/http-flows/steps/assertion/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/index.js +0 -16
- package/build/src/models/http-flows/steps/assertion/index.js.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts +0 -49
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.js +0 -73
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts +0 -37
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js +0 -45
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts +0 -54
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js +0 -60
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts +0 -68
- package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataStep.js +0 -78
- package/build/src/models/http-flows/steps/data/ReadDataStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts +0 -46
- package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadValueStep.js +0 -53
- package/build/src/models/http-flows/steps/data/ReadValueStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts +0 -102
- package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetCookieStep.js +0 -139
- package/build/src/models/http-flows/steps/data/SetCookieStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetDataStep.d.ts +0 -78
- package/build/src/models/http-flows/steps/data/SetDataStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetDataStep.js +0 -70
- package/build/src/models/http-flows/steps/data/SetDataStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts +0 -41
- package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetVariableStep.js +0 -45
- package/build/src/models/http-flows/steps/data/SetVariableStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/index.d.ts +0 -9
- package/build/src/models/http-flows/steps/data/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/index.js +0 -9
- package/build/src/models/http-flows/steps/data/index.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts +0 -44
- package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/RoundStep.js +0 -53
- package/build/src/models/http-flows/steps/transformation/RoundStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts +0 -41
- package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/SubstringStep.js +0 -67
- package/build/src/models/http-flows/steps/transformation/SubstringStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts +0 -21
- package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/TrimStep.js +0 -30
- package/build/src/models/http-flows/steps/transformation/TrimStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/index.d.ts +0 -7
- package/build/src/models/http-flows/steps/transformation/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/index.js +0 -7
- package/build/src/models/http-flows/steps/transformation/index.js.map +0 -1
- package/build/src/models/legacy/DataExport.d.ts +0 -243
- package/build/src/models/legacy/DataExport.d.ts.map +0 -1
- package/build/src/models/legacy/DataExport.js +0 -2
- package/build/src/models/legacy/DataExport.js.map +0 -1
- package/build/src/models/legacy/Normalizer.d.ts +0 -12
- package/build/src/models/legacy/Normalizer.d.ts.map +0 -1
- package/build/src/models/legacy/Normalizer.js +0 -98
- package/build/src/models/legacy/Normalizer.js.map +0 -1
- package/build/src/models/legacy/actions/Actions.d.ts +0 -259
- package/build/src/models/legacy/actions/Actions.d.ts.map +0 -1
- package/build/src/models/legacy/actions/Actions.js +0 -2
- package/build/src/models/legacy/actions/Actions.js.map +0 -1
- package/build/src/models/legacy/authorization/Authorization.d.ts +0 -542
- package/build/src/models/legacy/authorization/Authorization.d.ts.map +0 -1
- package/build/src/models/legacy/authorization/Authorization.js +0 -2
- package/build/src/models/legacy/authorization/Authorization.js.map +0 -1
- package/build/src/models/legacy/models/ApiTypes.d.ts +0 -193
- package/build/src/models/legacy/models/ApiTypes.d.ts.map +0 -1
- package/build/src/models/legacy/models/ApiTypes.js +0 -2
- package/build/src/models/legacy/models/ApiTypes.js.map +0 -1
- package/build/src/models/legacy/models/ArcLegacyProject.d.ts +0 -38
- package/build/src/models/legacy/models/ArcLegacyProject.d.ts.map +0 -1
- package/build/src/models/legacy/models/ArcLegacyProject.js +0 -2
- package/build/src/models/legacy/models/ArcLegacyProject.js.map +0 -1
- package/build/src/models/legacy/models/AuthData.d.ts +0 -15
- package/build/src/models/legacy/models/AuthData.d.ts.map +0 -1
- package/build/src/models/legacy/models/AuthData.js +0 -2
- package/build/src/models/legacy/models/AuthData.js.map +0 -1
- package/build/src/models/legacy/models/ClientCertificate.d.ts +0 -90
- package/build/src/models/legacy/models/ClientCertificate.d.ts.map +0 -1
- package/build/src/models/legacy/models/ClientCertificate.js +0 -2
- package/build/src/models/legacy/models/ClientCertificate.js.map +0 -1
- package/build/src/models/legacy/models/Cookies.d.ts +0 -53
- package/build/src/models/legacy/models/Cookies.d.ts.map +0 -1
- package/build/src/models/legacy/models/Cookies.js +0 -2
- package/build/src/models/legacy/models/Cookies.js.map +0 -1
- package/build/src/models/legacy/models/HostRule.d.ts +0 -34
- package/build/src/models/legacy/models/HostRule.d.ts.map +0 -1
- package/build/src/models/legacy/models/HostRule.js +0 -2
- package/build/src/models/legacy/models/HostRule.js.map +0 -1
- package/build/src/models/legacy/models/RestApi.d.ts +0 -48
- package/build/src/models/legacy/models/RestApi.d.ts.map +0 -1
- package/build/src/models/legacy/models/RestApi.js +0 -2
- package/build/src/models/legacy/models/RestApi.js.map +0 -1
- package/build/src/models/legacy/models/UrlHistory.d.ts +0 -33
- package/build/src/models/legacy/models/UrlHistory.d.ts.map +0 -1
- package/build/src/models/legacy/models/UrlHistory.js +0 -2
- package/build/src/models/legacy/models/UrlHistory.js.map +0 -1
- package/build/src/models/legacy/models/Variable.d.ts +0 -37
- package/build/src/models/legacy/models/Variable.d.ts.map +0 -1
- package/build/src/models/legacy/models/Variable.js +0 -2
- package/build/src/models/legacy/models/Variable.js.map +0 -1
- package/build/src/models/legacy/models/base.d.ts +0 -91
- package/build/src/models/legacy/models/base.d.ts.map +0 -1
- package/build/src/models/legacy/models/base.js +0 -2
- package/build/src/models/legacy/models/base.js.map +0 -1
- package/build/src/models/legacy/request/ArcRequest.d.ts +0 -387
- package/build/src/models/legacy/request/ArcRequest.d.ts.map +0 -1
- package/build/src/models/legacy/request/ArcRequest.js +0 -2
- package/build/src/models/legacy/request/ArcRequest.js.map +0 -1
- package/build/src/models/legacy/request/ArcResponse.d.ts +0 -166
- package/build/src/models/legacy/request/ArcResponse.d.ts.map +0 -1
- package/build/src/models/legacy/request/ArcResponse.js +0 -2
- package/build/src/models/legacy/request/ArcResponse.js.map +0 -1
- package/build/src/models/legacy/request/HistoryData.d.ts +0 -45
- package/build/src/models/legacy/request/HistoryData.d.ts.map +0 -1
- package/build/src/models/legacy/request/HistoryData.js +0 -2
- package/build/src/models/legacy/request/HistoryData.js.map +0 -1
- package/build/src/models/legacy/request/Legacy.d.ts +0 -43
- package/build/src/models/legacy/request/Legacy.d.ts.map +0 -1
- package/build/src/models/legacy/request/Legacy.js +0 -2
- package/build/src/models/legacy/request/Legacy.js.map +0 -1
- package/build/src/models/legacy/request/RequestBody.d.ts +0 -83
- package/build/src/models/legacy/request/RequestBody.d.ts.map +0 -1
- package/build/src/models/legacy/request/RequestBody.js +0 -2
- package/build/src/models/legacy/request/RequestBody.js.map +0 -1
- package/build/src/models/transformers/ArcDexieTransformer.d.ts +0 -109
- package/build/src/models/transformers/ArcDexieTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcDexieTransformer.js +0 -249
- package/build/src/models/transformers/ArcDexieTransformer.js.map +0 -1
- package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +0 -43
- package/build/src/models/transformers/ArcLegacyNormalizer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcLegacyNormalizer.js +0 -79
- package/build/src/models/transformers/ArcLegacyNormalizer.js.map +0 -1
- package/build/src/models/transformers/ArcLegacyTransformer.d.ts +0 -86
- package/build/src/models/transformers/ArcLegacyTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcLegacyTransformer.js +0 -151
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +0 -1
- package/build/src/models/transformers/ArcPouchTransformer.d.ts +0 -46
- package/build/src/models/transformers/ArcPouchTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcPouchTransformer.js +0 -170
- package/build/src/models/transformers/ArcPouchTransformer.js.map +0 -1
- package/build/src/models/transformers/BaseTransformer.d.ts +0 -49
- package/build/src/models/transformers/BaseTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/BaseTransformer.js +0 -104
- package/build/src/models/transformers/BaseTransformer.js.map +0 -1
- package/build/src/models/transformers/ImportUtils.d.ts +0 -45
- package/build/src/models/transformers/ImportUtils.d.ts.map +0 -1
- package/build/src/models/transformers/ImportUtils.js +0 -131
- package/build/src/models/transformers/ImportUtils.js.map +0 -1
- package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +0 -16
- package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts.map +0 -1
- package/build/src/models/transformers/LegacyDataExportToApiProject.js +0 -70
- package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +0 -1
- package/build/src/models/transformers/LegacyExportProcessor.d.ts +0 -48
- package/build/src/models/transformers/LegacyExportProcessor.d.ts.map +0 -1
- package/build/src/models/transformers/LegacyExportProcessor.js +0 -214
- package/build/src/models/transformers/LegacyExportProcessor.js.map +0 -1
- package/build/src/models/transformers/PostmanBackupTransformer.d.ts +0 -97
- package/build/src/models/transformers/PostmanBackupTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanBackupTransformer.js +0 -185
- package/build/src/models/transformers/PostmanBackupTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanDataTransformer.d.ts +0 -10
- package/build/src/models/transformers/PostmanDataTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanDataTransformer.js +0 -50
- package/build/src/models/transformers/PostmanDataTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanTransformer.d.ts +0 -50
- package/build/src/models/transformers/PostmanTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanTransformer.js +0 -90
- package/build/src/models/transformers/PostmanTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanV21Transformer.d.ts +0 -129
- package/build/src/models/transformers/PostmanV21Transformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanV21Transformer.js +0 -196
- package/build/src/models/transformers/PostmanV21Transformer.js.map +0 -1
- package/build/src/models/transformers/PostmanV2Transformer.d.ts +0 -129
- package/build/src/models/transformers/PostmanV2Transformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanV2Transformer.js +0 -196
- package/build/src/models/transformers/PostmanV2Transformer.js.map +0 -1
- package/build/src/models/transformers/har.d.ts +0 -858
- package/build/src/models/transformers/har.d.ts.map +0 -1
- package/build/src/models/transformers/har.js +0 -2
- package/build/src/models/transformers/har.js.map +0 -1
- package/build/src/proxy/HttpProjectProxy.d.ts +0 -42
- package/build/src/proxy/HttpProjectProxy.d.ts.map +0 -1
- package/build/src/proxy/HttpProjectProxy.js +0 -132
- package/build/src/proxy/HttpProjectProxy.js.map +0 -1
- package/build/src/proxy/Proxy.d.ts +0 -27
- package/build/src/proxy/Proxy.d.ts.map +0 -1
- package/build/src/proxy/Proxy.js +0 -7
- package/build/src/proxy/Proxy.js.map +0 -1
- package/build/src/proxy/ProxyService.d.ts +0 -24
- package/build/src/proxy/ProxyService.d.ts.map +0 -1
- package/build/src/proxy/ProxyService.js +0 -29
- package/build/src/proxy/ProxyService.js.map +0 -1
- package/build/src/proxy/RequestProxy.d.ts +0 -52
- package/build/src/proxy/RequestProxy.d.ts.map +0 -1
- package/build/src/proxy/RequestProxy.js +0 -56
- package/build/src/proxy/RequestProxy.js.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine.d.ts +0 -299
- package/build/src/runtime/http-engine/CoreEngine.d.ts.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine.js +0 -928
- package/build/src/runtime/http-engine/CoreEngine.js.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine2.d.ts +0 -2
- package/build/src/runtime/http-engine/CoreEngine2.d.ts.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine2.js +0 -2
- package/build/src/runtime/http-engine/CoreEngine2.js.map +0 -1
- package/build/src/runtime/http-engine/FormData.d.ts +0 -50
- package/build/src/runtime/http-engine/FormData.d.ts.map +0 -1
- package/build/src/runtime/http-engine/FormData.js +0 -167
- package/build/src/runtime/http-engine/FormData.js.map +0 -1
- package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +0 -4
- package/build/src/runtime/http-engine/HttpErrorCodes.d.ts.map +0 -1
- package/build/src/runtime/http-engine/HttpErrorCodes.js +0 -166
- package/build/src/runtime/http-engine/HttpErrorCodes.js.map +0 -1
- package/build/src/runtime/http-engine/PayloadSupport.d.ts +0 -19
- package/build/src/runtime/http-engine/PayloadSupport.d.ts.map +0 -1
- package/build/src/runtime/http-engine/PayloadSupport.js +0 -80
- package/build/src/runtime/http-engine/PayloadSupport.js.map +0 -1
- package/build/src/runtime/http-engine/RequestUtils.d.ts +0 -66
- package/build/src/runtime/http-engine/RequestUtils.d.ts.map +0 -1
- package/build/src/runtime/http-engine/RequestUtils.js +0 -143
- package/build/src/runtime/http-engine/RequestUtils.js.map +0 -1
- package/build/src/runtime/http-engine/auth/AuthManager.d.ts +0 -73
- package/build/src/runtime/http-engine/auth/AuthManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/auth/AuthManager.js +0 -186
- package/build/src/runtime/http-engine/auth/AuthManager.js.map +0 -1
- package/build/src/runtime/http-engine/auth/index.d.ts +0 -2
- package/build/src/runtime/http-engine/auth/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/auth/index.js +0 -2
- package/build/src/runtime/http-engine/auth/index.js.map +0 -1
- package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts +0 -11
- package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/certificates/CertificateManager.js +0 -76
- package/build/src/runtime/http-engine/certificates/CertificateManager.js.map +0 -1
- package/build/src/runtime/http-engine/certificates/index.d.ts +0 -2
- package/build/src/runtime/http-engine/certificates/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/certificates/index.js +0 -2
- package/build/src/runtime/http-engine/certificates/index.js.map +0 -1
- package/build/src/runtime/http-engine/compression/CompressionManager.d.ts +0 -25
- package/build/src/runtime/http-engine/compression/CompressionManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/compression/CompressionManager.js +0 -89
- package/build/src/runtime/http-engine/compression/CompressionManager.js.map +0 -1
- package/build/src/runtime/http-engine/compression/index.d.ts +0 -2
- package/build/src/runtime/http-engine/compression/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/compression/index.js +0 -2
- package/build/src/runtime/http-engine/compression/index.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts +0 -57
- package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ConnectionManager.js +0 -78
- package/build/src/runtime/http-engine/connections/ConnectionManager.js.map +0 -1
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts +0 -70
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.js +0 -184
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.js.map +0 -1
- package/build/src/runtime/http-engine/connections/DirectConnection.d.ts +0 -22
- package/build/src/runtime/http-engine/connections/DirectConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/DirectConnection.js +0 -111
- package/build/src/runtime/http-engine/connections/DirectConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts +0 -60
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js +0 -138
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts +0 -14
- package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyConnection.js +0 -47
- package/build/src/runtime/http-engine/connections/ProxyConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts +0 -13
- package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/TunnelConnection.js +0 -175
- package/build/src/runtime/http-engine/connections/TunnelConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/index.d.ts +0 -7
- package/build/src/runtime/http-engine/connections/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/index.js +0 -7
- package/build/src/runtime/http-engine/connections/index.js.map +0 -1
- package/build/src/runtime/http-engine/constants.d.ts +0 -69
- package/build/src/runtime/http-engine/constants.d.ts.map +0 -1
- package/build/src/runtime/http-engine/constants.js +0 -90
- package/build/src/runtime/http-engine/constants.js.map +0 -1
- package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts +0 -5
- package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/cookies/CookieProcessor.js +0 -20
- package/build/src/runtime/http-engine/cookies/CookieProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/cookies/index.d.ts +0 -2
- package/build/src/runtime/http-engine/cookies/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/cookies/index.js +0 -2
- package/build/src/runtime/http-engine/cookies/index.js.map +0 -1
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts +0 -156
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts.map +0 -1
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.js +0 -227
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.js.map +0 -1
- package/build/src/runtime/http-engine/errors/index.d.ts +0 -2
- package/build/src/runtime/http-engine/errors/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/errors/index.js +0 -2
- package/build/src/runtime/http-engine/errors/index.js.map +0 -1
- package/build/src/runtime/http-engine/message/MessageBuilder.d.ts +0 -66
- package/build/src/runtime/http-engine/message/MessageBuilder.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/MessageBuilder.js +0 -161
- package/build/src/runtime/http-engine/message/MessageBuilder.js.map +0 -1
- package/build/src/runtime/http-engine/message/MessageProcessor.d.ts +0 -27
- package/build/src/runtime/http-engine/message/MessageProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/MessageProcessor.js +0 -51
- package/build/src/runtime/http-engine/message/MessageProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/message/index.d.ts +0 -3
- package/build/src/runtime/http-engine/message/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/index.js +0 -3
- package/build/src/runtime/http-engine/message/index.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/Des.d.ts +0 -5
- package/build/src/runtime/http-engine/ntlm/Des.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/Des.js +0 -361
- package/build/src/runtime/http-engine/ntlm/Des.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/MD4.d.ts +0 -14
- package/build/src/runtime/http-engine/ntlm/MD4.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/MD4.js +0 -122
- package/build/src/runtime/http-engine/ntlm/MD4.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +0 -21
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +0 -163
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +0 -11
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +0 -58
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/BodyParser.d.ts +0 -39
- package/build/src/runtime/http-engine/parsers/BodyParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/BodyParser.js +0 -145
- package/build/src/runtime/http-engine/parsers/BodyParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts +0 -29
- package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/HeadersParser.js +0 -88
- package/build/src/runtime/http-engine/parsers/HeadersParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts +0 -91
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.js +0 -236
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/StatusParser.d.ts +0 -20
- package/build/src/runtime/http-engine/parsers/StatusParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/StatusParser.js +0 -51
- package/build/src/runtime/http-engine/parsers/StatusParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/index.d.ts +0 -5
- package/build/src/runtime/http-engine/parsers/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/index.js +0 -5
- package/build/src/runtime/http-engine/parsers/index.js.map +0 -1
- package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts +0 -22
- package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/response/ResponseProcessor.js +0 -25
- package/build/src/runtime/http-engine/response/ResponseProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/response/index.d.ts +0 -2
- package/build/src/runtime/http-engine/response/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/response/index.js +0 -2
- package/build/src/runtime/http-engine/response/index.js.map +0 -1
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts +0 -7
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js +0 -40
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/statistics/index.d.ts +0 -2
- package/build/src/runtime/http-engine/statistics/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/statistics/index.js +0 -2
- package/build/src/runtime/http-engine/statistics/index.js.map +0 -1
- package/build/src/runtime/http-engine/url/UrlProcessor.d.ts +0 -24
- package/build/src/runtime/http-engine/url/UrlProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/url/UrlProcessor.js +0 -50
- package/build/src/runtime/http-engine/url/UrlProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/url/index.d.ts +0 -2
- package/build/src/runtime/http-engine/url/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/url/index.js +0 -2
- package/build/src/runtime/http-engine/url/index.js.map +0 -1
- package/build/src/runtime/http-runner/ConditionCheck.d.ts +0 -75
- package/build/src/runtime/http-runner/ConditionCheck.d.ts.map +0 -1
- package/build/src/runtime/http-runner/ConditionCheck.js +0 -185
- package/build/src/runtime/http-runner/ConditionCheck.js.map +0 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +0 -26
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.js +0 -180
- package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +0 -21
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpFlowRunner.js +0 -74
- package/build/src/runtime/http-runner/HttpFlowRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpFlows.d.ts +0 -120
- package/build/src/runtime/http-runner/HttpFlows.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpFlows.js +0 -568
- package/build/src/runtime/http-runner/HttpFlows.js.map +0 -1
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +0 -148
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpRequestRunner.js +0 -380
- package/build/src/runtime/http-runner/HttpRequestRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts +0 -26
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js +0 -2
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js.map +0 -1
- package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts +0 -26
- package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-runner/RequestCookiesProcessor.js +0 -66
- package/build/src/runtime/http-runner/RequestCookiesProcessor.js.map +0 -1
- package/build/src/runtime/node/BaseRunner.d.ts +0 -21
- package/build/src/runtime/node/BaseRunner.d.ts.map +0 -1
- package/build/src/runtime/node/BaseRunner.js +0 -27
- package/build/src/runtime/node/BaseRunner.js.map +0 -1
- package/build/src/runtime/node/InteropInterfaces.d.ts +0 -136
- package/build/src/runtime/node/InteropInterfaces.d.ts.map +0 -1
- package/build/src/runtime/node/InteropInterfaces.js +0 -2
- package/build/src/runtime/node/InteropInterfaces.js.map +0 -1
- package/build/src/runtime/node/ProjectParallelRunner.d.ts +0 -96
- package/build/src/runtime/node/ProjectParallelRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectParallelRunner.js +0 -253
- package/build/src/runtime/node/ProjectParallelRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRequestRunner.d.ts +0 -109
- package/build/src/runtime/node/ProjectRequestRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRequestRunner.js +0 -300
- package/build/src/runtime/node/ProjectRequestRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRunner.d.ts +0 -192
- package/build/src/runtime/node/ProjectRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRunner.js +0 -304
- package/build/src/runtime/node/ProjectRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRunnerWorker.d.ts +0 -2
- package/build/src/runtime/node/ProjectRunnerWorker.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRunnerWorker.js +0 -77
- package/build/src/runtime/node/ProjectRunnerWorker.js.map +0 -1
- package/build/src/runtime/node/ProjectSerialRunner.d.ts +0 -12
- package/build/src/runtime/node/ProjectSerialRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectSerialRunner.js +0 -37
- package/build/src/runtime/node/ProjectSerialRunner.js.map +0 -1
- package/build/src/runtime/node/enums.d.ts +0 -9
- package/build/src/runtime/node/enums.d.ts.map +0 -1
- package/build/src/runtime/node/enums.js +0 -10
- package/build/src/runtime/node/enums.js.map +0 -1
- package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts +0 -8
- package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts.map +0 -1
- package/build/src/runtime/reporters/ProjectRunCliReporter.js +0 -75
- package/build/src/runtime/reporters/ProjectRunCliReporter.js.map +0 -1
- package/build/src/runtime/reporters/Reporter.d.ts +0 -36
- package/build/src/runtime/reporters/Reporter.d.ts.map +0 -1
- package/build/src/runtime/reporters/Reporter.js +0 -98
- package/build/src/runtime/reporters/Reporter.js.map +0 -1
- package/build/src/runtime/variables/Cache.d.ts +0 -24
- package/build/src/runtime/variables/Cache.d.ts.map +0 -1
- package/build/src/runtime/variables/Cache.js +0 -51
- package/build/src/runtime/variables/Cache.js.map +0 -1
- package/build/src/runtime/variables/EvalFunctions.d.ts +0 -59
- package/build/src/runtime/variables/EvalFunctions.d.ts.map +0 -1
- package/build/src/runtime/variables/EvalFunctions.js +0 -126
- package/build/src/runtime/variables/EvalFunctions.js.map +0 -1
- package/build/src/runtime/variables/ProjectVariables.d.ts +0 -6
- package/build/src/runtime/variables/ProjectVariables.d.ts.map +0 -1
- package/build/src/runtime/variables/ProjectVariables.js +0 -7
- package/build/src/runtime/variables/ProjectVariables.js.map +0 -1
- package/build/src/runtime/variables/VariablesProcessor.d.ts +0 -169
- package/build/src/runtime/variables/VariablesProcessor.d.ts.map +0 -1
- package/build/src/runtime/variables/VariablesProcessor.js +0 -518
- package/build/src/runtime/variables/VariablesProcessor.js.map +0 -1
- package/build/src/runtime/variables/VariablesTokenizer.d.ts +0 -27
- package/build/src/runtime/variables/VariablesTokenizer.d.ts.map +0 -1
- package/build/src/runtime/variables/VariablesTokenizer.js +0 -53
- package/build/src/runtime/variables/VariablesTokenizer.js.map +0 -1
- package/build/src/sdk/HistorySdk.d.ts +0 -60
- package/build/src/sdk/HistorySdk.d.ts.map +0 -1
- package/build/src/sdk/HistorySdk.js +0 -243
- package/build/src/sdk/HistorySdk.js.map +0 -1
- package/build/src/sdk/ProjectExecutionsSdk.d.ts +0 -56
- package/build/src/sdk/ProjectExecutionsSdk.d.ts.map +0 -1
- package/build/src/sdk/ProjectExecutionsSdk.js +0 -114
- package/build/src/sdk/ProjectExecutionsSdk.js.map +0 -1
- package/build/src/sdk/WsClient.d.ts +0 -25
- package/build/src/sdk/WsClient.d.ts.map +0 -1
- package/build/src/sdk/WsClient.js +0 -4
- package/build/src/sdk/WsClient.js.map +0 -1
- package/build/src/sdk/WsClientNode.d.ts +0 -25
- package/build/src/sdk/WsClientNode.d.ts.map +0 -1
- package/build/src/sdk/WsClientNode.js +0 -66
- package/build/src/sdk/WsClientNode.js.map +0 -1
- package/build/src/sdk/WsClientWeb.d.ts +0 -24
- package/build/src/sdk/WsClientWeb.d.ts.map +0 -1
- package/build/src/sdk/WsClientWeb.js +0 -73
- package/build/src/sdk/WsClientWeb.js.map +0 -1
- package/build/src/testing/TestCliHelper.d.ts +0 -30
- package/build/src/testing/TestCliHelper.d.ts.map +0 -1
- package/build/src/testing/TestCliHelper.js +0 -83
- package/build/src/testing/TestCliHelper.js.map +0 -1
- package/build/src/testing/getPort.d.ts +0 -52
- package/build/src/testing/getPort.d.ts.map +0 -1
- package/build/src/testing/getPort.js +0 -169
- package/build/src/testing/getPort.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/noop.ts +0 -3
- package/oauth-popup.html +0 -33
- package/skills-lock.json +0 -10
- package/src/authorization/AuthorizationError.ts +0 -32
- package/src/authorization/CustomParameters.ts +0 -66
- package/src/authorization/OAuth2Authorization.ts +0 -1013
- package/src/authorization/OidcAuthorization.ts +0 -158
- package/src/authorization/Utils.ts +0 -136
- package/src/authorization/lib/IframeAuthorization.ts +0 -127
- package/src/authorization/lib/KnownGrants.ts +0 -6
- package/src/authorization/lib/PopupAuthorization.ts +0 -80
- package/src/authorization/lib/SecurityProcessor.ts +0 -294
- package/src/authorization/lib/Tokens.ts +0 -135
- package/src/authorization/lib/Utils.ts +0 -95
- package/src/authorization/types.ts +0 -197
- package/src/cookies/CookieJar.ts +0 -26
- package/src/cookies/CookieParser.ts +0 -353
- package/src/cookies/InMemoryCookieJar.ts +0 -70
- package/src/cookies/Punycode.ts +0 -134
- package/src/data/DataExtractor.ts +0 -200
- package/src/data/DataReader.ts +0 -11
- package/src/data/JmespathReader.ts +0 -26
- package/src/data/Json2Xml.ts +0 -192
- package/src/data/JsonReader.ts +0 -41
- package/src/data/PayloadPointer.ts +0 -50
- package/src/data/RequestDataExtractor.ts +0 -124
- package/src/data/UrlEncodedReader.ts +0 -21
- package/src/data/XmlReader.ts +0 -128
- package/src/events/authorization/AuthorizationEventTypes.ts +0 -22
- package/src/events/authorization/AuthorizationEvents.ts +0 -74
- package/src/events/cookies/CookieEventTypes.ts +0 -13
- package/src/events/cookies/CookieEvents.ts +0 -168
- package/src/events/environment/EnvironmentEventTypes.ts +0 -3
- package/src/events/environment/EnvironmentEvents.ts +0 -25
- package/src/events/transport/TransportEventTypes.ts +0 -32
- package/src/events/transport/TransportEvents.ts +0 -105
- package/src/lib/Buffer.ts +0 -62
- package/src/lib/definitions/HttpDefinitions.ts +0 -68
- package/src/lib/fs/Fs.ts +0 -258
- package/src/lib/headers/HeadersData.ts +0 -692
- package/src/lib/parsers/UriTemplate.ts +0 -533
- package/src/lib/parsers/UrlEncoder.ts +0 -129
- package/src/lib/parsers/UrlParser.ts +0 -202
- package/src/lib/parsers/UrlProcessor.ts +0 -882
- package/src/lib/parsers/UrlValueParser.ts +0 -213
- package/src/lib/timers/Timers.ts +0 -27
- package/src/lib/transformers/PayloadSerializer.ts +0 -538
- package/src/mocking/LegacyInterfaces.ts +0 -51
- package/src/mocking/LegacyMock.ts +0 -37
- package/src/mocking/ProjectMock.ts +0 -38
- package/src/mocking/README.md +0 -40
- package/src/mocking/legacy/Authorization.ts +0 -40
- package/src/mocking/legacy/Certificates.ts +0 -148
- package/src/mocking/legacy/Cookies.ts +0 -53
- package/src/mocking/legacy/HostRules.ts +0 -45
- package/src/mocking/legacy/Http.ts +0 -248
- package/src/mocking/legacy/HttpResponse.ts +0 -107
- package/src/mocking/legacy/RestApi.ts +0 -70
- package/src/mocking/legacy/Urls.ts +0 -46
- package/src/mocking/legacy/Variables.ts +0 -54
- package/src/mocking/lib/Certificates.ts +0 -64
- package/src/mocking/lib/History.ts +0 -187
- package/src/mocking/lib/HostRules.ts +0 -45
- package/src/mocking/lib/Request.ts +0 -100
- package/src/mocking/lib/Response.ts +0 -121
- package/src/mocking/lib/Url.ts +0 -45
- package/src/models/Authorization.ts +0 -502
- package/src/models/AuthorizationData.ts +0 -67
- package/src/models/CertificateFile.ts +0 -79
- package/src/models/ClientCertificate.ts +0 -328
- package/src/models/Environment.ts +0 -309
- package/src/models/ErrorResponse.ts +0 -115
- package/src/models/HeadersArray.ts +0 -63
- package/src/models/HostRule.ts +0 -178
- package/src/models/HttpCookie.ts +0 -459
- package/src/models/HttpHistory.ts +0 -256
- package/src/models/HttpProject.ts +0 -1533
- package/src/models/HttpRequest.ts +0 -166
- package/src/models/HttpResponse.ts +0 -136
- package/src/models/License.ts +0 -113
- package/src/models/Project.ts +0 -93
- package/src/models/ProjectDefinitionProperty.ts +0 -40
- package/src/models/ProjectExecution.ts +0 -225
- package/src/models/ProjectFolder.ts +0 -440
- package/src/models/ProjectItem.ts +0 -158
- package/src/models/ProjectParent.ts +0 -34
- package/src/models/ProjectRequest.ts +0 -522
- package/src/models/ProjectSchema.ts +0 -202
- package/src/models/Property.ts +0 -517
- package/src/models/Provider.ts +0 -99
- package/src/models/Request.ts +0 -475
- package/src/models/RequestAuthorization.ts +0 -122
- package/src/models/RequestConfig.ts +0 -368
- package/src/models/RequestLog.ts +0 -193
- package/src/models/RequestTime.ts +0 -105
- package/src/models/RequestUiMeta.ts +0 -248
- package/src/models/RequestsSize.ts +0 -63
- package/src/models/Response.ts +0 -163
- package/src/models/ResponseAuthorization.ts +0 -104
- package/src/models/ResponseRedirect.ts +0 -156
- package/src/models/SentRequest.ts +0 -122
- package/src/models/SerializablePayload.ts +0 -122
- package/src/models/Server.ts +0 -183
- package/src/models/Url.ts +0 -87
- package/src/models/http-flows/AssertionError.ts +0 -57
- package/src/models/http-flows/HttpAssertion.ts +0 -90
- package/src/models/http-flows/HttpFlows.ts +0 -82
- package/src/models/http-flows/HttpStep.ts +0 -50
- package/src/models/http-flows/LegacyTranslator.ts +0 -303
- package/src/models/http-flows/steps/assertion/EqualAssertion.ts +0 -124
- package/src/models/http-flows/steps/assertion/GreaterThanAssertion.ts +0 -81
- package/src/models/http-flows/steps/assertion/IncludesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/IsEmptyAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/LengthOfAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/LessThanAssertion.ts +0 -81
- package/src/models/http-flows/steps/assertion/MatchesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.ts +0 -87
- package/src/models/http-flows/steps/assertion/NotEqualAssertion.ts +0 -124
- package/src/models/http-flows/steps/assertion/NotIncludesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/NotOkAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/NotToBeAssertion.ts +0 -63
- package/src/models/http-flows/steps/assertion/OkAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/ToBeAssertion.ts +0 -70
- package/src/models/http-flows/steps/data/DeleteCookieStep.ts +0 -108
- package/src/models/http-flows/steps/data/DeleteVariableStep.ts +0 -78
- package/src/models/http-flows/steps/data/ReadDataSourceStep.ts +0 -104
- package/src/models/http-flows/steps/data/ReadDataStep.ts +0 -133
- package/src/models/http-flows/steps/data/ReadValueStep.ts +0 -89
- package/src/models/http-flows/steps/data/SetCookieStep.ts +0 -208
- package/src/models/http-flows/steps/data/SetDataStep.ts +0 -125
- package/src/models/http-flows/steps/data/SetVariableStep.ts +0 -82
- package/src/models/http-flows/steps/transformation/AsLowerCaseStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/AsNumberStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/AsUpperCaseStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/RoundStep.ts +0 -87
- package/src/models/http-flows/steps/transformation/SubstringStep.ts +0 -96
- package/src/models/http-flows/steps/transformation/TrimStep.ts +0 -43
- package/src/models/legacy/DataExport.ts +0 -254
- package/src/models/legacy/Normalizer.ts +0 -107
- package/src/models/legacy/actions/Actions.ts +0 -277
- package/src/models/legacy/authorization/Authorization.ts +0 -581
- package/src/models/legacy/models/ApiTypes.ts +0 -202
- package/src/models/legacy/models/ArcLegacyProject.ts +0 -38
- package/src/models/legacy/models/AuthData.ts +0 -15
- package/src/models/legacy/models/ClientCertificate.ts +0 -93
- package/src/models/legacy/models/Cookies.ts +0 -52
- package/src/models/legacy/models/HostRule.ts +0 -35
- package/src/models/legacy/models/RestApi.ts +0 -49
- package/src/models/legacy/models/UrlHistory.ts +0 -33
- package/src/models/legacy/models/Variable.ts +0 -40
- package/src/models/legacy/models/base.ts +0 -95
- package/src/models/legacy/request/ArcRequest.ts +0 -405
- package/src/models/legacy/request/ArcResponse.ts +0 -177
- package/src/models/legacy/request/HistoryData.ts +0 -47
- package/src/models/legacy/request/RequestBody.ts +0 -87
- package/src/models/transformers/ArcDexieTransformer.ts +0 -323
- package/src/models/transformers/ArcLegacyNormalizer.ts +0 -84
- package/src/models/transformers/ArcLegacyTransformer.ts +0 -196
- package/src/models/transformers/ArcPouchTransformer.ts +0 -184
- package/src/models/transformers/BaseTransformer.ts +0 -113
- package/src/models/transformers/ImportUtils.ts +0 -135
- package/src/models/transformers/LegacyDataExportToApiProject.ts +0 -76
- package/src/models/transformers/LegacyExportProcessor.ts +0 -248
- package/src/models/transformers/PostmanBackupTransformer.ts +0 -303
- package/src/models/transformers/PostmanDataTransformer.ts +0 -54
- package/src/models/transformers/PostmanTransformer.ts +0 -113
- package/src/models/transformers/PostmanV21Transformer.ts +0 -317
- package/src/models/transformers/PostmanV2Transformer.ts +0 -317
- package/src/models/transformers/har.ts +0 -865
- package/src/proxy/HttpProjectProxy.ts +0 -169
- package/src/proxy/Proxy.ts +0 -30
- package/src/proxy/ProxyService.ts +0 -37
- package/src/proxy/RequestProxy.ts +0 -101
- package/src/proxy/readme.md +0 -8
- package/src/runtime/http-engine/CoreEngine.ts +0 -1084
- package/src/runtime/http-engine/CoreEngine2.ts +0 -0
- package/src/runtime/http-engine/FormData.ts +0 -200
- package/src/runtime/http-engine/HttpErrorCodes.ts +0 -176
- package/src/runtime/http-engine/PayloadSupport.ts +0 -93
- package/src/runtime/http-engine/RequestUtils.ts +0 -162
- package/src/runtime/http-engine/auth/AuthManager.ts +0 -242
- package/src/runtime/http-engine/certificates/CertificateManager.ts +0 -74
- package/src/runtime/http-engine/compression/CompressionManager.ts +0 -99
- package/src/runtime/http-engine/connections/ConnectionManager.ts +0 -123
- package/src/runtime/http-engine/connections/DigestAuthHandler.ts +0 -238
- package/src/runtime/http-engine/connections/DirectConnection.ts +0 -138
- package/src/runtime/http-engine/connections/ProxyAuthHandler.ts +0 -179
- package/src/runtime/http-engine/connections/ProxyConnection.ts +0 -55
- package/src/runtime/http-engine/connections/TunnelConnection.ts +0 -192
- package/src/runtime/http-engine/constants.ts +0 -103
- package/src/runtime/http-engine/cookies/CookieProcessor.ts +0 -25
- package/src/runtime/http-engine/errors/HttpEngineErrors.ts +0 -319
- package/src/runtime/http-engine/message/MessageBuilder.ts +0 -201
- package/src/runtime/http-engine/message/MessageProcessor.ts +0 -73
- package/src/runtime/http-engine/ntlm/Des.ts +0 -372
- package/src/runtime/http-engine/ntlm/MD4.ts +0 -137
- package/src/runtime/http-engine/ntlm/NtlmAuth.ts +0 -187
- package/src/runtime/http-engine/ntlm/NtlmMessage.ts +0 -64
- package/src/runtime/http-engine/parsers/BodyParser.ts +0 -171
- package/src/runtime/http-engine/parsers/HeadersParser.ts +0 -103
- package/src/runtime/http-engine/parsers/HttpResponseParser.ts +0 -280
- package/src/runtime/http-engine/parsers/StatusParser.ts +0 -69
- package/src/runtime/http-engine/response/ResponseProcessor.ts +0 -46
- package/src/runtime/http-engine/statistics/StatisticsProcessor.ts +0 -52
- package/src/runtime/http-engine/url/UrlProcessor.ts +0 -55
- package/src/runtime/http-runner/ConditionCheck.ts +0 -193
- package/src/runtime/http-runner/HttpAssertionRunner.ts +0 -204
- package/src/runtime/http-runner/HttpFlowRunner.ts +0 -105
- package/src/runtime/http-runner/HttpFlows.ts +0 -649
- package/src/runtime/http-runner/HttpRequestRunner.ts +0 -427
- package/src/runtime/http-runner/HttpRuntimeEnvironment.ts +0 -27
- package/src/runtime/http-runner/RequestCookiesProcessor.ts +0 -80
- package/src/runtime/node/BaseRunner.ts +0 -29
- package/src/runtime/node/InteropInterfaces.ts +0 -143
- package/src/runtime/node/ProjectParallelRunner.ts +0 -321
- package/src/runtime/node/ProjectRequestRunner.ts +0 -364
- package/src/runtime/node/ProjectRunner.ts +0 -395
- package/src/runtime/node/ProjectRunnerWorker.ts +0 -83
- package/src/runtime/node/ProjectSerialRunner.ts +0 -37
- package/src/runtime/node/enums.ts +0 -8
- package/src/runtime/reporters/ProjectRunCliReporter.ts +0 -81
- package/src/runtime/reporters/Reporter.ts +0 -113
- package/src/runtime/variables/Cache.ts +0 -53
- package/src/runtime/variables/EvalFunctions.ts +0 -135
- package/src/runtime/variables/ProjectVariables.ts +0 -5
- package/src/runtime/variables/VariablesProcessor.ts +0 -555
- package/src/runtime/variables/VariablesTokenizer.ts +0 -55
- package/src/sdk/HistorySdk.ts +0 -272
- package/src/sdk/ProjectExecutionsSdk.ts +0 -135
- package/src/sdk/WsClient.ts +0 -28
- package/src/sdk/WsClientNode.ts +0 -68
- package/src/sdk/WsClientWeb.ts +0 -75
- package/src/testing/TestCliHelper.ts +0 -93
- package/src/testing/getPort.ts +0 -215
- package/tests/resources/http/drive-list.ts +0 -575
- package/tests/resources/http/html.html +0 -317
- package/tests/resources/http/jpeg.jpg +0 -0
- package/tests/resources/http/json.json +0 -187
- package/tests/resources/http/png.png +0 -0
- package/tests/resources/http/svg.svg +0 -3
- package/tests/resources/http/webp.webp +0 -0
- package/tests/resources/http/xml.xml +0 -211
- package/tests/resources/ssl/cert-auth-server/alice-password.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/alice-password.txt +0 -1
- package/tests/resources/ssl/cert-auth-server/alice.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/alice_cert.pem +0 -28
- package/tests/resources/ssl/cert-auth-server/alice_csr.pem +0 -26
- package/tests/resources/ssl/cert-auth-server/alice_key.pem +0 -52
- package/tests/resources/ssl/cert-auth-server/bob-password.txt +0 -1
- package/tests/resources/ssl/cert-auth-server/bob.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/bob_cert.pem +0 -27
- package/tests/resources/ssl/cert-auth-server/bob_csr.pem +0 -26
- package/tests/resources/ssl/cert-auth-server/bob_key.pem +0 -52
- package/tests/resources/ssl/cert-auth-server/create.sh +0 -17
- package/tests/resources/ssl/cert-auth-server/server_cert.pem +0 -31
- package/tests/resources/ssl/cert-auth-server/server_key.pem +0 -52
- package/tests/resources/ssl/certs/ca.cert.pem +0 -23
- package/tests/resources/ssl/certs/ca.privkey.pem +0 -27
- package/tests/resources/ssl/certs/ca.srl +0 -1
- package/tests/resources/ssl/certs/cert.pem +0 -20
- package/tests/resources/ssl/certs/csr.pem +0 -17
- package/tests/resources/ssl/certs/fullchain.pem +0 -43
- package/tests/resources/ssl/certs/privkey.pem +0 -27
- package/tests/resources/ssl/certs/root-ca.crt +0 -0
- package/tests/servers/ExpressServer.ts +0 -124
- package/tests/servers/ProxyServer.ts +0 -374
- package/tests/servers/cert-helper.ts +0 -2
- package/tests/servers/express-routes/ApiEndpoint.ts +0 -24
- package/tests/servers/express-routes/BaseApi.ts +0 -106
- package/tests/servers/express-routes/BasicAuthRoute.ts +0 -36
- package/tests/servers/express-routes/BearerAuthRoute.ts +0 -35
- package/tests/servers/express-routes/CertificatesApi.ts +0 -46
- package/tests/servers/express-routes/CompressApi.ts +0 -71
- package/tests/servers/express-routes/CookieApi.ts +0 -20
- package/tests/servers/express-routes/DelayRoute.ts +0 -28
- package/tests/servers/express-routes/GetApi.ts +0 -58
- package/tests/servers/express-routes/HeadersApi.ts +0 -17
- package/tests/servers/express-routes/ImagesApi.ts +0 -44
- package/tests/servers/express-routes/NTLMRoute.ts +0 -29
- package/tests/servers/express-routes/PostApi.ts +0 -31
- package/tests/servers/express-routes/QueryParamsApi.ts +0 -17
- package/tests/servers/express-routes/RedirectsApi.ts +0 -139
- package/tests/servers/express-routes/ResponsesApi.ts +0 -68
- package/tests/servers/express-routes/StatusCodeApi.ts +0 -38
- package/tests/servers/express-routes/StreamApi.ts +0 -60
- package/tests/servers/express-routes/TestsApi.ts +0 -47
- package/tests/servers/oauth2mock/ServerMock.js +0 -454
- package/tests/servers/ssl.ts +0 -93
- package/tests/unit/authorization/SecurityProcessor.spec.ts +0 -538
- package/tests/unit/cookies/CookieParser.spec.ts +0 -354
- package/tests/unit/cookies/InMemoryCookieJar.spec.ts +0 -112
- package/tests/unit/data/JmesparthReader.spec.ts +0 -36
- package/tests/unit/data/Json2Xml.spec.ts +0 -178
- package/tests/unit/data/JsonReader.spec.ts +0 -82
- package/tests/unit/data/PayloadPointer.spec.ts +0 -56
- package/tests/unit/data/RequestDataExtractor.spec.ts +0 -469
- package/tests/unit/data/UrlEncodedReader.spec.ts +0 -12
- package/tests/unit/data/XmlReader.spec.ts +0 -84
- package/tests/unit/events/authorization.spec.ts +0 -150
- package/tests/unit/events/cookie.spec.ts +0 -274
- package/tests/unit/events/transport.spec.ts +0 -139
- package/tests/unit/legacy-transformers/ARC-legacy-import.spec.ts +0 -150
- package/tests/unit/legacy-transformers/ArcDexieTransformer.spec.ts +0 -194
- package/tests/unit/legacy-transformers/ArcLegacyTransformer.spec.ts +0 -112
- package/tests/unit/legacy-transformers/ArcPouchTransformer.spec.ts +0 -245
- package/tests/unit/legacy-transformers/DataTestHelper.ts +0 -50
- package/tests/unit/legacy-transformers/LegacyExportProcessor.spec.ts +0 -450
- package/tests/unit/legacy-transformers/data/arc-pouchdb.json +0 -396
- package/tests/unit/legacy-transformers/data/dexie-data-export.json +0 -890
- package/tests/unit/legacy-transformers/data/dexie-history-export.json +0 -877
- package/tests/unit/legacy-transformers/data/dexie-saved-export.json +0 -385
- package/tests/unit/legacy-transformers/data/legacy-data-import.json +0 -51
- package/tests/unit/legacy-transformers/data/legacy-request-import.json +0 -20
- package/tests/unit/legacy-transformers/data/pouch-data-export.json +0 -242
- package/tests/unit/lib/UriTemplate.spec.ts +0 -418
- package/tests/unit/lib/UrlEncoder.spec.ts +0 -36
- package/tests/unit/lib/UrlParser.spec.ts +0 -359
- package/tests/unit/lib/UrlProcessor.spec.ts +0 -894
- package/tests/unit/lib/buffer.spec.ts +0 -33
- package/tests/unit/lib/payload_serializer.spec.ts +0 -171
- package/tests/unit/mocking/current/Certificates.spec.ts +0 -96
- package/tests/unit/mocking/current/HostRules.spec.ts +0 -59
- package/tests/unit/mocking/current/Urls.spec.ts +0 -58
- package/tests/unit/mocking/legacy/ArcMock.spec.ts +0 -16
- package/tests/unit/mocking/legacy/Authorization.spec.ts +0 -57
- package/tests/unit/mocking/legacy/Certificates.spec.ts +0 -185
- package/tests/unit/mocking/legacy/Cookies.spec.ts +0 -67
- package/tests/unit/mocking/legacy/HostRules.spec.ts +0 -59
- package/tests/unit/mocking/legacy/Http.spec.ts +0 -533
- package/tests/unit/mocking/legacy/RestApi.spec.ts +0 -132
- package/tests/unit/mocking/legacy/Urls.spec.ts +0 -57
- package/tests/unit/mocking/legacy/Variables.spec.ts +0 -73
- package/tests/unit/models/Certificate/from_name.spec.ts +0 -21
- package/tests/unit/models/Project/consume.spec.ts +0 -16
- package/tests/unit/models/Project/create.spec.ts +0 -132
- package/tests/unit/models/certificate.spec.ts +0 -257
- package/tests/unit/models/environment.spec.ts +0 -574
- package/tests/unit/models/error_response.spec.ts +0 -183
- package/tests/unit/models/headers_array.spec.ts +0 -86
- package/tests/unit/models/host_rule.spec.ts +0 -196
- package/tests/unit/models/http-actions/assertion/equal_assertion.spec.ts +0 -103
- package/tests/unit/models/http-actions/assertion/greater_than_assertion.spec.ts +0 -91
- package/tests/unit/models/http-actions/assertion/includes_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/less_than_assertion.spec.ts +0 -91
- package/tests/unit/models/http-actions/assertion/matches_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/matches_schema_assertion.spec.ts +0 -117
- package/tests/unit/models/http-actions/assertion/not_equal_assertion.spec.ts +0 -103
- package/tests/unit/models/http-actions/assertion/not_includes_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/not_ok_assertion.spec.ts +0 -47
- package/tests/unit/models/http-actions/assertion/not_to_be_assertion.spec.ts +0 -72
- package/tests/unit/models/http-actions/assertion/ok_assertion.spec.ts +0 -44
- package/tests/unit/models/http-actions/assertion/to_be_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/transformation/as_lower_case_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/as_number_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/as_upper_case_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/round_step.spec.ts +0 -69
- package/tests/unit/models/http-actions/transformation/substring_step.spec.ts +0 -85
- package/tests/unit/models/http-actions/transformation/trim_step.spec.ts +0 -44
- package/tests/unit/models/http_cookie.spec.ts +0 -516
- package/tests/unit/models/http_history.spec.ts +0 -443
- package/tests/unit/models/http_project.spec.ts +0 -2424
- package/tests/unit/models/http_request.spec.ts +0 -365
- package/tests/unit/models/http_response.spec.ts +0 -289
- package/tests/unit/models/license.spec.ts +0 -108
- package/tests/unit/models/project_folder.spec.ts +0 -926
- package/tests/unit/models/project_item.spec.ts +0 -137
- package/tests/unit/models/project_request.spec.ts +0 -1047
- package/tests/unit/models/project_schema.spec.ts +0 -236
- package/tests/unit/models/property.spec.ts +0 -625
- package/tests/unit/models/provider.spec.ts +0 -102
- package/tests/unit/models/request.spec.ts +0 -1206
- package/tests/unit/models/request_log.spec.ts +0 -308
- package/tests/unit/models/request_time.spec.ts +0 -138
- package/tests/unit/models/response.spec.ts +0 -384
- package/tests/unit/models/response_redirect.spec.ts +0 -303
- package/tests/unit/models/sent_request.spec.ts +0 -206
- package/tests/unit/models/server.spec.ts +0 -195
- package/tests/unit/postman-transformers/PostmanTransformer.spec.ts +0 -418
- package/tests/unit/postman-transformers/data/Backup.postman_dump.json +0 -750
- package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.0.json +0 -508
- package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.1.json +0 -542
- package/tests/unit/runtime/http-engine/HttpResponseParser.spec.ts +0 -337
- package/tests/unit/runtime/http-engine/abort.spec.ts +0 -83
- package/tests/unit/runtime/http-engine/auth.spec.ts +0 -52
- package/tests/unit/runtime/http-engine/certificates/CertificateManager.spec.ts +0 -482
- package/tests/unit/runtime/http-engine/certificates.spec.ts +0 -180
- package/tests/unit/runtime/http-engine/cleanup.spec.ts +0 -44
- package/tests/unit/runtime/http-engine/compression/CompressionManager.spec.ts +0 -498
- package/tests/unit/runtime/http-engine/compression.spec.ts +0 -114
- package/tests/unit/runtime/http-engine/connections/ConnectionManager.spec.ts +0 -379
- package/tests/unit/runtime/http-engine/connections/DigestAuthHandler.spec.ts +0 -164
- package/tests/unit/runtime/http-engine/core_engine.spec.ts +0 -560
- package/tests/unit/runtime/http-engine/engine_statuses.spec.ts +0 -58
- package/tests/unit/runtime/http-engine/events.spec.ts +0 -50
- package/tests/unit/runtime/http-engine/form_data.spec.ts +0 -112
- package/tests/unit/runtime/http-engine/headers.spec.ts +0 -149
- package/tests/unit/runtime/http-engine/hosts.spec.ts +0 -29
- package/tests/unit/runtime/http-engine/http-get.spec.ts +0 -36
- package/tests/unit/runtime/http-engine/http-post.spec.ts +0 -72
- package/tests/unit/runtime/http-engine/logger.spec.ts +0 -24
- package/tests/unit/runtime/http-engine/message.spec.ts +0 -184
- package/tests/unit/runtime/http-engine/params.spec.ts +0 -388
- package/tests/unit/runtime/http-engine/payload_support.spec.ts +0 -127
- package/tests/unit/runtime/http-engine/proxy.spec.ts +0 -522
- package/tests/unit/runtime/http-engine/redirects.spec.ts +0 -217
- package/tests/unit/runtime/http-engine/request_utils.spec.ts +0 -176
- package/tests/unit/runtime/http-engine/responses.spec.ts +0 -272
- package/tests/unit/runtime/http-engine/timeout.spec.ts +0 -33
- package/tests/unit/runtime/http-engine/timings.spec.ts +0 -50
- package/tests/unit/runtime/proxy/HttpProjectProxy.spec.ts +0 -241
- package/tests/unit/runtime/proxy/RequestProxy.spec.ts +0 -130
- package/tests/unit/runtime/reporters/project_run_cli_reporter.spec.ts +0 -62
- package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +0 -1303
- package/tests/unit/runtime/runners/http_flow_runner.spec.ts +0 -1174
- package/tests/unit/runtime/runners/parallel_runner.spec.ts +0 -365
- package/tests/unit/runtime/runners/project_runner.spec.ts +0 -839
- package/tests/unit/runtime/runners/request_runner.spec.ts +0 -933
- package/tests/unit/runtime/runners/serial_runner.spec.ts +0 -629
- package/tests/unit/runtime/variables/cache.spec.ts +0 -95
- package/tests/unit/runtime/variables/eval_functions.spec.ts +0 -66
- package/tests/unit/runtime/variables/variables_processor.spec.ts +0 -563
- package/tests/unit/src/Platform.spec.ts +0 -24
- package/tsconfig.browser.json +0 -33
- package/tsconfig.node.json +0 -34
- /package/{API_MODELING_EXPLAINER.md → architecture/API_MODELING_EXPLAINER.md} +0 -0
- /package/{DATA_MODELING_EXPLAINER.md → architecture/DATA_MODELING_EXPLAINER.md} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2Authorization.js","sourceRoot":"","sources":["../../../src/authorization/OAuth2Authorization.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACpF,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AACrH,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAInD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;AACxD,MAAM,CAAC,MAAM,cAAc,GAAG,MAA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AC,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;QACjD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YAC7D,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAChD,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAA;IAC1B,CAAC;CACF","sourcesContent":["/* eslint-disable max-len */\nimport { sanityCheck, randomString, camel, generateCodeChallenge } from './Utils.js'\nimport { applyCustomSettingsQuery, applyCustomSettingsBody, applyCustomSettingsHeaders } from './CustomParameters.js'\nimport { AuthorizationError, CodeError } from './AuthorizationError.js'\nimport { IframeAuthorization } from './lib/IframeAuthorization.js'\nimport { PopupAuthorization } from './lib/PopupAuthorization.js'\nimport * as KnownGrants from './lib/KnownGrants.js'\nimport { IOAuth2Authorization, ITokenInfo } from '../models/Authorization.js'\nimport { OauthProcessingOptions } from './types.js'\n\nexport const resolveFunction = Symbol('resolveFunction')\nexport const rejectFunction = Symbol('rejectFunction')\nexport const settingsValue = Symbol('settingsValue')\nexport const optionsValue = Symbol('optionsValue')\nexport const prepareSettings = Symbol('prepareSettings')\nexport const prepareOptions = Symbol('prepareOptions')\nexport const authorize = Symbol('authorize')\nexport const stateValue = Symbol('stateValue')\nexport const authorizeImplicitCode = Symbol('authorizeImplicitCode')\nexport const authorizeClientCredentials = Symbol('authorizeClientCredentials')\nexport const authorizePassword = Symbol('authorizePassword')\nexport const authorizeCustomGrant = Symbol('authorizeCustomGrant')\nexport const authorizeDeviceCode = Symbol('authorizeDeviceCode')\nexport const authorizeJwt = Symbol('authorizeJwt')\nexport const popupValue = Symbol('popupValue')\nexport const popupUnloadHandler = Symbol('popupUnloadHandler')\nexport const tokenResponse = Symbol('tokenResponse')\nexport const messageHandler = Symbol('messageHandler')\nexport const iframeValue = Symbol('iframeValue')\nexport const processPopupRawData = Symbol('processPopupRawData')\nexport const handleTokenInfo = Symbol('handleTokenInfo')\nexport const computeTokenInfoScopes = Symbol('computeTokenInfoScopes')\nexport const computeExpires = Symbol('computeExpires')\nexport const codeValue = Symbol('codeValue')\nexport const frameTimeoutHandler = Symbol('frameTimeoutHandler')\nexport const reportOAuthError = Symbol('reportOAuthError')\nexport const authorizePopup = Symbol('authorizePopup')\nexport const authorizeTokenNonInteractive = Symbol('authorizeTokenNonInteractive')\nexport const createErrorParams = Symbol('createErrorParams')\nexport const handleTokenCodeError = Symbol('handleTokenCodeError')\nexport const codeVerifierValue = Symbol('codeVerifierValue')\nexport const tokenInfoFromParams = Symbol('tokenInfoFromParams')\n\nexport const grantResponseMapping: Record<string, string> = {\n implicit: 'token',\n authorization_code: 'code',\n}\n\n/**\n * A library that performs OAuth 2 authorization.\n *\n * It is build for API components ecosystem and the configuration is defined in `@advanced-rest-client/events`\n * so all components use the same configuration.\n */\nexport class OAuth2Authorization {\n [settingsValue]: IOAuth2Authorization\n\n /**\n * @returns The authorization settings used to initialize this class.\n */\n get settings(): IOAuth2Authorization {\n return this[settingsValue]\n }\n\n [optionsValue]: OauthProcessingOptions\n\n /**\n * @returns The processing options used to initialize this object.\n */\n get options(): OauthProcessingOptions {\n return this[optionsValue]\n }\n\n [stateValue]?: string\n\n /**\n * @returns The request state parameter. If the state is not passed with the configuration one is generated.\n */\n get state(): string {\n if (!this[stateValue]) {\n this[stateValue] = this.settings.state || randomString()\n }\n return this[stateValue] as string\n }\n\n /**\n * @type The main resolve function\n */\n [resolveFunction]?: (value: ITokenInfo | PromiseLike<ITokenInfo>) => void;\n\n /**\n * @type The main reject function\n */\n [rejectFunction]?: (reason?: Error) => void;\n\n [codeVerifierValue]?: string;\n\n [popupValue]?: PopupAuthorization;\n\n [iframeValue]?: IframeAuthorization;\n\n [tokenResponse]?: ITokenInfo;\n\n [codeValue]?: string\n\n /**\n * @param settings The authorization configuration.\n * @param options Additional processing options to configure the behavior of this library.\n */\n constructor(settings: IOAuth2Authorization, options: OauthProcessingOptions = {}) {\n if (!settings) {\n throw new TypeError('Expected one argument.')\n }\n this[settingsValue] = this[prepareSettings](settings)\n this[optionsValue] = this[prepareOptions](options)\n\n this[messageHandler] = this[messageHandler].bind(this)\n this[frameTimeoutHandler] = this[frameTimeoutHandler].bind(this)\n this[popupUnloadHandler] = this[popupUnloadHandler].bind(this)\n }\n\n /**\n * @param settings\n * @returns Processed settings\n */\n [prepareSettings](settings: IOAuth2Authorization): IOAuth2Authorization {\n const copy = { ...settings }\n Object.freeze(copy)\n return copy\n }\n\n /**\n * @param options\n * @returns Processed options\n */\n [prepareOptions](options: OauthProcessingOptions): OauthProcessingOptions {\n const copy = {\n popupPullTimeout: 50,\n messageTarget: window,\n ...options,\n }\n Object.freeze(copy)\n return copy\n }\n\n /**\n * A function that should be called before the authorization.\n * It checks configuration integrity, and performs some sanity checks\n * like proper values of the request URIs.\n */\n checkConfig(): void {\n // @todo(pawel): perform settings integrity tests.\n sanityCheck(this.settings)\n }\n\n /**\n * Performs the authorization.\n * @returns Promise resolved to the token info.\n */\n authorize(): Promise<ITokenInfo | unknown> {\n return new Promise((resolve, reject) => {\n this[resolveFunction] = resolve\n this[rejectFunction] = reject\n this[authorize]()\n })\n }\n\n /**\n * Reports authorization error back to the application.\n *\n * This operation clears the promise object.\n *\n * @param message The message to report\n * @param code Error code\n */\n [reportOAuthError](message: string, code: string): void {\n this.clearObservers()\n if (!this[rejectFunction]) {\n return\n }\n const interactive = typeof this.settings.interactive === 'boolean' ? this.settings.interactive : true\n const e = new AuthorizationError(message, code, this.state, interactive)\n this[rejectFunction](e)\n this[rejectFunction] = undefined\n this[resolveFunction] = undefined\n }\n\n /**\n * Starts the authorization process.\n */\n // eslint-disable-next-line @typescript-eslint/adjacent-overload-signatures\n [authorize](): void {\n const { settings } = this\n switch (settings.grantType) {\n case KnownGrants.implicit:\n case KnownGrants.code:\n this[authorizeImplicitCode]()\n break\n case KnownGrants.clientCredentials:\n this[authorizeClientCredentials]()\n break\n case KnownGrants.password:\n this[authorizePassword]()\n break\n case KnownGrants.deviceCode:\n this[authorizeDeviceCode]()\n break\n case KnownGrants.jwtBearer:\n this[authorizeJwt]()\n break\n default:\n this[authorizeCustomGrant]()\n }\n }\n\n /**\n * Starts the authorization flow for the `implicit` and `authorization_code` flows.\n * If the `interactive` flag is configured it then it chooses between showing the UI (popup)\n * or non-interactive iframe.\n */\n async [authorizeImplicitCode](): Promise<void> {\n const { settings } = this\n const url = await this.constructPopupUrl()\n try {\n if (!url) {\n throw new Error(`Unable to construct the authorization URL.`)\n }\n if (settings.interactive === false) {\n this[authorizeTokenNonInteractive](url)\n } else {\n this[authorizePopup](url)\n }\n this.options.messageTarget?.addEventListener('message', this[messageHandler] as EventListener)\n } catch (e) {\n const fn = this[rejectFunction]\n if (fn) {\n fn(e as Error)\n }\n this[rejectFunction] = undefined\n this[resolveFunction] = undefined\n }\n }\n\n /**\n * Constructs the popup/iframe URL for the `implicit` or `authorization_code` grant types.\n * @return Full URL for the endpoint.\n */\n async constructPopupUrl(): Promise<string | null> {\n const url = await this.buildPopupUrlParams()\n if (!url) {\n return null\n }\n return url.toString()\n }\n\n /**\n * @returns The parameters to build popup URL.\n */\n async buildPopupUrlParams(): Promise<URL | null> {\n const { settings } = this\n const type = settings.responseType || grantResponseMapping[settings.grantType as string]\n if (!type) {\n return null\n }\n const url = new URL(settings.authorizationUri as string)\n url.searchParams.set('response_type', type)\n url.searchParams.set('client_id', settings.clientId as string)\n // Client secret cannot be ever exposed to the client (browser)!\n // if (settings.clientSecret) {\n // url.searchParams.set('client_secret', settings.clientSecret);\n // }\n url.searchParams.set('state', this.state)\n if (settings.redirectUri) {\n url.searchParams.set('redirect_uri', settings.redirectUri)\n }\n const { scopes } = settings\n if (Array.isArray(scopes) && scopes.length) {\n url.searchParams.set('scope', scopes.join(' '))\n }\n if (settings.includeGrantedScopes) {\n // this is Google specific\n url.searchParams.set('include_granted_scopes', 'true')\n }\n if (settings.loginHint) {\n // this is Google specific\n url.searchParams.set('login_hint', settings.loginHint)\n }\n if (settings.interactive === false) {\n // this is Google specific\n url.searchParams.set('prompt', 'none')\n }\n if (settings.pkce && String(type).includes('code')) {\n this[codeVerifierValue] = randomString()\n const challenge = await generateCodeChallenge(this[codeVerifierValue] as string)\n url.searchParams.set('code_challenge', challenge)\n url.searchParams.set('code_challenge_method', 'S256')\n }\n // custom query parameters from the `api-authorization-method` component\n if (settings.customData) {\n const cs = settings.customData.auth\n if (cs) {\n applyCustomSettingsQuery(url, cs)\n }\n }\n return url\n }\n\n /**\n * Opens a popup to request authorization from the user.\n * @param url The URL to open.\n */\n [authorizePopup](url: string): void {\n const popup = new PopupAuthorization(this.options.popupPullTimeout)\n try {\n popup.load(url)\n } catch (e) {\n const cause = e as Error\n throw new AuthorizationError(cause.message, 'popup_blocked', this.state, this.settings.interactive || false)\n }\n popup.addEventListener('close', this[popupUnloadHandler])\n this[popupValue] = popup\n }\n\n /**\n * Tries to authorize the user in a non interactive way (iframe rather than a popup).\n *\n * This method always result in a success response. When there's an error or\n * user is not logged in then the response won't contain auth token info.\n *\n * @param url Complete authorization url\n */\n [authorizeTokenNonInteractive](url: string): void {\n const iframe = new IframeAuthorization(this.options.iframeTimeout)\n iframe.addEventListener('timeout', this[frameTimeoutHandler])\n iframe.load(url)\n this[iframeValue] = iframe\n }\n\n /**\n * Event handler for the the iframe timeout event.\n * If there's the reject function then it is called with the error details.\n */\n [frameTimeoutHandler](): void {\n if (!this[rejectFunction]) {\n return\n }\n const e = new AuthorizationError('Non-interactive authorization failed.', 'iframe_load_error', this.state, false)\n this[rejectFunction](e)\n this[rejectFunction] = undefined\n this[resolveFunction] = undefined\n }\n\n /**\n * Clears all registered observers:\n * - popup/iframe message listeners\n * - popup info pull interval\n */\n clearObservers(): void {\n this.options.messageTarget?.removeEventListener('message', this[messageHandler] as EventListener)\n if (this[popupValue]) {\n this[popupValue].cleanUp()\n this[popupValue] = undefined\n }\n if (this[iframeValue]) {\n this[iframeValue].cancel()\n this[iframeValue].cleanUp()\n this[iframeValue] = undefined\n }\n }\n\n /**\n * This is called when the popup info pull interval detects that the window was closed.\n * It checks whether the token info has been set by the redirect page and if not then it reports an error.\n */\n [popupUnloadHandler](): void {\n if (this[tokenResponse] || (this.settings.grantType === 'authorization_code' && this[codeValue])) {\n // everything seems to be ok.\n return\n }\n if (!this[rejectFunction]) {\n // someone already called it.\n return\n }\n this[reportOAuthError]('No response has been recorded.', 'no_response')\n }\n\n /**\n * A handler for the `message` event registered when performing authorization that involves the popup\n * of the iframe.\n */\n [messageHandler](e: MessageEvent): void {\n const popup = this[popupValue]\n const iframe = this[iframeValue]\n if (!popup && !iframe) {\n return\n }\n this[processPopupRawData](e.data)\n }\n\n /**\n * @param raw The data from the `MessageEvent`. Might not be the data returned by the auth popup/iframe.\n */\n [processPopupRawData](raw: string): void {\n if (!raw) {\n return\n }\n let params: URLSearchParams\n try {\n params = new URLSearchParams(raw)\n } catch {\n this[reportOAuthError]('Invalid response from the redirect page', 'invalid_redirect')\n return\n }\n if (this.validateTokenResponse(params)) {\n this.processTokenResponse(params)\n } else {\n // eslint-disable-next-line no-console\n console.warn('Unprocessable authorization response', raw)\n }\n }\n\n /**\n * @param {URLSearchParams} params The instance of search params with the response from the auth dialog.\n * @returns {boolean} true when the params qualify as an authorization popup redirect response.\n */\n validateTokenResponse(params: URLSearchParams): boolean {\n const oauthParams = ['state', 'error', 'access_token', 'code']\n return oauthParams.some((name) => params.has(name))\n }\n\n /**\n * Processes the response returned by the popup or the iframe.\n */\n async processTokenResponse(oauthParams: URLSearchParams): Promise<void> {\n this.clearObservers()\n const state = oauthParams.get('state')\n if (!state) {\n this[reportOAuthError]('Server did not return the state parameter.', 'no_state')\n return\n }\n if (state !== this.state) {\n // The authorization class (this) is created per token request so this can only have one state.\n // When the app requests for more tokens at the same time is should create multiple instances of this.\n this[reportOAuthError]('The state value returned by the authorization server is invalid.', 'invalid_state')\n return\n }\n if (oauthParams.has('error')) {\n const args = this.createTokenResponseError(oauthParams)\n this[reportOAuthError](...args)\n return\n }\n const { grantType, responseType } = this.settings\n if (grantType === 'implicit' || responseType === 'id_token') {\n this[handleTokenInfo](this[tokenInfoFromParams](oauthParams))\n return\n }\n if (grantType === 'authorization_code') {\n const code = oauthParams.get('code')\n if (!code) {\n this[reportOAuthError]('The authorization server did not returned the authorization code.', 'no_code')\n return\n }\n this[codeValue] = code\n let tokenInfo\n try {\n tokenInfo = await this.exchangeCode(code)\n } catch (e) {\n this[handleTokenCodeError](e as Error)\n return\n }\n this[handleTokenInfo](tokenInfo)\n return\n }\n\n this[reportOAuthError]('The authorization process has an invalid state. This should never happen.', 'unknown_state')\n }\n\n /**\n * Processes the response returned by the popup or the iframe.\n * @returns Parameters for the [reportOAuthError]() function\n */\n createTokenResponseError(oauthParams: URLSearchParams): [string, string] {\n const code = oauthParams.get('error') as string\n const message = oauthParams.get('error_description') as string\n return this[createErrorParams](code, message)\n }\n\n /**\n * Creates arguments for the error function from error response\n * @param code Returned from the authorization server error code\n * @param description Returned from the authorization server error description\n * @returns Parameters for the [reportOAuthError]() function\n */\n [createErrorParams](code: string, description?: string): [string, string] {\n let message\n if (description) {\n message = description\n } else {\n switch (code) {\n case 'interaction_required':\n message = 'The request requires user interaction.'\n break\n case 'invalid_request':\n message = 'The request is missing a required parameter.'\n break\n case 'invalid_client':\n message = 'Client authentication failed.'\n break\n case 'invalid_grant':\n message =\n 'The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.'\n break\n case 'unauthorized_client':\n message = 'The authenticated client is not authorized to use this authorization grant type.'\n break\n case 'unsupported_grant_type':\n message = 'The authorization grant type is not supported by the authorization server.'\n break\n case 'invalid_scope':\n message =\n 'The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.'\n break\n default:\n message = 'Unknown error'\n }\n }\n return [message, code]\n }\n\n /**\n * Creates a token info object from query parameters\n */\n [tokenInfoFromParams](oauthParams: URLSearchParams): ITokenInfo {\n const accessToken = oauthParams.get('access_token') as string\n const idToken = oauthParams.get('id_token') as string\n const refreshToken = oauthParams.get('refresh_token') as string\n const tokenType = oauthParams.get('token_type') as string\n const expiresIn = Number(oauthParams.get('expires_in') as string)\n const scope = this[computeTokenInfoScopes](oauthParams.get('scope') as string)\n const tokenInfo: ITokenInfo = {\n accessToken,\n // FIXME: This should be set in the OIDC class.\n // @ts-expect-error This is to be fixed eventually, but for now it works!\n idToken,\n refreshToken,\n tokenType,\n expiresIn,\n state: oauthParams.get('state') as string,\n scope,\n expiresAt: 0,\n expiresAssumed: false,\n }\n return this[computeExpires](tokenInfo)\n }\n\n /**\n * Processes token info object when it's ready.\n *\n * @param info Token info returned from the server.\n */\n [handleTokenInfo](info: ITokenInfo): void {\n this[tokenResponse] = info\n if (this[resolveFunction]) {\n this[resolveFunction](info)\n }\n this[rejectFunction] = undefined\n this[resolveFunction] = undefined\n }\n\n /**\n * Computes token expiration time.\n * It sets `expires_at` property on the token info object which is the time\n * in the future when when the token expires.\n *\n * @param tokenInfo Token info object\n * @returns A copy with updated properties.\n */\n [computeExpires](tokenInfo: ITokenInfo): ITokenInfo {\n const copy = { ...tokenInfo }\n let { expiresIn } = copy\n if (!expiresIn || Number.isNaN(expiresIn)) {\n expiresIn = 3600\n copy.expiresAssumed = true\n }\n copy.expiresIn = expiresIn\n const expiresAt = Date.now() + expiresIn * 1000\n copy.expiresAt = expiresAt\n return copy\n }\n\n /**\n * Computes the final list of granted scopes.\n * It is a list of scopes received in the response or the list of requested scopes.\n * Because the user may change the list of scopes during the authorization process\n * the received list of scopes can be different than the one requested by the user.\n *\n * @param scope The `scope` parameter received with the response. It's null safe.\n * @returns The list of scopes for the token.\n */\n [computeTokenInfoScopes](scope: string): string[] {\n const requestedScopes = this.settings.scopes\n if (!scope && requestedScopes) {\n return requestedScopes\n }\n let listScopes: string[] = []\n if (scope) {\n listScopes = scope.split(' ')\n }\n return listScopes\n }\n\n /**\n * Exchanges the authorization code for authorization token.\n *\n * @param code Returned code from the authorization endpoint.\n * @returns The response from the server.\n */\n async getCodeInfo(code: string): Promise<Record<string, unknown>> {\n const body = this.getCodeRequestBody(code)\n const url = this.settings.accessTokenUri as string\n return this.requestTokenInfo(url, body)\n }\n\n /**\n * Requests for token from the authorization server for `code`, `password`, `client_credentials` and custom grant types.\n *\n * @param url Base URI of the endpoint. Custom properties will be applied to the final URL.\n * @param body Generated body for given type. Custom properties will be applied to the final body.\n * @param optHeaders Optional headers to add to the request. Applied after custom data.\n * @returns Promise resolved to the response string.\n */\n async requestTokenInfo(\n url: string,\n body: string,\n optHeaders?: Record<string, string>\n ): Promise<Record<string, unknown>> {\n const urlInstance = new URL(url)\n const { settings, options } = this\n let headers: Record<string, string> = {\n 'content-type': 'application/x-www-form-urlencoded',\n }\n if (settings.customData) {\n if (settings.customData.token) {\n applyCustomSettingsQuery(urlInstance, settings.customData.token)\n }\n body = applyCustomSettingsBody(body, settings.customData)\n headers = applyCustomSettingsHeaders(headers, settings.customData)\n }\n if (optHeaders) {\n headers = { ...headers, ...optHeaders }\n }\n const init: RequestInit = {\n headers,\n body,\n method: 'POST',\n cache: 'no-cache',\n }\n let authTokenUrl = urlInstance.toString()\n if (options.tokenProxy) {\n const suffix = options.tokenProxyEncode ? encodeURIComponent(authTokenUrl) : authTokenUrl\n authTokenUrl = `${options.tokenProxy}${suffix}`\n }\n const response = await fetch(authTokenUrl, init)\n const { status } = response\n if (status === 404) {\n throw new Error('Authorization URI is invalid. Received status 404.')\n }\n if (status >= 500) {\n throw new Error(`Authorization server error. Response code is: ${status}`)\n }\n let responseBody\n try {\n responseBody = await response.text()\n } catch {\n responseBody = 'No response has been recorded'\n }\n if (!responseBody) {\n throw new Error('Code response body is empty.')\n }\n if (status >= 400 && status < 500) {\n throw new Error(`Client error: ${responseBody}`)\n }\n\n const mime = response.headers.get('content-type') || ''\n return this.processCodeResponse(responseBody, mime)\n }\n\n /**\n * Processes body of the code exchange to a map of key value pairs.\n */\n processCodeResponse(body: string, mime = ''): Record<string, unknown> {\n let tokenInfo: Record<string, unknown> = {}\n if (mime.includes('json')) {\n const info = JSON.parse(body)\n Object.keys(info).forEach((key) => {\n let name: string | undefined = key\n if (name.includes('_') || name.includes('-')) {\n name = camel(name)\n }\n if (name) {\n tokenInfo[name] = info[key]\n }\n })\n } else {\n tokenInfo = {}\n const params = new URLSearchParams(body)\n params.forEach((value, key) => {\n let name: string | undefined = key\n if (key.includes('_') || key.includes('-')) {\n name = camel(key)\n }\n if (name) {\n tokenInfo[name] = value\n }\n })\n }\n return tokenInfo\n }\n\n /**\n * @returns The token info when the request was a success.\n */\n mapCodeResponse(info: Record<string, unknown>): ITokenInfo {\n if (info.error) {\n throw new CodeError(info.errorDescription as string, info.error as string)\n }\n const expiresIn = Number(info.expiresIn)\n const scope = this[computeTokenInfoScopes](info.scope as string)\n const result: ITokenInfo = {\n ...(info as unknown as ITokenInfo),\n expiresIn,\n scope,\n expiresAt: 0,\n expiresAssumed: false,\n }\n return this[computeExpires](result)\n }\n\n /**\n * Exchanges the authorization code for authorization token.\n *\n * @param code Returned code from the authorization endpoint.\n * @returns The token info when the request was a success.\n */\n async exchangeCode(code: string): Promise<ITokenInfo> {\n const info = await this.getCodeInfo(code)\n return this.mapCodeResponse(info)\n }\n\n /**\n * Returns a body value for the code exchange request.\n * @param code Authorization code value returned by the authorization server.\n * @return Request body.\n */\n getCodeRequestBody(code: string): string {\n const { settings } = this\n const params = new URLSearchParams()\n params.set('grant_type', 'authorization_code')\n params.set('client_id', settings.clientId as string)\n if (settings.redirectUri) {\n params.set('redirect_uri', settings.redirectUri)\n }\n params.set('code', code)\n if (settings.clientSecret) {\n params.set('client_secret', settings.clientSecret)\n } else {\n params.set('client_secret', '')\n }\n if (settings.pkce) {\n params.set('code_verifier', this[codeVerifierValue] as string)\n }\n return params.toString()\n }\n\n /**\n * A handler for the error that happened during code exchange.\n */\n [handleTokenCodeError](e: Error): void {\n if (e instanceof CodeError) {\n const params = this[createErrorParams](e.code, e.message) as [string, string]\n this[reportOAuthError](...params)\n } else {\n this[reportOAuthError](`Couldn't connect to the server. ${e.message}`, 'request_error')\n }\n }\n\n /**\n * Requests a token for `client_credentials` request type.\n *\n * This method resolves the main promise set by the `authorize()` function.\n *\n * @return Promise resolved to a token info object.\n */\n async [authorizeClientCredentials](): Promise<void> {\n const { settings } = this\n const { accessTokenUri, deliveryMethod = 'body', deliveryName = 'authorization' } = settings\n const body = this.getClientCredentialsBody()\n let headers: Record<string, string> | undefined = undefined\n const headerTransport = deliveryMethod === 'header'\n if (headerTransport) {\n headers = {\n [deliveryName]: this.getClientCredentialsHeader(settings),\n }\n }\n try {\n const info = await this.requestTokenInfo(accessTokenUri as string, body, headers)\n const tokenInfo = this.mapCodeResponse(info)\n this[handleTokenInfo](tokenInfo)\n } catch (cause) {\n this[handleTokenCodeError](cause as Error)\n }\n }\n\n /**\n * Generates a payload message for client credentials.\n *\n * @return Message body as defined in OAuth2 spec.\n */\n getClientCredentialsBody(): string {\n const { settings } = this\n const headerTransport = settings.deliveryMethod === 'header'\n const params = new URLSearchParams()\n params.set('grant_type', 'client_credentials')\n if (!headerTransport && settings.clientId) {\n params.set('client_id', settings.clientId)\n }\n if (!headerTransport && settings.clientSecret) {\n params.set('client_secret', settings.clientSecret)\n }\n if (Array.isArray(settings.scopes) && settings.scopes.length) {\n params.set('scope', settings.scopes.join(' '))\n }\n return params.toString()\n }\n\n /**\n * Builds the authorization header for Client Credentials grant type.\n * According to the spec the authorization header for this grant type\n * is the Base64 of `clientId` + `:` + `clientSecret`.\n *\n * @param settings The OAuth 2 settings to use\n */\n getClientCredentialsHeader(settings: IOAuth2Authorization): string {\n const { clientId = '', clientSecret = '' } = settings\n const hash = btoa(`${clientId}:${clientSecret}`)\n return `Basic ${hash}`\n }\n\n /**\n * Requests a token for `client_credentials` request type.\n *\n * This method resolves the main promise set by the `authorize()` function.\n *\n * @return Promise resolved to a token info object.\n */\n async [authorizePassword](): Promise<void> {\n const { settings } = this\n const url = settings.accessTokenUri as string\n const body = this.getPasswordBody()\n try {\n const info = await this.requestTokenInfo(url, body)\n const tokenInfo = this.mapCodeResponse(info)\n this[handleTokenInfo](tokenInfo)\n } catch (cause) {\n this[handleTokenCodeError](cause as Error)\n }\n }\n\n /**\n * Generates a payload message for password authorization.\n *\n * @return Message body as defined in OAuth2 spec.\n */\n getPasswordBody(): string {\n const { settings } = this\n const params = new URLSearchParams()\n params.set('grant_type', 'password')\n params.set('username', settings.username || '')\n params.set('password', settings.password || '')\n if (settings.clientId) {\n params.set('client_id', settings.clientId)\n }\n if (settings.clientSecret) {\n params.set('client_secret', settings.clientSecret)\n }\n if (Array.isArray(settings.scopes) && settings.scopes.length) {\n params.set('scope', settings.scopes.join(' '))\n }\n return params.toString()\n }\n\n /**\n * Performs authorization on custom grant type.\n * This extension is described in OAuth 2.0 spec.\n *\n * This method resolves the main promise set by the `authorize()` function.\n *\n * @return Promise resolved when the request finish.\n */\n async [authorizeCustomGrant](): Promise<void> {\n const { settings } = this\n const url = settings.accessTokenUri as string\n const body = this.getCustomGrantBody()\n try {\n const info = await this.requestTokenInfo(url, body)\n const tokenInfo = this.mapCodeResponse(info)\n this[handleTokenInfo](tokenInfo)\n } catch (cause) {\n this[handleTokenCodeError](cause as Error)\n }\n }\n\n /**\n * Generates a payload message for the custom grant.\n *\n * @returns Message body as defined in OAuth2 spec.\n */\n getCustomGrantBody(): string {\n const { settings } = this\n const params = new URLSearchParams()\n params.set('grant_type', settings.grantType as string)\n if (settings.clientId) {\n params.set('client_id', settings.clientId)\n }\n if (settings.clientSecret) {\n params.set('client_secret', settings.clientSecret)\n }\n if (Array.isArray(settings.scopes) && settings.scopes.length) {\n params.set('scope', settings.scopes.join(' '))\n }\n if (settings.redirectUri) {\n params.set('redirect_uri', settings.redirectUri)\n }\n if (settings.username) {\n params.set('username', settings.username)\n }\n if (settings.password) {\n params.set('password', settings.password)\n }\n return params.toString()\n }\n\n /**\n * Requests a token for the `urn:ietf:params:oauth:grant-type:device_code` response type.\n *\n * @returns Promise resolved to a token info object.\n */\n async [authorizeDeviceCode](): Promise<void> {\n const { settings } = this\n const url = settings.accessTokenUri as string\n const body = this.getDeviceCodeBody()\n try {\n const info = await this.requestTokenInfo(url, body)\n const tokenInfo = this.mapCodeResponse(info)\n this[handleTokenInfo](tokenInfo)\n } catch (cause) {\n this[handleTokenCodeError](cause as Error)\n }\n }\n\n /**\n * Generates a payload message for the `urn:ietf:params:oauth:grant-type:device_code` authorization.\n *\n * @returns Message body as defined in OAuth2 spec.\n */\n getDeviceCodeBody(): string {\n const { settings } = this\n const params = new URLSearchParams()\n params.set('grant_type', KnownGrants.deviceCode)\n params.set('device_code', settings.deviceCode || '')\n if (settings.clientId) {\n params.set('client_id', settings.clientId)\n }\n if (settings.clientSecret) {\n params.set('client_secret', settings.clientSecret)\n }\n return params.toString()\n }\n\n /**\n * Requests a token for the `urn:ietf:params:oauth:grant-type:jwt-bearer` response type.\n *\n * @return Promise resolved to a token info object.\n */\n async [authorizeJwt](): Promise<void> {\n const { settings } = this\n const url = settings.accessTokenUri as string\n const body = this.getJwtBody()\n try {\n const info = await this.requestTokenInfo(url, body)\n const tokenInfo = this.mapCodeResponse(info)\n this[handleTokenInfo](tokenInfo)\n } catch (cause) {\n this[handleTokenCodeError](cause as Error)\n }\n }\n\n /**\n * Generates a payload message for the `urn:ietf:params:oauth:grant-type:jwt-bearer` authorization.\n *\n * @return {string} Message body as defined in OAuth2 spec.\n */\n getJwtBody(): string {\n const { settings } = this\n const params = new URLSearchParams()\n params.set('grant_type', KnownGrants.jwtBearer)\n params.set('assertion', settings.assertion || '')\n if (Array.isArray(settings.scopes) && settings.scopes.length) {\n params.set('scope', settings.scopes.join(' '))\n }\n return params.toString()\n }\n}\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IOidcTokenInfo, IOidcTokenError, ITokenInfo } from '../models/Authorization.js';
|
|
2
|
-
import { OAuth2Authorization, handleTokenInfo } from './OAuth2Authorization.js';
|
|
3
|
-
export declare class OidcAuthorization extends OAuth2Authorization {
|
|
4
|
-
authorize(): Promise<(IOidcTokenInfo | IOidcTokenError)[]>;
|
|
5
|
-
/**
|
|
6
|
-
* @returns The parameters to build popup URL.
|
|
7
|
-
*/
|
|
8
|
-
buildPopupUrlParams(): Promise<URL | null>;
|
|
9
|
-
/**
|
|
10
|
-
* @param params The instance of search params with the response from the auth dialog.
|
|
11
|
-
* @returns true when the params qualify as an authorization popup redirect response.
|
|
12
|
-
*/
|
|
13
|
-
validateTokenResponse(params: URLSearchParams): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Processes the response returned by the popup or the iframe.
|
|
16
|
-
*/
|
|
17
|
-
processTokenResponse(params: URLSearchParams): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a token info object for each requested response type. These are created from the params received from the
|
|
20
|
-
* redirect URI. This means that it might not be complete (for code response type).
|
|
21
|
-
* @param params
|
|
22
|
-
* @param time Timestamp when the tokens were created
|
|
23
|
-
*/
|
|
24
|
-
prepareTokens(params: URLSearchParams, time: number): IOidcTokenInfo[] | null;
|
|
25
|
-
/**
|
|
26
|
-
* Finishes the authorization.
|
|
27
|
-
*/
|
|
28
|
-
finish(tokens: (IOidcTokenInfo | IOidcTokenError)[]): void;
|
|
29
|
-
/**
|
|
30
|
-
* Processes token info object when it's ready.
|
|
31
|
-
*
|
|
32
|
-
* @param info Token info returned from the server.
|
|
33
|
-
*/
|
|
34
|
-
[handleTokenInfo](info: ITokenInfo): void;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=OidcAuthorization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OidcAuthorization.d.ts","sourceRoot":"","sources":["../../../src/authorization/OidcAuthorization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EACL,mBAAmB,EAKnB,eAAe,EAChB,MAAM,0BAA0B,CAAA;AAGjC,qBAAa,iBAAkB,SAAQ,mBAAmB;IAC/C,SAAS,IAAI,OAAO,CAAC,CAAC,cAAc,GAAG,eAAe,CAAC,EAAE,CAAC;IAInE;;OAEG;IACY,mBAAmB,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAazD;;;OAGG;IACM,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO;IAOhE;;OAEG;IACY,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAyD3E;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,IAAI;IAuB7E;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,CAAC,cAAc,GAAG,eAAe,CAAC,EAAE,GAAG,IAAI;IAU1D;;;;OAIG;IACM,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;CAMnD"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { Tokens } from './lib/Tokens.js';
|
|
2
|
-
import { OAuth2Authorization, grantResponseMapping, reportOAuthError, resolveFunction, rejectFunction, handleTokenInfo, } from './OAuth2Authorization.js';
|
|
3
|
-
import { nonceGenerator } from './Utils.js';
|
|
4
|
-
export class OidcAuthorization extends OAuth2Authorization {
|
|
5
|
-
authorize() {
|
|
6
|
-
return super.authorize();
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @returns The parameters to build popup URL.
|
|
10
|
-
*/
|
|
11
|
-
async buildPopupUrlParams() {
|
|
12
|
-
const url = await super.buildPopupUrlParams();
|
|
13
|
-
if (url === null) {
|
|
14
|
-
return url;
|
|
15
|
-
}
|
|
16
|
-
const type = this.settings.responseType || grantResponseMapping[this.settings.grantType];
|
|
17
|
-
// ID token nonce
|
|
18
|
-
if (type.includes('id_token')) {
|
|
19
|
-
url.searchParams.set('nonce', nonceGenerator());
|
|
20
|
-
}
|
|
21
|
-
return url;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @param params The instance of search params with the response from the auth dialog.
|
|
25
|
-
* @returns true when the params qualify as an authorization popup redirect response.
|
|
26
|
-
*/
|
|
27
|
-
validateTokenResponse(params) {
|
|
28
|
-
if (params.has('id_token')) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
return super.validateTokenResponse(params);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Processes the response returned by the popup or the iframe.
|
|
35
|
-
*/
|
|
36
|
-
async processTokenResponse(params) {
|
|
37
|
-
this.clearObservers();
|
|
38
|
-
const state = params.get('state');
|
|
39
|
-
if (!state) {
|
|
40
|
-
this[reportOAuthError]('Server did not return the state parameter.', 'no_state');
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (state !== this.state) {
|
|
44
|
-
// The authorization class (this) is created per token request so this can only have one state.
|
|
45
|
-
// When the app requests for more tokens at the same time is should create multiple instances of this.
|
|
46
|
-
this[reportOAuthError]('The state value returned by the authorization server is invalid.', 'invalid_state');
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (params.has('error')) {
|
|
50
|
-
const info = this.createTokenResponseError(params);
|
|
51
|
-
this[reportOAuthError](...info);
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
// this is the time when the tokens are received. +- a few ms.
|
|
55
|
-
const time = Date.now();
|
|
56
|
-
const tokens = this.prepareTokens(params, time);
|
|
57
|
-
if (!Array.isArray(tokens) || !tokens.length) {
|
|
58
|
-
this[reportOAuthError]('The authorization response has unknown response type configuration.', 'unknown_state');
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const codeIndex = tokens.findIndex((i) => i.responseType === 'code');
|
|
62
|
-
if (codeIndex >= 0) {
|
|
63
|
-
const codeToken = tokens[codeIndex];
|
|
64
|
-
try {
|
|
65
|
-
const info = await this.getCodeInfo(codeToken.code);
|
|
66
|
-
if (info.error) {
|
|
67
|
-
tokens[codeIndex] = {
|
|
68
|
-
responseType: codeToken.responseType,
|
|
69
|
-
state: codeToken.state,
|
|
70
|
-
error: info.error,
|
|
71
|
-
errorDescription: info.errorDescription,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
codeToken.accessToken = info.accessToken;
|
|
76
|
-
codeToken.refreshToken = info.refreshToken;
|
|
77
|
-
codeToken.idToken = info.idToken;
|
|
78
|
-
codeToken.tokenType = info.tokenType;
|
|
79
|
-
codeToken.expiresIn = info.expiresIn;
|
|
80
|
-
codeToken.scope = Tokens.computeTokenInfoScopes(this.settings.scopes, info.scope);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e) {
|
|
84
|
-
tokens[codeIndex] = {
|
|
85
|
-
responseType: codeToken.responseType,
|
|
86
|
-
state: codeToken.state,
|
|
87
|
-
error: 'unknown_state',
|
|
88
|
-
errorDescription: e.message,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
this.finish(tokens);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Creates a token info object for each requested response type. These are created from the params received from the
|
|
96
|
-
* redirect URI. This means that it might not be complete (for code response type).
|
|
97
|
-
* @param params
|
|
98
|
-
* @param time Timestamp when the tokens were created
|
|
99
|
-
*/
|
|
100
|
-
prepareTokens(params, time) {
|
|
101
|
-
const { grantType, responseType = '', scopes } = this.settings;
|
|
102
|
-
let type = responseType;
|
|
103
|
-
if (!type) {
|
|
104
|
-
type = grantResponseMapping[grantType];
|
|
105
|
-
}
|
|
106
|
-
if (!type) {
|
|
107
|
-
return null;
|
|
108
|
-
}
|
|
109
|
-
const types = type
|
|
110
|
-
.split(' ')
|
|
111
|
-
.map((i) => i.trim())
|
|
112
|
-
.filter((i) => !!i);
|
|
113
|
-
const result = [];
|
|
114
|
-
types.forEach((item) => {
|
|
115
|
-
const info = Tokens.createTokenInfo(item, params, time, scopes);
|
|
116
|
-
if (info) {
|
|
117
|
-
result.push(info);
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Finishes the authorization.
|
|
124
|
-
*/
|
|
125
|
-
finish(tokens) {
|
|
126
|
-
if (this[resolveFunction]) {
|
|
127
|
-
// TODO: this is a hack. These both classes should extend a single parent but not one another.
|
|
128
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
129
|
-
this[resolveFunction](tokens);
|
|
130
|
-
}
|
|
131
|
-
this[rejectFunction] = undefined;
|
|
132
|
-
this[resolveFunction] = undefined;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Processes token info object when it's ready.
|
|
136
|
-
*
|
|
137
|
-
* @param info Token info returned from the server.
|
|
138
|
-
*/
|
|
139
|
-
[handleTokenInfo](info) {
|
|
140
|
-
const { responseType } = this.settings;
|
|
141
|
-
const token = Tokens.fromTokenInfo(info);
|
|
142
|
-
token.responseType = responseType || '';
|
|
143
|
-
this.finish([token]);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=OidcAuthorization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OidcAuthorization.js","sourceRoot":"","sources":["../../../src/authorization/OidcAuthorization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,eAAe,GAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IAC/C,SAAS;QAChB,OAAO,KAAK,CAAC,SAAS,EAA8D,CAAA;IACt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C,IAAI,EAAE,EAAE;YACrB,MAAM,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;YAC/D,IAAI,IAAI,EAAE,CAAC;gBACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACnB,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAA4C;QACjD,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC;YAC1B,8FAA8F;YAC9F,oEAAoE;YACpE,IAAI,CAAC,eAAe,CAAE,CAAC,MAA+B,CAAC,CAAA;QACzD,CAAC;QACD,IAAI,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;QAChC,IAAI,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IACnC,CAAC;IAED;;;;OAIG;IACM,CAAC,eAAe,CAAC,CAAC,IAAgB;QACzC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAA;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;QACxC,KAAK,CAAC,YAAY,GAAG,YAAY,IAAI,EAAE,CAAA;QACvC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA;IACtB,CAAC;CACF","sourcesContent":["import { IOidcTokenInfo, IOidcTokenError, ITokenInfo } from '../models/Authorization.js'\nimport { Tokens } from './lib/Tokens.js'\nimport {\n OAuth2Authorization,\n grantResponseMapping,\n reportOAuthError,\n resolveFunction,\n rejectFunction,\n handleTokenInfo,\n} from './OAuth2Authorization.js'\nimport { nonceGenerator } from './Utils.js'\n\nexport class OidcAuthorization extends OAuth2Authorization {\n override authorize(): Promise<(IOidcTokenInfo | IOidcTokenError)[]> {\n return super.authorize() as unknown as Promise<(IOidcTokenInfo | IOidcTokenError)[]>\n }\n\n /**\n * @returns The parameters to build popup URL.\n */\n override async buildPopupUrlParams(): Promise<URL | null> {\n const url = await super.buildPopupUrlParams()\n if (url === null) {\n return url\n }\n const type = this.settings.responseType || grantResponseMapping[this.settings.grantType as string]\n // ID token nonce\n if (type.includes('id_token')) {\n url.searchParams.set('nonce', nonceGenerator())\n }\n return url\n }\n\n /**\n * @param params The instance of search params with the response from the auth dialog.\n * @returns true when the params qualify as an authorization popup redirect response.\n */\n override validateTokenResponse(params: URLSearchParams): boolean {\n if (params.has('id_token')) {\n return true\n }\n return super.validateTokenResponse(params)\n }\n\n /**\n * Processes the response returned by the popup or the iframe.\n */\n override async processTokenResponse(params: URLSearchParams): Promise<void> {\n this.clearObservers()\n const state = params.get('state')\n if (!state) {\n this[reportOAuthError]('Server did not return the state parameter.', 'no_state')\n return\n }\n if (state !== this.state) {\n // The authorization class (this) is created per token request so this can only have one state.\n // When the app requests for more tokens at the same time is should create multiple instances of this.\n this[reportOAuthError]('The state value returned by the authorization server is invalid.', 'invalid_state')\n return\n }\n if (params.has('error')) {\n const info = this.createTokenResponseError(params)\n this[reportOAuthError](...info)\n return\n }\n // this is the time when the tokens are received. +- a few ms.\n const time = Date.now()\n const tokens: (IOidcTokenInfo | IOidcTokenError)[] | null = this.prepareTokens(params, time)\n if (!Array.isArray(tokens) || !tokens.length) {\n this[reportOAuthError]('The authorization response has unknown response type configuration.', 'unknown_state')\n return\n }\n const codeIndex = tokens.findIndex((i) => i.responseType === 'code')\n if (codeIndex >= 0) {\n const codeToken = tokens[codeIndex] as IOidcTokenInfo\n try {\n const info = await this.getCodeInfo(codeToken.code as string)\n if (info.error) {\n tokens[codeIndex] = {\n responseType: codeToken.responseType,\n state: codeToken.state,\n error: info.error,\n errorDescription: info.errorDescription,\n } as IOidcTokenError\n } else {\n codeToken.accessToken = info.accessToken as string | undefined\n codeToken.refreshToken = info.refreshToken as string | undefined\n codeToken.idToken = info.idToken as string | undefined\n codeToken.tokenType = info.tokenType as string | undefined\n codeToken.expiresIn = info.expiresIn as number | undefined\n codeToken.scope = Tokens.computeTokenInfoScopes(this.settings.scopes, info.scope as string | undefined)\n }\n } catch (e) {\n tokens[codeIndex] = {\n responseType: codeToken.responseType,\n state: codeToken.state,\n error: 'unknown_state',\n errorDescription: (e as Error).message,\n } as IOidcTokenError\n }\n }\n this.finish(tokens)\n }\n\n /**\n * Creates a token info object for each requested response type. These are created from the params received from the\n * redirect URI. This means that it might not be complete (for code response type).\n * @param params\n * @param time Timestamp when the tokens were created\n */\n prepareTokens(params: URLSearchParams, time: number): IOidcTokenInfo[] | null {\n const { grantType, responseType = '', scopes } = this.settings\n let type = responseType\n if (!type) {\n type = grantResponseMapping[grantType as string]\n }\n if (!type) {\n return null\n }\n const types = type\n .split(' ')\n .map((i) => i.trim())\n .filter((i) => !!i)\n const result: IOidcTokenInfo[] = []\n types.forEach((item) => {\n const info = Tokens.createTokenInfo(item, params, time, scopes)\n if (info) {\n result.push(info)\n }\n })\n return result\n }\n\n /**\n * Finishes the authorization.\n */\n finish(tokens: (IOidcTokenInfo | IOidcTokenError)[]): void {\n if (this[resolveFunction]) {\n // TODO: this is a hack. These both classes should extend a single parent but not one another.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this[resolveFunction]!(tokens as unknown as ITokenInfo)\n }\n this[rejectFunction] = undefined\n this[resolveFunction] = undefined\n }\n\n /**\n * Processes token info object when it's ready.\n *\n * @param info Token info returned from the server.\n */\n override [handleTokenInfo](info: ITokenInfo): void {\n const { responseType } = this.settings\n const token = Tokens.fromTokenInfo(info)\n token.responseType = responseType || ''\n this.finish([token])\n }\n}\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IOAuth2Authorization } from '../models/Authorization.js';
|
|
2
|
-
/**
|
|
3
|
-
* Checks if the URL has valid scheme for OAuth flow.
|
|
4
|
-
*
|
|
5
|
-
* Do not use this to validate redirect URIs as they can use any protocol.
|
|
6
|
-
*
|
|
7
|
-
* @param url The url value to test
|
|
8
|
-
* @throws {TypeError} When passed value is not set, empty, or not a string
|
|
9
|
-
* @throws {Error} When passed value is not a valid URL for OAuth 2 flow
|
|
10
|
-
*/
|
|
11
|
-
export declare function checkUrl(url: string): void;
|
|
12
|
-
/**
|
|
13
|
-
* Checks if basic configuration of the OAuth 2 request is valid an can proceed
|
|
14
|
-
* with authentication.
|
|
15
|
-
* @param settings authorization settings
|
|
16
|
-
* @throws {Error} When settings are not valid
|
|
17
|
-
*/
|
|
18
|
-
export declare function sanityCheck(settings: IOAuth2Authorization): void;
|
|
19
|
-
/**
|
|
20
|
-
* Generates a random string of characters.
|
|
21
|
-
*
|
|
22
|
-
* @returns A random string.
|
|
23
|
-
*/
|
|
24
|
-
export declare function randomString(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Replaces `-` or `_` with camel case.
|
|
27
|
-
* @param {string} name The string to process
|
|
28
|
-
* @return {String|undefined} Camel cased string or `undefined` if not transformed.
|
|
29
|
-
*/
|
|
30
|
-
export declare function camel(name: string): string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Computes the SHA256 hash ogf the given input.
|
|
33
|
-
* @param value The value to encode.
|
|
34
|
-
*/
|
|
35
|
-
export declare function sha256(value: string): Promise<ArrayBuffer>;
|
|
36
|
-
/**
|
|
37
|
-
* Encoded the array buffer to a base64 string value.
|
|
38
|
-
*/
|
|
39
|
-
export declare function base64Buffer(buffer: ArrayBuffer): string;
|
|
40
|
-
/**
|
|
41
|
-
* Generates code challenge for the PKCE extension to the OAuth2 specification.
|
|
42
|
-
* @param verifier The generated code verifier.
|
|
43
|
-
* @returns The code challenge string
|
|
44
|
-
*/
|
|
45
|
-
export declare function generateCodeChallenge(verifier: string): Promise<string>;
|
|
46
|
-
/**
|
|
47
|
-
* Generates cryptographically significant random string.
|
|
48
|
-
* @param size The size of the generated nonce.
|
|
49
|
-
* @returns A nonce (number used once).
|
|
50
|
-
*/
|
|
51
|
-
export declare function nonceGenerator(size?: number): string;
|
|
52
|
-
//# sourceMappingURL=Utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/authorization/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEjE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAU1C;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAqBhE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAIrC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CActD;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAIhE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CASxD;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAG7E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,SAAK,GAAG,MAAM,CAYhD"}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if the URL has valid scheme for OAuth flow.
|
|
3
|
-
*
|
|
4
|
-
* Do not use this to validate redirect URIs as they can use any protocol.
|
|
5
|
-
*
|
|
6
|
-
* @param url The url value to test
|
|
7
|
-
* @throws {TypeError} When passed value is not set, empty, or not a string
|
|
8
|
-
* @throws {Error} When passed value is not a valid URL for OAuth 2 flow
|
|
9
|
-
*/
|
|
10
|
-
export function checkUrl(url) {
|
|
11
|
-
if (!url) {
|
|
12
|
-
throw new TypeError('the value is missing');
|
|
13
|
-
}
|
|
14
|
-
if (typeof url !== 'string') {
|
|
15
|
-
throw new TypeError('the value is not a string');
|
|
16
|
-
}
|
|
17
|
-
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
|
18
|
-
throw new Error('the value has invalid scheme');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Checks if basic configuration of the OAuth 2 request is valid an can proceed
|
|
23
|
-
* with authentication.
|
|
24
|
-
* @param settings authorization settings
|
|
25
|
-
* @throws {Error} When settings are not valid
|
|
26
|
-
*/
|
|
27
|
-
export function sanityCheck(settings) {
|
|
28
|
-
if (['implicit', 'authorization_code'].includes(settings.grantType)) {
|
|
29
|
-
try {
|
|
30
|
-
checkUrl(settings.authorizationUri);
|
|
31
|
-
}
|
|
32
|
-
catch (e) {
|
|
33
|
-
throw new Error(`authorizationUri: ${e.message}`, { cause: e });
|
|
34
|
-
}
|
|
35
|
-
if (settings.accessTokenUri) {
|
|
36
|
-
try {
|
|
37
|
-
checkUrl(settings.accessTokenUri);
|
|
38
|
-
}
|
|
39
|
-
catch (e) {
|
|
40
|
-
throw new Error(`accessTokenUri: ${e.message}`, { cause: e });
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else if (settings.accessTokenUri) {
|
|
45
|
-
try {
|
|
46
|
-
checkUrl(settings.accessTokenUri);
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
throw new Error(`accessTokenUri: ${e.message}`, { cause: e });
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Generates a random string of characters.
|
|
55
|
-
*
|
|
56
|
-
* @returns A random string.
|
|
57
|
-
*/
|
|
58
|
-
export function randomString() {
|
|
59
|
-
const array = new Uint32Array(28);
|
|
60
|
-
window.crypto.getRandomValues(array);
|
|
61
|
-
return Array.from(array, (dec) => `0${dec.toString(16)}`.substr(-2)).join('');
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Replaces `-` or `_` with camel case.
|
|
65
|
-
* @param {string} name The string to process
|
|
66
|
-
* @return {String|undefined} Camel cased string or `undefined` if not transformed.
|
|
67
|
-
*/
|
|
68
|
-
export function camel(name) {
|
|
69
|
-
let i = 0;
|
|
70
|
-
let l;
|
|
71
|
-
let changed = false;
|
|
72
|
-
while ((l = name[i])) {
|
|
73
|
-
if ((l === '_' || l === '-') && i + 1 < name.length) {
|
|
74
|
-
name = name.substring(0, i) + name[i + 1].toUpperCase() + name.substring(i + 2);
|
|
75
|
-
changed = true;
|
|
76
|
-
}
|
|
77
|
-
i++;
|
|
78
|
-
}
|
|
79
|
-
return changed ? name : undefined;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Computes the SHA256 hash ogf the given input.
|
|
83
|
-
* @param value The value to encode.
|
|
84
|
-
*/
|
|
85
|
-
export async function sha256(value) {
|
|
86
|
-
const encoder = new TextEncoder();
|
|
87
|
-
const data = encoder.encode(value);
|
|
88
|
-
return window.crypto.subtle.digest('SHA-256', data);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Encoded the array buffer to a base64 string value.
|
|
92
|
-
*/
|
|
93
|
-
export function base64Buffer(buffer) {
|
|
94
|
-
const view = new Uint8Array(buffer);
|
|
95
|
-
const len = view.byteLength;
|
|
96
|
-
let binary = '';
|
|
97
|
-
for (let i = 0; i < len; i++) {
|
|
98
|
-
binary += String.fromCharCode(view[i]);
|
|
99
|
-
}
|
|
100
|
-
// const str = String.fromCharCode.apply(null, view as number[]);
|
|
101
|
-
return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Generates code challenge for the PKCE extension to the OAuth2 specification.
|
|
105
|
-
* @param verifier The generated code verifier.
|
|
106
|
-
* @returns The code challenge string
|
|
107
|
-
*/
|
|
108
|
-
export async function generateCodeChallenge(verifier) {
|
|
109
|
-
const hashed = await sha256(verifier);
|
|
110
|
-
return base64Buffer(hashed);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Generates cryptographically significant random string.
|
|
114
|
-
* @param size The size of the generated nonce.
|
|
115
|
-
* @returns A nonce (number used once).
|
|
116
|
-
*/
|
|
117
|
-
export function nonceGenerator(size = 20) {
|
|
118
|
-
const validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
119
|
-
let array = new Uint8Array(size);
|
|
120
|
-
window.crypto.getRandomValues(array);
|
|
121
|
-
array = array.map((x) => validChars.charCodeAt(x % validChars.length));
|
|
122
|
-
const len = array.byteLength;
|
|
123
|
-
let binary = '';
|
|
124
|
-
for (let i = 0; i < len; i++) {
|
|
125
|
-
binary += String.fromCharCode(array[i]);
|
|
126
|
-
}
|
|
127
|
-
return binary;
|
|
128
|
-
// return String.fromCharCode.apply(null, array as any);
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=Utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/authorization/Utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAA;IAC7C,CAAC;IACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,MAAM,IAAI,SAAS,CAAC,2BAA2B,CAAC,CAAA;IAClD,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9D,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACjD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,QAA8B;IACxD,IAAI,CAAC,UAAU,EAAE,oBAAoB,CAAC,C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/Authorization.js'\n\n/**\n * Checks if the URL has valid scheme for OAuth flow.\n *\n * Do not use this to validate redirect URIs as they can use any protocol.\n *\n * @param url The url value to test\n * @throws {TypeError} When passed value is not set, empty, or not a string\n * @throws {Error} When passed value is not a valid URL for OAuth 2 flow\n */\nexport function checkUrl(url: string): void {\n if (!url) {\n throw new TypeError('the value is missing')\n }\n if (typeof url !== 'string') {\n throw new TypeError('the value is not a string')\n }\n if (!url.startsWith('http://') && !url.startsWith('https://')) {\n throw new Error('the value has invalid scheme')\n }\n}\n\n/**\n * Checks if basic configuration of the OAuth 2 request is valid an can proceed\n * with authentication.\n * @param settings authorization settings\n * @throws {Error} When settings are not valid\n */\nexport function sanityCheck(settings: IOAuth2Authorization): void {\n if (['implicit', 'authorization_code'].includes(settings.grantType as string)) {\n try {\n checkUrl(settings.authorizationUri as string)\n } catch (e) {\n throw new Error(`authorizationUri: ${(e as Error).message}`, { cause: e })\n }\n if (settings.accessTokenUri) {\n try {\n checkUrl(settings.accessTokenUri)\n } catch (e) {\n throw new Error(`accessTokenUri: ${(e as Error).message}`, { cause: e })\n }\n }\n } else if (settings.accessTokenUri) {\n try {\n checkUrl(settings.accessTokenUri)\n } catch (e) {\n throw new Error(`accessTokenUri: ${(e as Error).message}`, { cause: e })\n }\n }\n}\n\n/**\n * Generates a random string of characters.\n *\n * @returns A random string.\n */\nexport function randomString(): string {\n const array = new Uint32Array(28)\n window.crypto.getRandomValues(array)\n return Array.from(array, (dec) => `0${dec.toString(16)}`.substr(-2)).join('')\n}\n\n/**\n * Replaces `-` or `_` with camel case.\n * @param {string} name The string to process\n * @return {String|undefined} Camel cased string or `undefined` if not transformed.\n */\nexport function camel(name: string): string | undefined {\n let i = 0\n let l\n let changed = false\n\n while ((l = name[i])) {\n if ((l === '_' || l === '-') && i + 1 < name.length) {\n name = name.substring(0, i) + name[i + 1].toUpperCase() + name.substring(i + 2)\n changed = true\n }\n\n i++\n }\n return changed ? name : undefined\n}\n\n/**\n * Computes the SHA256 hash ogf the given input.\n * @param value The value to encode.\n */\nexport async function sha256(value: string): Promise<ArrayBuffer> {\n const encoder = new TextEncoder()\n const data = encoder.encode(value)\n return window.crypto.subtle.digest('SHA-256', data)\n}\n\n/**\n * Encoded the array buffer to a base64 string value.\n */\nexport function base64Buffer(buffer: ArrayBuffer): string {\n const view = new Uint8Array(buffer)\n const len = view.byteLength\n let binary = ''\n for (let i = 0; i < len; i++) {\n binary += String.fromCharCode(view[i])\n }\n // const str = String.fromCharCode.apply(null, view as number[]);\n return btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '')\n}\n\n/**\n * Generates code challenge for the PKCE extension to the OAuth2 specification.\n * @param verifier The generated code verifier.\n * @returns The code challenge string\n */\nexport async function generateCodeChallenge(verifier: string): Promise<string> {\n const hashed = await sha256(verifier)\n return base64Buffer(hashed)\n}\n\n/**\n * Generates cryptographically significant random string.\n * @param size The size of the generated nonce.\n * @returns A nonce (number used once).\n */\nexport function nonceGenerator(size = 20): string {\n const validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'\n let array = new Uint8Array(size)\n window.crypto.getRandomValues(array)\n array = array.map((x) => validChars.charCodeAt(x % validChars.length))\n const len = array.byteLength\n let binary = ''\n for (let i = 0; i < len; i++) {\n binary += String.fromCharCode(array[i])\n }\n return binary\n // return String.fromCharCode.apply(null, array as any);\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { OAuth2Authorization } from './OAuth2Authorization.js';
|
|
2
|
-
export { OidcAuthorization } from './OidcAuthorization.js';
|
|
3
|
-
export { AuthorizationError, CodeError } from './AuthorizationError.js';
|
|
4
|
-
export * as AuthUtils from './Utils.js';
|
|
5
|
-
export * from './types.js';
|
|
6
|
-
export { Tokens as OidcTokens } from './lib/Tokens.js';
|
|
7
|
-
export * as KnownGrants from './lib/KnownGrants.js';
|
|
8
|
-
export * as AuthorizationUtils from './lib/Utils.js';
|
|
9
|
-
export { SecurityProcessor, type IAuthApplyOptions } from './lib/SecurityProcessor.js';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authorization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,SAAS,MAAM,YAAY,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,kBAAkB,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { OAuth2Authorization } from './OAuth2Authorization.js';
|
|
2
|
-
export { OidcAuthorization } from './OidcAuthorization.js';
|
|
3
|
-
export { AuthorizationError, CodeError } from './AuthorizationError.js';
|
|
4
|
-
export * as AuthUtils from './Utils.js';
|
|
5
|
-
export * from './types.js';
|
|
6
|
-
export { Tokens as OidcTokens } from './lib/Tokens.js';
|
|
7
|
-
export * as KnownGrants from './lib/KnownGrants.js';
|
|
8
|
-
export * as AuthorizationUtils from './lib/Utils.js';
|
|
9
|
-
export { SecurityProcessor } from './lib/SecurityProcessor.js';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/authorization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,SAAS,MAAM,YAAY,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,kBAAkB,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,4BAA4B,CAAA","sourcesContent":["export { OAuth2Authorization } from './OAuth2Authorization.js'\nexport { OidcAuthorization } from './OidcAuthorization.js'\nexport { AuthorizationError, CodeError } from './AuthorizationError.js'\nexport * as AuthUtils from './Utils.js'\nexport * from './types.js'\nexport { Tokens as OidcTokens } from './lib/Tokens.js'\nexport * as KnownGrants from './lib/KnownGrants.js'\nexport * as AuthorizationUtils from './lib/Utils.js'\nexport { SecurityProcessor, type IAuthApplyOptions } from './lib/SecurityProcessor.js'\n"]}
|