cloudstructs 0.12.8 → 0.12.10
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/.jsii +6 -6
- package/API.md +308 -0
- package/assets/slack-textract/detect.lambda/index.js +1107 -1006
- package/assets/ssl-server-test/analyze.lambda/index.js +103 -68
- package/assets/toolkit-cleaner/clean.lambda/index.js +103 -68
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/README.md +25 -5
- package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs +192 -70
- package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js +192 -70
- package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts +5 -2
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts +2 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts.map +1 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/durable-execution-api-client/durable-execution-api-client.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/concurrent-execution-handler/batch-result.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/concurrent-execution-handler/concurrent-execution-handler.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/invoke-handler/invoke-handler.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/index.d.ts +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/index.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts +9 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts +2 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/step.d.ts +45 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/step.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts +6 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts +12 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts +14 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts.map +1 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/logger/default-logger.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/with-durable-execution.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/package.json +1 -2
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-lambda/README.md +26 -46
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +294 -3996
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/LambdaServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +730 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +2680 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +49 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +7 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +320 -308
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +150 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +8 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +8 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +15 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +30 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +53 -45
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +173 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +48 -45
- package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
- package/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -69
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -69
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +3 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +4 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +15 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +11 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +17 -17
- package/node_modules/@aws-sdk/credential-provider-login/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +14 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +7 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +11 -10
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +174 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.js +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +27 -206
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/auth/httpAuthSchemeProvider.js +8 -27
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +160 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +27 -355
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +33 -314
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es/commands/ListAccountsCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js} +5 -5
- package/node_modules/@aws-sdk/{client-sso/dist-es/commands/LogoutCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js} +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/index.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +109 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.js +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +9 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/SSOClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/auth/httpAuthSchemeProvider.js +9 -28
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +48 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +29 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSO.d.ts +1 -22
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSOClient.d.ts +6 -8
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/models_0.d.ts +61 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/schemas/schemas_0.d.ts +11 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +5 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/SSOClient.d.ts +3 -24
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/schemas/schemas_0.d.ts +6 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +57 -37
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +12 -23
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -12
- package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
- package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +6 -6
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +133 -6
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +10 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +75 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getRuntimeUserAgentPair.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getRuntimeUserAgentPair.d.ts +2 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +12 -9
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +1 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +52 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +7 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +96 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +9 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +92 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +1 -26
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +89 -87
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +21 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +315 -293
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +86 -44
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +309 -186
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +22 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
- package/node_modules/@aws-sdk/xml-builder/package.json +7 -7
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +18 -31
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +18 -31
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js +5 -0
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +5 -5
- package/node_modules/@slack/logger/LICENSE +23 -0
- package/node_modules/@slack/logger/README.md +36 -3
- package/node_modules/@slack/logger/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/logger/dist/index.js +5 -6
- package/node_modules/@slack/logger/dist/index.js.map +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@slack/logger/package.json +13 -33
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +18 -0
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +54 -2
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/chunk.d.ts +42 -0
- package/node_modules/@slack/types/dist/chunk.d.ts.map +1 -0
- package/node_modules/@slack/types/dist/chunk.js +3 -0
- package/node_modules/@slack/types/dist/chunk.js.map +1 -0
- package/node_modules/@slack/types/dist/events/app.d.ts +53 -0
- package/node_modules/@slack/types/dist/events/app.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/member.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/member.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/user.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/user.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.d.ts +1 -0
- package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.js +1 -0
- package/node_modules/@slack/types/dist/index.js.map +1 -1
- package/node_modules/@slack/types/package.json +8 -12
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +241 -266
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.js +85 -64
- package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.js +108 -125
- package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
- package/node_modules/@slack/web-api/dist/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/index.js +3 -1
- package/node_modules/@slack/web-api/dist/index.js.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +11 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +9 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/apps.d.ts +6 -0
- package/node_modules/@slack/web-api/dist/types/request/apps.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +21 -2
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@slack/web-api/package.json +15 -29
- package/node_modules/@smithy/abort-controller/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +11 -11
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +22 -19
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +9 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +73 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -4
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +15 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +9 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +25 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +16 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +24 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +38 -3
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/endpoints.d.ts +7 -0
- package/node_modules/@smithy/core/endpoints.js +6 -0
- package/node_modules/@smithy/core/package.json +21 -12
- package/node_modules/@smithy/credential-provider-imds/package.json +10 -10
- package/node_modules/@smithy/eventstream-codec/package.json +9 -9
- package/node_modules/@smithy/eventstream-serde-browser/package.json +8 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -7
- package/node_modules/@smithy/eventstream-serde-node/package.json +8 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -9
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +11 -11
- package/node_modules/@smithy/hash-node/package.json +9 -9
- package/node_modules/@smithy/invalid-dependency/package.json +7 -7
- package/node_modules/@smithy/is-array-buffer/package.json +6 -6
- package/node_modules/@smithy/middleware-content-length/package.json +8 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
- package/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
- package/node_modules/@smithy/middleware-serde/package.json +9 -8
- package/node_modules/@smithy/middleware-stack/package.json +7 -7
- package/node_modules/@smithy/node-config-provider/package.json +9 -9
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +77 -47
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +10 -3
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +10 -10
- package/node_modules/@smithy/property-provider/package.json +7 -7
- package/node_modules/@smithy/protocol-http/package.json +7 -7
- package/node_modules/@smithy/querystring-builder/package.json +8 -8
- package/node_modules/@smithy/querystring-parser/package.json +7 -7
- package/node_modules/@smithy/service-error-classification/package.json +7 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -7
- package/node_modules/@smithy/signature-v4/package.json +13 -13
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +59 -19
- package/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
- package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +20 -1
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +9 -7
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +9 -7
- package/node_modules/@smithy/smithy-client/package.json +11 -9
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +5 -5
- package/node_modules/@smithy/url-parser/package.json +8 -8
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +14 -6
- package/node_modules/@smithy/util-base64/package.json +8 -8
- package/node_modules/@smithy/util-body-length-browser/package.json +6 -6
- package/node_modules/@smithy/util-body-length-node/package.json +6 -6
- package/node_modules/@smithy/util-buffer-from/package.json +7 -7
- package/node_modules/@smithy/util-config-provider/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +7 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/package.json +8 -8
- package/node_modules/@smithy/util-hex-encoding/package.json +6 -6
- package/node_modules/@smithy/util-middleware/package.json +7 -7
- package/node_modules/@smithy/util-retry/package.json +8 -8
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +13 -2
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +51 -29
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +13 -2
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +13 -13
- package/node_modules/@smithy/util-uri-escape/package.json +6 -6
- package/node_modules/@smithy/util-utf8/package.json +7 -7
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
- package/node_modules/@smithy/util-waiter/package.json +8 -8
- package/node_modules/@smithy/uuid/package.json +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@types/http-cache-semantics/README.md +1 -1
- package/node_modules/@types/http-cache-semantics/index.d.ts +97 -11
- package/node_modules/@types/http-cache-semantics/package.json +4 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +460 -403
- package/node_modules/axios/MIGRATION_GUIDE.md +876 -2
- package/node_modules/axios/README.md +584 -447
- package/node_modules/axios/dist/axios.js +873 -881
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +4 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +1142 -812
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +1143 -813
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +1816 -1415
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +256 -112
- package/node_modules/axios/index.d.ts +341 -116
- package/node_modules/axios/index.js +3 -3
- package/node_modules/axios/lib/adapters/README.md +5 -6
- package/node_modules/axios/lib/adapters/adapters.js +18 -14
- package/node_modules/axios/lib/adapters/fetch.js +138 -92
- package/node_modules/axios/lib/adapters/http.js +615 -561
- package/node_modules/axios/lib/adapters/xhr.js +189 -167
- package/node_modules/axios/lib/axios.js +6 -6
- package/node_modules/axios/lib/cancel/CancelToken.js +4 -4
- package/node_modules/axios/lib/cancel/CanceledError.js +15 -18
- package/node_modules/axios/lib/core/Axios.js +66 -43
- package/node_modules/axios/lib/core/AxiosError.js +64 -84
- package/node_modules/axios/lib/core/AxiosHeaders.js +54 -24
- package/node_modules/axios/lib/core/InterceptorManager.js +3 -2
- package/node_modules/axios/lib/core/dispatchRequest.js +25 -29
- package/node_modules/axios/lib/core/mergeConfig.js +8 -7
- package/node_modules/axios/lib/core/settle.js +11 -7
- package/node_modules/axios/lib/core/transformData.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +85 -74
- package/node_modules/axios/lib/defaults/transitional.js +2 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +37 -24
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +12 -8
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +5 -4
- package/node_modules/axios/lib/helpers/buildURL.js +18 -19
- package/node_modules/axios/lib/helpers/callbackify.js +13 -11
- package/node_modules/axios/lib/helpers/composeSignals.js +22 -14
- package/node_modules/axios/lib/helpers/cookies.js +45 -50
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +9 -4
- package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +32 -26
- package/node_modules/axios/lib/helpers/fromDataURI.js +2 -2
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +4 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +13 -11
- package/node_modules/axios/lib/helpers/parseHeaders.js +35 -21
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +22 -15
- package/node_modules/axios/lib/helpers/readBlob.js +4 -4
- package/node_modules/axios/lib/helpers/resolveConfig.js +23 -14
- package/node_modules/axios/lib/helpers/speedometer.js +1 -1
- package/node_modules/axios/lib/helpers/spread.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +4 -4
- package/node_modules/axios/lib/helpers/toFormData.js +43 -25
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +2 -2
- package/node_modules/axios/lib/helpers/trackStream.js +33 -31
- package/node_modules/axios/lib/helpers/validator.js +16 -5
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +5 -5
- package/node_modules/axios/lib/platform/common/utils.js +6 -5
- package/node_modules/axios/lib/platform/index.js +2 -2
- package/node_modules/axios/lib/platform/node/index.js +9 -10
- package/node_modules/axios/lib/utils.js +243 -106
- package/node_modules/axios/package.json +57 -70
- package/node_modules/bowser/README.md +72 -3
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +1 -1
- package/node_modules/bowser/index.d.ts +44 -6
- package/node_modules/bowser/package.json +10 -5
- package/node_modules/bowser/src/bowser.js +24 -8
- package/node_modules/bowser/src/constants.js +8 -0
- package/node_modules/bowser/src/parser-browsers.js +89 -0
- package/node_modules/bowser/src/parser-platforms.js +42 -0
- package/node_modules/bowser/src/parser.js +86 -5
- package/node_modules/editorconfig/lib/cli.js +18 -8
- package/node_modules/editorconfig/lib/index.d.ts +0 -1
- package/node_modules/editorconfig/lib/index.js +24 -15
- package/node_modules/editorconfig/node_modules/minimatch/README.md +39 -2
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts +2 -6
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.js +229 -48
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/index.d.ts +4 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/index.js +135 -123
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/unescape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts +2 -6
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.js +229 -48
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/index.d.ts +4 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/index.js +135 -123
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/unescape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/package.json +31 -35
- package/node_modules/editorconfig/package.json +4 -30
- package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
- package/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-builder/README.md +23 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
- package/node_modules/fast-xml-builder/package.json +80 -0
- package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
- package/node_modules/fast-xml-builder/src/fxb.js +529 -0
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/README.md +135 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/index.js +203 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/package.json +49 -0
- package/node_modules/js-beautify/node_modules/minimatch/README.md +37 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js +179 -24
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js +124 -118
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js +179 -24
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts +4 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js +124 -118
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/package.json +14 -14
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +12 -16
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minipass/dist/commonjs/index.js +13 -3
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -1
- package/node_modules/minipass/dist/esm/index.d.ts +12 -16
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minipass/dist/esm/index.js +3 -1
- package/node_modules/minipass/dist/esm/index.js.map +1 -1
- package/node_modules/minipass/package.json +9 -14
- package/node_modules/mjml-cli/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/README.md +135 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/index.js +203 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/package.json +49 -0
- package/node_modules/mjml-cli/node_modules/minimatch/README.md +37 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js +179 -24
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js +124 -118
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js +179 -24
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts +4 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js +124 -118
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/package.json +14 -14
- package/node_modules/path-expression-matcher/LICENSE +21 -0
- package/node_modules/path-expression-matcher/README.md +635 -0
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
- package/node_modules/path-expression-matcher/lib/pem.d.cts +335 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
- package/node_modules/path-expression-matcher/package.json +78 -0
- package/node_modules/path-expression-matcher/src/Expression.js +232 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +414 -0
- package/node_modules/path-expression-matcher/src/index.d.ts +366 -0
- package/node_modules/path-expression-matcher/src/index.js +28 -0
- package/node_modules/pump/empty.js +1 -0
- package/node_modules/pump/package.json +7 -1
- package/node_modules/semver/README.md +3 -2
- package/node_modules/semver/bin/semver.js +1 -1
- package/node_modules/semver/functions/diff.js +1 -1
- package/node_modules/semver/internal/re.js +2 -2
- package/node_modules/semver/package.json +4 -4
- package/node_modules/semver/ranges/subset.js +1 -1
- package/node_modules/strnum/README.md +1 -0
- package/node_modules/strnum/package.json +3 -3
- package/node_modules/strnum/strnum.js +85 -59
- package/node_modules/strnum/tests/infinity_test.js +18 -0
- package/node_modules/strnum/{strnum.test.js → tests/strnum_test.js} +67 -68
- package/package.json +23 -23
- package/node_modules/@aws-sdk/client-sso/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sso/README.md +0 -244
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +0 -420
- package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +0 -15
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +0 -16
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js +0 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +0 -152
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +0 -98
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +0 -100
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +0 -97
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -189
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +0 -73
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +0 -41
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -45
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-sso/package.json +0 -99
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
- package/node_modules/bowser/CHANGELOG.md +0 -218
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- package/node_modules/minipass/LICENSE +0 -15
- package/node_modules/strnum/test.js +0 -9
- /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/extensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/models/models_0.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/commands/GetRoleCredentialsCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es/pagination/Interfaces.js → nested-clients/dist-es/submodules/sso/extensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/SSOServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/errors.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/SSOServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/errors.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/SSOServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/errors.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/.github/FUNDING.yml +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/LICENSE +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
|
@@ -94,7 +94,7 @@ var require_package = __commonJS({
|
|
|
94
94
|
"node_modules/@slack/web-api/package.json"(exports2, module2) {
|
|
95
95
|
module2.exports = {
|
|
96
96
|
name: "@slack/web-api",
|
|
97
|
-
version: "7.
|
|
97
|
+
version: "7.15.0",
|
|
98
98
|
description: "Official library for using the Slack Platform's Web API",
|
|
99
99
|
author: "Slack Technologies, LLC",
|
|
100
100
|
license: "MIT",
|
|
@@ -118,7 +118,10 @@ var require_package = __commonJS({
|
|
|
118
118
|
node: ">= 18",
|
|
119
119
|
npm: ">= 8.6.0"
|
|
120
120
|
},
|
|
121
|
-
repository:
|
|
121
|
+
repository: {
|
|
122
|
+
type: "git",
|
|
123
|
+
url: "git+https://github.com/slackapi/node-slack-sdk.git"
|
|
124
|
+
},
|
|
122
125
|
homepage: "https://docs.slack.dev/tools/node-slack-sdk/web-api/",
|
|
123
126
|
publishConfig: {
|
|
124
127
|
access: "public"
|
|
@@ -127,26 +130,24 @@ var require_package = __commonJS({
|
|
|
127
130
|
url: "https://github.com/slackapi/node-slack-sdk/issues"
|
|
128
131
|
},
|
|
129
132
|
scripts: {
|
|
130
|
-
prepare: "npm run build",
|
|
131
133
|
build: "npm run build:clean && tsc",
|
|
132
|
-
"build:clean": "shx rm -rf ./dist
|
|
134
|
+
"build:clean": "shx rm -rf ./dist",
|
|
133
135
|
docs: "npx typedoc --plugin typedoc-plugin-markdown",
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
test: "npm run lint && npm run test:types && npm run test:integration && npm run test:unit",
|
|
136
|
+
prepack: "npm run build",
|
|
137
|
+
test: "npm run test:unit",
|
|
138
|
+
"test:node18": "npm run build && bash -c 'node --test --test-reporter=spec --import tsx src/*.test.ts'",
|
|
138
139
|
"test:integration": "npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts",
|
|
139
140
|
"test:integration:ts": "cd test/integration/ts-4.7-project && npm i && npm run build",
|
|
140
|
-
"test:unit": "npm run build && c8 --config ./test/.c8rc.json npm run mocha",
|
|
141
141
|
"test:types": "tsd",
|
|
142
|
+
"test:unit": "npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts",
|
|
142
143
|
watch: "npx nodemon --watch 'src' --ext 'ts' --exec npm run build"
|
|
143
144
|
},
|
|
144
145
|
dependencies: {
|
|
145
|
-
"@slack/logger": "^4.0.
|
|
146
|
-
"@slack/types": "^2.
|
|
147
|
-
"@types/node": ">=18
|
|
146
|
+
"@slack/logger": "^4.0.1",
|
|
147
|
+
"@slack/types": "^2.20.1",
|
|
148
|
+
"@types/node": ">=18",
|
|
148
149
|
"@types/retry": "0.12.0",
|
|
149
|
-
axios: "^1.
|
|
150
|
+
axios: "^1.13.5",
|
|
150
151
|
eventemitter3: "^5.0.1",
|
|
151
152
|
"form-data": "^4.0.4",
|
|
152
153
|
"is-electron": "2.2.2",
|
|
@@ -156,27 +157,12 @@ var require_package = __commonJS({
|
|
|
156
157
|
retry: "^0.13.1"
|
|
157
158
|
},
|
|
158
159
|
devDependencies: {
|
|
159
|
-
"@biomejs/biome": "^2.0.5",
|
|
160
|
-
"@tsconfig/recommended": "^1",
|
|
161
160
|
"@types/busboy": "^1.5.4",
|
|
162
|
-
"@types/chai": "^4",
|
|
163
|
-
"@types/mocha": "^10",
|
|
164
161
|
"@types/sinon": "^21",
|
|
165
162
|
busboy: "^1",
|
|
166
|
-
c8: "^10.1.2",
|
|
167
|
-
chai: "^4",
|
|
168
|
-
mocha: "^11",
|
|
169
|
-
"mocha-junit-reporter": "^2.2.1",
|
|
170
|
-
"mocha-multi-reporters": "^1.5.1",
|
|
171
163
|
nock: "^14",
|
|
172
|
-
shx: "^0.4.0",
|
|
173
164
|
sinon: "^21",
|
|
174
|
-
|
|
175
|
-
"ts-node": "^10",
|
|
176
|
-
tsd: "^0.33.0",
|
|
177
|
-
typedoc: "^0.28.7",
|
|
178
|
-
"typedoc-plugin-markdown": "^4.7.1",
|
|
179
|
-
typescript: "5.9.3"
|
|
165
|
+
tsd: "^0.33.0"
|
|
180
166
|
},
|
|
181
167
|
tsd: {
|
|
182
168
|
directory: "test/types"
|
|
@@ -259,7 +245,7 @@ var require_dist = __commonJS({
|
|
|
259
245
|
LogLevel2["WARN"] = "warn";
|
|
260
246
|
LogLevel2["INFO"] = "info";
|
|
261
247
|
LogLevel2["DEBUG"] = "debug";
|
|
262
|
-
})(LogLevel
|
|
248
|
+
})(LogLevel || (exports2.LogLevel = LogLevel = {}));
|
|
263
249
|
var ConsoleLogger = class _ConsoleLogger {
|
|
264
250
|
constructor() {
|
|
265
251
|
this.level = LogLevel.INFO;
|
|
@@ -283,7 +269,7 @@ var require_dist = __commonJS({
|
|
|
283
269
|
/**
|
|
284
270
|
* Log a debug message
|
|
285
271
|
*/
|
|
286
|
-
//
|
|
272
|
+
// biome-ignore lint/suspicious/noExplicitAny: can log anything
|
|
287
273
|
debug(...msg) {
|
|
288
274
|
if (_ConsoleLogger.isMoreOrEqualSevere(LogLevel.DEBUG, this.level)) {
|
|
289
275
|
console.debug(_ConsoleLogger.labels.get(LogLevel.DEBUG), this.name, ...msg);
|
|
@@ -292,7 +278,7 @@ var require_dist = __commonJS({
|
|
|
292
278
|
/**
|
|
293
279
|
* Log an info message
|
|
294
280
|
*/
|
|
295
|
-
//
|
|
281
|
+
// biome-ignore lint/suspicious/noExplicitAny: can log anything
|
|
296
282
|
info(...msg) {
|
|
297
283
|
if (_ConsoleLogger.isMoreOrEqualSevere(LogLevel.INFO, this.level)) {
|
|
298
284
|
console.info(_ConsoleLogger.labels.get(LogLevel.INFO), this.name, ...msg);
|
|
@@ -301,7 +287,7 @@ var require_dist = __commonJS({
|
|
|
301
287
|
/**
|
|
302
288
|
* Log a warning message
|
|
303
289
|
*/
|
|
304
|
-
//
|
|
290
|
+
// biome-ignore lint/suspicious/noExplicitAny: can log anything
|
|
305
291
|
warn(...msg) {
|
|
306
292
|
if (_ConsoleLogger.isMoreOrEqualSevere(LogLevel.WARN, this.level)) {
|
|
307
293
|
console.warn(_ConsoleLogger.labels.get(LogLevel.WARN), this.name, ...msg);
|
|
@@ -310,7 +296,7 @@ var require_dist = __commonJS({
|
|
|
310
296
|
/**
|
|
311
297
|
* Log an error message
|
|
312
298
|
*/
|
|
313
|
-
//
|
|
299
|
+
// biome-ignore lint/suspicious/noExplicitAny: can log anything
|
|
314
300
|
error(...msg) {
|
|
315
301
|
if (_ConsoleLogger.isMoreOrEqualSevere(LogLevel.ERROR, this.level)) {
|
|
316
302
|
console.error(_ConsoleLogger.labels.get(LogLevel.ERROR), this.name, ...msg);
|
|
@@ -413,6 +399,181 @@ var require_response = __commonJS({
|
|
|
413
399
|
}
|
|
414
400
|
});
|
|
415
401
|
|
|
402
|
+
// node_modules/@slack/web-api/dist/chat-stream.js
|
|
403
|
+
var require_chat_stream = __commonJS({
|
|
404
|
+
"node_modules/@slack/web-api/dist/chat-stream.js"(exports2) {
|
|
405
|
+
"use strict";
|
|
406
|
+
var __rest = exports2 && exports2.__rest || function(s, e) {
|
|
407
|
+
var t = {};
|
|
408
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
409
|
+
t[p] = s[p];
|
|
410
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
411
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
412
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
413
|
+
t[p[i]] = s[p[i]];
|
|
414
|
+
}
|
|
415
|
+
return t;
|
|
416
|
+
};
|
|
417
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
418
|
+
exports2.ChatStreamer = void 0;
|
|
419
|
+
var ChatStreamer = class {
|
|
420
|
+
/**
|
|
421
|
+
* Instantiate a new chat streamer.
|
|
422
|
+
*
|
|
423
|
+
* @description The "constructor" method creates a unique {@link ChatStreamer} instance that keeps track of one chat stream.
|
|
424
|
+
* @example
|
|
425
|
+
* const client = new WebClient(process.env.SLACK_BOT_TOKEN);
|
|
426
|
+
* const logger = new ConsoleLogger();
|
|
427
|
+
* const args = {
|
|
428
|
+
* channel: "C0123456789",
|
|
429
|
+
* thread_ts: "1700000001.123456",
|
|
430
|
+
* recipient_team_id: "T0123456789",
|
|
431
|
+
* recipient_user_id: "U0123456789",
|
|
432
|
+
* };
|
|
433
|
+
* const streamer = new ChatStreamer(client, logger, args, { buffer_size: 512 });
|
|
434
|
+
* await streamer.append({
|
|
435
|
+
* markdown_text: "**hello world!**",
|
|
436
|
+
* });
|
|
437
|
+
* await streamer.stop();
|
|
438
|
+
* @see {@link https://docs.slack.dev/reference/methods/chat.startStream}
|
|
439
|
+
* @see {@link https://docs.slack.dev/reference/methods/chat.appendStream}
|
|
440
|
+
* @see {@link https://docs.slack.dev/reference/methods/chat.stopStream}
|
|
441
|
+
*/
|
|
442
|
+
constructor(client, logger, args, options) {
|
|
443
|
+
var _a;
|
|
444
|
+
this.buffer = "";
|
|
445
|
+
this.client = client;
|
|
446
|
+
this.logger = logger;
|
|
447
|
+
this.options = {
|
|
448
|
+
buffer_size: (_a = options.buffer_size) !== null && _a !== void 0 ? _a : 256
|
|
449
|
+
};
|
|
450
|
+
this.state = "starting";
|
|
451
|
+
this.streamArgs = args;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Append to the stream.
|
|
455
|
+
*
|
|
456
|
+
* @description The "append" method appends to the chat stream being used. This method can be called multiple times. After the stream is stopped this method cannot be called.
|
|
457
|
+
* @example
|
|
458
|
+
* const streamer = client.chatStream({
|
|
459
|
+
* channel: "C0123456789",
|
|
460
|
+
* thread_ts: "1700000001.123456",
|
|
461
|
+
* recipient_team_id: "T0123456789",
|
|
462
|
+
* recipient_user_id: "U0123456789",
|
|
463
|
+
* });
|
|
464
|
+
* await streamer.append({
|
|
465
|
+
* markdown_text: "**hello wo",
|
|
466
|
+
* });
|
|
467
|
+
* await streamer.append({
|
|
468
|
+
* markdown_text: "rld!**",
|
|
469
|
+
* });
|
|
470
|
+
* await streamer.stop();
|
|
471
|
+
* @see {@link https://docs.slack.dev/reference/methods/chat.appendStream}
|
|
472
|
+
*/
|
|
473
|
+
async append(args) {
|
|
474
|
+
if (this.state === "completed") {
|
|
475
|
+
throw new Error(`failed to append stream: stream state is ${this.state}`);
|
|
476
|
+
}
|
|
477
|
+
const { markdown_text, chunks } = args, opts = __rest(args, ["markdown_text", "chunks"]);
|
|
478
|
+
if (opts.token) {
|
|
479
|
+
this.token = opts.token;
|
|
480
|
+
}
|
|
481
|
+
if (markdown_text) {
|
|
482
|
+
this.buffer += markdown_text;
|
|
483
|
+
}
|
|
484
|
+
if (this.buffer.length >= this.options.buffer_size || chunks) {
|
|
485
|
+
return await this.flushBuffer(Object.assign({ chunks }, opts));
|
|
486
|
+
}
|
|
487
|
+
const details = {
|
|
488
|
+
bufferLength: this.buffer.length,
|
|
489
|
+
bufferSize: this.options.buffer_size,
|
|
490
|
+
channel: this.streamArgs.channel,
|
|
491
|
+
recipientTeamId: this.streamArgs.recipient_team_id,
|
|
492
|
+
recipientUserId: this.streamArgs.recipient_user_id,
|
|
493
|
+
threadTs: this.streamArgs.thread_ts
|
|
494
|
+
};
|
|
495
|
+
this.logger.debug(`ChatStreamer appended to buffer: ${JSON.stringify(details)}`);
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Stop the stream and finalize the message.
|
|
500
|
+
*
|
|
501
|
+
* @description The "stop" method stops the chat stream being used. This method can be called once to end the stream. Additional "blocks" and "metadata" can be provided.
|
|
502
|
+
*
|
|
503
|
+
* @example
|
|
504
|
+
* const streamer = client.chatStream({
|
|
505
|
+
* channel: "C0123456789",
|
|
506
|
+
* thread_ts: "1700000001.123456",
|
|
507
|
+
* recipient_team_id: "T0123456789",
|
|
508
|
+
* recipient_user_id: "U0123456789",
|
|
509
|
+
* });
|
|
510
|
+
* await streamer.append({
|
|
511
|
+
* markdown_text: "**hello world!**",
|
|
512
|
+
* });
|
|
513
|
+
* await streamer.stop();
|
|
514
|
+
* @see {@link https://docs.slack.dev/reference/methods/chat.stopStream}
|
|
515
|
+
*/
|
|
516
|
+
async stop(args) {
|
|
517
|
+
if (this.state === "completed") {
|
|
518
|
+
throw new Error(`failed to stop stream: stream state is ${this.state}`);
|
|
519
|
+
}
|
|
520
|
+
const _a = args !== null && args !== void 0 ? args : {}, { markdown_text, chunks } = _a, opts = __rest(_a, ["markdown_text", "chunks"]);
|
|
521
|
+
if (opts.token) {
|
|
522
|
+
this.token = opts.token;
|
|
523
|
+
}
|
|
524
|
+
if (markdown_text) {
|
|
525
|
+
this.buffer += markdown_text;
|
|
526
|
+
}
|
|
527
|
+
if (!this.streamTs) {
|
|
528
|
+
const response2 = await this.client.chat.startStream(Object.assign(Object.assign({}, this.streamArgs), { token: this.token }));
|
|
529
|
+
if (!response2.ts) {
|
|
530
|
+
throw new Error("failed to stop stream: stream not started");
|
|
531
|
+
}
|
|
532
|
+
this.streamTs = response2.ts;
|
|
533
|
+
this.state = "in_progress";
|
|
534
|
+
}
|
|
535
|
+
const chunksToFlush = [];
|
|
536
|
+
if (this.buffer.length > 0) {
|
|
537
|
+
chunksToFlush.push({
|
|
538
|
+
type: "markdown_text",
|
|
539
|
+
text: this.buffer
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
if (chunks) {
|
|
543
|
+
chunksToFlush.push(...chunks);
|
|
544
|
+
}
|
|
545
|
+
const response = await this.client.chat.stopStream(Object.assign({ token: this.token, channel: this.streamArgs.channel, ts: this.streamTs, chunks: chunksToFlush }, opts));
|
|
546
|
+
this.state = "completed";
|
|
547
|
+
return response;
|
|
548
|
+
}
|
|
549
|
+
async flushBuffer(args) {
|
|
550
|
+
const _a = args !== null && args !== void 0 ? args : {}, { chunks } = _a, opts = __rest(_a, ["chunks"]);
|
|
551
|
+
const chunksToFlush = [];
|
|
552
|
+
if (this.buffer.length > 0) {
|
|
553
|
+
chunksToFlush.push({
|
|
554
|
+
type: "markdown_text",
|
|
555
|
+
text: this.buffer
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
if (chunks) {
|
|
559
|
+
chunksToFlush.push(...chunks);
|
|
560
|
+
}
|
|
561
|
+
if (!this.streamTs) {
|
|
562
|
+
const response2 = await this.client.chat.startStream(Object.assign(Object.assign(Object.assign({}, this.streamArgs), { token: this.token, chunks: chunksToFlush }), opts));
|
|
563
|
+
this.buffer = "";
|
|
564
|
+
this.streamTs = response2.ts;
|
|
565
|
+
this.state = "in_progress";
|
|
566
|
+
return response2;
|
|
567
|
+
}
|
|
568
|
+
const response = await this.client.chat.appendStream(Object.assign({ token: this.token, channel: this.streamArgs.channel, ts: this.streamTs, chunks: chunksToFlush }, opts));
|
|
569
|
+
this.buffer = "";
|
|
570
|
+
return response;
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
exports2.ChatStreamer = ChatStreamer;
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
|
|
416
577
|
// node_modules/delayed-stream/lib/delayed_stream.js
|
|
417
578
|
var require_delayed_stream = __commonJS({
|
|
418
579
|
"node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
|
|
@@ -12137,17 +12298,37 @@ var require_axios = __commonJS({
|
|
|
12137
12298
|
};
|
|
12138
12299
|
var isDate = kindOfTest("Date");
|
|
12139
12300
|
var isFile = kindOfTest("File");
|
|
12301
|
+
var isReactNativeBlob = (value) => {
|
|
12302
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
12303
|
+
};
|
|
12304
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
12140
12305
|
var isBlob = kindOfTest("Blob");
|
|
12141
12306
|
var isFileList = kindOfTest("FileList");
|
|
12142
12307
|
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
12308
|
+
function getGlobal() {
|
|
12309
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
12310
|
+
if (typeof self !== "undefined") return self;
|
|
12311
|
+
if (typeof window !== "undefined") return window;
|
|
12312
|
+
if (typeof global !== "undefined") return global;
|
|
12313
|
+
return {};
|
|
12314
|
+
}
|
|
12315
|
+
var G = getGlobal();
|
|
12316
|
+
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
12143
12317
|
var isFormData = (thing) => {
|
|
12144
12318
|
let kind;
|
|
12145
|
-
return thing && (
|
|
12319
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
12146
12320
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
12147
12321
|
};
|
|
12148
12322
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
12149
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
12150
|
-
|
|
12323
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
12324
|
+
"ReadableStream",
|
|
12325
|
+
"Request",
|
|
12326
|
+
"Response",
|
|
12327
|
+
"Headers"
|
|
12328
|
+
].map(kindOfTest);
|
|
12329
|
+
var trim = (str) => {
|
|
12330
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
12331
|
+
};
|
|
12151
12332
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
12152
12333
|
if (obj === null || typeof obj === "undefined") {
|
|
12153
12334
|
return;
|
|
@@ -12199,6 +12380,9 @@ var require_axios = __commonJS({
|
|
|
12199
12380
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
12200
12381
|
const result = {};
|
|
12201
12382
|
const assignValue = (val, key) => {
|
|
12383
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12384
|
+
return;
|
|
12385
|
+
}
|
|
12202
12386
|
const targetKey = caseless && findKey(result, key) || key;
|
|
12203
12387
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
12204
12388
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -12216,13 +12400,27 @@ var require_axios = __commonJS({
|
|
|
12216
12400
|
return result;
|
|
12217
12401
|
}
|
|
12218
12402
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
12219
|
-
forEach(
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12403
|
+
forEach(
|
|
12404
|
+
b,
|
|
12405
|
+
(val, key) => {
|
|
12406
|
+
if (thisArg && isFunction$1(val)) {
|
|
12407
|
+
Object.defineProperty(a, key, {
|
|
12408
|
+
value: bind(val, thisArg),
|
|
12409
|
+
writable: true,
|
|
12410
|
+
enumerable: true,
|
|
12411
|
+
configurable: true
|
|
12412
|
+
});
|
|
12413
|
+
} else {
|
|
12414
|
+
Object.defineProperty(a, key, {
|
|
12415
|
+
value: val,
|
|
12416
|
+
writable: true,
|
|
12417
|
+
enumerable: true,
|
|
12418
|
+
configurable: true
|
|
12419
|
+
});
|
|
12420
|
+
}
|
|
12421
|
+
},
|
|
12422
|
+
{ allOwnKeys }
|
|
12423
|
+
);
|
|
12226
12424
|
return a;
|
|
12227
12425
|
};
|
|
12228
12426
|
var stripBOM = (content) => {
|
|
@@ -12231,9 +12429,14 @@ var require_axios = __commonJS({
|
|
|
12231
12429
|
}
|
|
12232
12430
|
return content;
|
|
12233
12431
|
};
|
|
12234
|
-
var inherits = (constructor, superConstructor, props,
|
|
12235
|
-
constructor.prototype = Object.create(superConstructor.prototype,
|
|
12236
|
-
constructor.prototype
|
|
12432
|
+
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
12433
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
12434
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
12435
|
+
value: constructor,
|
|
12436
|
+
writable: true,
|
|
12437
|
+
enumerable: false,
|
|
12438
|
+
configurable: true
|
|
12439
|
+
});
|
|
12237
12440
|
Object.defineProperty(constructor, "super", {
|
|
12238
12441
|
value: superConstructor.prototype
|
|
12239
12442
|
});
|
|
@@ -12304,19 +12507,16 @@ var require_axios = __commonJS({
|
|
|
12304
12507
|
};
|
|
12305
12508
|
var isHTMLForm = kindOfTest("HTMLFormElement");
|
|
12306
12509
|
var toCamelCase = (str) => {
|
|
12307
|
-
return str.toLowerCase().replace(
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
return p1.toUpperCase() + p2;
|
|
12311
|
-
}
|
|
12312
|
-
);
|
|
12510
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
12511
|
+
return p1.toUpperCase() + p2;
|
|
12512
|
+
});
|
|
12313
12513
|
};
|
|
12314
12514
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12315
12515
|
var isRegExp = kindOfTest("RegExp");
|
|
12316
12516
|
var reduceDescriptors = (obj, reducer) => {
|
|
12317
|
-
const
|
|
12517
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
12318
12518
|
const reducedDescriptors = {};
|
|
12319
|
-
forEach(
|
|
12519
|
+
forEach(descriptors, (descriptor, name) => {
|
|
12320
12520
|
let ret;
|
|
12321
12521
|
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
12322
12522
|
reducedDescriptors[name] = ret || descriptor;
|
|
@@ -12393,20 +12593,21 @@ var require_axios = __commonJS({
|
|
|
12393
12593
|
return setImmediate;
|
|
12394
12594
|
}
|
|
12395
12595
|
return postMessageSupported ? ((token, callbacks) => {
|
|
12396
|
-
_global.addEventListener(
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12596
|
+
_global.addEventListener(
|
|
12597
|
+
"message",
|
|
12598
|
+
({ source, data }) => {
|
|
12599
|
+
if (source === _global && data === token) {
|
|
12600
|
+
callbacks.length && callbacks.shift()();
|
|
12601
|
+
}
|
|
12602
|
+
},
|
|
12603
|
+
false
|
|
12604
|
+
);
|
|
12401
12605
|
return (cb) => {
|
|
12402
12606
|
callbacks.push(cb);
|
|
12403
12607
|
_global.postMessage(token, "*");
|
|
12404
12608
|
};
|
|
12405
12609
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
12406
|
-
})(
|
|
12407
|
-
typeof setImmediate === "function",
|
|
12408
|
-
isFunction$1(_global.postMessage)
|
|
12409
|
-
);
|
|
12610
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
12410
12611
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12411
12612
|
var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
12412
12613
|
var utils$1 = {
|
|
@@ -12428,6 +12629,8 @@ var require_axios = __commonJS({
|
|
|
12428
12629
|
isUndefined,
|
|
12429
12630
|
isDate,
|
|
12430
12631
|
isFile,
|
|
12632
|
+
isReactNativeBlob,
|
|
12633
|
+
isReactNative,
|
|
12431
12634
|
isBlob,
|
|
12432
12635
|
isRegExp,
|
|
12433
12636
|
isFunction: isFunction$1,
|
|
@@ -12469,25 +12672,47 @@ var require_axios = __commonJS({
|
|
|
12469
12672
|
asap,
|
|
12470
12673
|
isIterable
|
|
12471
12674
|
};
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12675
|
+
var AxiosError = class _AxiosError extends Error {
|
|
12676
|
+
static from(error, code, config, request, response, customProps) {
|
|
12677
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
12678
|
+
axiosError.cause = error;
|
|
12679
|
+
axiosError.name = error.name;
|
|
12680
|
+
if (error.status != null && axiosError.status == null) {
|
|
12681
|
+
axiosError.status = error.status;
|
|
12682
|
+
}
|
|
12683
|
+
customProps && Object.assign(axiosError, customProps);
|
|
12684
|
+
return axiosError;
|
|
12478
12685
|
}
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12686
|
+
/**
|
|
12687
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
12688
|
+
*
|
|
12689
|
+
* @param {string} message The error message.
|
|
12690
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
12691
|
+
* @param {Object} [config] The config.
|
|
12692
|
+
* @param {Object} [request] The request.
|
|
12693
|
+
* @param {Object} [response] The response.
|
|
12694
|
+
*
|
|
12695
|
+
* @returns {Error} The created error.
|
|
12696
|
+
*/
|
|
12697
|
+
constructor(message, code, config, request, response) {
|
|
12698
|
+
super(message);
|
|
12699
|
+
Object.defineProperty(this, "message", {
|
|
12700
|
+
value: message,
|
|
12701
|
+
enumerable: true,
|
|
12702
|
+
writable: true,
|
|
12703
|
+
configurable: true
|
|
12704
|
+
});
|
|
12705
|
+
this.name = "AxiosError";
|
|
12706
|
+
this.isAxiosError = true;
|
|
12707
|
+
code && (this.code = code);
|
|
12708
|
+
config && (this.config = config);
|
|
12709
|
+
request && (this.request = request);
|
|
12710
|
+
if (response) {
|
|
12711
|
+
this.response = response;
|
|
12712
|
+
this.status = response.status;
|
|
12713
|
+
}
|
|
12487
12714
|
}
|
|
12488
|
-
|
|
12489
|
-
utils$1.inherits(AxiosError, Error, {
|
|
12490
|
-
toJSON: function toJSON() {
|
|
12715
|
+
toJSON() {
|
|
12491
12716
|
return {
|
|
12492
12717
|
// Standard
|
|
12493
12718
|
message: this.message,
|
|
@@ -12506,45 +12731,20 @@ var require_axios = __commonJS({
|
|
|
12506
12731
|
status: this.status
|
|
12507
12732
|
};
|
|
12508
12733
|
}
|
|
12509
|
-
});
|
|
12510
|
-
var prototype$1 = AxiosError.prototype;
|
|
12511
|
-
var descriptors = {};
|
|
12512
|
-
[
|
|
12513
|
-
"ERR_BAD_OPTION_VALUE",
|
|
12514
|
-
"ERR_BAD_OPTION",
|
|
12515
|
-
"ECONNABORTED",
|
|
12516
|
-
"ETIMEDOUT",
|
|
12517
|
-
"ERR_NETWORK",
|
|
12518
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
12519
|
-
"ERR_DEPRECATED",
|
|
12520
|
-
"ERR_BAD_RESPONSE",
|
|
12521
|
-
"ERR_BAD_REQUEST",
|
|
12522
|
-
"ERR_CANCELED",
|
|
12523
|
-
"ERR_NOT_SUPPORT",
|
|
12524
|
-
"ERR_INVALID_URL"
|
|
12525
|
-
// eslint-disable-next-line func-names
|
|
12526
|
-
].forEach((code) => {
|
|
12527
|
-
descriptors[code] = { value: code };
|
|
12528
|
-
});
|
|
12529
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
12530
|
-
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
12531
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
12532
|
-
const axiosError = Object.create(prototype$1);
|
|
12533
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
12534
|
-
return obj !== Error.prototype;
|
|
12535
|
-
}, (prop) => {
|
|
12536
|
-
return prop !== "isAxiosError";
|
|
12537
|
-
});
|
|
12538
|
-
const msg = error && error.message ? error.message : "Error";
|
|
12539
|
-
const errCode = code == null && error ? error.code : code;
|
|
12540
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
12541
|
-
if (error && axiosError.cause == null) {
|
|
12542
|
-
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
12543
|
-
}
|
|
12544
|
-
axiosError.name = error && error.name || "Error";
|
|
12545
|
-
customProps && Object.assign(axiosError, customProps);
|
|
12546
|
-
return axiosError;
|
|
12547
12734
|
};
|
|
12735
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
12736
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
12737
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
12738
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
12739
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
12740
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
12741
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
12742
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
12743
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
12744
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
12745
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
12746
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
12747
|
+
var AxiosError$1 = AxiosError;
|
|
12548
12748
|
function isVisitable(thing) {
|
|
12549
12749
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
12550
12750
|
}
|
|
@@ -12569,13 +12769,18 @@ var require_axios = __commonJS({
|
|
|
12569
12769
|
throw new TypeError("target must be an object");
|
|
12570
12770
|
}
|
|
12571
12771
|
formData = formData || new (FormData__default["default"] || FormData)();
|
|
12572
|
-
options = utils$1.toFlatObject(
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12772
|
+
options = utils$1.toFlatObject(
|
|
12773
|
+
options,
|
|
12774
|
+
{
|
|
12775
|
+
metaTokens: true,
|
|
12776
|
+
dots: false,
|
|
12777
|
+
indexes: false
|
|
12778
|
+
},
|
|
12779
|
+
false,
|
|
12780
|
+
function defined(option, source) {
|
|
12781
|
+
return !utils$1.isUndefined(source[option]);
|
|
12782
|
+
}
|
|
12783
|
+
);
|
|
12579
12784
|
const metaTokens = options.metaTokens;
|
|
12580
12785
|
const visitor = options.visitor || defaultVisitor;
|
|
12581
12786
|
const dots = options.dots;
|
|
@@ -12594,7 +12799,7 @@ var require_axios = __commonJS({
|
|
|
12594
12799
|
return value.toString();
|
|
12595
12800
|
}
|
|
12596
12801
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
12597
|
-
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
12802
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
12598
12803
|
}
|
|
12599
12804
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
12600
12805
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -12603,6 +12808,10 @@ var require_axios = __commonJS({
|
|
|
12603
12808
|
}
|
|
12604
12809
|
function defaultVisitor(value, key, path) {
|
|
12605
12810
|
let arr = value;
|
|
12811
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
12812
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
12813
|
+
return false;
|
|
12814
|
+
}
|
|
12606
12815
|
if (value && !path && typeof value === "object") {
|
|
12607
12816
|
if (utils$1.endsWith(key, "{}")) {
|
|
12608
12817
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -12638,13 +12847,7 @@ var require_axios = __commonJS({
|
|
|
12638
12847
|
}
|
|
12639
12848
|
stack.push(value);
|
|
12640
12849
|
utils$1.forEach(value, function each(el, key) {
|
|
12641
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
12642
|
-
formData,
|
|
12643
|
-
el,
|
|
12644
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
12645
|
-
path,
|
|
12646
|
-
exposedHelpers
|
|
12647
|
-
);
|
|
12850
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
12648
12851
|
if (result === true) {
|
|
12649
12852
|
build(el, path ? path.concat(key) : [key]);
|
|
12650
12853
|
}
|
|
@@ -12695,17 +12898,15 @@ var require_axios = __commonJS({
|
|
|
12695
12898
|
return url2;
|
|
12696
12899
|
}
|
|
12697
12900
|
const _encode = options && options.encode || encode;
|
|
12698
|
-
|
|
12699
|
-
options
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
}
|
|
12703
|
-
const serializeFn = options && options.serialize;
|
|
12901
|
+
const _options = utils$1.isFunction(options) ? {
|
|
12902
|
+
serialize: options
|
|
12903
|
+
} : options;
|
|
12904
|
+
const serializeFn = _options && _options.serialize;
|
|
12704
12905
|
let serializedParams;
|
|
12705
12906
|
if (serializeFn) {
|
|
12706
|
-
serializedParams = serializeFn(params,
|
|
12907
|
+
serializedParams = serializeFn(params, _options);
|
|
12707
12908
|
} else {
|
|
12708
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params,
|
|
12909
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
12709
12910
|
}
|
|
12710
12911
|
if (serializedParams) {
|
|
12711
12912
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -12725,6 +12926,7 @@ var require_axios = __commonJS({
|
|
|
12725
12926
|
*
|
|
12726
12927
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
12727
12928
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
12929
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
12728
12930
|
*
|
|
12729
12931
|
* @return {Number} An ID used to remove interceptor later
|
|
12730
12932
|
*/
|
|
@@ -12781,7 +12983,8 @@ var require_axios = __commonJS({
|
|
|
12781
12983
|
var transitionalDefaults = {
|
|
12782
12984
|
silentJSONParsing: true,
|
|
12783
12985
|
forcedJSONParsing: true,
|
|
12784
|
-
clarifyTimeoutError: false
|
|
12986
|
+
clarifyTimeoutError: false,
|
|
12987
|
+
legacyInterceptorReqResOrdering: true
|
|
12785
12988
|
};
|
|
12786
12989
|
var URLSearchParams = url__default["default"].URLSearchParams;
|
|
12787
12990
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
@@ -12910,70 +13113,74 @@ var require_axios = __commonJS({
|
|
|
12910
13113
|
var defaults = {
|
|
12911
13114
|
transitional: transitionalDefaults,
|
|
12912
13115
|
adapter: ["xhr", "http", "fetch"],
|
|
12913
|
-
transformRequest: [
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
if (utils$1.isArrayBufferView(data)) {
|
|
12928
|
-
return data.buffer;
|
|
12929
|
-
}
|
|
12930
|
-
if (utils$1.isURLSearchParams(data)) {
|
|
12931
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
12932
|
-
return data.toString();
|
|
12933
|
-
}
|
|
12934
|
-
let isFileList2;
|
|
12935
|
-
if (isObjectPayload) {
|
|
12936
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
12937
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
13116
|
+
transformRequest: [
|
|
13117
|
+
function transformRequest(data, headers) {
|
|
13118
|
+
const contentType = headers.getContentType() || "";
|
|
13119
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
13120
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
13121
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
13122
|
+
data = new FormData(data);
|
|
13123
|
+
}
|
|
13124
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
13125
|
+
if (isFormData2) {
|
|
13126
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
13127
|
+
}
|
|
13128
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
13129
|
+
return data;
|
|
12938
13130
|
}
|
|
12939
|
-
if (
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
13131
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
13132
|
+
return data.buffer;
|
|
13133
|
+
}
|
|
13134
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
13135
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
13136
|
+
return data.toString();
|
|
13137
|
+
}
|
|
13138
|
+
let isFileList2;
|
|
13139
|
+
if (isObjectPayload) {
|
|
13140
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
13141
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
13142
|
+
}
|
|
13143
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
13144
|
+
const _FormData = this.env && this.env.FormData;
|
|
13145
|
+
return toFormData(
|
|
13146
|
+
isFileList2 ? { "files[]": data } : data,
|
|
13147
|
+
_FormData && new _FormData(),
|
|
13148
|
+
this.formSerializer
|
|
13149
|
+
);
|
|
13150
|
+
}
|
|
13151
|
+
}
|
|
13152
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
13153
|
+
headers.setContentType("application/json", false);
|
|
13154
|
+
return stringifySafely(data);
|
|
12946
13155
|
}
|
|
12947
|
-
}
|
|
12948
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
12949
|
-
headers.setContentType("application/json", false);
|
|
12950
|
-
return stringifySafely(data);
|
|
12951
|
-
}
|
|
12952
|
-
return data;
|
|
12953
|
-
}],
|
|
12954
|
-
transformResponse: [function transformResponse(data) {
|
|
12955
|
-
const transitional = this.transitional || defaults.transitional;
|
|
12956
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
12957
|
-
const JSONRequested = this.responseType === "json";
|
|
12958
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
12959
13156
|
return data;
|
|
12960
13157
|
}
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
13158
|
+
],
|
|
13159
|
+
transformResponse: [
|
|
13160
|
+
function transformResponse(data) {
|
|
13161
|
+
const transitional = this.transitional || defaults.transitional;
|
|
13162
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
13163
|
+
const JSONRequested = this.responseType === "json";
|
|
13164
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
13165
|
+
return data;
|
|
13166
|
+
}
|
|
13167
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
13168
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
13169
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
13170
|
+
try {
|
|
13171
|
+
return JSON.parse(data, this.parseReviver);
|
|
13172
|
+
} catch (e) {
|
|
13173
|
+
if (strictJSONParsing) {
|
|
13174
|
+
if (e.name === "SyntaxError") {
|
|
13175
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
13176
|
+
}
|
|
13177
|
+
throw e;
|
|
12970
13178
|
}
|
|
12971
|
-
throw e;
|
|
12972
13179
|
}
|
|
12973
13180
|
}
|
|
13181
|
+
return data;
|
|
12974
13182
|
}
|
|
12975
|
-
|
|
12976
|
-
}],
|
|
13183
|
+
],
|
|
12977
13184
|
/**
|
|
12978
13185
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
12979
13186
|
* timeout is not created.
|
|
@@ -12992,7 +13199,7 @@ var require_axios = __commonJS({
|
|
|
12992
13199
|
},
|
|
12993
13200
|
headers: {
|
|
12994
13201
|
common: {
|
|
12995
|
-
|
|
13202
|
+
Accept: "application/json, text/plain, */*",
|
|
12996
13203
|
"Content-Type": void 0
|
|
12997
13204
|
}
|
|
12998
13205
|
}
|
|
@@ -13259,7 +13466,14 @@ var require_axios = __commonJS({
|
|
|
13259
13466
|
return this;
|
|
13260
13467
|
}
|
|
13261
13468
|
};
|
|
13262
|
-
AxiosHeaders.accessor([
|
|
13469
|
+
AxiosHeaders.accessor([
|
|
13470
|
+
"Content-Type",
|
|
13471
|
+
"Content-Length",
|
|
13472
|
+
"Accept",
|
|
13473
|
+
"Accept-Encoding",
|
|
13474
|
+
"User-Agent",
|
|
13475
|
+
"Authorization"
|
|
13476
|
+
]);
|
|
13263
13477
|
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
13264
13478
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
13265
13479
|
return {
|
|
@@ -13285,28 +13499,43 @@ var require_axios = __commonJS({
|
|
|
13285
13499
|
function isCancel(value) {
|
|
13286
13500
|
return !!(value && value.__CANCEL__);
|
|
13287
13501
|
}
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13502
|
+
var CanceledError = class extends AxiosError$1 {
|
|
13503
|
+
/**
|
|
13504
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
13505
|
+
*
|
|
13506
|
+
* @param {string=} message The message.
|
|
13507
|
+
* @param {Object=} config The config.
|
|
13508
|
+
* @param {Object=} request The request.
|
|
13509
|
+
*
|
|
13510
|
+
* @returns {CanceledError} The created error.
|
|
13511
|
+
*/
|
|
13512
|
+
constructor(message, config, request) {
|
|
13513
|
+
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
13514
|
+
this.name = "CanceledError";
|
|
13515
|
+
this.__CANCEL__ = true;
|
|
13516
|
+
}
|
|
13517
|
+
};
|
|
13518
|
+
var CanceledError$1 = CanceledError;
|
|
13295
13519
|
function settle(resolve, reject, response) {
|
|
13296
13520
|
const validateStatus = response.config.validateStatus;
|
|
13297
13521
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
13298
13522
|
resolve(response);
|
|
13299
13523
|
} else {
|
|
13300
|
-
reject(
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13524
|
+
reject(
|
|
13525
|
+
new AxiosError$1(
|
|
13526
|
+
"Request failed with status code " + response.status,
|
|
13527
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
13528
|
+
response.config,
|
|
13529
|
+
response.request,
|
|
13530
|
+
response
|
|
13531
|
+
)
|
|
13532
|
+
);
|
|
13307
13533
|
}
|
|
13308
13534
|
}
|
|
13309
13535
|
function isAbsoluteURL(url2) {
|
|
13536
|
+
if (typeof url2 !== "string") {
|
|
13537
|
+
return false;
|
|
13538
|
+
}
|
|
13310
13539
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13311
13540
|
}
|
|
13312
13541
|
function combineURLs(baseURL, relativeURL) {
|
|
@@ -13319,7 +13548,7 @@ var require_axios = __commonJS({
|
|
|
13319
13548
|
}
|
|
13320
13549
|
return requestedURL;
|
|
13321
13550
|
}
|
|
13322
|
-
var VERSION = "1.13.
|
|
13551
|
+
var VERSION = "1.13.6";
|
|
13323
13552
|
function parseProtocol(url2) {
|
|
13324
13553
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
13325
13554
|
return match && match[1] || "";
|
|
@@ -13335,7 +13564,7 @@ var require_axios = __commonJS({
|
|
|
13335
13564
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
13336
13565
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
13337
13566
|
if (!match) {
|
|
13338
|
-
throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
|
|
13567
|
+
throw new AxiosError$1("Invalid URL", AxiosError$1.ERR_INVALID_URL);
|
|
13339
13568
|
}
|
|
13340
13569
|
const mime = match[1];
|
|
13341
13570
|
const isBase64 = match[2];
|
|
@@ -13343,27 +13572,32 @@ var require_axios = __commonJS({
|
|
|
13343
13572
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
13344
13573
|
if (asBlob) {
|
|
13345
13574
|
if (!_Blob) {
|
|
13346
|
-
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
13575
|
+
throw new AxiosError$1("Blob is not supported", AxiosError$1.ERR_NOT_SUPPORT);
|
|
13347
13576
|
}
|
|
13348
13577
|
return new _Blob([buffer], { type: mime });
|
|
13349
13578
|
}
|
|
13350
13579
|
return buffer;
|
|
13351
13580
|
}
|
|
13352
|
-
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
13581
|
+
throw new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_NOT_SUPPORT);
|
|
13353
13582
|
}
|
|
13354
13583
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13355
13584
|
var AxiosTransformStream = class extends stream__default["default"].Transform {
|
|
13356
13585
|
constructor(options) {
|
|
13357
|
-
options = utils$1.toFlatObject(
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13366
|
-
|
|
13586
|
+
options = utils$1.toFlatObject(
|
|
13587
|
+
options,
|
|
13588
|
+
{
|
|
13589
|
+
maxRate: 0,
|
|
13590
|
+
chunkSize: 64 * 1024,
|
|
13591
|
+
minChunkSize: 100,
|
|
13592
|
+
timeWindow: 500,
|
|
13593
|
+
ticksRate: 2,
|
|
13594
|
+
samplesCount: 15
|
|
13595
|
+
},
|
|
13596
|
+
null,
|
|
13597
|
+
(prop, source) => {
|
|
13598
|
+
return !utils$1.isUndefined(source[prop]);
|
|
13599
|
+
}
|
|
13600
|
+
);
|
|
13367
13601
|
super({
|
|
13368
13602
|
readableHighWaterMark: options.chunkSize
|
|
13369
13603
|
});
|
|
@@ -13446,9 +13680,12 @@ var require_axios = __commonJS({
|
|
|
13446
13680
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
13447
13681
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
13448
13682
|
}
|
|
13449
|
-
pushChunk(
|
|
13450
|
-
|
|
13451
|
-
|
|
13683
|
+
pushChunk(
|
|
13684
|
+
_chunk,
|
|
13685
|
+
chunkRemainder ? () => {
|
|
13686
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
13687
|
+
} : _callback
|
|
13688
|
+
);
|
|
13452
13689
|
};
|
|
13453
13690
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
13454
13691
|
if (err) {
|
|
@@ -13508,11 +13745,14 @@ var require_axios = __commonJS({
|
|
|
13508
13745
|
yield CRLF_BYTES;
|
|
13509
13746
|
}
|
|
13510
13747
|
static escapeName(name) {
|
|
13511
|
-
return String(name).replace(
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13748
|
+
return String(name).replace(
|
|
13749
|
+
/[\r\n"]/g,
|
|
13750
|
+
(match) => ({
|
|
13751
|
+
"\r": "%0D",
|
|
13752
|
+
"\n": "%0A",
|
|
13753
|
+
'"': "%22"
|
|
13754
|
+
})[match]
|
|
13755
|
+
);
|
|
13516
13756
|
}
|
|
13517
13757
|
};
|
|
13518
13758
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -13544,13 +13784,15 @@ var require_axios = __commonJS({
|
|
|
13544
13784
|
computedHeaders["Content-Length"] = contentLength;
|
|
13545
13785
|
}
|
|
13546
13786
|
headersHandler && headersHandler(computedHeaders);
|
|
13547
|
-
return stream.Readable.from(
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13787
|
+
return stream.Readable.from(
|
|
13788
|
+
(async function* () {
|
|
13789
|
+
for (const part of parts) {
|
|
13790
|
+
yield boundaryBytes;
|
|
13791
|
+
yield* part.encode();
|
|
13792
|
+
}
|
|
13793
|
+
yield footerBytes;
|
|
13794
|
+
})()
|
|
13795
|
+
);
|
|
13554
13796
|
};
|
|
13555
13797
|
var formDataToStream$1 = formDataToStream;
|
|
13556
13798
|
var ZlibHeaderTransformStream = class extends stream__default["default"].Transform {
|
|
@@ -13676,11 +13918,14 @@ var require_axios = __commonJS({
|
|
|
13676
13918
|
};
|
|
13677
13919
|
var progressEventDecorator = (total, throttled) => {
|
|
13678
13920
|
const lengthComputable = total != null;
|
|
13679
|
-
return [
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13921
|
+
return [
|
|
13922
|
+
(loaded) => throttled[0]({
|
|
13923
|
+
lengthComputable,
|
|
13924
|
+
total,
|
|
13925
|
+
loaded
|
|
13926
|
+
}),
|
|
13927
|
+
throttled[1]
|
|
13928
|
+
];
|
|
13684
13929
|
};
|
|
13685
13930
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
13686
13931
|
function estimateDataURLDecodedBytes(url2) {
|
|
@@ -13755,9 +14000,12 @@ var require_axios = __commonJS({
|
|
|
13755
14000
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
13756
14001
|
}
|
|
13757
14002
|
getSession(authority, options) {
|
|
13758
|
-
options = Object.assign(
|
|
13759
|
-
|
|
13760
|
-
|
|
14003
|
+
options = Object.assign(
|
|
14004
|
+
{
|
|
14005
|
+
sessionTimeout: 1e3
|
|
14006
|
+
},
|
|
14007
|
+
options
|
|
14008
|
+
);
|
|
13761
14009
|
let authoritySessions = this.sessions[authority];
|
|
13762
14010
|
if (authoritySessions) {
|
|
13763
14011
|
let len = authoritySessions.length;
|
|
@@ -13811,10 +14059,7 @@ var require_axios = __commonJS({
|
|
|
13811
14059
|
};
|
|
13812
14060
|
}
|
|
13813
14061
|
session.once("close", removeSession);
|
|
13814
|
-
let entry = [
|
|
13815
|
-
session,
|
|
13816
|
-
options
|
|
13817
|
-
];
|
|
14062
|
+
let entry = [session, options];
|
|
13818
14063
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
13819
14064
|
return session;
|
|
13820
14065
|
}
|
|
@@ -13841,8 +14086,11 @@ var require_axios = __commonJS({
|
|
|
13841
14086
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
13842
14087
|
}
|
|
13843
14088
|
if (proxy.auth) {
|
|
13844
|
-
|
|
14089
|
+
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
|
14090
|
+
if (validProxyAuth) {
|
|
13845
14091
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
14092
|
+
} else if (typeof proxy.auth === "object") {
|
|
14093
|
+
throw new AxiosError$1("Invalid proxy authorization", AxiosError$1.ERR_BAD_OPTION, { proxy });
|
|
13846
14094
|
}
|
|
13847
14095
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
13848
14096
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
@@ -13894,15 +14142,10 @@ var require_axios = __commonJS({
|
|
|
13894
14142
|
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : { address, family });
|
|
13895
14143
|
var http2Transport = {
|
|
13896
14144
|
request(options, cb) {
|
|
13897
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
|
|
14145
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
13898
14146
|
const { http2Options, headers } = options;
|
|
13899
14147
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
13900
|
-
const {
|
|
13901
|
-
HTTP2_HEADER_SCHEME,
|
|
13902
|
-
HTTP2_HEADER_METHOD,
|
|
13903
|
-
HTTP2_HEADER_PATH,
|
|
13904
|
-
HTTP2_HEADER_STATUS
|
|
13905
|
-
} = http2__default["default"].constants;
|
|
14148
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2__default["default"].constants;
|
|
13906
14149
|
const http2Headers = {
|
|
13907
14150
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
13908
14151
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -13955,7 +14198,10 @@ var require_axios = __commonJS({
|
|
|
13955
14198
|
const abortEmitter = new events.EventEmitter();
|
|
13956
14199
|
function abort(reason) {
|
|
13957
14200
|
try {
|
|
13958
|
-
abortEmitter.emit(
|
|
14201
|
+
abortEmitter.emit(
|
|
14202
|
+
"abort",
|
|
14203
|
+
!reason || reason.type ? new CanceledError$1(null, config, req) : reason
|
|
14204
|
+
);
|
|
13959
14205
|
} catch (err) {
|
|
13960
14206
|
console.warn("emit error", err);
|
|
13961
14207
|
}
|
|
@@ -14001,11 +14247,13 @@ var require_axios = __commonJS({
|
|
|
14001
14247
|
const dataUrl = String(config.url || fullPath || "");
|
|
14002
14248
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
14003
14249
|
if (estimated > config.maxContentLength) {
|
|
14004
|
-
return reject(
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14250
|
+
return reject(
|
|
14251
|
+
new AxiosError$1(
|
|
14252
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14253
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14254
|
+
config
|
|
14255
|
+
)
|
|
14256
|
+
);
|
|
14009
14257
|
}
|
|
14010
14258
|
}
|
|
14011
14259
|
let convertedData;
|
|
@@ -14022,7 +14270,7 @@ var require_axios = __commonJS({
|
|
|
14022
14270
|
Blob: config.env && config.env.Blob
|
|
14023
14271
|
});
|
|
14024
14272
|
} catch (err) {
|
|
14025
|
-
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
14273
|
+
throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
|
|
14026
14274
|
}
|
|
14027
14275
|
if (responseType === "text") {
|
|
14028
14276
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -14041,11 +14289,9 @@ var require_axios = __commonJS({
|
|
|
14041
14289
|
});
|
|
14042
14290
|
}
|
|
14043
14291
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
14044
|
-
return reject(
|
|
14045
|
-
"Unsupported protocol " + protocol,
|
|
14046
|
-
|
|
14047
|
-
config
|
|
14048
|
-
));
|
|
14292
|
+
return reject(
|
|
14293
|
+
new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_BAD_REQUEST, config)
|
|
14294
|
+
);
|
|
14049
14295
|
}
|
|
14050
14296
|
const headers = AxiosHeaders$1.from(config.headers).normalize();
|
|
14051
14297
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
@@ -14055,12 +14301,16 @@ var require_axios = __commonJS({
|
|
|
14055
14301
|
let maxDownloadRate = void 0;
|
|
14056
14302
|
if (utils$1.isSpecCompliantForm(data)) {
|
|
14057
14303
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
14058
|
-
data = formDataToStream$1(
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14304
|
+
data = formDataToStream$1(
|
|
14305
|
+
data,
|
|
14306
|
+
(formHeaders) => {
|
|
14307
|
+
headers.set(formHeaders);
|
|
14308
|
+
},
|
|
14309
|
+
{
|
|
14310
|
+
tag: `axios-${VERSION}-boundary`,
|
|
14311
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
14312
|
+
}
|
|
14313
|
+
);
|
|
14064
14314
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
14065
14315
|
headers.set(data.getHeaders());
|
|
14066
14316
|
if (!headers.hasContentLength()) {
|
|
@@ -14081,19 +14331,23 @@ var require_axios = __commonJS({
|
|
|
14081
14331
|
} else if (utils$1.isString(data)) {
|
|
14082
14332
|
data = Buffer.from(data, "utf-8");
|
|
14083
14333
|
} else {
|
|
14084
|
-
return reject(
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14334
|
+
return reject(
|
|
14335
|
+
new AxiosError$1(
|
|
14336
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
14337
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
14338
|
+
config
|
|
14339
|
+
)
|
|
14340
|
+
);
|
|
14089
14341
|
}
|
|
14090
14342
|
headers.setContentLength(data.length, false);
|
|
14091
14343
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
14092
|
-
return reject(
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14344
|
+
return reject(
|
|
14345
|
+
new AxiosError$1(
|
|
14346
|
+
"Request body larger than maxBodyLength limit",
|
|
14347
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
14348
|
+
config
|
|
14349
|
+
)
|
|
14350
|
+
);
|
|
14097
14351
|
}
|
|
14098
14352
|
}
|
|
14099
14353
|
const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
|
|
@@ -14107,16 +14361,25 @@ var require_axios = __commonJS({
|
|
|
14107
14361
|
if (!utils$1.isStream(data)) {
|
|
14108
14362
|
data = stream__default["default"].Readable.from(data, { objectMode: false });
|
|
14109
14363
|
}
|
|
14110
|
-
data = stream__default["default"].pipeline(
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14364
|
+
data = stream__default["default"].pipeline(
|
|
14365
|
+
[
|
|
14366
|
+
data,
|
|
14367
|
+
new AxiosTransformStream$1({
|
|
14368
|
+
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
14369
|
+
})
|
|
14370
|
+
],
|
|
14371
|
+
utils$1.noop
|
|
14372
|
+
);
|
|
14373
|
+
onUploadProgress && data.on(
|
|
14374
|
+
"progress",
|
|
14375
|
+
flushOnFinish(
|
|
14376
|
+
data,
|
|
14377
|
+
progressEventDecorator(
|
|
14378
|
+
contentLength,
|
|
14379
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
14380
|
+
)
|
|
14118
14381
|
)
|
|
14119
|
-
)
|
|
14382
|
+
);
|
|
14120
14383
|
}
|
|
14121
14384
|
let auth = void 0;
|
|
14122
14385
|
if (config.auth) {
|
|
@@ -14167,7 +14430,11 @@ var require_axios = __commonJS({
|
|
|
14167
14430
|
} else {
|
|
14168
14431
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
14169
14432
|
options.port = parsed.port;
|
|
14170
|
-
setProxy(
|
|
14433
|
+
setProxy(
|
|
14434
|
+
options,
|
|
14435
|
+
config.proxy,
|
|
14436
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
14437
|
+
);
|
|
14171
14438
|
}
|
|
14172
14439
|
let transport;
|
|
14173
14440
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -14205,13 +14472,16 @@ var require_axios = __commonJS({
|
|
|
14205
14472
|
const transformStream = new AxiosTransformStream$1({
|
|
14206
14473
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
14207
14474
|
});
|
|
14208
|
-
onDownloadProgress && transformStream.on(
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14475
|
+
onDownloadProgress && transformStream.on(
|
|
14476
|
+
"progress",
|
|
14477
|
+
flushOnFinish(
|
|
14478
|
+
transformStream,
|
|
14479
|
+
progressEventDecorator(
|
|
14480
|
+
responseLength,
|
|
14481
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
14482
|
+
)
|
|
14213
14483
|
)
|
|
14214
|
-
)
|
|
14484
|
+
);
|
|
14215
14485
|
streams.push(transformStream);
|
|
14216
14486
|
}
|
|
14217
14487
|
let responseStream = res;
|
|
@@ -14261,21 +14531,23 @@ var require_axios = __commonJS({
|
|
|
14261
14531
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
14262
14532
|
rejected = true;
|
|
14263
14533
|
responseStream.destroy();
|
|
14264
|
-
abort(
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14534
|
+
abort(
|
|
14535
|
+
new AxiosError$1(
|
|
14536
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14537
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14538
|
+
config,
|
|
14539
|
+
lastRequest
|
|
14540
|
+
)
|
|
14541
|
+
);
|
|
14270
14542
|
}
|
|
14271
14543
|
});
|
|
14272
14544
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
14273
14545
|
if (rejected) {
|
|
14274
14546
|
return;
|
|
14275
14547
|
}
|
|
14276
|
-
const err = new AxiosError(
|
|
14548
|
+
const err = new AxiosError$1(
|
|
14277
14549
|
"stream has been aborted",
|
|
14278
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
14550
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14279
14551
|
config,
|
|
14280
14552
|
lastRequest
|
|
14281
14553
|
);
|
|
@@ -14284,7 +14556,7 @@ var require_axios = __commonJS({
|
|
|
14284
14556
|
});
|
|
14285
14557
|
responseStream.on("error", function handleStreamError(err) {
|
|
14286
14558
|
if (req.destroyed) return;
|
|
14287
|
-
reject(AxiosError.from(err, null, config, lastRequest));
|
|
14559
|
+
reject(AxiosError$1.from(err, null, config, lastRequest));
|
|
14288
14560
|
});
|
|
14289
14561
|
responseStream.on("end", function handleStreamEnd() {
|
|
14290
14562
|
try {
|
|
@@ -14297,7 +14569,7 @@ var require_axios = __commonJS({
|
|
|
14297
14569
|
}
|
|
14298
14570
|
response.data = responseData;
|
|
14299
14571
|
} catch (err) {
|
|
14300
|
-
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
14572
|
+
return reject(AxiosError$1.from(err, null, config, response.request, response));
|
|
14301
14573
|
}
|
|
14302
14574
|
settle(resolve, reject, response);
|
|
14303
14575
|
});
|
|
@@ -14317,7 +14589,7 @@ var require_axios = __commonJS({
|
|
|
14317
14589
|
}
|
|
14318
14590
|
});
|
|
14319
14591
|
req.on("error", function handleRequestError(err) {
|
|
14320
|
-
reject(AxiosError.from(err, null, config, req));
|
|
14592
|
+
reject(AxiosError$1.from(err, null, config, req));
|
|
14321
14593
|
});
|
|
14322
14594
|
req.on("socket", function handleRequestSocket(socket) {
|
|
14323
14595
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
@@ -14325,12 +14597,14 @@ var require_axios = __commonJS({
|
|
|
14325
14597
|
if (config.timeout) {
|
|
14326
14598
|
const timeout = parseInt(config.timeout, 10);
|
|
14327
14599
|
if (Number.isNaN(timeout)) {
|
|
14328
|
-
abort(
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14600
|
+
abort(
|
|
14601
|
+
new AxiosError$1(
|
|
14602
|
+
"error trying to parse `config.timeout` to int",
|
|
14603
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
14604
|
+
config,
|
|
14605
|
+
req
|
|
14606
|
+
)
|
|
14607
|
+
);
|
|
14334
14608
|
return;
|
|
14335
14609
|
}
|
|
14336
14610
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -14340,12 +14614,14 @@ var require_axios = __commonJS({
|
|
|
14340
14614
|
if (config.timeoutErrorMessage) {
|
|
14341
14615
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
14342
14616
|
}
|
|
14343
|
-
abort(
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14617
|
+
abort(
|
|
14618
|
+
new AxiosError$1(
|
|
14619
|
+
timeoutErrorMessage,
|
|
14620
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
14621
|
+
config,
|
|
14622
|
+
req
|
|
14623
|
+
)
|
|
14624
|
+
);
|
|
14349
14625
|
});
|
|
14350
14626
|
} else {
|
|
14351
14627
|
req.setTimeout(0);
|
|
@@ -14362,7 +14638,7 @@ var require_axios = __commonJS({
|
|
|
14362
14638
|
});
|
|
14363
14639
|
data.on("close", () => {
|
|
14364
14640
|
if (!ended && !errored) {
|
|
14365
|
-
abort(new CanceledError("Request stream has been aborted", config, req));
|
|
14641
|
+
abort(new CanceledError$1("Request stream has been aborted", config, req));
|
|
14366
14642
|
}
|
|
14367
14643
|
});
|
|
14368
14644
|
data.pipe(req);
|
|
@@ -14495,7 +14771,8 @@ var require_axios = __commonJS({
|
|
|
14495
14771
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
14496
14772
|
};
|
|
14497
14773
|
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
14498
|
-
|
|
14774
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
14775
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
14499
14776
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
14500
14777
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
14501
14778
|
});
|
|
@@ -14505,11 +14782,17 @@ var require_axios = __commonJS({
|
|
|
14505
14782
|
const newConfig = mergeConfig({}, config);
|
|
14506
14783
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
14507
14784
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
14508
|
-
newConfig.url = buildURL(
|
|
14785
|
+
newConfig.url = buildURL(
|
|
14786
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
14787
|
+
config.params,
|
|
14788
|
+
config.paramsSerializer
|
|
14789
|
+
);
|
|
14509
14790
|
if (auth) {
|
|
14510
14791
|
headers.set(
|
|
14511
14792
|
"Authorization",
|
|
14512
|
-
"Basic " + btoa(
|
|
14793
|
+
"Basic " + btoa(
|
|
14794
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
14795
|
+
)
|
|
14513
14796
|
);
|
|
14514
14797
|
}
|
|
14515
14798
|
if (utils$1.isFormData(data)) {
|
|
@@ -14571,13 +14854,17 @@ var require_axios = __commonJS({
|
|
|
14571
14854
|
config,
|
|
14572
14855
|
request
|
|
14573
14856
|
};
|
|
14574
|
-
settle(
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14857
|
+
settle(
|
|
14858
|
+
function _resolve(value) {
|
|
14859
|
+
resolve(value);
|
|
14860
|
+
done();
|
|
14861
|
+
},
|
|
14862
|
+
function _reject(err) {
|
|
14863
|
+
reject(err);
|
|
14864
|
+
done();
|
|
14865
|
+
},
|
|
14866
|
+
response
|
|
14867
|
+
);
|
|
14581
14868
|
request = null;
|
|
14582
14869
|
}
|
|
14583
14870
|
if ("onloadend" in request) {
|
|
@@ -14597,12 +14884,12 @@ var require_axios = __commonJS({
|
|
|
14597
14884
|
if (!request) {
|
|
14598
14885
|
return;
|
|
14599
14886
|
}
|
|
14600
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
14887
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
14601
14888
|
request = null;
|
|
14602
14889
|
};
|
|
14603
14890
|
request.onerror = function handleError(event) {
|
|
14604
14891
|
const msg = event && event.message ? event.message : "Network Error";
|
|
14605
|
-
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
14892
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
14606
14893
|
err.event = event || null;
|
|
14607
14894
|
reject(err);
|
|
14608
14895
|
request = null;
|
|
@@ -14613,12 +14900,14 @@ var require_axios = __commonJS({
|
|
|
14613
14900
|
if (_config.timeoutErrorMessage) {
|
|
14614
14901
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
14615
14902
|
}
|
|
14616
|
-
reject(
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14903
|
+
reject(
|
|
14904
|
+
new AxiosError$1(
|
|
14905
|
+
timeoutErrorMessage,
|
|
14906
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
14907
|
+
config,
|
|
14908
|
+
request
|
|
14909
|
+
)
|
|
14910
|
+
);
|
|
14622
14911
|
request = null;
|
|
14623
14912
|
};
|
|
14624
14913
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -14647,7 +14936,7 @@ var require_axios = __commonJS({
|
|
|
14647
14936
|
if (!request) {
|
|
14648
14937
|
return;
|
|
14649
14938
|
}
|
|
14650
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
14939
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
14651
14940
|
request.abort();
|
|
14652
14941
|
request = null;
|
|
14653
14942
|
};
|
|
@@ -14658,7 +14947,13 @@ var require_axios = __commonJS({
|
|
|
14658
14947
|
}
|
|
14659
14948
|
const protocol = parseProtocol(_config.url);
|
|
14660
14949
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
14661
|
-
reject(
|
|
14950
|
+
reject(
|
|
14951
|
+
new AxiosError$1(
|
|
14952
|
+
"Unsupported protocol " + protocol + ":",
|
|
14953
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
14954
|
+
config
|
|
14955
|
+
)
|
|
14956
|
+
);
|
|
14662
14957
|
return;
|
|
14663
14958
|
}
|
|
14664
14959
|
request.send(requestData || null);
|
|
@@ -14674,12 +14969,14 @@ var require_axios = __commonJS({
|
|
|
14674
14969
|
aborted = true;
|
|
14675
14970
|
unsubscribe();
|
|
14676
14971
|
const err = reason instanceof Error ? reason : this.reason;
|
|
14677
|
-
controller.abort(
|
|
14972
|
+
controller.abort(
|
|
14973
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
14974
|
+
);
|
|
14678
14975
|
}
|
|
14679
14976
|
};
|
|
14680
14977
|
let timer = timeout && setTimeout(() => {
|
|
14681
14978
|
timer = null;
|
|
14682
|
-
onabort(new AxiosError(`timeout ${timeout}
|
|
14979
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
14683
14980
|
}, timeout);
|
|
14684
14981
|
const unsubscribe = () => {
|
|
14685
14982
|
if (signals) {
|
|
@@ -14745,33 +15042,36 @@ var require_axios = __commonJS({
|
|
|
14745
15042
|
onFinish && onFinish(e);
|
|
14746
15043
|
}
|
|
14747
15044
|
};
|
|
14748
|
-
return new ReadableStream(
|
|
14749
|
-
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
15045
|
+
return new ReadableStream(
|
|
15046
|
+
{
|
|
15047
|
+
async pull(controller) {
|
|
15048
|
+
try {
|
|
15049
|
+
const { done: done2, value } = await iterator2.next();
|
|
15050
|
+
if (done2) {
|
|
15051
|
+
_onFinish();
|
|
15052
|
+
controller.close();
|
|
15053
|
+
return;
|
|
15054
|
+
}
|
|
15055
|
+
let len = value.byteLength;
|
|
15056
|
+
if (onProgress) {
|
|
15057
|
+
let loadedBytes = bytes += len;
|
|
15058
|
+
onProgress(loadedBytes);
|
|
15059
|
+
}
|
|
15060
|
+
controller.enqueue(new Uint8Array(value));
|
|
15061
|
+
} catch (err) {
|
|
15062
|
+
_onFinish(err);
|
|
15063
|
+
throw err;
|
|
14761
15064
|
}
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
_onFinish(
|
|
14765
|
-
|
|
15065
|
+
},
|
|
15066
|
+
cancel(reason) {
|
|
15067
|
+
_onFinish(reason);
|
|
15068
|
+
return iterator2.return();
|
|
14766
15069
|
}
|
|
14767
15070
|
},
|
|
14768
|
-
|
|
14769
|
-
|
|
14770
|
-
return iterator2.return();
|
|
15071
|
+
{
|
|
15072
|
+
highWaterMark: 2
|
|
14771
15073
|
}
|
|
14772
|
-
|
|
14773
|
-
highWaterMark: 2
|
|
14774
|
-
});
|
|
15074
|
+
);
|
|
14775
15075
|
};
|
|
14776
15076
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14777
15077
|
var { isFunction } = utils$1;
|
|
@@ -14779,10 +15079,7 @@ var require_axios = __commonJS({
|
|
|
14779
15079
|
Request,
|
|
14780
15080
|
Response
|
|
14781
15081
|
}))(utils$1.global);
|
|
14782
|
-
var {
|
|
14783
|
-
ReadableStream: ReadableStream$1,
|
|
14784
|
-
TextEncoder: TextEncoder$1
|
|
14785
|
-
} = utils$1.global;
|
|
15082
|
+
var { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
|
|
14786
15083
|
var test = (fn, ...args) => {
|
|
14787
15084
|
try {
|
|
14788
15085
|
return !!fn(...args);
|
|
@@ -14791,9 +15088,13 @@ var require_axios = __commonJS({
|
|
|
14791
15088
|
}
|
|
14792
15089
|
};
|
|
14793
15090
|
var factory = (env) => {
|
|
14794
|
-
env = utils$1.merge.call(
|
|
14795
|
-
|
|
14796
|
-
|
|
15091
|
+
env = utils$1.merge.call(
|
|
15092
|
+
{
|
|
15093
|
+
skipUndefined: true
|
|
15094
|
+
},
|
|
15095
|
+
globalFetchAPI,
|
|
15096
|
+
env
|
|
15097
|
+
);
|
|
14797
15098
|
const { fetch: envFetch, Request, Response } = env;
|
|
14798
15099
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
14799
15100
|
const isRequestSupported = isFunction(Request);
|
|
@@ -14826,7 +15127,11 @@ var require_axios = __commonJS({
|
|
|
14826
15127
|
if (method) {
|
|
14827
15128
|
return method.call(res);
|
|
14828
15129
|
}
|
|
14829
|
-
throw new AxiosError(
|
|
15130
|
+
throw new AxiosError$1(
|
|
15131
|
+
`Response type '${type}' is not supported`,
|
|
15132
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
15133
|
+
config
|
|
15134
|
+
);
|
|
14830
15135
|
});
|
|
14831
15136
|
});
|
|
14832
15137
|
})();
|
|
@@ -14875,7 +15180,10 @@ var require_axios = __commonJS({
|
|
|
14875
15180
|
} = resolveConfig(config);
|
|
14876
15181
|
let _fetch = envFetch || fetch;
|
|
14877
15182
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14878
|
-
let composedSignal = composeSignals$1(
|
|
15183
|
+
let composedSignal = composeSignals$1(
|
|
15184
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
15185
|
+
timeout
|
|
15186
|
+
);
|
|
14879
15187
|
let request = null;
|
|
14880
15188
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14881
15189
|
composedSignal.unsubscribe();
|
|
@@ -14935,7 +15243,10 @@ var require_axios = __commonJS({
|
|
|
14935
15243
|
);
|
|
14936
15244
|
}
|
|
14937
15245
|
responseType = responseType || "text";
|
|
14938
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
15246
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
15247
|
+
response,
|
|
15248
|
+
config
|
|
15249
|
+
);
|
|
14939
15250
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14940
15251
|
return await new Promise((resolve, reject) => {
|
|
14941
15252
|
settle(resolve, reject, {
|
|
@@ -14951,13 +15262,19 @@ var require_axios = __commonJS({
|
|
|
14951
15262
|
unsubscribe && unsubscribe();
|
|
14952
15263
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
14953
15264
|
throw Object.assign(
|
|
14954
|
-
new AxiosError(
|
|
15265
|
+
new AxiosError$1(
|
|
15266
|
+
"Network Error",
|
|
15267
|
+
AxiosError$1.ERR_NETWORK,
|
|
15268
|
+
config,
|
|
15269
|
+
request,
|
|
15270
|
+
err && err.response
|
|
15271
|
+
),
|
|
14955
15272
|
{
|
|
14956
15273
|
cause: err.cause || err
|
|
14957
15274
|
}
|
|
14958
15275
|
);
|
|
14959
15276
|
}
|
|
14960
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
15277
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
14961
15278
|
}
|
|
14962
15279
|
};
|
|
14963
15280
|
};
|
|
@@ -14965,11 +15282,7 @@ var require_axios = __commonJS({
|
|
|
14965
15282
|
var getFetch = (config) => {
|
|
14966
15283
|
let env = config && config.env || {};
|
|
14967
15284
|
const { fetch: fetch2, Request, Response } = env;
|
|
14968
|
-
const seeds = [
|
|
14969
|
-
Request,
|
|
14970
|
-
Response,
|
|
14971
|
-
fetch2
|
|
14972
|
-
];
|
|
15285
|
+
const seeds = [Request, Response, fetch2];
|
|
14973
15286
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
14974
15287
|
while (i--) {
|
|
14975
15288
|
seed = seeds[i];
|
|
@@ -15011,7 +15324,7 @@ var require_axios = __commonJS({
|
|
|
15011
15324
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
15012
15325
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
15013
15326
|
if (adapter === void 0) {
|
|
15014
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
15327
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
15015
15328
|
}
|
|
15016
15329
|
}
|
|
15017
15330
|
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
@@ -15024,7 +15337,7 @@ var require_axios = __commonJS({
|
|
|
15024
15337
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
15025
15338
|
);
|
|
15026
15339
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
15027
|
-
throw new AxiosError(
|
|
15340
|
+
throw new AxiosError$1(
|
|
15028
15341
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
15029
15342
|
"ERR_NOT_SUPPORT"
|
|
15030
15343
|
);
|
|
@@ -15048,43 +15361,39 @@ var require_axios = __commonJS({
|
|
|
15048
15361
|
config.cancelToken.throwIfRequested();
|
|
15049
15362
|
}
|
|
15050
15363
|
if (config.signal && config.signal.aborted) {
|
|
15051
|
-
throw new CanceledError(null, config);
|
|
15364
|
+
throw new CanceledError$1(null, config);
|
|
15052
15365
|
}
|
|
15053
15366
|
}
|
|
15054
15367
|
function dispatchRequest(config) {
|
|
15055
15368
|
throwIfCancellationRequested(config);
|
|
15056
15369
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
15057
|
-
config.data = transformData.call(
|
|
15058
|
-
config,
|
|
15059
|
-
config.transformRequest
|
|
15060
|
-
);
|
|
15370
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
15061
15371
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
15062
15372
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
15063
15373
|
}
|
|
15064
15374
|
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
15065
|
-
return adapter(config).then(
|
|
15066
|
-
|
|
15067
|
-
response.data = transformData.call(
|
|
15068
|
-
config,
|
|
15069
|
-
config.transformResponse,
|
|
15070
|
-
response
|
|
15071
|
-
);
|
|
15072
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
15073
|
-
return response;
|
|
15074
|
-
}, function onAdapterRejection(reason) {
|
|
15075
|
-
if (!isCancel(reason)) {
|
|
15375
|
+
return adapter(config).then(
|
|
15376
|
+
function onAdapterResolution(response) {
|
|
15076
15377
|
throwIfCancellationRequested(config);
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15378
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
15379
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
15380
|
+
return response;
|
|
15381
|
+
},
|
|
15382
|
+
function onAdapterRejection(reason) {
|
|
15383
|
+
if (!isCancel(reason)) {
|
|
15384
|
+
throwIfCancellationRequested(config);
|
|
15385
|
+
if (reason && reason.response) {
|
|
15386
|
+
reason.response.data = transformData.call(
|
|
15387
|
+
config,
|
|
15388
|
+
config.transformResponse,
|
|
15389
|
+
reason.response
|
|
15390
|
+
);
|
|
15391
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
15392
|
+
}
|
|
15084
15393
|
}
|
|
15394
|
+
return Promise.reject(reason);
|
|
15085
15395
|
}
|
|
15086
|
-
|
|
15087
|
-
});
|
|
15396
|
+
);
|
|
15088
15397
|
}
|
|
15089
15398
|
var validators$1 = {};
|
|
15090
15399
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -15099,9 +15408,9 @@ var require_axios = __commonJS({
|
|
|
15099
15408
|
}
|
|
15100
15409
|
return (value, opt, opts) => {
|
|
15101
15410
|
if (validator2 === false) {
|
|
15102
|
-
throw new AxiosError(
|
|
15411
|
+
throw new AxiosError$1(
|
|
15103
15412
|
formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
|
|
15104
|
-
AxiosError.ERR_DEPRECATED
|
|
15413
|
+
AxiosError$1.ERR_DEPRECATED
|
|
15105
15414
|
);
|
|
15106
15415
|
}
|
|
15107
15416
|
if (version && !deprecatedWarnings[opt]) {
|
|
@@ -15124,7 +15433,7 @@ var require_axios = __commonJS({
|
|
|
15124
15433
|
};
|
|
15125
15434
|
function assertOptions(options, schema, allowUnknown) {
|
|
15126
15435
|
if (typeof options !== "object") {
|
|
15127
|
-
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
15436
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
15128
15437
|
}
|
|
15129
15438
|
const keys = Object.keys(options);
|
|
15130
15439
|
let i = keys.length;
|
|
@@ -15135,12 +15444,15 @@ var require_axios = __commonJS({
|
|
|
15135
15444
|
const value = options[opt];
|
|
15136
15445
|
const result = value === void 0 || validator2(value, opt, options);
|
|
15137
15446
|
if (result !== true) {
|
|
15138
|
-
throw new AxiosError(
|
|
15447
|
+
throw new AxiosError$1(
|
|
15448
|
+
"option " + opt + " must be " + result,
|
|
15449
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
15450
|
+
);
|
|
15139
15451
|
}
|
|
15140
15452
|
continue;
|
|
15141
15453
|
}
|
|
15142
15454
|
if (allowUnknown !== true) {
|
|
15143
|
-
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
15455
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
15144
15456
|
}
|
|
15145
15457
|
}
|
|
15146
15458
|
}
|
|
@@ -15195,11 +15507,16 @@ var require_axios = __commonJS({
|
|
|
15195
15507
|
config = mergeConfig(this.defaults, config);
|
|
15196
15508
|
const { transitional, paramsSerializer, headers } = config;
|
|
15197
15509
|
if (transitional !== void 0) {
|
|
15198
|
-
validator.assertOptions(
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15510
|
+
validator.assertOptions(
|
|
15511
|
+
transitional,
|
|
15512
|
+
{
|
|
15513
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
15514
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
15515
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
15516
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
15517
|
+
},
|
|
15518
|
+
false
|
|
15519
|
+
);
|
|
15203
15520
|
}
|
|
15204
15521
|
if (paramsSerializer != null) {
|
|
15205
15522
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -15207,10 +15524,14 @@ var require_axios = __commonJS({
|
|
|
15207
15524
|
serialize: paramsSerializer
|
|
15208
15525
|
};
|
|
15209
15526
|
} else {
|
|
15210
|
-
validator.assertOptions(
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15527
|
+
validator.assertOptions(
|
|
15528
|
+
paramsSerializer,
|
|
15529
|
+
{
|
|
15530
|
+
encode: validators.function,
|
|
15531
|
+
serialize: validators.function
|
|
15532
|
+
},
|
|
15533
|
+
true
|
|
15534
|
+
);
|
|
15214
15535
|
}
|
|
15215
15536
|
}
|
|
15216
15537
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -15219,21 +15540,19 @@ var require_axios = __commonJS({
|
|
|
15219
15540
|
} else {
|
|
15220
15541
|
config.allowAbsoluteUrls = true;
|
|
15221
15542
|
}
|
|
15222
|
-
validator.assertOptions(
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
headers[config.method]
|
|
15230
|
-
);
|
|
15231
|
-
headers && utils$1.forEach(
|
|
15232
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
15233
|
-
(method) => {
|
|
15234
|
-
delete headers[method];
|
|
15235
|
-
}
|
|
15543
|
+
validator.assertOptions(
|
|
15544
|
+
config,
|
|
15545
|
+
{
|
|
15546
|
+
baseUrl: validators.spelling("baseURL"),
|
|
15547
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
15548
|
+
},
|
|
15549
|
+
true
|
|
15236
15550
|
);
|
|
15551
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
15552
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
15553
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
15554
|
+
delete headers[method];
|
|
15555
|
+
});
|
|
15237
15556
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
15238
15557
|
const requestInterceptorChain = [];
|
|
15239
15558
|
let synchronousRequestInterceptors = true;
|
|
@@ -15242,7 +15561,13 @@ var require_axios = __commonJS({
|
|
|
15242
15561
|
return;
|
|
15243
15562
|
}
|
|
15244
15563
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
15245
|
-
|
|
15564
|
+
const transitional2 = config.transitional || transitionalDefaults;
|
|
15565
|
+
const legacyInterceptorReqResOrdering = transitional2 && transitional2.legacyInterceptorReqResOrdering;
|
|
15566
|
+
if (legacyInterceptorReqResOrdering) {
|
|
15567
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
15568
|
+
} else {
|
|
15569
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
15570
|
+
}
|
|
15246
15571
|
});
|
|
15247
15572
|
const responseInterceptorChain = [];
|
|
15248
15573
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -15294,24 +15619,28 @@ var require_axios = __commonJS({
|
|
|
15294
15619
|
};
|
|
15295
15620
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
15296
15621
|
Axios.prototype[method] = function(url2, config) {
|
|
15297
|
-
return this.request(
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15622
|
+
return this.request(
|
|
15623
|
+
mergeConfig(config || {}, {
|
|
15624
|
+
method,
|
|
15625
|
+
url: url2,
|
|
15626
|
+
data: (config || {}).data
|
|
15627
|
+
})
|
|
15628
|
+
);
|
|
15302
15629
|
};
|
|
15303
15630
|
});
|
|
15304
15631
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
15305
15632
|
function generateHTTPMethod(isForm) {
|
|
15306
15633
|
return function httpMethod(url2, data, config) {
|
|
15307
|
-
return this.request(
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15634
|
+
return this.request(
|
|
15635
|
+
mergeConfig(config || {}, {
|
|
15636
|
+
method,
|
|
15637
|
+
headers: isForm ? {
|
|
15638
|
+
"Content-Type": "multipart/form-data"
|
|
15639
|
+
} : {},
|
|
15640
|
+
url: url2,
|
|
15641
|
+
data
|
|
15642
|
+
})
|
|
15643
|
+
);
|
|
15315
15644
|
};
|
|
15316
15645
|
}
|
|
15317
15646
|
Axios.prototype[method] = generateHTTPMethod();
|
|
@@ -15351,7 +15680,7 @@ var require_axios = __commonJS({
|
|
|
15351
15680
|
if (token.reason) {
|
|
15352
15681
|
return;
|
|
15353
15682
|
}
|
|
15354
|
-
token.reason = new CanceledError(message, config, request);
|
|
15683
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
15355
15684
|
resolvePromise(token.reason);
|
|
15356
15685
|
});
|
|
15357
15686
|
}
|
|
@@ -15509,12 +15838,12 @@ var require_axios = __commonJS({
|
|
|
15509
15838
|
}
|
|
15510
15839
|
var axios = createInstance(defaults$1);
|
|
15511
15840
|
axios.Axios = Axios$1;
|
|
15512
|
-
axios.CanceledError = CanceledError;
|
|
15841
|
+
axios.CanceledError = CanceledError$1;
|
|
15513
15842
|
axios.CancelToken = CancelToken$1;
|
|
15514
15843
|
axios.isCancel = isCancel;
|
|
15515
15844
|
axios.VERSION = VERSION;
|
|
15516
15845
|
axios.toFormData = toFormData;
|
|
15517
|
-
axios.AxiosError = AxiosError;
|
|
15846
|
+
axios.AxiosError = AxiosError$1;
|
|
15518
15847
|
axios.Cancel = axios.CanceledError;
|
|
15519
15848
|
axios.all = function all(promises) {
|
|
15520
15849
|
return Promise.all(promises);
|
|
@@ -16439,209 +16768,10 @@ var require_p_retry = __commonJS({
|
|
|
16439
16768
|
}
|
|
16440
16769
|
});
|
|
16441
16770
|
|
|
16442
|
-
// node_modules/@slack/web-api/dist/chat-stream.js
|
|
16443
|
-
var require_chat_stream = __commonJS({
|
|
16444
|
-
"node_modules/@slack/web-api/dist/chat-stream.js"(exports2) {
|
|
16445
|
-
"use strict";
|
|
16446
|
-
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
16447
|
-
function adopt(value) {
|
|
16448
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
16449
|
-
resolve(value);
|
|
16450
|
-
});
|
|
16451
|
-
}
|
|
16452
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
16453
|
-
function fulfilled(value) {
|
|
16454
|
-
try {
|
|
16455
|
-
step(generator.next(value));
|
|
16456
|
-
} catch (e) {
|
|
16457
|
-
reject(e);
|
|
16458
|
-
}
|
|
16459
|
-
}
|
|
16460
|
-
function rejected(value) {
|
|
16461
|
-
try {
|
|
16462
|
-
step(generator["throw"](value));
|
|
16463
|
-
} catch (e) {
|
|
16464
|
-
reject(e);
|
|
16465
|
-
}
|
|
16466
|
-
}
|
|
16467
|
-
function step(result) {
|
|
16468
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
16469
|
-
}
|
|
16470
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16471
|
-
});
|
|
16472
|
-
};
|
|
16473
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16474
|
-
exports2.ChatStreamer = void 0;
|
|
16475
|
-
var ChatStreamer = class {
|
|
16476
|
-
/**
|
|
16477
|
-
* Instantiate a new chat streamer.
|
|
16478
|
-
*
|
|
16479
|
-
* @description The "constructor" method creates a unique {@link ChatStreamer} instance that keeps track of one chat stream.
|
|
16480
|
-
* @example
|
|
16481
|
-
* const client = new WebClient(process.env.SLACK_BOT_TOKEN);
|
|
16482
|
-
* const logger = new ConsoleLogger();
|
|
16483
|
-
* const args = {
|
|
16484
|
-
* channel: "C0123456789",
|
|
16485
|
-
* thread_ts: "1700000001.123456",
|
|
16486
|
-
* recipient_team_id: "T0123456789",
|
|
16487
|
-
* recipient_user_id: "U0123456789",
|
|
16488
|
-
* };
|
|
16489
|
-
* const streamer = new ChatStreamer(client, logger, args, { buffer_size: 512 });
|
|
16490
|
-
* await streamer.append({
|
|
16491
|
-
* markdown_text: "**hello world!**",
|
|
16492
|
-
* });
|
|
16493
|
-
* await streamer.stop();
|
|
16494
|
-
* @see {@link https://docs.slack.dev/reference/methods/chat.startStream}
|
|
16495
|
-
* @see {@link https://docs.slack.dev/reference/methods/chat.appendStream}
|
|
16496
|
-
* @see {@link https://docs.slack.dev/reference/methods/chat.stopStream}
|
|
16497
|
-
*/
|
|
16498
|
-
constructor(client, logger, args, options) {
|
|
16499
|
-
var _a;
|
|
16500
|
-
this.buffer = "";
|
|
16501
|
-
this.client = client;
|
|
16502
|
-
this.logger = logger;
|
|
16503
|
-
this.options = {
|
|
16504
|
-
buffer_size: (_a = options.buffer_size) !== null && _a !== void 0 ? _a : 256
|
|
16505
|
-
};
|
|
16506
|
-
this.state = "starting";
|
|
16507
|
-
this.streamArgs = args;
|
|
16508
|
-
}
|
|
16509
|
-
/**
|
|
16510
|
-
* Append to the stream.
|
|
16511
|
-
*
|
|
16512
|
-
* @description The "append" method appends to the chat stream being used. This method can be called multiple times. After the stream is stopped this method cannot be called.
|
|
16513
|
-
* @example
|
|
16514
|
-
* const streamer = client.chatStream({
|
|
16515
|
-
* channel: "C0123456789",
|
|
16516
|
-
* thread_ts: "1700000001.123456",
|
|
16517
|
-
* recipient_team_id: "T0123456789",
|
|
16518
|
-
* recipient_user_id: "U0123456789",
|
|
16519
|
-
* });
|
|
16520
|
-
* await streamer.append({
|
|
16521
|
-
* markdown_text: "**hello wo",
|
|
16522
|
-
* });
|
|
16523
|
-
* await streamer.append({
|
|
16524
|
-
* markdown_text: "rld!**",
|
|
16525
|
-
* });
|
|
16526
|
-
* await streamer.stop();
|
|
16527
|
-
* @see {@link https://docs.slack.dev/reference/methods/chat.appendStream}
|
|
16528
|
-
*/
|
|
16529
|
-
append(args) {
|
|
16530
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16531
|
-
if (this.state === "completed") {
|
|
16532
|
-
throw new Error(`failed to append stream: stream state is ${this.state}`);
|
|
16533
|
-
}
|
|
16534
|
-
if (args.token) {
|
|
16535
|
-
this.token = args.token;
|
|
16536
|
-
}
|
|
16537
|
-
this.buffer += args.markdown_text;
|
|
16538
|
-
if (this.buffer.length >= this.options.buffer_size) {
|
|
16539
|
-
return yield this.flushBuffer(args);
|
|
16540
|
-
}
|
|
16541
|
-
const details = {
|
|
16542
|
-
bufferLength: this.buffer.length,
|
|
16543
|
-
bufferSize: this.options.buffer_size,
|
|
16544
|
-
channel: this.streamArgs.channel,
|
|
16545
|
-
recipientTeamId: this.streamArgs.recipient_team_id,
|
|
16546
|
-
recipientUserId: this.streamArgs.recipient_user_id,
|
|
16547
|
-
threadTs: this.streamArgs.thread_ts
|
|
16548
|
-
};
|
|
16549
|
-
this.logger.debug(`ChatStreamer appended to buffer: ${JSON.stringify(details)}`);
|
|
16550
|
-
return null;
|
|
16551
|
-
});
|
|
16552
|
-
}
|
|
16553
|
-
/**
|
|
16554
|
-
* Stop the stream and finalize the message.
|
|
16555
|
-
*
|
|
16556
|
-
* @description The "stop" method stops the chat stream being used. This method can be called once to end the stream. Additional "blocks" and "metadata" can be provided.
|
|
16557
|
-
*
|
|
16558
|
-
* @example
|
|
16559
|
-
* const streamer = client.chatStream({
|
|
16560
|
-
* channel: "C0123456789",
|
|
16561
|
-
* thread_ts: "1700000001.123456",
|
|
16562
|
-
* recipient_team_id: "T0123456789",
|
|
16563
|
-
* recipient_user_id: "U0123456789",
|
|
16564
|
-
* });
|
|
16565
|
-
* await streamer.append({
|
|
16566
|
-
* markdown_text: "**hello world!**",
|
|
16567
|
-
* });
|
|
16568
|
-
* await streamer.stop();
|
|
16569
|
-
* @see {@link https://docs.slack.dev/reference/methods/chat.stopStream}
|
|
16570
|
-
*/
|
|
16571
|
-
stop(args) {
|
|
16572
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16573
|
-
if (this.state === "completed") {
|
|
16574
|
-
throw new Error(`failed to stop stream: stream state is ${this.state}`);
|
|
16575
|
-
}
|
|
16576
|
-
if (args === null || args === void 0 ? void 0 : args.token) {
|
|
16577
|
-
this.token = args.token;
|
|
16578
|
-
}
|
|
16579
|
-
if (args === null || args === void 0 ? void 0 : args.markdown_text) {
|
|
16580
|
-
this.buffer += args.markdown_text;
|
|
16581
|
-
}
|
|
16582
|
-
if (!this.streamTs) {
|
|
16583
|
-
const response2 = yield this.client.chat.startStream(Object.assign(Object.assign({}, this.streamArgs), { token: this.token }));
|
|
16584
|
-
if (!response2.ts) {
|
|
16585
|
-
throw new Error("failed to stop stream: stream not started");
|
|
16586
|
-
}
|
|
16587
|
-
this.streamTs = response2.ts;
|
|
16588
|
-
this.state = "in_progress";
|
|
16589
|
-
}
|
|
16590
|
-
const response = yield this.client.chat.stopStream(Object.assign(Object.assign({ token: this.token, channel: this.streamArgs.channel, ts: this.streamTs }, args), { markdown_text: this.buffer }));
|
|
16591
|
-
this.state = "completed";
|
|
16592
|
-
return response;
|
|
16593
|
-
});
|
|
16594
|
-
}
|
|
16595
|
-
flushBuffer(args) {
|
|
16596
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16597
|
-
if (!this.streamTs) {
|
|
16598
|
-
const response2 = yield this.client.chat.startStream(Object.assign(Object.assign(Object.assign(Object.assign({}, this.streamArgs), { token: this.token }), args), { markdown_text: this.buffer }));
|
|
16599
|
-
this.buffer = "";
|
|
16600
|
-
this.streamTs = response2.ts;
|
|
16601
|
-
this.state = "in_progress";
|
|
16602
|
-
return response2;
|
|
16603
|
-
}
|
|
16604
|
-
const response = yield this.client.chat.appendStream(Object.assign(Object.assign({ token: this.token, channel: this.streamArgs.channel, ts: this.streamTs }, args), { markdown_text: this.buffer }));
|
|
16605
|
-
this.buffer = "";
|
|
16606
|
-
return response;
|
|
16607
|
-
});
|
|
16608
|
-
}
|
|
16609
|
-
};
|
|
16610
|
-
exports2.ChatStreamer = ChatStreamer;
|
|
16611
|
-
}
|
|
16612
|
-
});
|
|
16613
|
-
|
|
16614
16771
|
// node_modules/@slack/web-api/dist/file-upload.js
|
|
16615
16772
|
var require_file_upload = __commonJS({
|
|
16616
16773
|
"node_modules/@slack/web-api/dist/file-upload.js"(exports2) {
|
|
16617
16774
|
"use strict";
|
|
16618
|
-
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
16619
|
-
function adopt(value) {
|
|
16620
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
16621
|
-
resolve(value);
|
|
16622
|
-
});
|
|
16623
|
-
}
|
|
16624
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
16625
|
-
function fulfilled(value) {
|
|
16626
|
-
try {
|
|
16627
|
-
step(generator.next(value));
|
|
16628
|
-
} catch (e) {
|
|
16629
|
-
reject(e);
|
|
16630
|
-
}
|
|
16631
|
-
}
|
|
16632
|
-
function rejected(value) {
|
|
16633
|
-
try {
|
|
16634
|
-
step(generator["throw"](value));
|
|
16635
|
-
} catch (e) {
|
|
16636
|
-
reject(e);
|
|
16637
|
-
}
|
|
16638
|
-
}
|
|
16639
|
-
function step(result) {
|
|
16640
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
16641
|
-
}
|
|
16642
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16643
|
-
});
|
|
16644
|
-
};
|
|
16645
16775
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16646
16776
|
exports2.getFileUploadJob = getFileUploadJob;
|
|
16647
16777
|
exports2.getMultipleFileUploadJobs = getMultipleFileUploadJobs;
|
|
@@ -16669,94 +16799,88 @@ var require_file_upload = __commonJS({
|
|
|
16669
16799
|
var node_fs_1 = require("node:fs");
|
|
16670
16800
|
var node_stream_1 = require("node:stream");
|
|
16671
16801
|
var errors_1 = require_errors();
|
|
16672
|
-
function getFileUploadJob(options, logger) {
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
throw (0, errors_1.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16708
|
-
});
|
|
16802
|
+
async function getFileUploadJob(options, logger) {
|
|
16803
|
+
var _a, _b, _c, _d;
|
|
16804
|
+
warnIfLegacyFileType(options, logger);
|
|
16805
|
+
warnIfChannels(options, logger);
|
|
16806
|
+
errorIfChannelsCsv(options);
|
|
16807
|
+
const fileName = warnIfMissingOrInvalidFileNameAndDefault(options, logger);
|
|
16808
|
+
const fileData = await getFileData(options);
|
|
16809
|
+
const fileDataBytesLength = getFileDataLength(fileData);
|
|
16810
|
+
const fileUploadJob = {
|
|
16811
|
+
// supplied by user
|
|
16812
|
+
alt_text: options.alt_text,
|
|
16813
|
+
blocks: options.blocks,
|
|
16814
|
+
channel_id: (_a = options.channels) !== null && _a !== void 0 ? _a : options.channel_id,
|
|
16815
|
+
filename: (_b = options.filename) !== null && _b !== void 0 ? _b : fileName,
|
|
16816
|
+
initial_comment: options.initial_comment,
|
|
16817
|
+
snippet_type: options.snippet_type,
|
|
16818
|
+
title: (_d = (_c = options.title) !== null && _c !== void 0 ? _c : options.filename) !== null && _d !== void 0 ? _d : fileName,
|
|
16819
|
+
// default title to filename unless otherwise specified
|
|
16820
|
+
// calculated
|
|
16821
|
+
data: fileData,
|
|
16822
|
+
length: fileDataBytesLength
|
|
16823
|
+
};
|
|
16824
|
+
if ("thread_ts" in options) {
|
|
16825
|
+
fileUploadJob.thread_ts = options.thread_ts;
|
|
16826
|
+
}
|
|
16827
|
+
if ("token" in options) {
|
|
16828
|
+
fileUploadJob.token = options.token;
|
|
16829
|
+
}
|
|
16830
|
+
if ("content" in options) {
|
|
16831
|
+
return Object.assign({ content: options.content }, fileUploadJob);
|
|
16832
|
+
}
|
|
16833
|
+
if ("file" in options) {
|
|
16834
|
+
return Object.assign({ file: options.file }, fileUploadJob);
|
|
16835
|
+
}
|
|
16836
|
+
throw (0, errors_1.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16709
16837
|
}
|
|
16710
|
-
function getMultipleFileUploadJobs(options, logger) {
|
|
16711
|
-
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16715
|
-
|
|
16716
|
-
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
throw new Error(buildFilesUploadMissingMessage());
|
|
16735
|
-
});
|
|
16838
|
+
async function getMultipleFileUploadJobs(options, logger) {
|
|
16839
|
+
if ("file_uploads" in options) {
|
|
16840
|
+
return Promise.all(options.file_uploads.map((upload) => {
|
|
16841
|
+
const { blocks, channel_id, channels, initial_comment, thread_ts } = upload;
|
|
16842
|
+
if (blocks || channel_id || channels || initial_comment || thread_ts) {
|
|
16843
|
+
throw (0, errors_1.errorWithCode)(new Error(buildInvalidFilesUploadParamError()), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16844
|
+
}
|
|
16845
|
+
const uploadJobArgs = Object.assign(Object.assign({}, upload), { blocks: options.blocks, channels: options.channels, channel_id: options.channel_id, initial_comment: options.initial_comment });
|
|
16846
|
+
if ("thread_ts" in options) {
|
|
16847
|
+
uploadJobArgs.thread_ts = options.thread_ts;
|
|
16848
|
+
}
|
|
16849
|
+
if ("token" in options) {
|
|
16850
|
+
uploadJobArgs.token = options.token;
|
|
16851
|
+
}
|
|
16852
|
+
if ("content" in upload) {
|
|
16853
|
+
return getFileUploadJob(Object.assign({ content: upload.content }, uploadJobArgs), logger);
|
|
16854
|
+
}
|
|
16855
|
+
if ("file" in upload) {
|
|
16856
|
+
return getFileUploadJob(Object.assign({ file: upload.file }, uploadJobArgs), logger);
|
|
16857
|
+
}
|
|
16858
|
+
throw (0, errors_1.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16859
|
+
}));
|
|
16860
|
+
}
|
|
16861
|
+
throw new Error(buildFilesUploadMissingMessage());
|
|
16736
16862
|
}
|
|
16737
|
-
function getFileData(options) {
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
|
|
16745
|
-
|
|
16746
|
-
|
|
16747
|
-
|
|
16748
|
-
}
|
|
16749
|
-
throw (0, errors_1.errorWithCode)(new Error(`Unable to resolve file data for ${file}. Please supply a filepath string, or binary data Buffer or String directly.`), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16750
|
-
}
|
|
16863
|
+
async function getFileData(options) {
|
|
16864
|
+
errorIfInvalidOrMissingFileData(options);
|
|
16865
|
+
if ("file" in options) {
|
|
16866
|
+
const { file } = options;
|
|
16867
|
+
if (Buffer.isBuffer(file))
|
|
16868
|
+
return file;
|
|
16869
|
+
if (typeof file === "string") {
|
|
16870
|
+
try {
|
|
16871
|
+
const dataBuffer = (0, node_fs_1.readFileSync)(file);
|
|
16872
|
+
return dataBuffer;
|
|
16873
|
+
} catch (_err) {
|
|
16874
|
+
throw (0, errors_1.errorWithCode)(new Error(`Unable to resolve file data for ${file}. Please supply a filepath string, or binary data Buffer or String directly.`), errors_1.ErrorCode.FileUploadInvalidArgumentsError);
|
|
16751
16875
|
}
|
|
16752
|
-
const data = yield getFileDataAsStream(file);
|
|
16753
|
-
if (data)
|
|
16754
|
-
return data;
|
|
16755
16876
|
}
|
|
16756
|
-
|
|
16757
|
-
|
|
16758
|
-
|
|
16759
|
-
}
|
|
16877
|
+
const data = await getFileDataAsStream(file);
|
|
16878
|
+
if (data)
|
|
16879
|
+
return data;
|
|
16880
|
+
}
|
|
16881
|
+
if ("content" in options)
|
|
16882
|
+
return Buffer.from(options.content);
|
|
16883
|
+
throw (0, errors_1.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"), errors_1.ErrorCode.FileUploadReadFileDataError);
|
|
16760
16884
|
}
|
|
16761
16885
|
function getFileDataLength(data) {
|
|
16762
16886
|
if (data) {
|
|
@@ -16764,25 +16888,23 @@ var require_file_upload = __commonJS({
|
|
|
16764
16888
|
}
|
|
16765
16889
|
throw (0, errors_1.errorWithCode)(new Error(buildFileSizeErrorMsg()), errors_1.ErrorCode.FileUploadReadFileDataError);
|
|
16766
16890
|
}
|
|
16767
|
-
function getFileDataAsStream(readable) {
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
readable.
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
}
|
|
16785
|
-
});
|
|
16891
|
+
async function getFileDataAsStream(readable) {
|
|
16892
|
+
const chunks = [];
|
|
16893
|
+
return new Promise((resolve, reject) => {
|
|
16894
|
+
readable.on("readable", () => {
|
|
16895
|
+
let chunk = readable.read();
|
|
16896
|
+
while (chunk !== null) {
|
|
16897
|
+
chunks.push(chunk);
|
|
16898
|
+
chunk = readable.read();
|
|
16899
|
+
}
|
|
16900
|
+
});
|
|
16901
|
+
readable.on("end", () => {
|
|
16902
|
+
if (chunks.length > 0) {
|
|
16903
|
+
const content = Buffer.concat(chunks);
|
|
16904
|
+
resolve(content);
|
|
16905
|
+
} else {
|
|
16906
|
+
reject(Error("No data in supplied file"));
|
|
16907
|
+
}
|
|
16786
16908
|
});
|
|
16787
16909
|
});
|
|
16788
16910
|
}
|
|
@@ -17126,6 +17248,14 @@ var require_calls = __commonJS({
|
|
|
17126
17248
|
}
|
|
17127
17249
|
});
|
|
17128
17250
|
|
|
17251
|
+
// node_modules/@slack/types/dist/chunk.js
|
|
17252
|
+
var require_chunk = __commonJS({
|
|
17253
|
+
"node_modules/@slack/types/dist/chunk.js"(exports2) {
|
|
17254
|
+
"use strict";
|
|
17255
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17256
|
+
}
|
|
17257
|
+
});
|
|
17258
|
+
|
|
17129
17259
|
// node_modules/@slack/types/dist/dialog.js
|
|
17130
17260
|
var require_dialog = __commonJS({
|
|
17131
17261
|
"node_modules/@slack/types/dist/dialog.js"(exports2) {
|
|
@@ -17466,6 +17596,7 @@ var require_dist3 = __commonJS({
|
|
|
17466
17596
|
__exportStar(require_composition_objects(), exports2);
|
|
17467
17597
|
__exportStar(require_extensions(), exports2);
|
|
17468
17598
|
__exportStar(require_calls(), exports2);
|
|
17599
|
+
__exportStar(require_chunk(), exports2);
|
|
17469
17600
|
__exportStar(require_dialog(), exports2);
|
|
17470
17601
|
__exportStar(require_events(), exports2);
|
|
17471
17602
|
__exportStar(require_message_attachments(), exports2);
|
|
@@ -18136,7 +18267,16 @@ var require_methods = __commonJS({
|
|
|
18136
18267
|
* @description Uninstalls your app from a workspace.
|
|
18137
18268
|
* @see {@link https://docs.slack.dev/reference/methods/apps.uninstall `apps.uninstall` API reference}.
|
|
18138
18269
|
*/
|
|
18139
|
-
uninstall: bindApiCall(this, "apps.uninstall")
|
|
18270
|
+
uninstall: bindApiCall(this, "apps.uninstall"),
|
|
18271
|
+
user: {
|
|
18272
|
+
connection: {
|
|
18273
|
+
/**
|
|
18274
|
+
* @description Updates the connection status between a user and an app.
|
|
18275
|
+
* @see {@link https://docs.slack.dev/reference/methods/apps.user.connection.update `apps.user.connection.update` API reference}.
|
|
18276
|
+
*/
|
|
18277
|
+
update: bindApiCall(this, "apps.user.connection.update")
|
|
18278
|
+
}
|
|
18279
|
+
}
|
|
18140
18280
|
};
|
|
18141
18281
|
this.auth = {
|
|
18142
18282
|
/**
|
|
@@ -19141,33 +19281,6 @@ var require_WebClient = __commonJS({
|
|
|
19141
19281
|
return result;
|
|
19142
19282
|
};
|
|
19143
19283
|
})();
|
|
19144
|
-
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
19145
|
-
function adopt(value) {
|
|
19146
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
19147
|
-
resolve(value);
|
|
19148
|
-
});
|
|
19149
|
-
}
|
|
19150
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
19151
|
-
function fulfilled(value) {
|
|
19152
|
-
try {
|
|
19153
|
-
step(generator.next(value));
|
|
19154
|
-
} catch (e) {
|
|
19155
|
-
reject(e);
|
|
19156
|
-
}
|
|
19157
|
-
}
|
|
19158
|
-
function rejected(value) {
|
|
19159
|
-
try {
|
|
19160
|
-
step(generator["throw"](value));
|
|
19161
|
-
} catch (e) {
|
|
19162
|
-
reject(e);
|
|
19163
|
-
}
|
|
19164
|
-
}
|
|
19165
|
-
function step(result) {
|
|
19166
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
19167
|
-
}
|
|
19168
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19169
|
-
});
|
|
19170
|
-
};
|
|
19171
19284
|
var __await = exports2 && exports2.__await || function(v) {
|
|
19172
19285
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
19173
19286
|
};
|
|
@@ -19345,54 +19458,52 @@ var require_WebClient = __commonJS({
|
|
|
19345
19458
|
* @param method - the Web API method to call {@link https://docs.slack.dev/reference/methods}
|
|
19346
19459
|
* @param options - options
|
|
19347
19460
|
*/
|
|
19348
|
-
apiCall(
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
this.logger.warn(warnMatch[1].trim());
|
|
19383
|
-
}
|
|
19461
|
+
async apiCall(method, options = {}) {
|
|
19462
|
+
this.logger.debug(`apiCall('${method}') start`);
|
|
19463
|
+
warnDeprecations(method, this.logger);
|
|
19464
|
+
warnIfFallbackIsMissing(method, this.logger, options);
|
|
19465
|
+
warnIfThreadTsIsNotString(method, this.logger, options);
|
|
19466
|
+
if (typeof options === "string" || typeof options === "number" || typeof options === "boolean") {
|
|
19467
|
+
throw new TypeError(`Expected an options argument but instead received a ${typeof options}`);
|
|
19468
|
+
}
|
|
19469
|
+
(0, file_upload_1.warnIfNotUsingFilesUploadV2)(method, this.logger);
|
|
19470
|
+
if (method === "files.uploadV2")
|
|
19471
|
+
return this.filesUploadV2(options);
|
|
19472
|
+
const headers = {};
|
|
19473
|
+
if (options.token)
|
|
19474
|
+
headers.Authorization = `Bearer ${options.token}`;
|
|
19475
|
+
const url = this.deriveRequestUrl(method);
|
|
19476
|
+
const response = await this.makeRequest(url, Object.assign({ team_id: this.teamId }, options), headers);
|
|
19477
|
+
const result = await this.buildResult(response);
|
|
19478
|
+
this.logger.debug(`http request result: ${JSON.stringify(result)}`);
|
|
19479
|
+
if (result.response_metadata !== void 0 && result.response_metadata.warnings !== void 0) {
|
|
19480
|
+
result.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger));
|
|
19481
|
+
}
|
|
19482
|
+
if (result.response_metadata !== void 0 && result.response_metadata.messages !== void 0) {
|
|
19483
|
+
for (const msg of result.response_metadata.messages) {
|
|
19484
|
+
const errReg = /\[ERROR\](.*)/;
|
|
19485
|
+
const warnReg = /\[WARN\](.*)/;
|
|
19486
|
+
if (errReg.test(msg)) {
|
|
19487
|
+
const errMatch = msg.match(errReg);
|
|
19488
|
+
if (errMatch != null) {
|
|
19489
|
+
this.logger.error(errMatch[1].trim());
|
|
19490
|
+
}
|
|
19491
|
+
} else if (warnReg.test(msg)) {
|
|
19492
|
+
const warnMatch = msg.match(warnReg);
|
|
19493
|
+
if (warnMatch != null) {
|
|
19494
|
+
this.logger.warn(warnMatch[1].trim());
|
|
19384
19495
|
}
|
|
19385
19496
|
}
|
|
19386
19497
|
}
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19498
|
+
}
|
|
19499
|
+
if (!result.ok && response.headers["content-type"] !== "application/gzip") {
|
|
19500
|
+
throw (0, errors_1.platformErrorFromResult)(result);
|
|
19501
|
+
}
|
|
19502
|
+
if ("ok" in result && result.ok === false) {
|
|
19503
|
+
throw (0, errors_1.platformErrorFromResult)(result);
|
|
19504
|
+
}
|
|
19505
|
+
this.logger.debug(`apiCall('${method}') end`);
|
|
19506
|
+
return result;
|
|
19396
19507
|
}
|
|
19397
19508
|
paginate(method, options, shouldStop, reduce) {
|
|
19398
19509
|
const pageSize = (() => {
|
|
@@ -19424,10 +19535,10 @@ var require_WebClient = __commonJS({
|
|
|
19424
19535
|
}
|
|
19425
19536
|
const pageReducer = reduce !== void 0 ? reduce : noopPageReducer;
|
|
19426
19537
|
let index = 0;
|
|
19427
|
-
return (() =>
|
|
19538
|
+
return (async () => {
|
|
19428
19539
|
var _a, e_1, _b, _c;
|
|
19429
19540
|
const pageIterator = generatePages.call(this);
|
|
19430
|
-
const firstIteratorResult =
|
|
19541
|
+
const firstIteratorResult = await pageIterator.next(void 0);
|
|
19431
19542
|
const firstPage = firstIteratorResult.value;
|
|
19432
19543
|
let accumulator = pageReducer(void 0, firstPage, index);
|
|
19433
19544
|
index += 1;
|
|
@@ -19435,7 +19546,7 @@ var require_WebClient = __commonJS({
|
|
|
19435
19546
|
return accumulator;
|
|
19436
19547
|
}
|
|
19437
19548
|
try {
|
|
19438
|
-
for (var _d = true, pageIterator_1 = __asyncValues(pageIterator), pageIterator_1_1; pageIterator_1_1 =
|
|
19549
|
+
for (var _d = true, pageIterator_1 = __asyncValues(pageIterator), pageIterator_1_1; pageIterator_1_1 = await pageIterator_1.next(), _a = pageIterator_1_1.done, !_a; _d = true) {
|
|
19439
19550
|
_c = pageIterator_1_1.value;
|
|
19440
19551
|
_d = false;
|
|
19441
19552
|
const page = _c;
|
|
@@ -19449,13 +19560,13 @@ var require_WebClient = __commonJS({
|
|
|
19449
19560
|
e_1 = { error: e_1_1 };
|
|
19450
19561
|
} finally {
|
|
19451
19562
|
try {
|
|
19452
|
-
if (!_d && !_a && (_b = pageIterator_1.return))
|
|
19563
|
+
if (!_d && !_a && (_b = pageIterator_1.return)) await _b.call(pageIterator_1);
|
|
19453
19564
|
} finally {
|
|
19454
19565
|
if (e_1) throw e_1.error;
|
|
19455
19566
|
}
|
|
19456
19567
|
}
|
|
19457
19568
|
return accumulator;
|
|
19458
|
-
})
|
|
19569
|
+
})();
|
|
19459
19570
|
}
|
|
19460
19571
|
/**
|
|
19461
19572
|
* Stream markdown text into a conversation.
|
|
@@ -19503,19 +19614,17 @@ var require_WebClient = __commonJS({
|
|
|
19503
19614
|
* **#3**: Complete uploads {@link https://docs.slack.dev/reference/methods/files.completeuploadexternal files.completeUploadExternal}
|
|
19504
19615
|
* @param options
|
|
19505
19616
|
*/
|
|
19506
|
-
filesUploadV2(options) {
|
|
19507
|
-
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
fileUploads[idx].file_id = res.file_id;
|
|
19514
|
-
});
|
|
19515
|
-
yield this.postFileUploadsToExternalURL(fileUploads, options);
|
|
19516
|
-
const completion = yield this.completeFileUploads(fileUploads);
|
|
19517
|
-
return { ok: true, files: completion };
|
|
19617
|
+
async filesUploadV2(options) {
|
|
19618
|
+
this.logger.debug("files.uploadV2() start");
|
|
19619
|
+
const fileUploads = await this.getAllFileUploads(options);
|
|
19620
|
+
const fileUploadsURLRes = await this.fetchAllUploadURLExternal(fileUploads);
|
|
19621
|
+
fileUploadsURLRes.forEach((res, idx) => {
|
|
19622
|
+
fileUploads[idx].upload_url = res.upload_url;
|
|
19623
|
+
fileUploads[idx].file_id = res.file_id;
|
|
19518
19624
|
});
|
|
19625
|
+
await this.postFileUploadsToExternalURL(fileUploads, options);
|
|
19626
|
+
const completion = await this.completeFileUploads(fileUploads);
|
|
19627
|
+
return { ok: true, files: completion };
|
|
19519
19628
|
}
|
|
19520
19629
|
/**
|
|
19521
19630
|
* For each file submitted with this method, submits filenames
|
|
@@ -19523,132 +19632,122 @@ var require_WebClient = __commonJS({
|
|
|
19523
19632
|
* which to send the file data to and an id for the file
|
|
19524
19633
|
* @param fileUploads
|
|
19525
19634
|
*/
|
|
19526
|
-
fetchAllUploadURLExternal(fileUploads) {
|
|
19527
|
-
return
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
}));
|
|
19540
|
-
});
|
|
19635
|
+
async fetchAllUploadURLExternal(fileUploads) {
|
|
19636
|
+
return Promise.all(fileUploads.map((upload) => {
|
|
19637
|
+
const options = {
|
|
19638
|
+
filename: upload.filename,
|
|
19639
|
+
length: upload.length,
|
|
19640
|
+
alt_text: upload.alt_text,
|
|
19641
|
+
snippet_type: upload.snippet_type
|
|
19642
|
+
};
|
|
19643
|
+
if ("token" in upload) {
|
|
19644
|
+
options.token = upload.token;
|
|
19645
|
+
}
|
|
19646
|
+
return this.files.getUploadURLExternal(options);
|
|
19647
|
+
}));
|
|
19541
19648
|
}
|
|
19542
19649
|
/**
|
|
19543
19650
|
* Complete uploads.
|
|
19544
19651
|
* @param fileUploads
|
|
19545
19652
|
* @returns
|
|
19546
19653
|
*/
|
|
19547
|
-
completeFileUploads(fileUploads) {
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
return Promise.all(toComplete.map((job) => this.files.completeUploadExternal(job)));
|
|
19551
|
-
});
|
|
19654
|
+
async completeFileUploads(fileUploads) {
|
|
19655
|
+
const toComplete = Object.values((0, file_upload_1.getAllFileUploadsToComplete)(fileUploads));
|
|
19656
|
+
return Promise.all(toComplete.map((job) => this.files.completeUploadExternal(job)));
|
|
19552
19657
|
}
|
|
19553
19658
|
/**
|
|
19554
19659
|
* for each returned file upload URL, upload corresponding file
|
|
19555
19660
|
* @param fileUploads
|
|
19556
19661
|
* @returns
|
|
19557
19662
|
*/
|
|
19558
|
-
postFileUploadsToExternalURL(fileUploads, options) {
|
|
19559
|
-
return
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
return Promise.reject(Error(`Failed to upload file (id:${file_id}, filename: ${filename})`));
|
|
19572
|
-
}
|
|
19573
|
-
const returnData = { ok: true, body: uploadRes.data };
|
|
19574
|
-
return Promise.resolve(returnData);
|
|
19663
|
+
async postFileUploadsToExternalURL(fileUploads, options) {
|
|
19664
|
+
return Promise.all(fileUploads.map(async (upload) => {
|
|
19665
|
+
const { upload_url, file_id, filename, data } = upload;
|
|
19666
|
+
const body = data;
|
|
19667
|
+
if (upload_url) {
|
|
19668
|
+
const headers = {};
|
|
19669
|
+
if (options.token)
|
|
19670
|
+
headers.Authorization = `Bearer ${options.token}`;
|
|
19671
|
+
const uploadRes = await this.makeRequest(upload_url, {
|
|
19672
|
+
body
|
|
19673
|
+
}, headers);
|
|
19674
|
+
if (uploadRes.status !== 200) {
|
|
19675
|
+
return Promise.reject(Error(`Failed to upload file (id:${file_id}, filename: ${filename})`));
|
|
19575
19676
|
}
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19677
|
+
const returnData = { ok: true, body: uploadRes.data };
|
|
19678
|
+
return Promise.resolve(returnData);
|
|
19679
|
+
}
|
|
19680
|
+
return Promise.reject(Error(`No upload url found for file (id: ${file_id}, filename: ${filename}`));
|
|
19681
|
+
}));
|
|
19579
19682
|
}
|
|
19580
19683
|
/**
|
|
19581
19684
|
* @param options All file uploads arguments
|
|
19582
19685
|
* @returns An array of file upload entries
|
|
19583
19686
|
*/
|
|
19584
|
-
getAllFileUploads(options) {
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
return fileUploads;
|
|
19594
|
-
});
|
|
19687
|
+
async getAllFileUploads(options) {
|
|
19688
|
+
let fileUploads = [];
|
|
19689
|
+
if ("file" in options || "content" in options) {
|
|
19690
|
+
fileUploads.push(await (0, file_upload_1.getFileUploadJob)(options, this.logger));
|
|
19691
|
+
}
|
|
19692
|
+
if ("file_uploads" in options) {
|
|
19693
|
+
fileUploads = fileUploads.concat(await (0, file_upload_1.getMultipleFileUploadJobs)(options, this.logger));
|
|
19694
|
+
}
|
|
19695
|
+
return fileUploads;
|
|
19595
19696
|
}
|
|
19596
19697
|
/**
|
|
19597
19698
|
* Low-level function to make a single API request. handles queuing, retries, and http-level errors
|
|
19598
19699
|
*/
|
|
19599
|
-
makeRequest(
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
|
|
19608
|
-
|
|
19700
|
+
async makeRequest(url, body, headers = {}) {
|
|
19701
|
+
const task = () => this.requestQueue.add(async () => {
|
|
19702
|
+
try {
|
|
19703
|
+
const config = Object.assign({ headers }, this.tlsConfig);
|
|
19704
|
+
if (url.endsWith("admin.analytics.getFile")) {
|
|
19705
|
+
config.responseType = "arraybuffer";
|
|
19706
|
+
}
|
|
19707
|
+
if (url.endsWith("apps.event.authorizations.list")) {
|
|
19708
|
+
body.token = void 0;
|
|
19709
|
+
}
|
|
19710
|
+
this.logger.debug(`http request url: ${url}`);
|
|
19711
|
+
this.logger.debug(`http request body: ${JSON.stringify(redact(body))}`);
|
|
19712
|
+
let allHeaders = Object.keys(this.axios.defaults.headers).reduce((acc, cur) => {
|
|
19713
|
+
if (!axiosHeaderPropsToIgnore.includes(cur)) {
|
|
19714
|
+
acc[cur] = this.axios.defaults.headers[cur];
|
|
19609
19715
|
}
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19716
|
+
return acc;
|
|
19717
|
+
}, {});
|
|
19718
|
+
allHeaders = Object.assign(Object.assign(Object.assign({}, this.axios.defaults.headers.common), allHeaders), headers);
|
|
19719
|
+
this.logger.debug(`http request headers: ${JSON.stringify(redact(allHeaders))}`);
|
|
19720
|
+
const response = await this.axios.post(url, body, config);
|
|
19721
|
+
this.logger.debug("http response received");
|
|
19722
|
+
if (response.status === 429) {
|
|
19723
|
+
const retrySec = parseRetryHeaders(response);
|
|
19724
|
+
if (retrySec !== void 0) {
|
|
19725
|
+
this.emit(WebClientEvent.RATE_LIMITED, retrySec, { url, body });
|
|
19726
|
+
if (this.rejectRateLimitedCalls) {
|
|
19727
|
+
throw new p_retry_1.AbortError((0, errors_1.rateLimitedErrorWithDelay)(retrySec));
|
|
19615
19728
|
}
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19619
|
-
|
|
19620
|
-
|
|
19621
|
-
this.logger.debug("http response received");
|
|
19622
|
-
if (response.status === 429) {
|
|
19623
|
-
const retrySec = parseRetryHeaders(response);
|
|
19624
|
-
if (retrySec !== void 0) {
|
|
19625
|
-
this.emit(WebClientEvent.RATE_LIMITED, retrySec, { url, body });
|
|
19626
|
-
if (this.rejectRateLimitedCalls) {
|
|
19627
|
-
throw new p_retry_1.AbortError((0, errors_1.rateLimitedErrorWithDelay)(retrySec));
|
|
19628
|
-
}
|
|
19629
|
-
this.logger.info(`API Call failed due to rate limiting. Will retry in ${retrySec} seconds.`);
|
|
19630
|
-
this.requestQueue.pause();
|
|
19631
|
-
yield (0, helpers_1.default)(retrySec * 1e3);
|
|
19632
|
-
this.requestQueue.start();
|
|
19633
|
-
throw new Error(`A rate limit was exceeded (url: ${url}, retry-after: ${retrySec})`);
|
|
19634
|
-
}
|
|
19635
|
-
throw new p_retry_1.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${url}, retry-after header: ${response.headers["retry-after"]})`));
|
|
19636
|
-
}
|
|
19637
|
-
if (response.status !== 200) {
|
|
19638
|
-
throw (0, errors_1.httpErrorFromResponse)(response);
|
|
19639
|
-
}
|
|
19640
|
-
return response;
|
|
19641
|
-
} catch (error) {
|
|
19642
|
-
const e = error;
|
|
19643
|
-
this.logger.warn("http request failed", e.message);
|
|
19644
|
-
if (e.request) {
|
|
19645
|
-
throw (0, errors_1.requestErrorWithOriginal)(e, this.attachOriginalToWebAPIRequestError);
|
|
19729
|
+
this.logger.info(`API Call failed due to rate limiting. Will retry in ${retrySec} seconds.`);
|
|
19730
|
+
this.requestQueue.pause();
|
|
19731
|
+
await (0, helpers_1.default)(retrySec * 1e3);
|
|
19732
|
+
this.requestQueue.start();
|
|
19733
|
+
throw new Error(`A rate limit was exceeded (url: ${url}, retry-after: ${retrySec})`);
|
|
19646
19734
|
}
|
|
19647
|
-
throw
|
|
19735
|
+
throw new p_retry_1.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${url}, retry-after header: ${response.headers["retry-after"]})`));
|
|
19648
19736
|
}
|
|
19649
|
-
|
|
19650
|
-
|
|
19737
|
+
if (response.status !== 200) {
|
|
19738
|
+
throw (0, errors_1.httpErrorFromResponse)(response);
|
|
19739
|
+
}
|
|
19740
|
+
return response;
|
|
19741
|
+
} catch (error) {
|
|
19742
|
+
const e = error;
|
|
19743
|
+
this.logger.warn("http request failed", e.message);
|
|
19744
|
+
if (e.request) {
|
|
19745
|
+
throw (0, errors_1.requestErrorWithOriginal)(e, this.attachOriginalToWebAPIRequestError);
|
|
19746
|
+
}
|
|
19747
|
+
throw error;
|
|
19748
|
+
}
|
|
19651
19749
|
});
|
|
19750
|
+
return (0, p_retry_1.default)(task, this.retryConfig);
|
|
19652
19751
|
}
|
|
19653
19752
|
/**
|
|
19654
19753
|
* Get the complete request URL for the provided URL.
|
|
@@ -19730,59 +19829,57 @@ var require_WebClient = __commonJS({
|
|
|
19730
19829
|
* HTTP headers into the object.
|
|
19731
19830
|
* @param response - an http response
|
|
19732
19831
|
*/
|
|
19733
|
-
buildResult(response) {
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
return resolve(buf.toString().split("\n"));
|
|
19745
|
-
});
|
|
19746
|
-
}).then((res) => res).catch((err) => {
|
|
19747
|
-
throw err;
|
|
19832
|
+
async buildResult(response) {
|
|
19833
|
+
let { data } = response;
|
|
19834
|
+
const isGzipResponse = response.headers["content-type"] === "application/gzip";
|
|
19835
|
+
if (isGzipResponse) {
|
|
19836
|
+
try {
|
|
19837
|
+
const unzippedData = await new Promise((resolve, reject) => {
|
|
19838
|
+
node_zlib_1.default.unzip(data, (err, buf) => {
|
|
19839
|
+
if (err) {
|
|
19840
|
+
return reject(err);
|
|
19841
|
+
}
|
|
19842
|
+
return resolve(buf.toString().split("\n"));
|
|
19748
19843
|
});
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19844
|
+
}).then((res) => res).catch((err) => {
|
|
19845
|
+
throw err;
|
|
19846
|
+
});
|
|
19847
|
+
const fileData = [];
|
|
19848
|
+
if (Array.isArray(unzippedData)) {
|
|
19849
|
+
for (const dataset of unzippedData) {
|
|
19850
|
+
if (dataset && dataset.length > 0) {
|
|
19851
|
+
fileData.push(JSON.parse(dataset));
|
|
19755
19852
|
}
|
|
19756
19853
|
}
|
|
19757
|
-
data = { file_data: fileData };
|
|
19758
|
-
} catch (err) {
|
|
19759
|
-
data = { ok: false, error: err };
|
|
19760
|
-
}
|
|
19761
|
-
} else if (!isGzipResponse && response.request.path === "/api/admin.analytics.getFile") {
|
|
19762
|
-
data = JSON.parse(new node_util_1.TextDecoder().decode(data));
|
|
19763
|
-
}
|
|
19764
|
-
if (typeof data === "string") {
|
|
19765
|
-
try {
|
|
19766
|
-
data = JSON.parse(data);
|
|
19767
|
-
} catch (_) {
|
|
19768
|
-
data = { ok: false, error: data };
|
|
19769
19854
|
}
|
|
19855
|
+
data = { file_data: fileData };
|
|
19856
|
+
} catch (err) {
|
|
19857
|
+
data = { ok: false, error: err };
|
|
19770
19858
|
}
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
|
|
19778
|
-
data
|
|
19779
|
-
}
|
|
19780
|
-
const retrySec = parseRetryHeaders(response);
|
|
19781
|
-
if (retrySec !== void 0) {
|
|
19782
|
-
data.response_metadata.retryAfter = retrySec;
|
|
19859
|
+
} else if (!isGzipResponse && response.request.path === "/api/admin.analytics.getFile") {
|
|
19860
|
+
data = JSON.parse(new node_util_1.TextDecoder().decode(data));
|
|
19861
|
+
}
|
|
19862
|
+
if (typeof data === "string") {
|
|
19863
|
+
try {
|
|
19864
|
+
data = JSON.parse(data);
|
|
19865
|
+
} catch (_) {
|
|
19866
|
+
data = { ok: false, error: data };
|
|
19783
19867
|
}
|
|
19784
|
-
|
|
19785
|
-
|
|
19868
|
+
}
|
|
19869
|
+
if (data.response_metadata === void 0) {
|
|
19870
|
+
data.response_metadata = {};
|
|
19871
|
+
}
|
|
19872
|
+
if (response.headers["x-oauth-scopes"] !== void 0) {
|
|
19873
|
+
data.response_metadata.scopes = response.headers["x-oauth-scopes"].trim().split(/\s*,\s*/);
|
|
19874
|
+
}
|
|
19875
|
+
if (response.headers["x-accepted-oauth-scopes"] !== void 0) {
|
|
19876
|
+
data.response_metadata.acceptedScopes = response.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/);
|
|
19877
|
+
}
|
|
19878
|
+
const retrySec = parseRetryHeaders(response);
|
|
19879
|
+
if (retrySec !== void 0) {
|
|
19880
|
+
data.response_metadata.retryAfter = retrySec;
|
|
19881
|
+
}
|
|
19882
|
+
return data;
|
|
19786
19883
|
}
|
|
19787
19884
|
};
|
|
19788
19885
|
exports2.WebClient = WebClient2;
|
|
@@ -19896,7 +19993,7 @@ var require_dist4 = __commonJS({
|
|
|
19896
19993
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
19897
19994
|
};
|
|
19898
19995
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19899
|
-
exports2.WebClientEvent = exports2.WebClient = exports2.retryPolicies = exports2.LogLevel = exports2.addAppMetadata = exports2.ErrorCode = void 0;
|
|
19996
|
+
exports2.WebClientEvent = exports2.WebClient = exports2.ChatStreamer = exports2.retryPolicies = exports2.LogLevel = exports2.addAppMetadata = exports2.ErrorCode = void 0;
|
|
19900
19997
|
var errors_1 = require_errors();
|
|
19901
19998
|
Object.defineProperty(exports2, "ErrorCode", { enumerable: true, get: function() {
|
|
19902
19999
|
return errors_1.ErrorCode;
|
|
@@ -19915,6 +20012,10 @@ var require_dist4 = __commonJS({
|
|
|
19915
20012
|
} });
|
|
19916
20013
|
__exportStar(require_request(), exports2);
|
|
19917
20014
|
__exportStar(require_response(), exports2);
|
|
20015
|
+
var chat_stream_1 = require_chat_stream();
|
|
20016
|
+
Object.defineProperty(exports2, "ChatStreamer", { enumerable: true, get: function() {
|
|
20017
|
+
return chat_stream_1.ChatStreamer;
|
|
20018
|
+
} });
|
|
19918
20019
|
var WebClient_1 = require_WebClient();
|
|
19919
20020
|
Object.defineProperty(exports2, "WebClient", { enumerable: true, get: function() {
|
|
19920
20021
|
return WebClient_1.WebClient;
|
|
@@ -26601,5 +26702,5 @@ mime-types/index.js:
|
|
|
26601
26702
|
*)
|
|
26602
26703
|
|
|
26603
26704
|
axios/dist/node/axios.cjs:
|
|
26604
|
-
(*! Axios v1.13.
|
|
26705
|
+
(*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
26605
26706
|
*/
|