@aws-sdk/client-geo-places 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 (107) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +297 -0
  3. package/dist-cjs/GeoPlaces.js +25 -0
  4. package/dist-cjs/GeoPlacesClient.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/AutocompleteCommand.js +27 -0
  8. package/dist-cjs/commands/GeocodeCommand.js +27 -0
  9. package/dist-cjs/commands/GetPlaceCommand.js +27 -0
  10. package/dist-cjs/commands/ReverseGeocodeCommand.js +27 -0
  11. package/dist-cjs/commands/SearchNearbyCommand.js +27 -0
  12. package/dist-cjs/commands/SearchTextCommand.js +27 -0
  13. package/dist-cjs/commands/SuggestCommand.js +27 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  16. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  17. package/dist-cjs/endpoint/ruleset.js +7 -0
  18. package/dist-cjs/extensionConfiguration.js +2 -0
  19. package/dist-cjs/index.js +10 -0
  20. package/dist-cjs/models/GeoPlacesServiceException.js +12 -0
  21. package/dist-cjs/models/index.js +4 -0
  22. package/dist-cjs/models/models_0.js +379 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +690 -0
  24. package/dist-cjs/runtimeConfig.browser.js +39 -0
  25. package/dist-cjs/runtimeConfig.js +50 -0
  26. package/dist-cjs/runtimeConfig.native.js +15 -0
  27. package/dist-cjs/runtimeConfig.shared.js +34 -0
  28. package/dist-cjs/runtimeExtensions.js +25 -0
  29. package/dist-es/GeoPlaces.js +21 -0
  30. package/dist-es/GeoPlacesClient.js +46 -0
  31. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  32. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  33. package/dist-es/commands/AutocompleteCommand.js +23 -0
  34. package/dist-es/commands/GeocodeCommand.js +23 -0
  35. package/dist-es/commands/GetPlaceCommand.js +23 -0
  36. package/dist-es/commands/ReverseGeocodeCommand.js +23 -0
  37. package/dist-es/commands/SearchNearbyCommand.js +23 -0
  38. package/dist-es/commands/SearchTextCommand.js +23 -0
  39. package/dist-es/commands/SuggestCommand.js +23 -0
  40. package/dist-es/commands/index.js +7 -0
  41. package/dist-es/endpoint/EndpointParameters.js +14 -0
  42. package/dist-es/endpoint/endpointResolver.js +14 -0
  43. package/dist-es/endpoint/ruleset.js +4 -0
  44. package/dist-es/extensionConfiguration.js +1 -0
  45. package/dist-es/index.js +5 -0
  46. package/dist-es/models/GeoPlacesServiceException.js +8 -0
  47. package/dist-es/models/index.js +1 -0
  48. package/dist-es/models/models_0.js +345 -0
  49. package/dist-es/protocols/Aws_restJson1.js +673 -0
  50. package/dist-es/runtimeConfig.browser.js +34 -0
  51. package/dist-es/runtimeConfig.js +45 -0
  52. package/dist-es/runtimeConfig.native.js +11 -0
  53. package/dist-es/runtimeConfig.shared.js +30 -0
  54. package/dist-es/runtimeExtensions.js +21 -0
  55. package/dist-types/GeoPlaces.d.ts +97 -0
  56. package/dist-types/GeoPlacesClient.d.ts +212 -0
  57. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  58. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  59. package/dist-types/commands/AutocompleteCommand.d.ts +204 -0
  60. package/dist-types/commands/GeocodeCommand.d.ts +231 -0
  61. package/dist-types/commands/GetPlaceCommand.d.ts +312 -0
  62. package/dist-types/commands/ReverseGeocodeCommand.d.ts +196 -0
  63. package/dist-types/commands/SearchNearbyCommand.d.ts +335 -0
  64. package/dist-types/commands/SearchTextCommand.d.ts +326 -0
  65. package/dist-types/commands/SuggestCommand.d.ts +289 -0
  66. package/dist-types/commands/index.d.ts +7 -0
  67. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  68. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  69. package/dist-types/endpoint/ruleset.d.ts +2 -0
  70. package/dist-types/extensionConfiguration.d.ts +9 -0
  71. package/dist-types/index.d.ts +49 -0
  72. package/dist-types/models/GeoPlacesServiceException.d.ts +14 -0
  73. package/dist-types/models/index.d.ts +1 -0
  74. package/dist-types/models/models_0.d.ts +2871 -0
  75. package/dist-types/protocols/Aws_restJson1.d.ts +65 -0
  76. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  77. package/dist-types/runtimeConfig.d.ts +48 -0
  78. package/dist-types/runtimeConfig.native.d.ts +47 -0
  79. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  80. package/dist-types/runtimeExtensions.d.ts +17 -0
  81. package/dist-types/ts3.4/GeoPlaces.d.ts +126 -0
  82. package/dist-types/ts3.4/GeoPlacesClient.d.ts +160 -0
  83. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  84. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  85. package/dist-types/ts3.4/commands/AutocompleteCommand.d.ts +47 -0
  86. package/dist-types/ts3.4/commands/GeocodeCommand.d.ts +45 -0
  87. package/dist-types/ts3.4/commands/GetPlaceCommand.d.ts +47 -0
  88. package/dist-types/ts3.4/commands/ReverseGeocodeCommand.d.ts +50 -0
  89. package/dist-types/ts3.4/commands/SearchNearbyCommand.d.ts +47 -0
  90. package/dist-types/ts3.4/commands/SearchTextCommand.d.ts +47 -0
  91. package/dist-types/ts3.4/commands/SuggestCommand.d.ts +43 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  93. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  94. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  95. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  96. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  97. package/dist-types/ts3.4/index.d.ts +8 -0
  98. package/dist-types/ts3.4/models/GeoPlacesServiceException.d.ts +9 -0
  99. package/dist-types/ts3.4/models/index.d.ts +1 -0
  100. package/dist-types/ts3.4/models/models_0.d.ts +786 -0
  101. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +89 -0
  102. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  103. package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
  104. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  105. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  106. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  107. package/package.json +101 -0
@@ -0,0 +1,65 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { AutocompleteCommandInput, AutocompleteCommandOutput } from "../commands/AutocompleteCommand";
4
+ import { GeocodeCommandInput, GeocodeCommandOutput } from "../commands/GeocodeCommand";
5
+ import { GetPlaceCommandInput, GetPlaceCommandOutput } from "../commands/GetPlaceCommand";
6
+ import { ReverseGeocodeCommandInput, ReverseGeocodeCommandOutput } from "../commands/ReverseGeocodeCommand";
7
+ import { SearchNearbyCommandInput, SearchNearbyCommandOutput } from "../commands/SearchNearbyCommand";
8
+ import { SearchTextCommandInput, SearchTextCommandOutput } from "../commands/SearchTextCommand";
9
+ import { SuggestCommandInput, SuggestCommandOutput } from "../commands/SuggestCommand";
10
+ /**
11
+ * serializeAws_restJson1AutocompleteCommand
12
+ */
13
+ export declare const se_AutocompleteCommand: (input: AutocompleteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ /**
15
+ * serializeAws_restJson1GeocodeCommand
16
+ */
17
+ export declare const se_GeocodeCommand: (input: GeocodeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ /**
19
+ * serializeAws_restJson1GetPlaceCommand
20
+ */
21
+ export declare const se_GetPlaceCommand: (input: GetPlaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ /**
23
+ * serializeAws_restJson1ReverseGeocodeCommand
24
+ */
25
+ export declare const se_ReverseGeocodeCommand: (input: ReverseGeocodeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
+ /**
27
+ * serializeAws_restJson1SearchNearbyCommand
28
+ */
29
+ export declare const se_SearchNearbyCommand: (input: SearchNearbyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ /**
31
+ * serializeAws_restJson1SearchTextCommand
32
+ */
33
+ export declare const se_SearchTextCommand: (input: SearchTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_restJson1SuggestCommand
36
+ */
37
+ export declare const se_SuggestCommand: (input: SuggestCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * deserializeAws_restJson1AutocompleteCommand
40
+ */
41
+ export declare const de_AutocompleteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AutocompleteCommandOutput>;
42
+ /**
43
+ * deserializeAws_restJson1GeocodeCommand
44
+ */
45
+ export declare const de_GeocodeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GeocodeCommandOutput>;
46
+ /**
47
+ * deserializeAws_restJson1GetPlaceCommand
48
+ */
49
+ export declare const de_GetPlaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPlaceCommandOutput>;
50
+ /**
51
+ * deserializeAws_restJson1ReverseGeocodeCommand
52
+ */
53
+ export declare const de_ReverseGeocodeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ReverseGeocodeCommandOutput>;
54
+ /**
55
+ * deserializeAws_restJson1SearchNearbyCommand
56
+ */
57
+ export declare const de_SearchNearbyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchNearbyCommandOutput>;
58
+ /**
59
+ * deserializeAws_restJson1SearchTextCommand
60
+ */
61
+ export declare const de_SearchTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchTextCommandOutput>;
62
+ /**
63
+ * deserializeAws_restJson1SuggestCommand
64
+ */
65
+ export declare const de_SuggestCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SuggestCommandOutput>;
@@ -0,0 +1,48 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { GeoPlacesClientConfig } from "./GeoPlacesClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: GeoPlacesClientConfig) => {
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").GeoPlacesHttpAuthSchemeProvider;
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 { GeoPlacesClientConfig } from "./GeoPlacesClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: GeoPlacesClientConfig) => {
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").GeoPlacesHttpAuthSchemeProvider;
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 { GeoPlacesClientConfig } from "./GeoPlacesClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: GeoPlacesClientConfig) => {
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").GeoPlacesHttpAuthSchemeProvider;
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 { GeoPlacesClientConfig } from "./GeoPlacesClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: GeoPlacesClientConfig) => {
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").GeoPlacesHttpAuthSchemeProvider;
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 { GeoPlacesExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: GeoPlacesExtensionConfiguration): 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,126 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ AutocompleteCommandInput,
4
+ AutocompleteCommandOutput,
5
+ } from "./commands/AutocompleteCommand";
6
+ import {
7
+ GeocodeCommandInput,
8
+ GeocodeCommandOutput,
9
+ } from "./commands/GeocodeCommand";
10
+ import {
11
+ GetPlaceCommandInput,
12
+ GetPlaceCommandOutput,
13
+ } from "./commands/GetPlaceCommand";
14
+ import {
15
+ ReverseGeocodeCommandInput,
16
+ ReverseGeocodeCommandOutput,
17
+ } from "./commands/ReverseGeocodeCommand";
18
+ import {
19
+ SearchNearbyCommandInput,
20
+ SearchNearbyCommandOutput,
21
+ } from "./commands/SearchNearbyCommand";
22
+ import {
23
+ SearchTextCommandInput,
24
+ SearchTextCommandOutput,
25
+ } from "./commands/SearchTextCommand";
26
+ import {
27
+ SuggestCommandInput,
28
+ SuggestCommandOutput,
29
+ } from "./commands/SuggestCommand";
30
+ import { GeoPlacesClient } from "./GeoPlacesClient";
31
+ export interface GeoPlaces {
32
+ autocomplete(
33
+ args: AutocompleteCommandInput,
34
+ options?: __HttpHandlerOptions
35
+ ): Promise<AutocompleteCommandOutput>;
36
+ autocomplete(
37
+ args: AutocompleteCommandInput,
38
+ cb: (err: any, data?: AutocompleteCommandOutput) => void
39
+ ): void;
40
+ autocomplete(
41
+ args: AutocompleteCommandInput,
42
+ options: __HttpHandlerOptions,
43
+ cb: (err: any, data?: AutocompleteCommandOutput) => void
44
+ ): void;
45
+ geocode(): Promise<GeocodeCommandOutput>;
46
+ geocode(
47
+ args: GeocodeCommandInput,
48
+ options?: __HttpHandlerOptions
49
+ ): Promise<GeocodeCommandOutput>;
50
+ geocode(
51
+ args: GeocodeCommandInput,
52
+ cb: (err: any, data?: GeocodeCommandOutput) => void
53
+ ): void;
54
+ geocode(
55
+ args: GeocodeCommandInput,
56
+ options: __HttpHandlerOptions,
57
+ cb: (err: any, data?: GeocodeCommandOutput) => void
58
+ ): void;
59
+ getPlace(
60
+ args: GetPlaceCommandInput,
61
+ options?: __HttpHandlerOptions
62
+ ): Promise<GetPlaceCommandOutput>;
63
+ getPlace(
64
+ args: GetPlaceCommandInput,
65
+ cb: (err: any, data?: GetPlaceCommandOutput) => void
66
+ ): void;
67
+ getPlace(
68
+ args: GetPlaceCommandInput,
69
+ options: __HttpHandlerOptions,
70
+ cb: (err: any, data?: GetPlaceCommandOutput) => void
71
+ ): void;
72
+ reverseGeocode(
73
+ args: ReverseGeocodeCommandInput,
74
+ options?: __HttpHandlerOptions
75
+ ): Promise<ReverseGeocodeCommandOutput>;
76
+ reverseGeocode(
77
+ args: ReverseGeocodeCommandInput,
78
+ cb: (err: any, data?: ReverseGeocodeCommandOutput) => void
79
+ ): void;
80
+ reverseGeocode(
81
+ args: ReverseGeocodeCommandInput,
82
+ options: __HttpHandlerOptions,
83
+ cb: (err: any, data?: ReverseGeocodeCommandOutput) => void
84
+ ): void;
85
+ searchNearby(
86
+ args: SearchNearbyCommandInput,
87
+ options?: __HttpHandlerOptions
88
+ ): Promise<SearchNearbyCommandOutput>;
89
+ searchNearby(
90
+ args: SearchNearbyCommandInput,
91
+ cb: (err: any, data?: SearchNearbyCommandOutput) => void
92
+ ): void;
93
+ searchNearby(
94
+ args: SearchNearbyCommandInput,
95
+ options: __HttpHandlerOptions,
96
+ cb: (err: any, data?: SearchNearbyCommandOutput) => void
97
+ ): void;
98
+ searchText(): Promise<SearchTextCommandOutput>;
99
+ searchText(
100
+ args: SearchTextCommandInput,
101
+ options?: __HttpHandlerOptions
102
+ ): Promise<SearchTextCommandOutput>;
103
+ searchText(
104
+ args: SearchTextCommandInput,
105
+ cb: (err: any, data?: SearchTextCommandOutput) => void
106
+ ): void;
107
+ searchText(
108
+ args: SearchTextCommandInput,
109
+ options: __HttpHandlerOptions,
110
+ cb: (err: any, data?: SearchTextCommandOutput) => void
111
+ ): void;
112
+ suggest(
113
+ args: SuggestCommandInput,
114
+ options?: __HttpHandlerOptions
115
+ ): Promise<SuggestCommandOutput>;
116
+ suggest(
117
+ args: SuggestCommandInput,
118
+ cb: (err: any, data?: SuggestCommandOutput) => void
119
+ ): void;
120
+ suggest(
121
+ args: SuggestCommandInput,
122
+ options: __HttpHandlerOptions,
123
+ cb: (err: any, data?: SuggestCommandOutput) => void
124
+ ): void;
125
+ }
126
+ export declare class GeoPlaces extends GeoPlacesClient implements GeoPlaces {}
@@ -0,0 +1,160 @@
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
+ AutocompleteCommandInput,
50
+ AutocompleteCommandOutput,
51
+ } from "./commands/AutocompleteCommand";
52
+ import {
53
+ GeocodeCommandInput,
54
+ GeocodeCommandOutput,
55
+ } from "./commands/GeocodeCommand";
56
+ import {
57
+ GetPlaceCommandInput,
58
+ GetPlaceCommandOutput,
59
+ } from "./commands/GetPlaceCommand";
60
+ import {
61
+ ReverseGeocodeCommandInput,
62
+ ReverseGeocodeCommandOutput,
63
+ } from "./commands/ReverseGeocodeCommand";
64
+ import {
65
+ SearchNearbyCommandInput,
66
+ SearchNearbyCommandOutput,
67
+ } from "./commands/SearchNearbyCommand";
68
+ import {
69
+ SearchTextCommandInput,
70
+ SearchTextCommandOutput,
71
+ } from "./commands/SearchTextCommand";
72
+ import {
73
+ SuggestCommandInput,
74
+ SuggestCommandOutput,
75
+ } from "./commands/SuggestCommand";
76
+ import {
77
+ ClientInputEndpointParameters,
78
+ ClientResolvedEndpointParameters,
79
+ EndpointParameters,
80
+ } from "./endpoint/EndpointParameters";
81
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
82
+ export { __Client };
83
+ export type ServiceInputTypes =
84
+ | AutocompleteCommandInput
85
+ | GeocodeCommandInput
86
+ | GetPlaceCommandInput
87
+ | ReverseGeocodeCommandInput
88
+ | SearchNearbyCommandInput
89
+ | SearchTextCommandInput
90
+ | SuggestCommandInput;
91
+ export type ServiceOutputTypes =
92
+ | AutocompleteCommandOutput
93
+ | GeocodeCommandOutput
94
+ | GetPlaceCommandOutput
95
+ | ReverseGeocodeCommandOutput
96
+ | SearchNearbyCommandOutput
97
+ | SearchTextCommandOutput
98
+ | SuggestCommandOutput;
99
+ export interface ClientDefaults
100
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
101
+ requestHandler?: __HttpHandlerUserInput;
102
+ sha256?: __ChecksumConstructor | __HashConstructor;
103
+ urlParser?: __UrlParser;
104
+ bodyLengthChecker?: __BodyLengthCalculator;
105
+ streamCollector?: __StreamCollector;
106
+ base64Decoder?: __Decoder;
107
+ base64Encoder?: __Encoder;
108
+ utf8Decoder?: __Decoder;
109
+ utf8Encoder?: __Encoder;
110
+ runtime?: string;
111
+ disableHostPrefix?: boolean;
112
+ serviceId?: string;
113
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
114
+ useFipsEndpoint?: boolean | __Provider<boolean>;
115
+ region?: string | __Provider<string>;
116
+ defaultUserAgentProvider?: Provider<__UserAgent>;
117
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
118
+ maxAttempts?: number | __Provider<number>;
119
+ retryMode?: string | __Provider<string>;
120
+ logger?: __Logger;
121
+ extensions?: RuntimeExtension[];
122
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
123
+ }
124
+ export type GeoPlacesClientConfigType = Partial<
125
+ __SmithyConfiguration<__HttpHandlerOptions>
126
+ > &
127
+ ClientDefaults &
128
+ UserAgentInputConfig &
129
+ RetryInputConfig &
130
+ RegionInputConfig &
131
+ HostHeaderInputConfig &
132
+ EndpointInputConfig<EndpointParameters> &
133
+ HttpAuthSchemeInputConfig &
134
+ ClientInputEndpointParameters;
135
+ export interface GeoPlacesClientConfig extends GeoPlacesClientConfigType {}
136
+ export type GeoPlacesClientResolvedConfigType =
137
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
138
+ Required<ClientDefaults> &
139
+ RuntimeExtensionsConfig &
140
+ UserAgentResolvedConfig &
141
+ RetryResolvedConfig &
142
+ RegionResolvedConfig &
143
+ HostHeaderResolvedConfig &
144
+ EndpointResolvedConfig<EndpointParameters> &
145
+ HttpAuthSchemeResolvedConfig &
146
+ ClientResolvedEndpointParameters;
147
+ export interface GeoPlacesClientResolvedConfig
148
+ extends GeoPlacesClientResolvedConfigType {}
149
+ export declare class GeoPlacesClient extends __Client<
150
+ __HttpHandlerOptions,
151
+ ServiceInputTypes,
152
+ ServiceOutputTypes,
153
+ GeoPlacesClientResolvedConfig
154
+ > {
155
+ readonly config: GeoPlacesClientResolvedConfig;
156
+ constructor(
157
+ ...[configuration]: __CheckOptionalClientConfig<GeoPlacesClientConfig>
158
+ );
159
+ destroy(): void;
160
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { GeoPlacesHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: GeoPlacesHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): GeoPlacesHttpAuthSchemeProvider;
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: GeoPlacesHttpAuthSchemeProvider;
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 { GeoPlacesClientResolvedConfig } from "../GeoPlacesClient";
14
+ export interface GeoPlacesHttpAuthSchemeParameters
15
+ extends HttpAuthSchemeParameters {
16
+ region?: string;
17
+ }
18
+ export interface GeoPlacesHttpAuthSchemeParametersProvider
19
+ extends HttpAuthSchemeParametersProvider<
20
+ GeoPlacesClientResolvedConfig,
21
+ HandlerExecutionContext,
22
+ GeoPlacesHttpAuthSchemeParameters,
23
+ object
24
+ > {}
25
+ export declare const defaultGeoPlacesHttpAuthSchemeParametersProvider: (
26
+ config: GeoPlacesClientResolvedConfig,
27
+ context: HandlerExecutionContext,
28
+ input: object
29
+ ) => Promise<GeoPlacesHttpAuthSchemeParameters>;
30
+ export interface GeoPlacesHttpAuthSchemeProvider
31
+ extends HttpAuthSchemeProvider<GeoPlacesHttpAuthSchemeParameters> {}
32
+ export declare const defaultGeoPlacesHttpAuthSchemeProvider: GeoPlacesHttpAuthSchemeProvider;
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
+ httpAuthSchemes?: HttpAuthScheme[];
35
+ httpAuthSchemeProvider?: GeoPlacesHttpAuthSchemeProvider;
36
+ }
37
+ export interface HttpAuthSchemeResolvedConfig
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
+ readonly httpAuthSchemes: HttpAuthScheme[];
40
+ readonly httpAuthSchemeProvider: GeoPlacesHttpAuthSchemeProvider;
41
+ }
42
+ export declare const resolveHttpAuthSchemeConfig: <T>(
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GeoPlacesClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../GeoPlacesClient";
8
+ import { AutocompleteRequest, AutocompleteResponse } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface AutocompleteCommandInput extends AutocompleteRequest {}
12
+ export interface AutocompleteCommandOutput
13
+ extends AutocompleteResponse,
14
+ __MetadataBearer {}
15
+ declare const AutocompleteCommand_base: {
16
+ new (
17
+ input: AutocompleteCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ AutocompleteCommandInput,
20
+ AutocompleteCommandOutput,
21
+ GeoPlacesClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: AutocompleteCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ AutocompleteCommandInput,
29
+ AutocompleteCommandOutput,
30
+ GeoPlacesClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class AutocompleteCommand extends AutocompleteCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: AutocompleteRequest;
40
+ output: AutocompleteResponse;
41
+ };
42
+ sdk: {
43
+ input: AutocompleteCommandInput;
44
+ output: AutocompleteCommandOutput;
45
+ };
46
+ };
47
+ }