├── scripts ├── compilation │ └── tmp │ │ └── .gitignore ├── cli-dispatcher │ ├── lib │ │ └── Package.js │ ├── set-alias.sh │ └── readme.md └── example.js ├── testbed └── bundlers │ ├── applications │ ├── inactive │ │ └── .gitkeep │ ├── NormalizedSchema.ts │ ├── cbor-protocol.ts │ ├── cbor-client-aggregate.ts │ ├── abstract-protocols.ts │ └── cbor-client.ts │ ├── package.json │ └── Makefile ├── packages ├── uuid │ ├── src │ │ ├── index.ts │ │ ├── randomUUID.browser.ts │ │ ├── randomUUID.ts │ │ └── randomUUID.native.ts │ ├── .eslintrc.json │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── CHANGELOG.md ├── middleware-stack │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── signature-v4a │ ├── scripts │ │ └── Ec.js │ ├── api-extractor.json │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ ├── tsconfig.es.json │ └── README.md ├── util-endpoints │ ├── src │ │ ├── debug │ │ │ ├── debugId.ts │ │ │ └── index.ts │ │ ├── utils │ │ │ ├── index.ts │ │ │ ├── callFunction.ts │ │ │ ├── evaluateTreeRule.ts │ │ │ ├── getEndpointProperty.ts │ │ │ ├── customEndpointFunctions.ts │ │ │ └── getReferenceValue.ts │ │ ├── types │ │ │ ├── ErrorRuleObject.ts │ │ │ ├── EndpointFunctions.ts │ │ │ ├── EndpointError.ts │ │ │ ├── TreeRuleObject.ts │ │ │ ├── index.ts │ │ │ └── RuleSetObject.ts │ │ ├── lib │ │ │ ├── not.ts │ │ │ ├── isSet.ts │ │ │ ├── stringEquals.ts │ │ │ ├── booleanEquals.ts │ │ │ ├── uriEncode.ts │ │ │ ├── index.ts │ │ │ └── isIpAddress.ts │ │ └── index.ts │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── core │ ├── src │ │ ├── submodules │ │ │ ├── event-streams │ │ │ │ └── index.ts │ │ │ ├── serde │ │ │ │ ├── generateIdempotencyToken.ts │ │ │ │ └── quote-header.ts │ │ │ ├── cbor │ │ │ │ └── index.ts │ │ │ └── schema │ │ │ │ ├── deref.ts │ │ │ │ └── middleware │ │ │ │ └── schema-middleware-types.ts │ │ ├── middleware-http-signing │ │ │ └── index.ts │ │ ├── util-identity-and-auth │ │ │ ├── httpAuthSchemes │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── request-builder │ │ │ └── requestBuilder.ts │ │ ├── middleware-http-auth-scheme │ │ │ └── index.ts │ │ ├── getSmithyContext.ts │ │ └── index.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── cbor.js │ ├── serde.js │ ├── schema.js │ ├── protocols.js │ ├── event-streams.js │ ├── cbor.d.ts │ ├── schema.d.ts │ ├── serde.d.ts │ ├── protocols.d.ts │ ├── event-streams.d.ts │ ├── vitest.config.mts │ └── vitest.config.integ.mts ├── eventstream-codec │ ├── test_vectors │ │ ├── decoded │ │ │ ├── negative │ │ │ │ ├── corrupted_length │ │ │ │ ├── corrupted_header_len │ │ │ │ ├── corrupted_headers │ │ │ │ └── corrupted_payload │ │ │ └── positive │ │ │ │ ├── empty_message │ │ │ │ ├── payload_no_headers │ │ │ │ ├── int32_header │ │ │ │ └── payload_one_str_header │ │ └── encoded │ │ │ ├── positive │ │ │ ├── all_headers │ │ │ ├── int32_header │ │ │ ├── empty_message │ │ │ ├── payload_no_headers │ │ │ └── payload_one_str_header │ │ │ └── negative │ │ │ ├── corrupted_headers │ │ │ ├── corrupted_length │ │ │ ├── corrupted_payload │ │ │ └── corrupted_header_len │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ ├── README.md │ └── src │ │ └── index.ts ├── protocol-http │ ├── src │ │ ├── extensions │ │ │ └── index.ts │ │ ├── isValidHostname.ts │ │ └── index.ts │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── README.md ├── smithy-client │ ├── src │ │ ├── extensions │ │ │ └── index.ts │ │ ├── constants.ts │ │ ├── resolve-path.ts │ │ ├── collect-stream-body.ts │ │ ├── extended-encode-uri-component.ts │ │ ├── is-serializable-header-value.ts │ │ ├── NoOpLogger.ts │ │ └── get-array-if-single-item.ts │ ├── .eslintrc.json │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ └── tsconfig.es.json ├── util-base64 │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ └── README.md ├── util-waiter │ ├── src │ │ ├── index.ts │ │ ├── utils │ │ │ ├── index.ts │ │ │ └── sleep.ts │ │ └── index.spec.ts │ ├── .eslintrc.json │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── fetch-http-handler │ ├── src │ │ ├── index.ts │ │ ├── index.spec.ts │ │ └── create-request.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── vitest.config.browser.mts ├── middleware-endpoint │ ├── src │ │ ├── service-customizations │ │ │ └── index.ts │ │ └── adaptors │ │ │ ├── index.ts │ │ │ ├── getEndpointFromConfig.browser.ts │ │ │ └── getEndpointFromConfig.ts │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── util-body-length-browser │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── util-body-length-node │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── types │ ├── src │ │ ├── connection │ │ │ ├── index.ts │ │ │ └── config.ts │ │ ├── auth │ │ │ ├── HttpApiKeyAuth.ts │ │ │ └── index.ts │ │ ├── transform │ │ │ ├── mutable.ts │ │ │ └── exact.ts │ │ ├── identity │ │ │ └── index.ts │ │ ├── endpoints │ │ │ ├── index.ts │ │ │ └── ErrorRuleObject.ts │ │ ├── abort-handler.ts │ │ └── extensions │ │ │ └── index.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.test.json │ └── tsconfig.es.json ├── util-defaults-mode-node │ ├── src │ │ └── index.ts │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── shared-ini-file-loader │ ├── src │ │ ├── constants.ts │ │ ├── getConfigFilepath.ts │ │ └── getCredentialsFilepath.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── util-defaults-mode-browser │ ├── src │ │ └── index.ts │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── util-utf8 │ ├── src │ │ ├── index.ts │ │ ├── fromUtf8.browser.ts │ │ └── fromUtf8.ts │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── README.md ├── eventstream-serde-config-resolver │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── util-config-provider │ ├── src │ │ ├── types.ts │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── README.md ├── md5-js │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ ├── src │ │ └── constants.ts │ └── README.md ├── hash-node │ ├── .gitignore │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ └── README.md ├── middleware-apply-body-checksum │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── url-parser │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── util-stream │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.es.json │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ ├── vitest.config.browser.mts │ └── README.md ├── abort-controller │ ├── .gitignore │ ├── api-extractor.json │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ ├── tsconfig.es.json │ └── README.md ├── config-resolver │ ├── .gitignore │ ├── api-extractor.json │ ├── src │ │ ├── regionConfig │ │ │ ├── index.ts │ │ │ ├── isFipsRegion.ts │ │ │ └── getRealRegion.ts │ │ ├── index.ts │ │ ├── regionInfo │ │ │ ├── index.ts │ │ │ ├── EndpointVariantTag.ts │ │ │ └── EndpointVariant.ts │ │ └── endpointsConfig │ │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── hash-stream-node │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── is-array-buffer │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── src │ │ └── index.ts │ └── vitest.config.mts ├── middleware-retry │ ├── .gitignore │ ├── api-extractor.json │ ├── vitest.config.integ.mts │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── src │ │ ├── isStreamingPayload │ │ │ └── isStreamingPayload.browser.ts │ │ ├── index.ts │ │ ├── delayDecider.ts │ │ └── util.ts │ ├── vitest.config.mts │ └── tsconfig.es.json ├── middleware-serde │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ └── README.md ├── util-buffer-from │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── util-stream-node │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── tsconfig.es.json │ ├── tsconfig.cjs.json │ └── tsconfig.types.json ├── util-uri-escape │ ├── .gitignore │ ├── src │ │ ├── index.ts │ │ ├── escape-uri-path.ts │ │ └── escape-uri.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── chunked-blob-reader │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── hash-blob-browser │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── invalid-dependency │ ├── .gitignore │ ├── src │ │ ├── index.ts │ │ ├── invalidFunction.ts │ │ ├── invalidProvider.ts │ │ └── invalidFunction.spec.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── node-http-handler │ ├── .gitignore │ ├── src │ │ ├── index.ts │ │ ├── constants.ts │ │ ├── index.spec.ts │ │ ├── stream-collector │ │ │ └── collector.ts │ │ └── timing.ts │ ├── api-extractor.json │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── property-provider │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── src │ │ └── fromStatic.ts │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── querystring-builder │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ └── tsconfig.es.json ├── querystring-parser │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── util-hex-encoding │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ ├── vitest.config.mts │ └── README.md ├── util-stream-browser │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── tsconfig.es.json │ └── tsconfig.types.json ├── chunked-blob-reader-native │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── credential-provider-imds │ ├── .gitignore │ ├── src │ │ ├── config │ │ │ ├── EndpointMode.ts │ │ │ └── Endpoint.ts │ │ ├── remoteProvider │ │ │ └── index.ts │ │ └── types.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── eventstream-serde-browser │ ├── .gitignore │ ├── tsconfig.cjs.json │ ├── src │ │ └── index.ts │ ├── tsconfig.types.json │ └── tsconfig.es.json ├── eventstream-serde-node │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ └── tsconfig.types.json ├── middleware-content-length │ ├── .gitignore │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── README.md ├── util-retry │ ├── api-extractor.json │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ ├── vitest.config.mts │ └── src │ │ └── index.ts ├── eventstream-serde-universal │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts ├── experimental-identity-and-auth │ ├── .gitignore │ ├── src │ │ ├── middleware-http-signing │ │ │ └── index.ts │ │ ├── middleware-http-auth-scheme │ │ │ └── index.ts │ │ └── apiKeyIdentity.ts │ ├── vitest.config.integ.mts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.test.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── service-error-classification │ ├── .gitignore │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ └── tsconfig.es.json ├── signature-v4 │ ├── api-extractor.json │ ├── .gitignore │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ └── tsconfig.es.json ├── service-client-documentation-generator │ ├── .gitignore │ ├── src │ │ └── utils.ts │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ └── tsconfig.es.json ├── util-middleware │ ├── src │ │ ├── index.ts │ │ └── getSmithyContext.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── tsconfig.es.json │ └── vitest.config.mts ├── middleware-compression │ ├── src │ │ ├── compressStream.ts │ │ ├── constants.ts │ │ ├── isStreaming.ts │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── vitest.config.mts └── node-config-provider │ ├── tsconfig.cjs.json │ ├── tsconfig.types.json │ ├── src │ └── index.ts │ ├── tsconfig.es.json │ └── vitest.config.mts ├── .github └── CODEOWNERS ├── private ├── util-test │ ├── src │ │ └── index.ts │ ├── .gitignore │ ├── tsconfig.types.json │ ├── tsconfig.cjs.json │ └── tsconfig.es.json ├── my-local-model │ ├── src │ │ └── commands │ │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── tsconfig.json ├── smithy-rpcv2-cbor │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── tsconfig.json ├── my-local-model-schema │ ├── src │ │ └── commands │ │ │ └── index.ts │ ├── tsconfig.cjs.json │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── tsconfig.json └── smithy-rpcv2-cbor-schema │ ├── tsconfig.cjs.json │ ├── vitest.config.mts │ ├── tsconfig.es.json │ ├── tsconfig.types.json │ └── tsconfig.json ├── .yarnrc.yml ├── NOTICE ├── prettier.config.js ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── smithy-typescript-ssdk-libs ├── README.md ├── server-common │ ├── tsconfig.cjs.json │ ├── jest.config.js │ ├── README.md │ ├── tsconfig.es.json │ ├── .gitignore │ ├── tsconfig.json │ ├── .npmignore │ └── tsconfig.types.json ├── server-node │ ├── tsconfig.cjs.json │ ├── jest.config.js │ ├── tsconfig.es.json │ ├── .gitignore │ ├── src │ │ └── index.ts │ ├── .npmignore │ ├── tsconfig.json │ ├── CHANGELOG.md │ └── tsconfig.types.json └── server-apigateway │ ├── tsconfig.cjs.json │ ├── jest.config.js │ ├── tsconfig.es.json │ ├── .gitignore │ ├── tsconfig.json │ ├── .npmignore │ └── tsconfig.types.json ├── config └── spotless │ └── license-header.txt ├── smithy-typescript-codegen-test ├── model │ ├── common │ │ ├── fakeAuth.smithy │ │ └── fakeProtocol.smithy │ └── weather │ │ ├── nested.smithy │ │ └── more-nesting.smithy └── example-weather-customizations │ └── src │ └── main │ └── resources │ └── META-INF │ └── services │ └── software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration ├── .prettierignore ├── smithy-typescript-codegen └── src │ ├── test │ └── resources │ │ ├── software │ │ └── amazon │ │ │ └── smithy │ │ │ └── typescript │ │ │ └── codegen │ │ │ ├── simple-service.smithy │ │ │ ├── testmodel.smithy │ │ │ ├── simple-service-with-operation.smithy │ │ │ ├── error-test-empty.smithy │ │ │ ├── error-test-retryable.smithy │ │ │ ├── error-test-optional-message.smithy │ │ │ ├── error-test-optional-member-no-message.smithy │ │ │ ├── error-test-retryable-throttling.smithy │ │ │ ├── test-insensitive-simple-shape.smithy │ │ │ ├── error-test-required-message.smithy │ │ │ ├── validation │ │ │ └── long-validation.smithy │ │ │ └── error-test-required-member-no-message.smithy │ │ └── META-INF │ │ └── services │ │ └── software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration │ └── main │ └── resources │ ├── software │ └── amazon │ │ └── smithy │ │ └── typescript │ │ └── codegen │ │ ├── typedoc.json │ │ ├── runtimeExtensions2.template │ │ ├── resolveRuntimeExtensions2.template │ │ ├── tsconfig.cjs.json │ │ ├── extensionConfiguration.template │ │ ├── vitest.config.mts │ │ ├── tsconfig.es.json │ │ ├── runtimeConfig.shared.ts.template │ │ └── tsconfig.types.json │ └── META-INF │ └── services │ └── software.amazon.smithy.build.SmithyBuildPlugin ├── gradle.properties ├── smithy-typescript-ssdk-codegen-test-utils └── src │ └── main │ └── resources │ └── META-INF │ └── services │ └── software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration ├── tsconfig.types.json ├── tsconfig.cjs.json ├── vitest.config.browser.mts ├── tsconfig.es.json ├── vitest.config.integ.mts ├── CODE_OF_CONDUCT.md ├── api-extractor.packages.json └── tsconfig.test.json /scripts/compilation/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | *.mjs -------------------------------------------------------------------------------- /testbed/bundlers/applications/inactive/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/uuid/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./v4"; 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @smithy-lang/aws-sdk-js-team 2 | 3 | -------------------------------------------------------------------------------- /private/util-test/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./test-http-handler"; 2 | -------------------------------------------------------------------------------- /packages/middleware-stack/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./MiddlewareStack"; 2 | -------------------------------------------------------------------------------- /packages/signature-v4a/scripts/Ec.js: -------------------------------------------------------------------------------- 1 | export { ec as Ec } from "elliptic"; 2 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/debug/debugId.ts: -------------------------------------------------------------------------------- 1 | export const debugId = "endpoints"; 2 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules 2 | 3 | yarnPath: .yarn/releases/yarn-4.10.3.cjs 4 | -------------------------------------------------------------------------------- /packages/core/src/submodules/event-streams/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EventStreamSerde"; 2 | -------------------------------------------------------------------------------- /testbed/bundlers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": {}, 3 | "type": "module" 4 | } 5 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/negative/corrupted_length: -------------------------------------------------------------------------------- 1 | Prelude checksum mismatch -------------------------------------------------------------------------------- /packages/protocol-http/src/extensions/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpExtensionConfiguration"; 2 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/negative/corrupted_header_len: -------------------------------------------------------------------------------- 1 | Prelude checksum mismatch -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/negative/corrupted_headers: -------------------------------------------------------------------------------- 1 | Message checksum mismatch -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/negative/corrupted_payload: -------------------------------------------------------------------------------- 1 | Message checksum mismatch -------------------------------------------------------------------------------- /packages/smithy-client/src/extensions/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./defaultExtensionConfiguration"; 2 | -------------------------------------------------------------------------------- /packages/util-base64/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./fromBase64"; 2 | export * from "./toBase64"; 3 | -------------------------------------------------------------------------------- /packages/util-waiter/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./createWaiter"; 2 | export * from "./waiter"; 3 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Smithy Typescript 2 | Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/debug/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./debugId"; 2 | export * from "./toDebugString"; 3 | -------------------------------------------------------------------------------- /testbed/bundlers/applications/NormalizedSchema.ts: -------------------------------------------------------------------------------- 1 | export { NormalizedSchema } from "@smithy/core/schema"; 2 | -------------------------------------------------------------------------------- /testbed/bundlers/applications/cbor-protocol.ts: -------------------------------------------------------------------------------- 1 | export { SmithyRpcV2CborProtocol } from "@smithy/core/cbor"; 2 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // Custom 3 | printWidth: 120, 4 | trailingComma: "es5", 5 | }; 6 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./fetch-http-handler"; 2 | export * from "./stream-collector"; 3 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/src/service-customizations/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./s3"; 5 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./calculateBodyLength"; 5 | -------------------------------------------------------------------------------- /packages/util-body-length-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./calculateBodyLength"; 5 | -------------------------------------------------------------------------------- /packages/types/src/connection/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./config"; 2 | export * from "./manager"; 3 | export * from "./pool"; 4 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./resolveDefaultsModeConfig"; 5 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./customEndpointFunctions"; 2 | export * from "./evaluateRules"; 3 | -------------------------------------------------------------------------------- /testbed/bundlers/applications/cbor-client-aggregate.ts: -------------------------------------------------------------------------------- 1 | export { RpcV2Protocol } from "@smithy/smithy-rpcv2-cbor-schema"; 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const CONFIG_PREFIX_SEPARATOR = "."; 5 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-browser/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./resolveDefaultsModeConfig"; 5 | -------------------------------------------------------------------------------- /packages/util-utf8/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./fromUtf8"; 2 | export * from "./toUint8Array"; 3 | export * from "./toUtf8"; 4 | -------------------------------------------------------------------------------- /testbed/bundlers/applications/abstract-protocols.ts: -------------------------------------------------------------------------------- 1 | export { HttpBindingProtocol, RpcProtocol } from "@smithy/core/protocols"; 2 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./EventStreamSerdeConfig"; 5 | -------------------------------------------------------------------------------- /packages/smithy-client/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const SENSITIVE_STRING = "***SensitiveInformation***"; 5 | -------------------------------------------------------------------------------- /packages/util-config-provider/src/types.ts: -------------------------------------------------------------------------------- 1 | export enum SelectorType { 2 | ENV = "env", 3 | CONFIG = "shared config entry", 4 | } 5 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/callFunction.ts: -------------------------------------------------------------------------------- 1 | // breaks circular import 2 | export { callFunction } from "./evaluateExpression"; 3 | -------------------------------------------------------------------------------- /packages/util-utf8/src/fromUtf8.browser.ts: -------------------------------------------------------------------------------- 1 | export const fromUtf8 = (input: string): Uint8Array => new TextEncoder().encode(input); 2 | -------------------------------------------------------------------------------- /packages/uuid/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["eslint-plugin-tsdoc"], 3 | "rules": { 4 | "tsdoc/syntax": "warn" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/core/src/middleware-http-signing/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpSigningMiddleware"; 2 | export * from "./getHttpSigningMiddleware"; 3 | -------------------------------------------------------------------------------- /packages/md5-js/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/types/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/evaluateTreeRule.ts: -------------------------------------------------------------------------------- 1 | // breaks circular import 2 | export { evaluateTreeRule } from "./evaluateRules"; 3 | -------------------------------------------------------------------------------- /packages/uuid/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/core/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | !*.d.ts -------------------------------------------------------------------------------- /packages/hash-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./applyMd5BodyChecksumMiddleware"; 2 | export * from "./md5Configuration"; 3 | -------------------------------------------------------------------------------- /packages/smithy-client/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["eslint-plugin-tsdoc"], 3 | "rules": { 4 | "tsdoc/syntax": "warn" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/url-parser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-base64/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-config-provider/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./booleanSelector"; 2 | export * from "./numberSelector"; 3 | export * from "./types"; 4 | -------------------------------------------------------------------------------- /packages/util-stream/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-utf8/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-waiter/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["eslint-plugin-tsdoc"], 3 | "rules": { 4 | "tsdoc/syntax": "warn" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/util-waiter/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /private/util-test/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /testbed/bundlers/applications/cbor-client.ts: -------------------------------------------------------------------------------- 1 | export { RpcV2ProtocolClient, FractionalSecondsCommand } from "@smithy/smithy-rpcv2-cbor-schema"; 2 | -------------------------------------------------------------------------------- /packages/abort-controller/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/config-resolver/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/hash-stream-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/is-array-buffer/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-retry/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-serde/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-stack/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/protocol-http/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/smithy-client/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-buffer-from/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/getEndpointProperty.ts: -------------------------------------------------------------------------------- 1 | // breaks circular import 2 | export { getEndpointProperty } from "./getEndpointProperties"; 3 | -------------------------------------------------------------------------------- /packages/util-stream-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-uri-escape/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/core/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/eventstream-codec/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/hash-blob-browser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/invalid-dependency/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/node-http-handler/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/property-provider/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/querystring-builder/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/querystring-parser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/types/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/util-body-length-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-stream-browser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/uuid/src/randomUUID.browser.ts: -------------------------------------------------------------------------------- 1 | export const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto); 2 | -------------------------------------------------------------------------------- /testbed/bundlers/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: run 2 | 3 | run: 4 | mkdir -p dist-vite 5 | mkdir -p dist-esbuild 6 | mkdir -p dist-webpack 7 | node ./runner/run.mjs -------------------------------------------------------------------------------- /packages/chunked-blob-reader-native/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/eventstream-serde-browser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/eventstream-serde-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-content-length/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-serde/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./deserializerMiddleware"; 2 | export * from "./serdePlugin"; 3 | export * from "./serializerMiddleware"; 4 | -------------------------------------------------------------------------------- /packages/node-http-handler/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./node-http-handler"; 2 | export * from "./node-http2-handler"; 3 | export * from "./stream-collector"; 4 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/util-retry/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/util-stream/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/README.md: -------------------------------------------------------------------------------- 1 | # Smithy Typescript Server SDK Libraries 2 | 3 | These libraries support the use of the Smithy TypeScript Server SDKs. 4 | -------------------------------------------------------------------------------- /config/spotless/license-header.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * SPDX-License-Identifier: Apache-2.0 4 | */ 5 | -------------------------------------------------------------------------------- /packages/abort-controller/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/config-resolver/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/middleware-retry/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/middleware-stack/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/service-error-classification/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/signature-v4/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/signature-v4a/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/smithy-client/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/util-waiter/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./sleep"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./validate"; 9 | -------------------------------------------------------------------------------- /smithy-typescript-codegen-test/model/common/fakeAuth.smithy: -------------------------------------------------------------------------------- 1 | $version: "2.0" 2 | 3 | namespace common 4 | 5 | @trait 6 | @authDefinition 7 | structure fakeAuth {} 8 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist/cjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist/cjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/core/src/util-identity-and-auth/httpAuthSchemes/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpApiKeyAuth"; 2 | export * from "./httpBearerAuth"; 3 | export * from "./noAuth"; 4 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/src/config/EndpointMode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export enum EndpointMode { 5 | IPv4 = "IPv4", 6 | IPv6 = "IPv6", 7 | } 8 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/src/middleware-http-signing/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpSigningMiddleware"; 2 | export * from "./getHttpSigningMiddleware"; 3 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/node-http-handler/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/signature-v4/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /dist/ 4 | /coverage/ 5 | /docs/ 6 | *.tsbuildinfo 7 | *.tgz 8 | *.log 9 | package-lock.json 10 | -------------------------------------------------------------------------------- /packages/signature-v4a/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /dist/ 4 | /coverage/ 5 | /docs/ 6 | *.tsbuildinfo 7 | *.tgz 8 | *.log 9 | package-lock.json 10 | -------------------------------------------------------------------------------- /packages/types/src/auth/HttpApiKeyAuth.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export enum HttpApiKeyAuthLocation { 5 | HEADER = "header", 6 | QUERY = "query", 7 | } 8 | -------------------------------------------------------------------------------- /packages/types/src/transform/mutable.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export type Mutable = { 5 | -readonly [Property in keyof Type]: Type[Property]; 6 | }; 7 | -------------------------------------------------------------------------------- /private/my-local-model/src/commands/index.ts: -------------------------------------------------------------------------------- 1 | // smithy-typescript generated code 2 | export * from "./GetNumbersCommand"; 3 | export * from "./TradeEventStreamCommand"; 4 | -------------------------------------------------------------------------------- /private/my-local-model/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist-cjs", 5 | "noCheck": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist/cjs" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/core/src/submodules/serde/generateIdempotencyToken.ts: -------------------------------------------------------------------------------- 1 | import { v4 as generateIdempotencyToken } from "@smithy/uuid"; 2 | 3 | export { generateIdempotencyToken }; 4 | -------------------------------------------------------------------------------- /packages/service-client-documentation-generator/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/smithy-client/src/resolve-path.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * Backwards compatibility re-export. 4 | */ 5 | export { resolvedPath } from "@smithy/core/protocols"; 6 | -------------------------------------------------------------------------------- /packages/util-uri-escape/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./escape-uri"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./escape-uri-path"; 9 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist-cjs", 5 | "noCheck": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/smithy-client/src/collect-stream-body.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * Backwards compatibility re-export. 4 | */ 5 | export { collectBody } from "@smithy/core/protocols"; 6 | -------------------------------------------------------------------------------- /private/my-local-model-schema/src/commands/index.ts: -------------------------------------------------------------------------------- 1 | // smithy-typescript generated code 2 | export * from "./GetNumbersCommand"; 3 | export * from "./TradeEventStreamCommand"; 4 | -------------------------------------------------------------------------------- /private/my-local-model-schema/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist-cjs", 5 | "noCheck": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor-schema/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist-cjs", 5 | "noCheck": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /smithy-typescript-codegen-test/model/common/fakeProtocol.smithy: -------------------------------------------------------------------------------- 1 | $version: "2.0" 2 | 3 | namespace common 4 | 5 | @trait 6 | @protocolDefinition 7 | structure fakeProtocol {} 8 | -------------------------------------------------------------------------------- /packages/core/src/request-builder/requestBuilder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * Backwards compatibility re-export. 4 | */ 5 | export { requestBuilder } from "@smithy/core/protocols"; 6 | -------------------------------------------------------------------------------- /packages/core/src/util-identity-and-auth/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./DefaultIdentityProviderConfig"; 2 | export * from "./httpAuthSchemes"; 3 | export * from "./memoizeIdentityProvider"; 4 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/api-extractor.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../api-extractor.packages.json", 3 | "mainEntryPointFilePath": "./dist-types/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /packages/eventstream-serde-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./EventStreamMarshaller"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./provider"; 9 | -------------------------------------------------------------------------------- /packages/hash-stream-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./fileStreamHasher"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./readableStreamHasher"; 9 | -------------------------------------------------------------------------------- /packages/invalid-dependency/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./invalidFunction"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./invalidProvider"; 9 | -------------------------------------------------------------------------------- /packages/invalid-dependency/src/invalidFunction.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const invalidFunction = (message: string) => () => { 5 | throw new Error(message); 6 | }; 7 | -------------------------------------------------------------------------------- /packages/types/src/identity/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./apiKeyIdentity"; 2 | export * from "./awsCredentialIdentity"; 3 | export * from "./identity"; 4 | export * from "./tokenIdentity"; 5 | -------------------------------------------------------------------------------- /packages/util-middleware/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./getSmithyContext"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./normalizeProvider"; 9 | -------------------------------------------------------------------------------- /scripts/cli-dispatcher/lib/Package.js: -------------------------------------------------------------------------------- 1 | module.exports = class Package { 2 | constructor(name, location) { 3 | this.name = name; 4 | this.location = location; 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/jest.config.js: -------------------------------------------------------------------------------- 1 | const base = require("../../jest.config.base.js"); 2 | 3 | module.exports = { 4 | preset: "ts-jest", 5 | ...base, 6 | }; 7 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/jest.config.js: -------------------------------------------------------------------------------- 1 | const base = require("../../jest.config.base.js"); 2 | 3 | module.exports = { 4 | preset: "ts-jest", 5 | ...base, 6 | }; 7 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionConfig/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./config"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./resolveRegionConfig"; 9 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./EventStreamMarshaller"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./provider"; 9 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/ErrorRuleObject.ts: -------------------------------------------------------------------------------- 1 | import type { ErrorRuleObject as __ErrorRuleObject } from "@smithy/types"; 2 | 3 | export type ErrorRuleObject = __ErrorRuleObject; 4 | -------------------------------------------------------------------------------- /smithy-typescript-codegen-test/model/weather/nested.smithy: -------------------------------------------------------------------------------- 1 | $version: "2.0" 2 | 3 | namespace example.weather.nested 4 | 5 | structure Foo { 6 | baz: String 7 | bar: String 8 | } 9 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/jest.config.js: -------------------------------------------------------------------------------- 1 | const base = require("../../jest.config.base.js"); 2 | 3 | module.exports = { 4 | preset: "ts-jest", 5 | ...base, 6 | }; 7 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/README.md: -------------------------------------------------------------------------------- 1 | # smithy-typescript/server-common 2 | 3 | This library provides common interfaces and utilities needed for building a 4 | server sdk. 5 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "ESNext", 5 | "outDir": "dist/es" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "ESNext", 5 | "outDir": "dist/es" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | ./packages/**/dist/* 2 | ./packages/**/dist-types/* 3 | ./packages/**/dist-es/* 4 | ./packages/**/dist-cjs/* 5 | **/dist/* 6 | **/dist-types/* 7 | **/dist-es/* 8 | **/dist-cjs/* 9 | -------------------------------------------------------------------------------- /packages/util-stream-browser/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./getAwsChunkedEncodingStream"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./sdk-stream-mixin"; 9 | -------------------------------------------------------------------------------- /packages/util-stream-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./getAwsChunkedEncodingStream"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./sdk-stream-mixin"; 9 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/simple-service.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0" 5 | } 6 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "ESNext", 5 | "outDir": "dist/es" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/src/config/Endpoint.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export enum Endpoint { 5 | IPv4 = "http://169.254.169.254", 6 | IPv6 = "http://[fd00:ec2::254]", 7 | } 8 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/positive/all_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/positive/all_headers -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/positive/int32_header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/positive/int32_header -------------------------------------------------------------------------------- /packages/hash-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/src/adaptors/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./getEndpointFromInstructions"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./toEndpointV1"; 9 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/EndpointFunctions.ts: -------------------------------------------------------------------------------- 1 | import type { FunctionReturn } from "./shared"; 2 | 3 | export type EndpointFunctions = Record FunctionReturn>; 4 | -------------------------------------------------------------------------------- /packages/util-stream/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /packages/util-waiter/src/utils/sleep.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const sleep = (seconds: number) => { 5 | return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); 6 | }; 7 | -------------------------------------------------------------------------------- /smithy-typescript-codegen-test/model/weather/more-nesting.smithy: -------------------------------------------------------------------------------- 1 | $version: "2.0" 2 | 3 | namespace example.weather.nested.more 4 | 5 | structure Baz { 6 | baz: String 7 | bar: String 8 | } 9 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "entryPoints": ["src/index.ts"], 3 | "out": "docs", 4 | "readme": "README.md" 5 | } 6 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/testmodel.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | structure Foo { 4 | @required 5 | foo: String, 6 | } 7 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/src/remoteProvider/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./ImdsCredentials"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./RemoteProviderInit"; 9 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/positive/empty_message: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/positive/empty_message -------------------------------------------------------------------------------- /packages/hash-stream-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /packages/smithy-client/src/extended-encode-uri-component.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * Backwards compatibility re-export. 4 | */ 5 | export { extendedEncodeURIComponent } from "@smithy/core/protocols"; 6 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/not.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Performs logical negation on the provided boolean value, 3 | * returning the negated value. 4 | */ 5 | export const not = (value: boolean) => !value; 6 | -------------------------------------------------------------------------------- /packages/util-stream-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/runtimeExtensions2.template: -------------------------------------------------------------------------------- 1 | return Object.assign(runtimeConfig, 2 | ${resolvePartialRuntimeConfigs} 3 | ); 4 | }; 5 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | smithyVersion=1.64.0 2 | smithyGradleVersion=1.3.0 3 | org.gradle.configuration-cache=true 4 | org.gradle.configuration-cache.inputs.unsafe.ignore.file-system-checks=build/jreleaser/marker.txt -------------------------------------------------------------------------------- /packages/core/src/middleware-http-auth-scheme/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpAuthSchemeMiddleware"; 2 | export * from "./getHttpAuthSchemeEndpointRuleSetPlugin"; 3 | export * from "./getHttpAuthSchemePlugin"; 4 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/negative/corrupted_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/negative/corrupted_headers -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/negative/corrupted_length: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/negative/corrupted_length -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/negative/corrupted_payload: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/negative/corrupted_payload -------------------------------------------------------------------------------- /packages/types/src/transform/exact.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * 4 | * Checks that A and B extend each other. 5 | */ 6 | export type Exact = [A] extends [B] ? ([B] extends [A] ? true : false) : false; 7 | -------------------------------------------------------------------------------- /packages/util-body-length-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/EndpointError.ts: -------------------------------------------------------------------------------- 1 | export class EndpointError extends Error { 2 | constructor(message: string) { 3 | super(message); 4 | this.name = "EndpointError"; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/util-stream-browser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.spec.ts"], 6 | globals: true, 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/META-INF/services/software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration: -------------------------------------------------------------------------------- 1 | software.amazon.smithy.typescript.codegen.SymbolDecoratorIntegration 2 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | src/*.js 10 | dist/ 11 | types/ 12 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/positive/payload_no_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/positive/payload_no_headers -------------------------------------------------------------------------------- /packages/protocol-http/src/isValidHostname.ts: -------------------------------------------------------------------------------- 1 | export function isValidHostname(hostname: string): boolean { 2 | const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; 3 | return hostPattern.test(hostname); 4 | } 5 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-browser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { "baseUrl": ".", "outDir": "dist-es", "rootDir": "src" }, 3 | "extends": "../../tsconfig.es.json", 4 | "include": ["src/"] 5 | } 6 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | src/*.js 10 | dist/ 11 | types/ 12 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * SPDX-License-Identifier: Apache-2.0 4 | */ 5 | 6 | export * from "./node"; 7 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/negative/corrupted_header_len: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/negative/corrupted_header_len -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/encoded/positive/payload_one_str_header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smithy-lang/smithy-typescript/HEAD/packages/eventstream-codec/test_vectors/encoded/positive/payload_one_str_header -------------------------------------------------------------------------------- /packages/middleware-endpoint/src/adaptors/getEndpointFromConfig.browser.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @typescript-eslint/no-unused-vars 2 | export const getEndpointFromConfig = async (serviceId: string) => undefined; 3 | -------------------------------------------------------------------------------- /packages/types/src/endpoints/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EndpointRuleObject"; 2 | export * from "./ErrorRuleObject"; 3 | export * from "./RuleSetObject"; 4 | export * from "./shared"; 5 | export * from "./TreeRuleObject"; 6 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/customEndpointFunctions.ts: -------------------------------------------------------------------------------- 1 | import type { EndpointFunctions } from "../types/EndpointFunctions"; 2 | 3 | export const customEndpointFunctions: { [key: string]: EndpointFunctions } = {}; 4 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor-schema/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.spec.ts"], 6 | globals: true, 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /build/ 3 | /coverage/ 4 | /docs/ 5 | *.tsbuildinfo 6 | *.tgz 7 | *.log 8 | package-lock.json 9 | src/*.js 10 | dist/ 11 | types/ 12 | -------------------------------------------------------------------------------- /packages/uuid/src/randomUUID.ts: -------------------------------------------------------------------------------- 1 | // ToDo: Merge Node.js and browser implementations after dropping support for Node.js 22.x 2 | import crypto from "crypto"; 3 | 4 | export const randomUUID = crypto.randomUUID.bind(crypto); 5 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/resolveRuntimeExtensions2.template: -------------------------------------------------------------------------------- 1 | return Object.assign( 2 | runtimeConfig, 3 | ${resolvePartialRuntimeConfigs} 4 | ); 5 | }; 6 | -------------------------------------------------------------------------------- /packages/util-retry/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/util-uri-escape/src/escape-uri-path.ts: -------------------------------------------------------------------------------- 1 | import { escapeUri } from "./escape-uri"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export const escapeUriPath = (uri: string): string => uri.split("/").map(escapeUri).join("/"); 7 | -------------------------------------------------------------------------------- /packages/uuid/src/randomUUID.native.ts: -------------------------------------------------------------------------------- 1 | // If user has provided their polyfill, like "react-native-random-uuid" 2 | export const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto); 3 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-codegen-test-utils/src/main/resources/META-INF/services/software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration: -------------------------------------------------------------------------------- 1 | software.amazon.smithy.typescript.ssdk.codegen.test.utils.AddProtocols 2 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionConfig/isFipsRegion.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const isFipsRegion = (region: string) => 5 | typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); 6 | -------------------------------------------------------------------------------- /packages/core/cbor.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Do not edit: 4 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 5 | */ 6 | module.exports = require("./dist-cjs/submodules/cbor/index.js"); 7 | -------------------------------------------------------------------------------- /packages/core/serde.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Do not edit: 4 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 5 | */ 6 | module.exports = require("./dist-cjs/submodules/serde/index.js"); 7 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/src/middleware-http-auth-scheme/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./httpAuthSchemeMiddleware"; 2 | export * from "./getHttpAuthSchemeEndpointRuleSetPlugin"; 3 | export * from "./getHttpAuthSchemePlugin"; 4 | -------------------------------------------------------------------------------- /packages/util-endpoints/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/util-stream/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/uuid/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /scripts/cli-dispatcher/set-alias.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Set a command line alias to make running the dispatcher easier. 4 | 5 | alias b="node ./scripts/cli-dispatcher/index.js" 6 | alias r="node ./scripts/cli-dispatcher/workspace.js" -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "outDir": "dist-cjs", 5 | "noCheck": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "declaration": true, 5 | "emitDeclarationOnly": true, 6 | "removeComments": false, 7 | "strict": true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/core/schema.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Do not edit: 4 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 5 | */ 6 | module.exports = require("./dist-cjs/submodules/schema/index.js"); 7 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/positive/empty_message: -------------------------------------------------------------------------------- 1 | { 2 | "total_length": 16, 3 | "headers_length": 0, 4 | "prelude_crc": 96618731, 5 | "headers": [ ], 6 | "payload": "", 7 | "message_crc": 2107164927 8 | } 9 | -------------------------------------------------------------------------------- /packages/hash-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/md5-js/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "include": ["src/"], 8 | "extends": "../../tsconfig.cjs.json" 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-retry/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/middleware-serde/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/types/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-base64/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-es", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.es.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-utf8/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/extensionConfiguration.template: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export interface ${extensionConfigName} 5 | extends ${extensionConfigInterfaces} {} 6 | -------------------------------------------------------------------------------- /packages/core/protocols.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Do not edit: 4 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 5 | */ 6 | module.exports = require("./dist-cjs/submodules/protocols/index.js"); 7 | -------------------------------------------------------------------------------- /packages/core/src/submodules/cbor/index.ts: -------------------------------------------------------------------------------- 1 | export { cbor } from "./cbor"; 2 | export { tag, tagSymbol } from "./cbor-types"; 3 | export * from "./parseCborBody"; 4 | export * from "./SmithyRpcV2CborProtocol"; 5 | export * from "./CborCodec"; 6 | -------------------------------------------------------------------------------- /packages/middleware-compression/src/compressStream.ts: -------------------------------------------------------------------------------- 1 | import type { Readable } from "stream"; 2 | import { createGzip } from "zlib"; 3 | 4 | export const compressStream = async (body: Readable): Promise => body.pipe(createGzip()); 5 | -------------------------------------------------------------------------------- /packages/middleware-content-length/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/protocol-http/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/smithy-client/src/is-serializable-header-value.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * @returns whether the header value is serializable. 4 | */ 5 | export const isSerializableHeaderValue = (value: any) => { 6 | return value != null; 7 | }; 8 | -------------------------------------------------------------------------------- /packages/url-parser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-base64/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-retry/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-stream/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-waiter/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/config-resolver/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/core/event-streams.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Do not edit: 4 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 5 | */ 6 | module.exports = require("./dist-cjs/submodules/event-streams/index.js"); 7 | -------------------------------------------------------------------------------- /packages/eventstream-codec/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-blob-browser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-stream-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/invalid-dependency/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/is-array-buffer/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.integ.spec.ts"], 6 | environment: "node", 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-serde/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-stack/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/node-http-handler/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/property-provider/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/querystring-builder/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/querystring-parser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/types/src/abort-handler.ts: -------------------------------------------------------------------------------- 1 | import type { AbortSignal as DeprecatedAbortSignal } from "./abort"; 2 | 3 | /** 4 | * @public 5 | */ 6 | export interface AbortHandler { 7 | (this: AbortSignal | DeprecatedAbortSignal, ev: any): any; 8 | } 9 | -------------------------------------------------------------------------------- /packages/types/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-buffer-from/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/isSet.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Evaluates whether a value is set (aka not null or undefined). 3 | * Returns true if the value is set, otherwise returns false. 4 | */ 5 | export const isSet = (value: unknown) => value != null; 6 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-middleware/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-stream-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-uri-escape/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/uuid/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/config-resolver/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./endpointsConfig"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./regionConfig"; 9 | /** 10 | * @internal 11 | */ 12 | export * from "./regionInfo"; 13 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/invalid-dependency/src/invalidProvider.ts: -------------------------------------------------------------------------------- 1 | import type { Provider } from "@smithy/types"; 2 | /** 3 | * @internal 4 | */ 5 | export const invalidProvider: (message: string) => Provider = (message: string) => () => Promise.reject(message); 6 | -------------------------------------------------------------------------------- /packages/md5-js/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "include": ["src/"], 9 | "extends": "../../tsconfig.es.json" 10 | } 11 | -------------------------------------------------------------------------------- /packages/md5-js/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-compression/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/node-config-provider/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/signature-v4a/src/index.ts: -------------------------------------------------------------------------------- 1 | import { signatureV4aContainer } from "@smithy/signature-v4"; 2 | 3 | import { SignatureV4a } from "./SignatureV4a"; 4 | 5 | signatureV4aContainer.SignatureV4a = SignatureV4a; 6 | 7 | export * from "./SignatureV4a"; 8 | -------------------------------------------------------------------------------- /packages/types/tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "rootDir": "src", 5 | "noEmit": true 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"], 9 | "exclude": [] 10 | } 11 | -------------------------------------------------------------------------------- /packages/url-parser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-body-length-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-config-provider/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-node/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-retry/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-utf8/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/uuid/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "importHelpers": true, 5 | "module": "commonjs", 6 | "noEmitHelpers": false, 7 | "target": "es2022", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader-native/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/config-resolver/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-browser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/is-array-buffer/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-content-length/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/protocol-http/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/signature-v4/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/signature-v4a/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/smithy-client/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/types/src/auth/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./auth"; 2 | export * from "./HttpApiKeyAuth"; 3 | export * from "./HttpAuthScheme"; 4 | export * from "./HttpAuthSchemeProvider"; 5 | export * from "./HttpSigner"; 6 | export * from "./IdentityProviderConfig"; 7 | -------------------------------------------------------------------------------- /packages/types/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-base64/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-browser/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-middleware/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-retry/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-stream/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-uri-escape/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-utf8/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-waiter/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-waiter/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/abort-controller/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionInfo/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./PartitionHash"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./RegionHash"; 9 | /** 10 | * @internal 11 | */ 12 | export * from "./getRegionInfo"; 13 | -------------------------------------------------------------------------------- /packages/config-resolver/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-codec/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-codec/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-browser/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./EventStreamMarshaller"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./provider"; 9 | /** 10 | * @internal 11 | */ 12 | export * from "./utils"; 13 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-blob-browser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-stream-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/invalid-dependency/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/is-array-buffer/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-retry/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-serde/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-serde/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-stack/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-stack/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/node-config-provider/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/node-http-handler/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/node-http-handler/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/property-provider/src/fromStatic.ts: -------------------------------------------------------------------------------- 1 | import type { Provider } from "@smithy/types"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export const fromStatic = 7 | (staticValue: T): Provider => 8 | () => 9 | Promise.resolve(staticValue); 10 | -------------------------------------------------------------------------------- /packages/property-provider/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/property-provider/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/querystring-builder/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/querystring-parser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/url-parser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-buffer-from/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-buffer-from/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-config-provider/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/TreeRuleObject.ts: -------------------------------------------------------------------------------- 1 | import type { RuleSetRules as __RuleSetRules, TreeRuleObject as __TreeRuleObject } from "@smithy/types"; 2 | 3 | export type RuleSetRules = __RuleSetRules; 4 | 5 | export type TreeRuleObject = __TreeRuleObject; 6 | -------------------------------------------------------------------------------- /packages/util-endpoints/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-middleware/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-stream-browser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-stream-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-uri-escape/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/positive/payload_no_headers: -------------------------------------------------------------------------------- 1 | { 2 | "total_length": 29, 3 | "headers_length": 0, 4 | "prelude_crc": -44921766, 5 | "headers": [ ], 6 | "payload": "eydmb28nOidiYXInfQ==", 7 | "message_crc": -1016776394 8 | } 9 | -------------------------------------------------------------------------------- /packages/eventstream-serde-browser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-node/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-serde-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/hash-blob-browser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/invalid-dependency/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-compression/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-compression/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-content-length/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/node-config-provider/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./configLoader"; 2 | export { EnvOptions, GetterFromEnv } from "./fromEnv"; 3 | export { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles"; 4 | export { FromStaticConfig } from "./fromStatic"; 5 | -------------------------------------------------------------------------------- /packages/node-config-provider/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/protocol-http/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/querystring-builder/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/querystring-parser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-body-length-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-config-provider/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/stringEquals.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Evaluates two string values value1 and value2 for equality and returns 3 | * true if both values match. 4 | */ 5 | export const stringEquals = (value1: string, value2: string): boolean => value1 === value2; 6 | -------------------------------------------------------------------------------- /private/my-local-model/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "lib": ["dom"], 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "outDir": "dist-es", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | include: ["**/*.spec.ts"], 6 | globals: true, 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader-native/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/src/types.ts: -------------------------------------------------------------------------------- 1 | import type { AwsCredentialIdentity } from "@smithy/types"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export interface InstanceMetadataCredentials extends AwsCredentialIdentity { 7 | readonly originalExpiration?: Date; 8 | } 9 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/middleware-content-length/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/service-error-classification/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/signature-v4/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src", 6 | "stripInternal": true 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-browser/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/booleanEquals.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Evaluates two boolean values value1 and value2 for equality and returns 3 | * true if both values match. 4 | */ 5 | export const booleanEquals = (value1: boolean, value2: boolean): boolean => value1 === value2; 6 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/uriEncode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Performs percent-encoding per RFC3986 section 2.1 3 | */ 4 | export const uriEncode = (value: string) => 5 | encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); 6 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "lib": ["dom"], 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "outDir": "dist-es", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/abort-controller/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src", 6 | "stripInternal": true 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader-native/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/core/cbor.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Do not edit: 3 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 4 | */ 5 | declare module "@smithy/core/cbor" { 6 | export * from "@smithy/core/dist-types/submodules/cbor/index.d"; 7 | } 8 | -------------------------------------------------------------------------------- /packages/eventstream-serde-browser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["DOM"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src" 6 | }, 7 | "extends": "../../tsconfig.types.json", 8 | "include": ["src/"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "rootDir": "src", 5 | "noEmit": true 6 | }, 7 | "extends": "../../tsconfig.cjs.json", 8 | "include": ["src/"], 9 | "exclude": [] 10 | } 11 | -------------------------------------------------------------------------------- /packages/is-array-buffer/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const isArrayBuffer = (arg: any): arg is ArrayBuffer => 5 | (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || 6 | Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; 7 | -------------------------------------------------------------------------------- /packages/md5-js/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/middleware-retry/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "noUnusedLocals": true, 5 | "outDir": "dist-cjs", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/signature-v4a/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src", 6 | "stripInternal": true 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/smithy-client/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "noUnusedLocals": true, 5 | "outDir": "dist-cjs", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-base64/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./cache/EndpointCache"; 2 | export * from "./lib/isIpAddress"; 3 | export * from "./lib/isValidHostLabel"; 4 | export * from "./utils/customEndpointFunctions"; 5 | export * from "./resolveEndpoint"; 6 | export * from "./types"; 7 | -------------------------------------------------------------------------------- /packages/uuid/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /private/my-local-model-schema/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "lib": ["dom"], 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "outDir": "dist-es", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor-schema/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "lib": ["dom"], 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "outDir": "dist-es", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-codegen-test/example-weather-customizations/src/main/resources/META-INF/services/software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration: -------------------------------------------------------------------------------- 1 | example.weather.ExampleWeatherCustomEndpointsRuntimeConfig 2 | example.weather.SupportWeatherSigV4Auth 3 | -------------------------------------------------------------------------------- /packages/core/schema.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Do not edit: 3 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 4 | */ 5 | declare module "@smithy/core/schema" { 6 | export * from "@smithy/core/dist-types/submodules/schema/index.d"; 7 | } 8 | -------------------------------------------------------------------------------- /packages/core/serde.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Do not edit: 3 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 4 | */ 5 | declare module "@smithy/core/serde" { 6 | export * from "@smithy/core/dist-types/submodules/serde/index.d"; 7 | } 8 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "outDir": "dist-es", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.es.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/hash-node/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-compression/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Compression Algorithms supported by the SDK. 3 | */ 4 | export enum CompressionAlgorithm { 5 | GZIP = "gzip", 6 | } 7 | 8 | export const CLIENT_SUPPORTED_ALGORITHMS: CompressionAlgorithm[] = [CompressionAlgorithm.GZIP]; 9 | -------------------------------------------------------------------------------- /packages/node-http-handler/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/signature-v4/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/signature-v4a/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/node_modules/**", "**/es/**"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/types/src/extensions/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./defaultClientConfiguration"; 2 | export * from "./defaultExtensionConfiguration"; 3 | export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration } from "./checksum"; 4 | export { RetryStrategyConfiguration } from "./retry"; 5 | -------------------------------------------------------------------------------- /packages/url-parser/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-retry/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-stream/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-utf8/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-waiter/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /private/util-test/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "rootDir": "src", 6 | "skipLibCheck": true 7 | }, 8 | "extends": "../../tsconfig.types.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /vitest.config.browser.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["node_modules"], 6 | include: ["{packages,private}/**/*.browser.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/abort-controller/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/config-resolver/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/eventstream-codec/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/hash-blob-browser/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/hash-stream-node/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/is-array-buffer/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-retry/src/isStreamingPayload/isStreamingPayload.browser.ts: -------------------------------------------------------------------------------- 1 | import type { HttpRequest } from "@smithy/protocol-http"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export const isStreamingPayload = (request: HttpRequest): boolean => request?.body instanceof ReadableStream; 7 | -------------------------------------------------------------------------------- /packages/middleware-retry/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-serde/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-stack/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/property-provider/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/protocol-http/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/smithy-client/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-buffer-from/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-middleware/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-uri-escape/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/simple-service-with-operation.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [GetFoo] 6 | } 7 | 8 | operation GetFoo {} 9 | 10 | 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "stripInternal": true, 5 | "removeComments": true, 6 | "rootDir": "src", 7 | "baseUrl": "." 8 | }, 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "importHelpers": true, 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "noEmitHelpers": false, 8 | "target": "es2022", 9 | "noCheck": true 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/core/protocols.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Do not edit: 3 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 4 | */ 5 | declare module "@smithy/core/protocols" { 6 | export * from "@smithy/core/dist-types/submodules/protocols/index.d"; 7 | } 8 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/invalid-dependency/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/node-config-provider/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/querystring-parser/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/service-error-classification/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "noUnusedLocals": true, 5 | "outDir": "dist-cjs", 6 | "rootDir": "src" 7 | }, 8 | "extends": "../../tsconfig.cjs.json", 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/smithy-client/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "noUnusedLocals": true, 6 | "outDir": "dist-es", 7 | "rootDir": "src" 8 | }, 9 | "extends": "../../tsconfig.es.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/util-body-length-node/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-config-provider/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/uuid/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## 1.1.0 4 | 5 | ### Minor Changes 6 | 7 | - 45ee67f: update dist-cjs generation to use rollup 8 | 9 | ## 1.0.0 10 | 11 | ### Major Changes 12 | 13 | - 9489059: Add polyfill for uuid v4 with preference for native implementations 14 | -------------------------------------------------------------------------------- /private/my-local-model/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist-types", 7 | "emitDeclarationOnly": true, 8 | "noCheck": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist-types", 7 | "emitDeclarationOnly": true, 8 | "noCheck": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "stripInternal": true, 5 | "removeComments": true, 6 | "rootDir": "src", 7 | "baseUrl": "." 8 | }, 9 | "include": ["src/"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/abort-controller/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src", 7 | "stripInternal": true 8 | }, 9 | "extends": "../../tsconfig.es.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/chunked-blob-reader-native/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/credential-provider-imds/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/eventstream-serde-universal/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/vitest.config.browser.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/md5-js/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const BLOCK_SIZE = 64; 5 | 6 | /** 7 | * @internal 8 | */ 9 | export const DIGEST_LENGTH = 16; 10 | 11 | /** 12 | * @internal 13 | */ 14 | export const INIT = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]; 15 | -------------------------------------------------------------------------------- /packages/node-http-handler/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Node.js system error codes that indicate timeout. 3 | * @deprecated use NODEJS_TIMEOUT_ERROR_CODES from @smithy/service-error-classification/constants 4 | */ 5 | export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; 6 | -------------------------------------------------------------------------------- /packages/protocol-http/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./extensions"; 2 | export * from "./Field"; 3 | export * from "./Fields"; 4 | export * from "./httpHandler"; 5 | export * from "./httpRequest"; 6 | export * from "./httpResponse"; 7 | export * from "./isValidHostname"; 8 | export * from "./types"; 9 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-node/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-retry/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AdaptiveRetryStrategy"; 2 | export * from "./ConfiguredRetryStrategy"; 3 | export * from "./DefaultRateLimiter"; 4 | export * from "./StandardRetryStrategy"; 5 | export * from "./config"; 6 | export * from "./constants"; 7 | export * from "./types"; 8 | -------------------------------------------------------------------------------- /packages/util-stream/vitest.config.browser.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e}.spec.ts"], 6 | include: ["**/*.browser.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /private/my-local-model-schema/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist-types", 7 | "emitDeclarationOnly": true, 8 | "noCheck": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/core/event-streams.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Do not edit: 3 | * This is a compatibility redirect for contexts that do not understand package.json exports field. 4 | */ 5 | declare module "@smithy/core/event-streams" { 6 | export * from "@smithy/core/dist-types/submodules/event-streams/index.d"; 7 | } 8 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-apply-body-checksum/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/middleware-retry/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": ["dom"], 5 | "noUnusedLocals": true, 6 | "outDir": "dist-es", 7 | "rootDir": "src" 8 | }, 9 | "extends": "../../tsconfig.es.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/service-error-classification/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-body-length-browser/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-defaults-mode-browser/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "happy-dom", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EndpointError"; 2 | export * from "./EndpointFunctions"; 3 | export * from "./EndpointRuleObject"; 4 | export * from "./ErrorRuleObject"; 5 | export * from "./RuleSetObject"; 6 | export * from "./TreeRuleObject"; 7 | export * from "./shared"; 8 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor-schema/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist-types", 7 | "emitDeclarationOnly": true, 8 | "noCheck": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /private/util-test/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "outDir": "dist-cjs", 5 | "rootDir": "src", 6 | "stripInternal": true, 7 | "skipLibCheck": true 8 | }, 9 | "extends": "../../tsconfig.cjs.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["node_modules", "**/*.{e2e,browser}.spec.ts"], 6 | include: ["{packages,private}/**/*.integ.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/core/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | hideSkippedTests: true, 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /packages/eventstream-serde-config-resolver/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /packages/service-error-classification/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "noUnusedLocals": true, 6 | "outDir": "dist-es", 7 | "rootDir": "src" 8 | }, 9 | "extends": "../../tsconfig.es.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/smithy-client/src/NoOpLogger.ts: -------------------------------------------------------------------------------- 1 | import type { Logger } from "@smithy/types"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export class NoOpLogger implements Logger { 7 | public trace() {} 8 | public debug() {} 9 | public info() {} 10 | public warn() {} 11 | public error() {} 12 | } 13 | -------------------------------------------------------------------------------- /packages/util-utf8/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/util-utf8 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/util-utf8/latest.svg)](https://www.npmjs.com/package/@smithy/util-utf8) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-utf8.svg)](https://www.npmjs.com/package/@smithy/util-utf8) 5 | -------------------------------------------------------------------------------- /packages/service-client-documentation-generator/src/utils.ts: -------------------------------------------------------------------------------- 1 | import { sep } from "path"; 2 | import type { Reflection } from "typedoc"; 3 | 4 | /** 5 | * @internal 6 | */ 7 | export const isClientModel = (model: Reflection | undefined) => 8 | model?.sources?.[0]?.fullFileName.includes(`${sep}clients${sep}`); 9 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/src/getConfigFilepath.ts: -------------------------------------------------------------------------------- 1 | import { join } from "path"; 2 | 3 | import { getHomeDir } from "./getHomeDir"; 4 | 5 | export const ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; 6 | 7 | export const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config"); 8 | -------------------------------------------------------------------------------- /packages/types/src/endpoints/ErrorRuleObject.ts: -------------------------------------------------------------------------------- 1 | import type { ConditionObject, Expression } from "./shared"; 2 | 3 | /** 4 | * @public 5 | */ 6 | export type ErrorRuleObject = { 7 | type: "error"; 8 | conditions?: ConditionObject[]; 9 | error: Expression; 10 | documentation?: string; 11 | }; 12 | -------------------------------------------------------------------------------- /packages/util-utf8/src/fromUtf8.ts: -------------------------------------------------------------------------------- 1 | import { fromString } from "@smithy/util-buffer-from"; 2 | 3 | export const fromUtf8 = (input: string): Uint8Array => { 4 | const buf = fromString(input, "utf8"); 5 | return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); 6 | }; 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /packages/core/vitest.config.integ.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{e2e,browser}.spec.ts"], 6 | include: ["**/*.integ.spec.ts"], 7 | environment: "node", 8 | hideSkippedTests: true, 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/src/index.spec.ts: -------------------------------------------------------------------------------- 1 | import { describe, expect, test as it } from "vitest"; 2 | 3 | import { FetchHttpHandler } from "./index"; 4 | 5 | describe("index", () => { 6 | it("exports FetchHttpHandler", () => { 7 | expect(typeof FetchHttpHandler).toBe("function"); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /packages/node-http-handler/src/index.spec.ts: -------------------------------------------------------------------------------- 1 | import { describe, expect, test as it } from "vitest"; 2 | 3 | import { NodeHttpHandler } from "./index"; 4 | 5 | describe("index", () => { 6 | it("exports NodeHttpHandler", () => { 7 | expect(typeof NodeHttpHandler).toBe("function"); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /packages/util-base64/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/util-base64 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/util-base64/latest.svg)](https://www.npmjs.com/package/@smithy/util-base64) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-base64.svg)](https://www.npmjs.com/package/@smithy/util-base64) 5 | -------------------------------------------------------------------------------- /private/util-test/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "outDir": "dist-es", 6 | "rootDir": "src", 7 | "stripInternal": true, 8 | "skipLibCheck": true 9 | }, 10 | "extends": "../../tsconfig.es.json", 11 | "include": ["src/"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/middleware-compression/vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vitest/config"; 2 | 3 | export default defineConfig({ 4 | test: { 5 | exclude: ["**/*.{integ,e2e,browser}.spec.ts"], 6 | include: ["**/*.spec.ts"], 7 | environment: "node", 8 | 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /packages/middleware-retry/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AdaptiveRetryStrategy"; 2 | export * from "./StandardRetryStrategy"; 3 | export * from "./configurations"; 4 | export * from "./delayDecider"; 5 | export * from "./omitRetryHeadersMiddleware"; 6 | export * from "./retryDecider"; 7 | export * from "./retryMiddleware"; 8 | -------------------------------------------------------------------------------- /packages/signature-v4/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "noUnusedLocals": true, 6 | "outDir": "dist-es", 7 | "rootDir": "src", 8 | "stripInternal": true 9 | }, 10 | "extends": "../../tsconfig.es.json", 11 | "include": ["src/"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/types/src/connection/config.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @public 3 | */ 4 | export interface ConnectConfiguration { 5 | /** 6 | * The maximum time in milliseconds that the connection phase of a request 7 | * may take before the connection attempt is abandoned. 8 | */ 9 | requestTimeout?: number; 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/.npmignore: -------------------------------------------------------------------------------- 1 | /coverage/ 2 | tsconfig.test.json 3 | *.tsbuildinfo 4 | jest.config.js 5 | 6 | *.spec.js 7 | *.spec.ts 8 | *.spec.d.ts 9 | *.spec.js.map 10 | 11 | *.mock.js 12 | *.mock.d.ts 13 | *.mock.js.map 14 | 15 | *.fixture.js 16 | *.fixture.d.ts 17 | *.fixture.js.map 18 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/.npmignore: -------------------------------------------------------------------------------- 1 | /coverage/ 2 | tsconfig.test.json 3 | *.tsbuildinfo 4 | jest.config.js 5 | 6 | *.spec.js 7 | *.spec.ts 8 | *.spec.d.ts 9 | *.spec.js.map 10 | 11 | *.mock.js 12 | *.mock.d.ts 13 | *.mock.js.map 14 | 15 | *.fixture.js 16 | *.fixture.d.ts 17 | *.fixture.js.map 18 | -------------------------------------------------------------------------------- /packages/signature-v4a/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "lib": [], 5 | "noUnusedLocals": true, 6 | "outDir": "dist-es", 7 | "rootDir": "src", 8 | "stripInternal": true 9 | }, 10 | "extends": "../../tsconfig.es.json", 11 | "include": ["src/"] 12 | } 13 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/.npmignore: -------------------------------------------------------------------------------- 1 | /coverage/ 2 | tsconfig.test.json 3 | *.tsbuildinfo 4 | jest.config.js 5 | 6 | *.spec.js 7 | *.spec.ts 8 | *.spec.d.ts 9 | *.spec.js.map 10 | 11 | *.mock.js 12 | *.mock.d.ts 13 | *.mock.js.map 14 | 15 | *.fixture.js 16 | *.fixture.d.ts 17 | *.fixture.js.map 18 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "stripInternal": true, 5 | "removeComments": true, 6 | "rootDir": "src", 7 | "baseUrl": ".", 8 | "lib": ["es2019.object", "dom"] 9 | }, 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/protocol-http/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/protocol-http 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/protocol-http/latest.svg)](https://www.npmjs.com/package/@smithy/protocol-http) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/protocol-http.svg)](https://www.npmjs.com/package/@smithy/protocol-http) 5 | -------------------------------------------------------------------------------- /packages/smithy-client/src/get-array-if-single-item.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * 4 | * The XML parser will set one K:V for a member that could 5 | * return multiple entries but only has one. 6 | */ 7 | export const getArrayIfSingleItem = (mayBeArray: T): T | T[] => 8 | Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; 9 | -------------------------------------------------------------------------------- /packages/util-waiter/src/index.spec.ts: -------------------------------------------------------------------------------- 1 | import { describe, expect, test as it } from "vitest"; 2 | 3 | import * as exported from "./index"; 4 | 5 | describe("Waiter util module exports", () => { 6 | it("should export the proper functions", () => { 7 | expect(exported.createWaiter).toBeDefined(); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "lib": ["dom"], 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "outDir": "dist-es", 8 | "noCheck": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # server-node Changelog 2 | 3 | ## 1.0.0-alpha.10 (2023-04-18) 4 | 5 | ## 1.0.0-alpha.9 (2023-03-16) 6 | 7 | ### Features 8 | 9 | Module created. 10 | 11 | ### Other 12 | 13 | - Upgraded to Yarn 3. ([#705](https://github.com/awslabs/smithy-typescript/pull/705)) 14 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-node/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist/types", 7 | "emitDeclarationOnly": true 8 | }, 9 | "exclude": ["test/**/*", "dist/types/**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /api-extractor.packages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./api-extractor.json", 3 | "docModel": { 4 | "apiJsonFilePath": "./api-extractor-packages/.api.json" 5 | }, 6 | "apiReport": { 7 | "reportFolder": "./api-extractor-packages/", 8 | "reportTempFolder": "./api-extractor-packages/" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-apigateway/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist/types", 7 | "emitDeclarationOnly": true 8 | }, 9 | "exclude": ["test/**/*", "dist/types/**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /smithy-typescript-ssdk-libs/server-common/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist/types", 7 | "emitDeclarationOnly": true 8 | }, 9 | "exclude": ["test/**/*", "dist/types/**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./booleanEquals"; 2 | export * from "./getAttr"; 3 | export * from "./isSet"; 4 | export * from "./isValidHostLabel"; 5 | export * from "./not"; 6 | export * from "./parseURL"; 7 | export * from "./stringEquals"; 8 | export * from "./substring"; 9 | export * from "./uriEncode"; 10 | -------------------------------------------------------------------------------- /packages/abort-controller/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/abort-controller 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/abort-controller/latest.svg)](https://www.npmjs.com/package/@smithy/abort-controller) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/abort-controller.svg)](https://www.npmjs.com/package/@smithy/abort-controller) 5 | -------------------------------------------------------------------------------- /packages/middleware-compression/src/isStreaming.ts: -------------------------------------------------------------------------------- 1 | import { isArrayBuffer } from "@smithy/is-array-buffer"; 2 | 3 | /** 4 | * Returns true if the given value is a streaming response. 5 | */ 6 | export const isStreaming = (body: unknown) => 7 | body !== undefined && typeof body !== "string" && !ArrayBuffer.isView(body) && !isArrayBuffer(body); 8 | -------------------------------------------------------------------------------- /packages/middleware-serde/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/middleware-serde 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/middleware-serde/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-serde) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-serde.svg)](https://www.npmjs.com/package/@smithy/middleware-serde) 5 | -------------------------------------------------------------------------------- /packages/node-http-handler/src/stream-collector/collector.ts: -------------------------------------------------------------------------------- 1 | import { Writable } from "stream"; 2 | export class Collector extends Writable { 3 | public readonly bufferedBytes: Buffer[] = []; 4 | _write(chunk: Buffer, encoding: string, callback: (err?: Error) => void) { 5 | this.bufferedBytes.push(chunk); 6 | callback(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/service-client-documentation-generator/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "declarationDir": "dist-types", 5 | "experimentalDecorators": true, 6 | "rootDir": "src", 7 | "strict": false 8 | }, 9 | "extends": "../../tsconfig.types.json", 10 | "include": ["src/"] 11 | } 12 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-empty.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething{ 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | structure Err {} 14 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionInfo/EndpointVariantTag.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * 4 | * The tag which mentions which area variant is providing information for. 5 | * Can be either "fips" or "dualstack". 6 | * 7 | * @internal 8 | * @deprecated unused for endpointRuleSets. 9 | */ 10 | export type EndpointVariantTag = "fips" | "dualstack"; 11 | -------------------------------------------------------------------------------- /packages/util-uri-escape/src/escape-uri.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const escapeUri = (uri: string): string => 5 | // AWS percent-encodes some extra non-standard characters in a URI 6 | encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); 7 | 8 | const hexEncode = (c: string) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; 9 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/runtimeConfig.shared.ts.template: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export const getRuntimeConfig = (config: ${clientConfigName}) => { 5 | ${prepareCustomizations} 6 | return { 7 | apiVersion: "${apiVersion}", 8 | ${customizations} 9 | }; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/eventstream-codec/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/eventstream-codec 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-codec/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-codec) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-codec.svg)](https://www.npmjs.com/package/@smithy/eventstream-codec) 5 | -------------------------------------------------------------------------------- /packages/middleware-endpoint/src/adaptors/getEndpointFromConfig.ts: -------------------------------------------------------------------------------- 1 | import { loadConfig } from "@smithy/node-config-provider"; 2 | 3 | import { getEndpointUrlConfig } from "./getEndpointUrlConfig"; 4 | 5 | /** 6 | * @internal 7 | */ 8 | export const getEndpointFromConfig = async (serviceId?: string) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))(); 9 | -------------------------------------------------------------------------------- /packages/shared-ini-file-loader/src/getCredentialsFilepath.ts: -------------------------------------------------------------------------------- 1 | import { join } from "path"; 2 | 3 | import { getHomeDir } from "./getHomeDir"; 4 | 5 | export const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; 6 | 7 | export const getCredentialsFilepath = () => 8 | process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials"); 9 | -------------------------------------------------------------------------------- /packages/util-hex-encoding/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/util-hex-encoding 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/util-hex-encoding/latest.svg)](https://www.npmjs.com/package/@smithy/util-hex-encoding) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-hex-encoding.svg)](https://www.npmjs.com/package/@smithy/util-hex-encoding) 5 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.types.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "declarationDir": "dist-types", 7 | "emitDeclarationOnly": true, 8 | "noCheck": false 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/eventstream-codec/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EventStreamCodec"; 2 | export * from "./HeaderMarshaller"; 3 | export * from "./Int64"; 4 | export * from "./Message"; 5 | export * from "./MessageDecoderStream"; 6 | export * from "./MessageEncoderStream"; 7 | export * from "./SmithyMessageDecoderStream"; 8 | export * from "./SmithyMessageEncoderStream"; 9 | -------------------------------------------------------------------------------- /packages/middleware-compression/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS"; 2 | export * from "./NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS"; 3 | export * from "./compressionMiddleware"; 4 | export * from "./configurations"; 5 | export * from "./getCompressionPlugin"; 6 | export * from "./resolveCompressionConfig"; 7 | -------------------------------------------------------------------------------- /packages/service-client-documentation-generator/tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "experimentalDecorators": true, 5 | "outDir": "dist-cjs", 6 | "pretty": true, 7 | "rootDir": "src", 8 | "strict": false 9 | }, 10 | "extends": "../../tsconfig.cjs.json", 11 | "include": ["src/"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/core/src/getSmithyContext.ts: -------------------------------------------------------------------------------- 1 | import type { HandlerExecutionContext } from "@smithy/types"; 2 | import { SMITHY_CONTEXT_KEY } from "@smithy/types"; 3 | 4 | /** 5 | * @internal 6 | */ 7 | export const getSmithyContext = (context: HandlerExecutionContext): Record => 8 | context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}); 9 | -------------------------------------------------------------------------------- /packages/core/src/submodules/schema/deref.ts: -------------------------------------------------------------------------------- 1 | import type { Schema, SchemaRef } from "@smithy/types"; 2 | 3 | /** 4 | * Dereferences a SchemaRef if needed. 5 | * @internal 6 | */ 7 | export const deref = (schemaRef: SchemaRef): Schema => { 8 | if (typeof schemaRef === "function") { 9 | return schemaRef(); 10 | } 11 | return schemaRef; 12 | }; 13 | -------------------------------------------------------------------------------- /packages/fetch-http-handler/src/create-request.ts: -------------------------------------------------------------------------------- 1 | import type { AdditionalRequestParameters } from "./fetch-http-handler"; 2 | 3 | /** 4 | * @internal 5 | * For mocking/interception. 6 | */ 7 | export function createRequest(url: string, requestOptions?: RequestInit & AdditionalRequestParameters) { 8 | return new Request(url, requestOptions); 9 | } 10 | -------------------------------------------------------------------------------- /packages/core/src/submodules/serde/quote-header.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @public 3 | * @param part - header list element 4 | * @returns quoted string if part contains delimiter. 5 | */ 6 | export function quoteHeader(part: string) { 7 | if (part.includes(",") || part.includes('"')) { 8 | part = `"${part.replace(/"/g, '\\"')}"`; 9 | } 10 | return part; 11 | } 12 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/positive/int32_header: -------------------------------------------------------------------------------- 1 | { 2 | "total_length": 45, 3 | "headers_length": 16, 4 | "prelude_crc": 1103373496, 5 | "headers": [ { 6 | "name": "event-type", 7 | "type": 4, 8 | "value": 40972 9 | } 10 | ], 11 | "payload": "eydmb28nOidiYXInfQ==", 12 | "message_crc": 921993376 13 | } 14 | -------------------------------------------------------------------------------- /packages/util-config-provider/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/util-config-provider 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/util-config-provider/latest.svg)](https://www.npmjs.com/package/@smithy/util-config-provider) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-config-provider.svg)](https://www.npmjs.com/package/@smithy/util-config-provider) 5 | -------------------------------------------------------------------------------- /packages/util-stream/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/util-stream 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/util-stream/latest.svg)](https://www.npmjs.com/package/@smithy/util-stream) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-stream.svg)](https://www.npmjs.com/package/@smithy/util-stream) 5 | 6 | Package with utilities to operate on streams. 7 | -------------------------------------------------------------------------------- /scripts/cli-dispatcher/readme.md: -------------------------------------------------------------------------------- 1 | ## CLI dispatcher 2 | 3 | These scripts provide CLI helpers to send shorthand commands to a matching package. 4 | 5 | ### Usage 6 | 7 | First, alias the script entry point. An example is provided in `./set-alias.sh`. 8 | 9 | Then, run the script with the new alias `b` with no arguments to see the help message detailing usage. 10 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-retryable.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | @retryable 14 | structure Err {} 15 | -------------------------------------------------------------------------------- /packages/core/src/submodules/schema/middleware/schema-middleware-types.ts: -------------------------------------------------------------------------------- 1 | import type { ClientProtocol, SerdeContext, UrlParser } from "@smithy/types"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export type PreviouslyResolved = Omit< 7 | SerdeContext & { 8 | urlParser: UrlParser; 9 | protocol: ClientProtocol; 10 | }, 11 | "endpoint" 12 | >; 13 | -------------------------------------------------------------------------------- /packages/service-client-documentation-generator/tsconfig.es.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "experimentalDecorators": true, 5 | "lib": [], 6 | "outDir": "dist-es", 7 | "pretty": true, 8 | "rootDir": "src", 9 | "strict": false 10 | }, 11 | "extends": "../../tsconfig.es.json", 12 | "include": ["src/"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/util-middleware/src/getSmithyContext.ts: -------------------------------------------------------------------------------- 1 | import type { HandlerExecutionContext } from "@smithy/types"; 2 | import { SMITHY_CONTEXT_KEY } from "@smithy/types"; 3 | 4 | /** 5 | * @internal 6 | */ 7 | export const getSmithyContext = (context: HandlerExecutionContext): Record => 8 | context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}); 9 | -------------------------------------------------------------------------------- /packages/experimental-identity-and-auth/src/apiKeyIdentity.ts: -------------------------------------------------------------------------------- 1 | import type { Identity, IdentityProvider } from "@smithy/types"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export interface ApiKeyIdentity extends Identity { 7 | readonly apiKey: string; 8 | } 9 | 10 | /** 11 | * @internal 12 | */ 13 | export type ApiKeyIdentityProvider = IdentityProvider; 14 | -------------------------------------------------------------------------------- /packages/middleware-retry/src/delayDecider.ts: -------------------------------------------------------------------------------- 1 | import { MAXIMUM_RETRY_DELAY } from "@smithy/util-retry"; 2 | 3 | /** 4 | * @internal 5 | * Calculate a capped, fully-jittered exponential backoff time. 6 | */ 7 | export const defaultDelayDecider = (delayBase: number, attempts: number) => 8 | Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); 9 | -------------------------------------------------------------------------------- /packages/node-http-handler/src/timing.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | * For test spies. 4 | */ 5 | export const timing = { 6 | setTimeout: (cb: (...ignored: any[]) => void | unknown, ms?: number) => setTimeout(cb, ms), 7 | clearTimeout: (timeoutId: string | number | undefined | unknown) => 8 | clearTimeout(timeoutId as Parameters[0]), 9 | }; 10 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/utils/getReferenceValue.ts: -------------------------------------------------------------------------------- 1 | import type { EvaluateOptions, ReferenceObject } from "../types"; 2 | 3 | export const getReferenceValue = ({ ref }: ReferenceObject, options: EvaluateOptions) => { 4 | const referenceRecord = { 5 | ...options.endpointParams, 6 | ...options.referenceRecord, 7 | }; 8 | return referenceRecord[ref]; 9 | }; 10 | -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "noEmit": true, 5 | "noCheck": false, 6 | "skipLibCheck": true 7 | }, 8 | "extends": "./tsconfig.types.json", 9 | "include": ["packages/**/*.spec.ts", "private/**/*.spec.ts"], 10 | "exclude": [ 11 | "node_modules/", 12 | "node_modules", 13 | "vitest.*.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionInfo/EndpointVariant.ts: -------------------------------------------------------------------------------- 1 | import type { EndpointVariantTag } from "./EndpointVariantTag"; 2 | 3 | /** 4 | * Provides hostname information for specific host label. 5 | * 6 | * @internal 7 | * @deprecated unused as of endpointsRuleSets. 8 | */ 9 | export type EndpointVariant = { 10 | hostname: string; 11 | tags: EndpointVariantTag[]; 12 | }; 13 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-optional-message.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | structure Err { 14 | message: String, 15 | } 16 | -------------------------------------------------------------------------------- /packages/config-resolver/src/regionConfig/getRealRegion.ts: -------------------------------------------------------------------------------- 1 | import { isFipsRegion } from "./isFipsRegion"; 2 | 3 | /** 4 | * @internal 5 | */ 6 | export const getRealRegion = (region: string) => 7 | isFipsRegion(region) 8 | ? ["fips-aws-global", "aws-fips"].includes(region) 9 | ? "us-east-1" 10 | : region.replace(/fips-(dkr-|prod-)?|-fips/, "") 11 | : region; 12 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-optional-member-no-message.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | structure Err { 14 | foo: String, 15 | } 16 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-retryable-throttling.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | @retryable(throttling: true) 14 | structure Err {} 15 | -------------------------------------------------------------------------------- /packages/core/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./getSmithyContext"; 2 | export * from "./middleware-http-auth-scheme"; 3 | export * from "./middleware-http-signing"; 4 | export * from "./normalizeProvider"; 5 | export { createPaginator } from "./pagination/createPaginator"; 6 | export * from "./request-builder/requestBuilder"; 7 | export * from "./setFeature"; 8 | export * from "./util-identity-and-auth"; 9 | -------------------------------------------------------------------------------- /packages/invalid-dependency/src/invalidFunction.spec.ts: -------------------------------------------------------------------------------- 1 | import { describe, expect, test as it } from "vitest"; 2 | 3 | import { invalidFunction } from "./invalidFunction"; 4 | 5 | describe("invalidFunction", () => { 6 | it("throws error with message", () => { 7 | const message = "Error"; 8 | expect(invalidFunction(message)).toThrowError(new Error(message)); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /packages/md5-js/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/md5-js 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/md5-js/latest.svg)](https://www.npmjs.com/package/@smithy/md5-js) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/md5-js.svg)](https://www.npmjs.com/package/@smithy/md5-js) 5 | 6 | > An internal package 7 | 8 | ## Usage 9 | 10 | You probably shouldn't, at least directly. 11 | -------------------------------------------------------------------------------- /packages/middleware-content-length/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/middleware-content-length 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/middleware-content-length/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-content-length) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-content-length.svg)](https://www.npmjs.com/package/@smithy/middleware-content-length) 5 | -------------------------------------------------------------------------------- /private/my-local-model/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node18/tsconfig.json", 3 | "compilerOptions": { 4 | "downlevelIteration": true, 5 | "importHelpers": true, 6 | "incremental": true, 7 | "removeComments": true, 8 | "resolveJsonModule": true, 9 | "rootDir": "src", 10 | "useUnknownInCatchVariables": false 11 | }, 12 | "include": ["src"] 13 | } 14 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/main/resources/META-INF/services/software.amazon.smithy.build.SmithyBuildPlugin: -------------------------------------------------------------------------------- 1 | software.amazon.smithy.typescript.codegen.TypeScriptClientCodegenPlugin 2 | software.amazon.smithy.typescript.codegen.TypeScriptServerCodegenPlugin 3 | software.amazon.smithy.typescript.codegen.TypeScriptCodegenPlugin 4 | software.amazon.smithy.typescript.codegen.TypeScriptSSDKCodegenPlugin 5 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/test-insensitive-simple-shape.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [GetFoo] 6 | } 7 | 8 | operation GetFoo { 9 | input: GetFooInput 10 | } 11 | 12 | structure GetFooInput { 13 | firstname: String, 14 | lastname: String 15 | } 16 | -------------------------------------------------------------------------------- /packages/eventstream-codec/test_vectors/decoded/positive/payload_one_str_header: -------------------------------------------------------------------------------- 1 | { 2 | "total_length": 61, 3 | "headers_length": 32, 4 | "prelude_crc": 134054806, 5 | "headers": [ { 6 | "name": "content-type", 7 | "type": 7, 8 | "value": "YXBwbGljYXRpb24vanNvbg==" 9 | } 10 | ], 11 | "payload": "eydmb28nOidiYXInfQ==", 12 | "message_crc": -1919153999 13 | } 14 | -------------------------------------------------------------------------------- /packages/middleware-retry/src/util.ts: -------------------------------------------------------------------------------- 1 | import type { SdkError } from "@smithy/types"; 2 | 3 | export const asSdkError = (error: unknown): SdkError => { 4 | if (error instanceof Error) return error; 5 | if (error instanceof Object) return Object.assign(new Error(), error); 6 | if (typeof error === "string") return new Error(error); 7 | return new Error(`AWS SDK error wrapper for ${error}`); 8 | }; 9 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/types/RuleSetObject.ts: -------------------------------------------------------------------------------- 1 | import type { 2 | DeprecatedObject as __DeprecatedObject, 3 | ParameterObject as __ParameterObject, 4 | RuleSetObject as __RuleSetObject, 5 | } from "@smithy/types"; 6 | 7 | export type DeprecatedObject = __DeprecatedObject; 8 | 9 | export type ParameterObject = __ParameterObject; 10 | 11 | export type RuleSetObject = __RuleSetObject; 12 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node18/tsconfig.json", 3 | "compilerOptions": { 4 | "downlevelIteration": true, 5 | "importHelpers": true, 6 | "incremental": true, 7 | "removeComments": true, 8 | "resolveJsonModule": true, 9 | "rootDir": "src", 10 | "useUnknownInCatchVariables": false 11 | }, 12 | "include": ["src"] 13 | } 14 | -------------------------------------------------------------------------------- /scripts/example.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Example script for iterating packages. 3 | */ 4 | 5 | const fs = require("node:fs"); 6 | const path = require("node:path"); 7 | 8 | const root = path.join(__dirname, ".."); 9 | const packages = path.join(root, "packages"); 10 | 11 | for (const folder of fs.readdirSync(packages)) { 12 | const pkgJson = require(path.join(packages, folder, "package.json")); 13 | } 14 | -------------------------------------------------------------------------------- /packages/config-resolver/src/endpointsConfig/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export * from "./NodeUseDualstackEndpointConfigOptions"; 5 | /** 6 | * @internal 7 | */ 8 | export * from "./NodeUseFipsEndpointConfigOptions"; 9 | /** 10 | * @internal 11 | */ 12 | export * from "./resolveCustomEndpointsConfig"; 13 | /** 14 | * @internal 15 | */ 16 | export * from "./resolveEndpointsConfig"; 17 | -------------------------------------------------------------------------------- /private/my-local-model-schema/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node18/tsconfig.json", 3 | "compilerOptions": { 4 | "downlevelIteration": true, 5 | "importHelpers": true, 6 | "incremental": true, 7 | "removeComments": true, 8 | "resolveJsonModule": true, 9 | "rootDir": "src", 10 | "useUnknownInCatchVariables": false 11 | }, 12 | "include": ["src"] 13 | } 14 | -------------------------------------------------------------------------------- /private/smithy-rpcv2-cbor-schema/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node18/tsconfig.json", 3 | "compilerOptions": { 4 | "downlevelIteration": true, 5 | "importHelpers": true, 6 | "incremental": true, 7 | "removeComments": true, 8 | "resolveJsonModule": true, 9 | "rootDir": "src", 10 | "useUnknownInCatchVariables": false 11 | }, 12 | "include": ["src"] 13 | } 14 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-required-message.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | structure Err { 14 | @required 15 | message: String, 16 | } 17 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/validation/long-validation.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [ExampleOperation] 6 | } 7 | 8 | operation ExampleOperation { 9 | input: ExampleOperationInput 10 | } 11 | 12 | structure ExampleOperationInput { 13 | longInput: Long 14 | } 15 | -------------------------------------------------------------------------------- /packages/hash-node/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/md5-node 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/hash-node/latest.svg)](https://www.npmjs.com/package/@smithy/hash-node) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/hash-node.svg)](https://www.npmjs.com/package/@smithy/hash-node) 5 | 6 | > An internal package 7 | 8 | ## Usage 9 | 10 | You probably shouldn't, at least directly. 11 | -------------------------------------------------------------------------------- /packages/signature-v4a/README.md: -------------------------------------------------------------------------------- 1 | # @smithy/signature-v4a 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@smithy/signature-v4a/latest.svg)](https://www.npmjs.com/package/@smithy/signature-v4a) 4 | [![NPM downloads](https://img.shields.io/npm/dm/@smithy/signature-v4a.svg)](https://www.npmjs.com/package/@smithy/signature-v4a) 5 | 6 | This package is an internal SigV4a addon for AWS Signature Version 4 (SigV4). 7 | -------------------------------------------------------------------------------- /packages/util-endpoints/src/lib/isIpAddress.ts: -------------------------------------------------------------------------------- 1 | const IP_V4_REGEX = new RegExp( 2 | `^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$` 3 | ); 4 | 5 | /** 6 | * Validates if the provided value is an IP address. 7 | */ 8 | export const isIpAddress = (value: string): boolean => 9 | IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]")); 10 | -------------------------------------------------------------------------------- /smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/error-test-required-member-no-message.smithy: -------------------------------------------------------------------------------- 1 | namespace smithy.example 2 | 3 | service Example { 4 | version: "1.0.0", 5 | operations: [DoSomething] 6 | } 7 | 8 | operation DoSomething { 9 | errors: [Err] 10 | } 11 | 12 | @error("client") 13 | structure Err { 14 | @required 15 | foo: String, 16 | } 17 | --------------------------------------------------------------------------------