@aws-sdk/client-geo-routes 3.683.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +265 -0
  3. package/dist-cjs/GeoRoutes.js +21 -0
  4. package/dist-cjs/GeoRoutesClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CalculateIsolinesCommand.js +27 -0
  8. package/dist-cjs/commands/CalculateRouteMatrixCommand.js +27 -0
  9. package/dist-cjs/commands/CalculateRoutesCommand.js +27 -0
  10. package/dist-cjs/commands/OptimizeWaypointsCommand.js +27 -0
  11. package/dist-cjs/commands/SnapToRoadsCommand.js +27 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  14. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  15. package/dist-cjs/endpoint/ruleset.js +7 -0
  16. package/dist-cjs/extensionConfiguration.js +2 -0
  17. package/dist-cjs/index.js +10 -0
  18. package/dist-cjs/models/GeoRoutesServiceException.js +12 -0
  19. package/dist-cjs/models/index.js +4 -0
  20. package/dist-cjs/models/models_0.js +1009 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +1529 -0
  22. package/dist-cjs/runtimeConfig.browser.js +39 -0
  23. package/dist-cjs/runtimeConfig.js +50 -0
  24. package/dist-cjs/runtimeConfig.native.js +15 -0
  25. package/dist-cjs/runtimeConfig.shared.js +34 -0
  26. package/dist-cjs/runtimeExtensions.js +25 -0
  27. package/dist-es/GeoRoutes.js +17 -0
  28. package/dist-es/GeoRoutesClient.js +46 -0
  29. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  30. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  31. package/dist-es/commands/CalculateIsolinesCommand.js +23 -0
  32. package/dist-es/commands/CalculateRouteMatrixCommand.js +23 -0
  33. package/dist-es/commands/CalculateRoutesCommand.js +23 -0
  34. package/dist-es/commands/OptimizeWaypointsCommand.js +23 -0
  35. package/dist-es/commands/SnapToRoadsCommand.js +23 -0
  36. package/dist-es/commands/index.js +5 -0
  37. package/dist-es/endpoint/EndpointParameters.js +14 -0
  38. package/dist-es/endpoint/endpointResolver.js +14 -0
  39. package/dist-es/endpoint/ruleset.js +4 -0
  40. package/dist-es/extensionConfiguration.js +1 -0
  41. package/dist-es/index.js +5 -0
  42. package/dist-es/models/GeoRoutesServiceException.js +8 -0
  43. package/dist-es/models/index.js +1 -0
  44. package/dist-es/models/models_0.js +927 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1516 -0
  46. package/dist-es/runtimeConfig.browser.js +34 -0
  47. package/dist-es/runtimeConfig.js +45 -0
  48. package/dist-es/runtimeConfig.native.js +11 -0
  49. package/dist-es/runtimeConfig.shared.js +30 -0
  50. package/dist-es/runtimeExtensions.js +21 -0
  51. package/dist-types/GeoRoutes.d.ts +65 -0
  52. package/dist-types/GeoRoutesClient.d.ts +194 -0
  53. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  54. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  55. package/dist-types/commands/CalculateIsolinesCommand.d.ts +315 -0
  56. package/dist-types/commands/CalculateRouteMatrixCommand.d.ts +281 -0
  57. package/dist-types/commands/CalculateRoutesCommand.d.ts +969 -0
  58. package/dist-types/commands/OptimizeWaypointsCommand.d.ts +251 -0
  59. package/dist-types/commands/SnapToRoadsCommand.d.ts +140 -0
  60. package/dist-types/commands/index.d.ts +5 -0
  61. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  62. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  63. package/dist-types/endpoint/ruleset.d.ts +2 -0
  64. package/dist-types/extensionConfiguration.d.ts +9 -0
  65. package/dist-types/index.d.ts +33 -0
  66. package/dist-types/models/GeoRoutesServiceException.d.ts +14 -0
  67. package/dist-types/models/index.d.ts +1 -0
  68. package/dist-types/models/models_0.d.ts +7597 -0
  69. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  70. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  71. package/dist-types/runtimeConfig.d.ts +48 -0
  72. package/dist-types/runtimeConfig.native.d.ts +47 -0
  73. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  74. package/dist-types/runtimeExtensions.d.ts +17 -0
  75. package/dist-types/ts3.4/GeoRoutes.d.ts +90 -0
  76. package/dist-types/ts3.4/GeoRoutesClient.d.ts +148 -0
  77. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  78. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  79. package/dist-types/ts3.4/commands/CalculateIsolinesCommand.d.ts +51 -0
  80. package/dist-types/ts3.4/commands/CalculateRouteMatrixCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/CalculateRoutesCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/OptimizeWaypointsCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/SnapToRoadsCommand.d.ts +47 -0
  84. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  85. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  86. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  87. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  88. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  89. package/dist-types/ts3.4/index.d.ts +8 -0
  90. package/dist-types/ts3.4/models/GeoRoutesServiceException.d.ts +9 -0
  91. package/dist-types/ts3.4/models/index.d.ts +1 -0
  92. package/dist-types/ts3.4/models/models_0.d.ts +2022 -0
  93. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +65 -0
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  98. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  99. package/package.json +101 -0
@@ -0,0 +1,47 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { CalculateIsolinesCommandInput, CalculateIsolinesCommandOutput } from "../commands/CalculateIsolinesCommand";
4
+ import { CalculateRouteMatrixCommandInput, CalculateRouteMatrixCommandOutput } from "../commands/CalculateRouteMatrixCommand";
5
+ import { CalculateRoutesCommandInput, CalculateRoutesCommandOutput } from "../commands/CalculateRoutesCommand";
6
+ import { OptimizeWaypointsCommandInput, OptimizeWaypointsCommandOutput } from "../commands/OptimizeWaypointsCommand";
7
+ import { SnapToRoadsCommandInput, SnapToRoadsCommandOutput } from "../commands/SnapToRoadsCommand";
8
+ /**
9
+ * serializeAws_restJson1CalculateIsolinesCommand
10
+ */
11
+ export declare const se_CalculateIsolinesCommand: (input: CalculateIsolinesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
+ /**
13
+ * serializeAws_restJson1CalculateRouteMatrixCommand
14
+ */
15
+ export declare const se_CalculateRouteMatrixCommand: (input: CalculateRouteMatrixCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
+ /**
17
+ * serializeAws_restJson1CalculateRoutesCommand
18
+ */
19
+ export declare const se_CalculateRoutesCommand: (input: CalculateRoutesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
+ /**
21
+ * serializeAws_restJson1OptimizeWaypointsCommand
22
+ */
23
+ export declare const se_OptimizeWaypointsCommand: (input: OptimizeWaypointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
+ /**
25
+ * serializeAws_restJson1SnapToRoadsCommand
26
+ */
27
+ export declare const se_SnapToRoadsCommand: (input: SnapToRoadsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
+ /**
29
+ * deserializeAws_restJson1CalculateIsolinesCommand
30
+ */
31
+ export declare const de_CalculateIsolinesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CalculateIsolinesCommandOutput>;
32
+ /**
33
+ * deserializeAws_restJson1CalculateRouteMatrixCommand
34
+ */
35
+ export declare const de_CalculateRouteMatrixCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CalculateRouteMatrixCommandOutput>;
36
+ /**
37
+ * deserializeAws_restJson1CalculateRoutesCommand
38
+ */
39
+ export declare const de_CalculateRoutesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CalculateRoutesCommandOutput>;
40
+ /**
41
+ * deserializeAws_restJson1OptimizeWaypointsCommand
42
+ */
43
+ export declare const de_OptimizeWaypointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<OptimizeWaypointsCommandOutput>;
44
+ /**
45
+ * deserializeAws_restJson1SnapToRoadsCommand
46
+ */
47
+ export declare const de_SnapToRoadsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SnapToRoadsCommandOutput>;
@@ -0,0 +1,48 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { GeoRoutesClientConfig } from "./GeoRoutesClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: GeoRoutesClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<any>;
14
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
+ sha256: import("@smithy/types").HashConstructor;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
22
+ urlParser: import("@smithy/types").UrlParser;
23
+ base64Decoder: import("@smithy/types").Decoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
+ utf8Decoder: import("@smithy/types").Decoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
+ disableHostPrefix: boolean;
28
+ serviceId: string;
29
+ logger: import("@smithy/types").Logger;
30
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
31
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
+ logger?: import("@smithy/types").Logger | undefined;
37
+ }) => import("@smithy/types").EndpointV2;
38
+ tls?: boolean | undefined;
39
+ serviceConfiguredEndpoint?: undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoRoutesHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
43
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
44
+ signingEscapePath?: boolean | undefined;
45
+ systemClockOffset?: number | undefined;
46
+ signingRegion?: string | undefined;
47
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
48
+ };
@@ -0,0 +1,48 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { GeoRoutesClientConfig } from "./GeoRoutesClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: GeoRoutesClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<string>;
14
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
+ sha256: import("@smithy/types").HashConstructor;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
21
+ apiVersion: string;
22
+ cacheMiddleware?: boolean | undefined;
23
+ urlParser: import("@smithy/types").UrlParser;
24
+ base64Decoder: import("@smithy/types").Decoder;
25
+ base64Encoder: (_input: string | Uint8Array) => string;
26
+ utf8Decoder: import("@smithy/types").Decoder;
27
+ utf8Encoder: (input: string | Uint8Array) => string;
28
+ disableHostPrefix: boolean;
29
+ serviceId: string;
30
+ logger: import("@smithy/types").Logger;
31
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
+ logger?: import("@smithy/types").Logger | undefined;
37
+ }) => import("@smithy/types").EndpointV2;
38
+ tls?: boolean | undefined;
39
+ serviceConfiguredEndpoint?: undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoRoutesHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
43
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
44
+ signingEscapePath?: boolean | undefined;
45
+ systemClockOffset?: number | undefined;
46
+ signingRegion?: string | undefined;
47
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
48
+ };
@@ -0,0 +1,47 @@
1
+ import { GeoRoutesClientConfig } from "./GeoRoutesClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: GeoRoutesClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@smithy/types").HashConstructor;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
+ apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
11
+ urlParser: import("@smithy/types").UrlParser;
12
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
+ streamCollector: import("@smithy/types").StreamCollector;
14
+ base64Decoder: import("@smithy/types").Decoder;
15
+ base64Encoder: (_input: string | Uint8Array) => string;
16
+ utf8Decoder: import("@smithy/types").Decoder;
17
+ utf8Encoder: (input: string | Uint8Array) => string;
18
+ disableHostPrefix: boolean;
19
+ serviceId: string;
20
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ region: string | import("@smithy/types").Provider<any>;
23
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ maxAttempts: number | import("@smithy/types").Provider<number>;
26
+ retryMode: string | import("@smithy/types").Provider<string>;
27
+ logger: import("@smithy/types").Logger;
28
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
+ defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
30
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
32
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
33
+ endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
35
+ logger?: import("@smithy/types").Logger | undefined;
36
+ }) => import("@smithy/types").EndpointV2;
37
+ tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
39
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
40
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoRoutesHttpAuthSchemeProvider;
41
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
42
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
43
+ signingEscapePath?: boolean | undefined;
44
+ systemClockOffset?: number | undefined;
45
+ signingRegion?: string | undefined;
46
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
47
+ };
@@ -0,0 +1,21 @@
1
+ import { GeoRoutesClientConfig } from "./GeoRoutesClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: GeoRoutesClientConfig) => {
6
+ apiVersion: string;
7
+ base64Decoder: import("@smithy/types").Decoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
+ disableHostPrefix: boolean;
10
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
+ logger?: import("@smithy/types").Logger | undefined;
12
+ }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoRoutesHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
+ logger: import("@smithy/types").Logger;
17
+ serviceId: string;
18
+ urlParser: import("@smithy/types").UrlParser;
19
+ utf8Decoder: import("@smithy/types").Decoder;
20
+ utf8Encoder: (input: string | Uint8Array) => string;
21
+ };
@@ -0,0 +1,17 @@
1
+ import { GeoRoutesExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: GeoRoutesExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,90 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ CalculateIsolinesCommandInput,
4
+ CalculateIsolinesCommandOutput,
5
+ } from "./commands/CalculateIsolinesCommand";
6
+ import {
7
+ CalculateRouteMatrixCommandInput,
8
+ CalculateRouteMatrixCommandOutput,
9
+ } from "./commands/CalculateRouteMatrixCommand";
10
+ import {
11
+ CalculateRoutesCommandInput,
12
+ CalculateRoutesCommandOutput,
13
+ } from "./commands/CalculateRoutesCommand";
14
+ import {
15
+ OptimizeWaypointsCommandInput,
16
+ OptimizeWaypointsCommandOutput,
17
+ } from "./commands/OptimizeWaypointsCommand";
18
+ import {
19
+ SnapToRoadsCommandInput,
20
+ SnapToRoadsCommandOutput,
21
+ } from "./commands/SnapToRoadsCommand";
22
+ import { GeoRoutesClient } from "./GeoRoutesClient";
23
+ export interface GeoRoutes {
24
+ calculateIsolines(
25
+ args: CalculateIsolinesCommandInput,
26
+ options?: __HttpHandlerOptions
27
+ ): Promise<CalculateIsolinesCommandOutput>;
28
+ calculateIsolines(
29
+ args: CalculateIsolinesCommandInput,
30
+ cb: (err: any, data?: CalculateIsolinesCommandOutput) => void
31
+ ): void;
32
+ calculateIsolines(
33
+ args: CalculateIsolinesCommandInput,
34
+ options: __HttpHandlerOptions,
35
+ cb: (err: any, data?: CalculateIsolinesCommandOutput) => void
36
+ ): void;
37
+ calculateRouteMatrix(
38
+ args: CalculateRouteMatrixCommandInput,
39
+ options?: __HttpHandlerOptions
40
+ ): Promise<CalculateRouteMatrixCommandOutput>;
41
+ calculateRouteMatrix(
42
+ args: CalculateRouteMatrixCommandInput,
43
+ cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void
44
+ ): void;
45
+ calculateRouteMatrix(
46
+ args: CalculateRouteMatrixCommandInput,
47
+ options: __HttpHandlerOptions,
48
+ cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void
49
+ ): void;
50
+ calculateRoutes(
51
+ args: CalculateRoutesCommandInput,
52
+ options?: __HttpHandlerOptions
53
+ ): Promise<CalculateRoutesCommandOutput>;
54
+ calculateRoutes(
55
+ args: CalculateRoutesCommandInput,
56
+ cb: (err: any, data?: CalculateRoutesCommandOutput) => void
57
+ ): void;
58
+ calculateRoutes(
59
+ args: CalculateRoutesCommandInput,
60
+ options: __HttpHandlerOptions,
61
+ cb: (err: any, data?: CalculateRoutesCommandOutput) => void
62
+ ): void;
63
+ optimizeWaypoints(
64
+ args: OptimizeWaypointsCommandInput,
65
+ options?: __HttpHandlerOptions
66
+ ): Promise<OptimizeWaypointsCommandOutput>;
67
+ optimizeWaypoints(
68
+ args: OptimizeWaypointsCommandInput,
69
+ cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void
70
+ ): void;
71
+ optimizeWaypoints(
72
+ args: OptimizeWaypointsCommandInput,
73
+ options: __HttpHandlerOptions,
74
+ cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void
75
+ ): void;
76
+ snapToRoads(
77
+ args: SnapToRoadsCommandInput,
78
+ options?: __HttpHandlerOptions
79
+ ): Promise<SnapToRoadsCommandOutput>;
80
+ snapToRoads(
81
+ args: SnapToRoadsCommandInput,
82
+ cb: (err: any, data?: SnapToRoadsCommandOutput) => void
83
+ ): void;
84
+ snapToRoads(
85
+ args: SnapToRoadsCommandInput,
86
+ options: __HttpHandlerOptions,
87
+ cb: (err: any, data?: SnapToRoadsCommandOutput) => void
88
+ ): void;
89
+ }
90
+ export declare class GeoRoutes extends GeoRoutesClient implements GeoRoutes {}
@@ -0,0 +1,148 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ UserAgentInputConfig,
7
+ UserAgentResolvedConfig,
8
+ } from "@aws-sdk/middleware-user-agent";
9
+ import {
10
+ RegionInputConfig,
11
+ RegionResolvedConfig,
12
+ } from "@smithy/config-resolver";
13
+ import {
14
+ EndpointInputConfig,
15
+ EndpointResolvedConfig,
16
+ } from "@smithy/middleware-endpoint";
17
+ import {
18
+ RetryInputConfig,
19
+ RetryResolvedConfig,
20
+ } from "@smithy/middleware-retry";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
+ import {
23
+ Client as __Client,
24
+ DefaultsMode as __DefaultsMode,
25
+ SmithyConfiguration as __SmithyConfiguration,
26
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
27
+ } from "@smithy/smithy-client";
28
+ import {
29
+ AwsCredentialIdentityProvider,
30
+ BodyLengthCalculator as __BodyLengthCalculator,
31
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
+ ChecksumConstructor as __ChecksumConstructor,
33
+ Decoder as __Decoder,
34
+ Encoder as __Encoder,
35
+ HashConstructor as __HashConstructor,
36
+ HttpHandlerOptions as __HttpHandlerOptions,
37
+ Logger as __Logger,
38
+ Provider as __Provider,
39
+ Provider,
40
+ StreamCollector as __StreamCollector,
41
+ UrlParser as __UrlParser,
42
+ UserAgent as __UserAgent,
43
+ } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ CalculateIsolinesCommandInput,
50
+ CalculateIsolinesCommandOutput,
51
+ } from "./commands/CalculateIsolinesCommand";
52
+ import {
53
+ CalculateRouteMatrixCommandInput,
54
+ CalculateRouteMatrixCommandOutput,
55
+ } from "./commands/CalculateRouteMatrixCommand";
56
+ import {
57
+ CalculateRoutesCommandInput,
58
+ CalculateRoutesCommandOutput,
59
+ } from "./commands/CalculateRoutesCommand";
60
+ import {
61
+ OptimizeWaypointsCommandInput,
62
+ OptimizeWaypointsCommandOutput,
63
+ } from "./commands/OptimizeWaypointsCommand";
64
+ import {
65
+ SnapToRoadsCommandInput,
66
+ SnapToRoadsCommandOutput,
67
+ } from "./commands/SnapToRoadsCommand";
68
+ import {
69
+ ClientInputEndpointParameters,
70
+ ClientResolvedEndpointParameters,
71
+ EndpointParameters,
72
+ } from "./endpoint/EndpointParameters";
73
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
74
+ export { __Client };
75
+ export type ServiceInputTypes =
76
+ | CalculateIsolinesCommandInput
77
+ | CalculateRouteMatrixCommandInput
78
+ | CalculateRoutesCommandInput
79
+ | OptimizeWaypointsCommandInput
80
+ | SnapToRoadsCommandInput;
81
+ export type ServiceOutputTypes =
82
+ | CalculateIsolinesCommandOutput
83
+ | CalculateRouteMatrixCommandOutput
84
+ | CalculateRoutesCommandOutput
85
+ | OptimizeWaypointsCommandOutput
86
+ | SnapToRoadsCommandOutput;
87
+ export interface ClientDefaults
88
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
89
+ requestHandler?: __HttpHandlerUserInput;
90
+ sha256?: __ChecksumConstructor | __HashConstructor;
91
+ urlParser?: __UrlParser;
92
+ bodyLengthChecker?: __BodyLengthCalculator;
93
+ streamCollector?: __StreamCollector;
94
+ base64Decoder?: __Decoder;
95
+ base64Encoder?: __Encoder;
96
+ utf8Decoder?: __Decoder;
97
+ utf8Encoder?: __Encoder;
98
+ runtime?: string;
99
+ disableHostPrefix?: boolean;
100
+ serviceId?: string;
101
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
102
+ useFipsEndpoint?: boolean | __Provider<boolean>;
103
+ region?: string | __Provider<string>;
104
+ defaultUserAgentProvider?: Provider<__UserAgent>;
105
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
106
+ maxAttempts?: number | __Provider<number>;
107
+ retryMode?: string | __Provider<string>;
108
+ logger?: __Logger;
109
+ extensions?: RuntimeExtension[];
110
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
111
+ }
112
+ export type GeoRoutesClientConfigType = Partial<
113
+ __SmithyConfiguration<__HttpHandlerOptions>
114
+ > &
115
+ ClientDefaults &
116
+ UserAgentInputConfig &
117
+ RetryInputConfig &
118
+ RegionInputConfig &
119
+ HostHeaderInputConfig &
120
+ EndpointInputConfig<EndpointParameters> &
121
+ HttpAuthSchemeInputConfig &
122
+ ClientInputEndpointParameters;
123
+ export interface GeoRoutesClientConfig extends GeoRoutesClientConfigType {}
124
+ export type GeoRoutesClientResolvedConfigType =
125
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
126
+ Required<ClientDefaults> &
127
+ RuntimeExtensionsConfig &
128
+ UserAgentResolvedConfig &
129
+ RetryResolvedConfig &
130
+ RegionResolvedConfig &
131
+ HostHeaderResolvedConfig &
132
+ EndpointResolvedConfig<EndpointParameters> &
133
+ HttpAuthSchemeResolvedConfig &
134
+ ClientResolvedEndpointParameters;
135
+ export interface GeoRoutesClientResolvedConfig
136
+ extends GeoRoutesClientResolvedConfigType {}
137
+ export declare class GeoRoutesClient extends __Client<
138
+ __HttpHandlerOptions,
139
+ ServiceInputTypes,
140
+ ServiceOutputTypes,
141
+ GeoRoutesClientResolvedConfig
142
+ > {
143
+ readonly config: GeoRoutesClientResolvedConfig;
144
+ constructor(
145
+ ...[configuration]: __CheckOptionalClientConfig<GeoRoutesClientConfig>
146
+ );
147
+ destroy(): void;
148
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { GeoRoutesHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: GeoRoutesHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): GeoRoutesHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: GeoRoutesHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,44 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { GeoRoutesClientResolvedConfig } from "../GeoRoutesClient";
14
+ export interface GeoRoutesHttpAuthSchemeParameters
15
+ extends HttpAuthSchemeParameters {
16
+ region?: string;
17
+ }
18
+ export interface GeoRoutesHttpAuthSchemeParametersProvider
19
+ extends HttpAuthSchemeParametersProvider<
20
+ GeoRoutesClientResolvedConfig,
21
+ HandlerExecutionContext,
22
+ GeoRoutesHttpAuthSchemeParameters,
23
+ object
24
+ > {}
25
+ export declare const defaultGeoRoutesHttpAuthSchemeParametersProvider: (
26
+ config: GeoRoutesClientResolvedConfig,
27
+ context: HandlerExecutionContext,
28
+ input: object
29
+ ) => Promise<GeoRoutesHttpAuthSchemeParameters>;
30
+ export interface GeoRoutesHttpAuthSchemeProvider
31
+ extends HttpAuthSchemeProvider<GeoRoutesHttpAuthSchemeParameters> {}
32
+ export declare const defaultGeoRoutesHttpAuthSchemeProvider: GeoRoutesHttpAuthSchemeProvider;
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
+ httpAuthSchemes?: HttpAuthScheme[];
35
+ httpAuthSchemeProvider?: GeoRoutesHttpAuthSchemeProvider;
36
+ }
37
+ export interface HttpAuthSchemeResolvedConfig
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
+ readonly httpAuthSchemes: HttpAuthScheme[];
40
+ readonly httpAuthSchemeProvider: GeoRoutesHttpAuthSchemeProvider;
41
+ }
42
+ export declare const resolveHttpAuthSchemeConfig: <T>(
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GeoRoutesClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../GeoRoutesClient";
8
+ import {
9
+ CalculateIsolinesRequest,
10
+ CalculateIsolinesResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CalculateIsolinesCommandInput
15
+ extends CalculateIsolinesRequest {}
16
+ export interface CalculateIsolinesCommandOutput
17
+ extends CalculateIsolinesResponse,
18
+ __MetadataBearer {}
19
+ declare const CalculateIsolinesCommand_base: {
20
+ new (
21
+ input: CalculateIsolinesCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CalculateIsolinesCommandInput,
24
+ CalculateIsolinesCommandOutput,
25
+ GeoRoutesClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: CalculateIsolinesCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CalculateIsolinesCommandInput,
33
+ CalculateIsolinesCommandOutput,
34
+ GeoRoutesClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CalculateIsolinesCommand extends CalculateIsolinesCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CalculateIsolinesRequest;
44
+ output: CalculateIsolinesResponse;
45
+ };
46
+ sdk: {
47
+ input: CalculateIsolinesCommandInput;
48
+ output: CalculateIsolinesCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GeoRoutesClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../GeoRoutesClient";
8
+ import {
9
+ CalculateRouteMatrixRequest,
10
+ CalculateRouteMatrixResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CalculateRouteMatrixCommandInput
15
+ extends CalculateRouteMatrixRequest {}
16
+ export interface CalculateRouteMatrixCommandOutput
17
+ extends CalculateRouteMatrixResponse,
18
+ __MetadataBearer {}
19
+ declare const CalculateRouteMatrixCommand_base: {
20
+ new (
21
+ input: CalculateRouteMatrixCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CalculateRouteMatrixCommandInput,
24
+ CalculateRouteMatrixCommandOutput,
25
+ GeoRoutesClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: CalculateRouteMatrixCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CalculateRouteMatrixCommandInput,
33
+ CalculateRouteMatrixCommandOutput,
34
+ GeoRoutesClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CalculateRouteMatrixCommand extends CalculateRouteMatrixCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CalculateRouteMatrixRequest;
44
+ output: CalculateRouteMatrixResponse;
45
+ };
46
+ sdk: {
47
+ input: CalculateRouteMatrixCommandInput;
48
+ output: CalculateRouteMatrixCommandOutput;
49
+ };
50
+ };
51
+ }