@aws-sdk/client-cloudsearch-domain 3.928.0 → 3.929.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.
- package/dist-cjs/index.js +353 -230
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/CloudSearchDomainClient.js +2 -0
- package/dist-es/commands/SearchCommand.js +3 -9
- package/dist-es/commands/SuggestCommand.js +3 -9
- package/dist-es/commands/UploadDocumentsCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -3
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +356 -0
- package/dist-types/CloudSearchDomainClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +35 -0
- package/dist-types/ts3.4/CloudSearchDomainClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +42 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -212
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -29
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -41
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class CloudSearchDomainClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { Search } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SearchCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonCloudSearch2013", "Search", {})
|
|
17
13
|
.n("CloudSearchDomainClient", "SearchCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SearchCommand)
|
|
20
|
-
.de(de_SearchCommand)
|
|
14
|
+
.sc(Search)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { Suggest } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SuggestCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonCloudSearch2013", "Suggest", {})
|
|
17
13
|
.n("CloudSearchDomainClient", "SuggestCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SuggestCommand)
|
|
20
|
-
.de(de_SuggestCommand)
|
|
14
|
+
.sc(Suggest)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_UploadDocumentsCommand, se_UploadDocumentsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { UploadDocuments } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class UploadDocumentsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonCloudSearch2013", "UploadDocuments", {})
|
|
18
13
|
.n("CloudSearchDomainClient", "UploadDocumentsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_UploadDocumentsCommand)
|
|
21
|
-
.de(de_UploadDocumentsCommand)
|
|
14
|
+
.sc(UploadDocuments)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.cloudsearchdomain" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "CloudSearch Domain",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
const _B = "Blob";
|
|
2
|
+
const _BI = "BucketInfo";
|
|
3
|
+
const _BL = "BucketList";
|
|
4
|
+
const _Bu = "Bucket";
|
|
5
|
+
const _CT = "Content-Type";
|
|
6
|
+
const _DSE = "DocumentServiceException";
|
|
7
|
+
const _DSW = "DocumentServiceWarning";
|
|
8
|
+
const _DSWo = "DocumentServiceWarnings";
|
|
9
|
+
const _F = "Fields";
|
|
10
|
+
const _FS = "FieldStats";
|
|
11
|
+
const _Fa = "Facets";
|
|
12
|
+
const _H = "Hit";
|
|
13
|
+
const _HL = "HitList";
|
|
14
|
+
const _Hi = "Hits";
|
|
15
|
+
const _S = "Suggestions";
|
|
16
|
+
const _SE = "SearchException";
|
|
17
|
+
const _SM = "SuggestionMatch";
|
|
18
|
+
const _SMu = "SuggestModel";
|
|
19
|
+
const _SR = "SearchRequest";
|
|
20
|
+
const _SRe = "SearchResponse";
|
|
21
|
+
const _SRu = "SuggestRequest";
|
|
22
|
+
const _SRug = "SuggestResponse";
|
|
23
|
+
const _SS = "SearchStatus";
|
|
24
|
+
const _SSu = "SuggestStatus";
|
|
25
|
+
const _Se = "Search";
|
|
26
|
+
const _St = "Stats";
|
|
27
|
+
const _Su = "Suggest";
|
|
28
|
+
const _UD = "UploadDocuments";
|
|
29
|
+
const _UDR = "UploadDocumentsRequest";
|
|
30
|
+
const _UDRp = "UploadDocumentsResponse";
|
|
31
|
+
const _a = "adds";
|
|
32
|
+
const _b = "buckets";
|
|
33
|
+
const _c = "count";
|
|
34
|
+
const _cT = "contentType";
|
|
35
|
+
const _cl = "client";
|
|
36
|
+
const _cu = "cursor";
|
|
37
|
+
const _d = "documents";
|
|
38
|
+
const _de = "deletes";
|
|
39
|
+
const _e = "error";
|
|
40
|
+
const _ex = "exprs";
|
|
41
|
+
const _exp = "expr";
|
|
42
|
+
const _f = "fields";
|
|
43
|
+
const _fQ = "filterQuery";
|
|
44
|
+
const _fa = "facet";
|
|
45
|
+
const _fac = "facets";
|
|
46
|
+
const _fo = "found";
|
|
47
|
+
const _fq = "fq";
|
|
48
|
+
const _h = "highlights";
|
|
49
|
+
const _hH = "httpHeader";
|
|
50
|
+
const _hQ = "httpQuery";
|
|
51
|
+
const _hi = "hit";
|
|
52
|
+
const _hig = "highlight";
|
|
53
|
+
const _hit = "hits";
|
|
54
|
+
const _ht = "http";
|
|
55
|
+
const _i = "id";
|
|
56
|
+
const _m = "message";
|
|
57
|
+
const _ma = "max";
|
|
58
|
+
const _me = "mean";
|
|
59
|
+
const _mi = "min";
|
|
60
|
+
const _mis = "missing";
|
|
61
|
+
const _p = "partial";
|
|
62
|
+
const _q = "query";
|
|
63
|
+
const _qO = "queryOptions";
|
|
64
|
+
const _qP = "queryParser";
|
|
65
|
+
const _q_ = "q";
|
|
66
|
+
const _qo = "q.options";
|
|
67
|
+
const _qp = "q.parser";
|
|
68
|
+
const _r = "return";
|
|
69
|
+
const _ri = "rid";
|
|
70
|
+
const _s = "streaming";
|
|
71
|
+
const _sOS = "sumOfSquares";
|
|
72
|
+
const _sc = "score";
|
|
73
|
+
const _si = "size";
|
|
74
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudsearchdomain";
|
|
75
|
+
const _so = "sort";
|
|
76
|
+
const _st = "status";
|
|
77
|
+
const _sta = "start";
|
|
78
|
+
const _stat = "stats";
|
|
79
|
+
const _std = "stddev";
|
|
80
|
+
const _su = "sum";
|
|
81
|
+
const _sug = "suggestion";
|
|
82
|
+
const _sugg = "suggestions";
|
|
83
|
+
const _sugge = "suggester";
|
|
84
|
+
const _sugges = "suggest";
|
|
85
|
+
const _t = "timems";
|
|
86
|
+
const _v = "value";
|
|
87
|
+
const _w = "warnings";
|
|
88
|
+
const n0 = "com.amazonaws.cloudsearchdomain";
|
|
89
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
90
|
+
import { CloudSearchDomainServiceException as __CloudSearchDomainServiceException } from "../models/CloudSearchDomainServiceException";
|
|
91
|
+
import { DocumentServiceException as __DocumentServiceException, SearchException as __SearchException, } from "../models/index";
|
|
92
|
+
export var _Blob = [
|
|
93
|
+
0,
|
|
94
|
+
n0,
|
|
95
|
+
_B,
|
|
96
|
+
{
|
|
97
|
+
[_s]: 1,
|
|
98
|
+
},
|
|
99
|
+
42,
|
|
100
|
+
];
|
|
101
|
+
export var Bucket = [3, n0, _Bu, 0, [_v, _c], [0, 1]];
|
|
102
|
+
export var BucketInfo = [3, n0, _BI, 0, [_b], [() => BucketList]];
|
|
103
|
+
export var DocumentServiceException = [
|
|
104
|
+
-3,
|
|
105
|
+
n0,
|
|
106
|
+
_DSE,
|
|
107
|
+
{
|
|
108
|
+
[_e]: _cl,
|
|
109
|
+
},
|
|
110
|
+
[_st, _m],
|
|
111
|
+
[0, 0],
|
|
112
|
+
];
|
|
113
|
+
TypeRegistry.for(n0).registerError(DocumentServiceException, __DocumentServiceException);
|
|
114
|
+
export var DocumentServiceWarning = [3, n0, _DSW, 0, [_m], [0]];
|
|
115
|
+
export var FieldStats = [
|
|
116
|
+
3,
|
|
117
|
+
n0,
|
|
118
|
+
_FS,
|
|
119
|
+
0,
|
|
120
|
+
[_mi, _ma, _c, _mis, _su, _sOS, _me, _std],
|
|
121
|
+
[0, 0, 1, 1, 1, 1, 0, 1],
|
|
122
|
+
];
|
|
123
|
+
export var Hit = [
|
|
124
|
+
3,
|
|
125
|
+
n0,
|
|
126
|
+
_H,
|
|
127
|
+
0,
|
|
128
|
+
[_i, _f, _ex, _h],
|
|
129
|
+
[0, [2, n0, _F, 0, 0, 64 | 0], 128 | 0, 128 | 0],
|
|
130
|
+
];
|
|
131
|
+
export var Hits = [3, n0, _Hi, 0, [_fo, _sta, _cu, _hi], [1, 1, 0, () => HitList]];
|
|
132
|
+
export var SearchException = [
|
|
133
|
+
-3,
|
|
134
|
+
n0,
|
|
135
|
+
_SE,
|
|
136
|
+
{
|
|
137
|
+
[_e]: _cl,
|
|
138
|
+
},
|
|
139
|
+
[_m],
|
|
140
|
+
[0],
|
|
141
|
+
];
|
|
142
|
+
TypeRegistry.for(n0).registerError(SearchException, __SearchException);
|
|
143
|
+
export var SearchRequest = [
|
|
144
|
+
3,
|
|
145
|
+
n0,
|
|
146
|
+
_SR,
|
|
147
|
+
0,
|
|
148
|
+
[_cu, _exp, _fa, _fQ, _hig, _p, _q, _qO, _qP, _r, _si, _so, _sta, _stat],
|
|
149
|
+
[
|
|
150
|
+
[
|
|
151
|
+
0,
|
|
152
|
+
{
|
|
153
|
+
[_hQ]: _cu,
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
0,
|
|
158
|
+
{
|
|
159
|
+
[_hQ]: _exp,
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
0,
|
|
164
|
+
{
|
|
165
|
+
[_hQ]: _fa,
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
[
|
|
169
|
+
0,
|
|
170
|
+
{
|
|
171
|
+
[_hQ]: _fq,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
[
|
|
175
|
+
0,
|
|
176
|
+
{
|
|
177
|
+
[_hQ]: _hig,
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
[
|
|
181
|
+
2,
|
|
182
|
+
{
|
|
183
|
+
[_hQ]: _p,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
[
|
|
187
|
+
0,
|
|
188
|
+
{
|
|
189
|
+
[_hQ]: _q_,
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
[
|
|
193
|
+
0,
|
|
194
|
+
{
|
|
195
|
+
[_hQ]: _qo,
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
0,
|
|
200
|
+
{
|
|
201
|
+
[_hQ]: _qp,
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
[
|
|
205
|
+
0,
|
|
206
|
+
{
|
|
207
|
+
[_hQ]: _r,
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
[
|
|
211
|
+
1,
|
|
212
|
+
{
|
|
213
|
+
[_hQ]: _si,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
[
|
|
217
|
+
0,
|
|
218
|
+
{
|
|
219
|
+
[_hQ]: _so,
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
[
|
|
223
|
+
1,
|
|
224
|
+
{
|
|
225
|
+
[_hQ]: _sta,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
0,
|
|
230
|
+
{
|
|
231
|
+
[_hQ]: _stat,
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
],
|
|
235
|
+
];
|
|
236
|
+
export var SearchResponse = [
|
|
237
|
+
3,
|
|
238
|
+
n0,
|
|
239
|
+
_SRe,
|
|
240
|
+
0,
|
|
241
|
+
[_st, _hit, _fac, _stat],
|
|
242
|
+
[() => SearchStatus, () => Hits, () => Facets, () => Stats],
|
|
243
|
+
];
|
|
244
|
+
export var SearchStatus = [3, n0, _SS, 0, [_t, _ri], [1, 0]];
|
|
245
|
+
export var SuggestionMatch = [3, n0, _SM, 0, [_sug, _sc, _i], [0, 1, 0]];
|
|
246
|
+
export var SuggestModel = [3, n0, _SMu, 0, [_q, _fo, _sugg], [0, 1, () => Suggestions]];
|
|
247
|
+
export var SuggestRequest = [
|
|
248
|
+
3,
|
|
249
|
+
n0,
|
|
250
|
+
_SRu,
|
|
251
|
+
0,
|
|
252
|
+
[_q, _sugge, _si],
|
|
253
|
+
[
|
|
254
|
+
[
|
|
255
|
+
0,
|
|
256
|
+
{
|
|
257
|
+
[_hQ]: _q_,
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
[
|
|
261
|
+
0,
|
|
262
|
+
{
|
|
263
|
+
[_hQ]: _sugge,
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
1,
|
|
268
|
+
{
|
|
269
|
+
[_hQ]: _si,
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
],
|
|
273
|
+
];
|
|
274
|
+
export var SuggestResponse = [
|
|
275
|
+
3,
|
|
276
|
+
n0,
|
|
277
|
+
_SRug,
|
|
278
|
+
0,
|
|
279
|
+
[_st, _sugges],
|
|
280
|
+
[() => SuggestStatus, () => SuggestModel],
|
|
281
|
+
];
|
|
282
|
+
export var SuggestStatus = [3, n0, _SSu, 0, [_t, _ri], [1, 0]];
|
|
283
|
+
export var UploadDocumentsRequest = [
|
|
284
|
+
3,
|
|
285
|
+
n0,
|
|
286
|
+
_UDR,
|
|
287
|
+
0,
|
|
288
|
+
[_d, _cT],
|
|
289
|
+
[
|
|
290
|
+
[() => _Blob, 16],
|
|
291
|
+
[
|
|
292
|
+
0,
|
|
293
|
+
{
|
|
294
|
+
[_hH]: _CT,
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
],
|
|
298
|
+
];
|
|
299
|
+
export var UploadDocumentsResponse = [
|
|
300
|
+
3,
|
|
301
|
+
n0,
|
|
302
|
+
_UDRp,
|
|
303
|
+
0,
|
|
304
|
+
[_st, _a, _de, _w],
|
|
305
|
+
[0, 1, 1, () => DocumentServiceWarnings],
|
|
306
|
+
];
|
|
307
|
+
export var __Unit = "unit";
|
|
308
|
+
export var CloudSearchDomainServiceException = [
|
|
309
|
+
-3,
|
|
310
|
+
_sm,
|
|
311
|
+
"CloudSearchDomainServiceException",
|
|
312
|
+
0,
|
|
313
|
+
[],
|
|
314
|
+
[],
|
|
315
|
+
];
|
|
316
|
+
TypeRegistry.for(_sm).registerError(CloudSearchDomainServiceException, __CloudSearchDomainServiceException);
|
|
317
|
+
export var BucketList = [1, n0, _BL, 0, () => Bucket];
|
|
318
|
+
export var DocumentServiceWarnings = [1, n0, _DSWo, 0, () => DocumentServiceWarning];
|
|
319
|
+
export var FieldValue = 64 | 0;
|
|
320
|
+
export var HitList = [1, n0, _HL, 0, () => Hit];
|
|
321
|
+
export var Suggestions = [1, n0, _S, 0, () => SuggestionMatch];
|
|
322
|
+
export var Exprs = 128 | 0;
|
|
323
|
+
export var Facets = [2, n0, _Fa, 0, 0, () => BucketInfo];
|
|
324
|
+
export var Fields = [2, n0, _F, 0, 0, 64 | 0];
|
|
325
|
+
export var Highlights = 128 | 0;
|
|
326
|
+
export var Stats = [2, n0, _St, 0, 0, () => FieldStats];
|
|
327
|
+
export var Search = [
|
|
328
|
+
9,
|
|
329
|
+
n0,
|
|
330
|
+
_Se,
|
|
331
|
+
{
|
|
332
|
+
[_ht]: ["GET", "/2013-01-01/search?format=sdk&pretty=true", 200],
|
|
333
|
+
},
|
|
334
|
+
() => SearchRequest,
|
|
335
|
+
() => SearchResponse,
|
|
336
|
+
];
|
|
337
|
+
export var Suggest = [
|
|
338
|
+
9,
|
|
339
|
+
n0,
|
|
340
|
+
_Su,
|
|
341
|
+
{
|
|
342
|
+
[_ht]: ["GET", "/2013-01-01/suggest?format=sdk&pretty=true", 200],
|
|
343
|
+
},
|
|
344
|
+
() => SuggestRequest,
|
|
345
|
+
() => SuggestResponse,
|
|
346
|
+
];
|
|
347
|
+
export var UploadDocuments = [
|
|
348
|
+
9,
|
|
349
|
+
n0,
|
|
350
|
+
_UD,
|
|
351
|
+
{
|
|
352
|
+
[_ht]: ["POST", "/2013-01-01/documents/batch?format=sdk", 200],
|
|
353
|
+
},
|
|
354
|
+
() => UploadDocumentsRequest,
|
|
355
|
+
() => UploadDocumentsResponse,
|
|
356
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { SearchCommandInput, SearchCommandOutput } from "./commands/SearchCommand";
|
|
11
11
|
import { SuggestCommandInput, SuggestCommandOutput } from "./commands/SuggestCommand";
|
|
@@ -144,6 +144,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
144
144
|
* Optional extensions
|
|
145
145
|
*/
|
|
146
146
|
extensions?: RuntimeExtension[];
|
|
147
|
+
/**
|
|
148
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
149
|
+
* may be overridden. A default will always be set by the client.
|
|
150
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
151
|
+
* the client.
|
|
152
|
+
* @alpha
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
147
156
|
/**
|
|
148
157
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
149
158
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
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;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudSearchDomainHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var _Blob: StaticSimpleSchema;
|
|
3
|
+
export declare var Bucket: StaticStructureSchema;
|
|
4
|
+
export declare var BucketInfo: StaticStructureSchema;
|
|
5
|
+
export declare var DocumentServiceException: StaticErrorSchema;
|
|
6
|
+
export declare var DocumentServiceWarning: StaticStructureSchema;
|
|
7
|
+
export declare var FieldStats: StaticStructureSchema;
|
|
8
|
+
export declare var Hit: StaticStructureSchema;
|
|
9
|
+
export declare var Hits: StaticStructureSchema;
|
|
10
|
+
export declare var SearchException: StaticErrorSchema;
|
|
11
|
+
export declare var SearchRequest: StaticStructureSchema;
|
|
12
|
+
export declare var SearchResponse: StaticStructureSchema;
|
|
13
|
+
export declare var SearchStatus: StaticStructureSchema;
|
|
14
|
+
export declare var SuggestionMatch: StaticStructureSchema;
|
|
15
|
+
export declare var SuggestModel: StaticStructureSchema;
|
|
16
|
+
export declare var SuggestRequest: StaticStructureSchema;
|
|
17
|
+
export declare var SuggestResponse: StaticStructureSchema;
|
|
18
|
+
export declare var SuggestStatus: StaticStructureSchema;
|
|
19
|
+
export declare var UploadDocumentsRequest: StaticStructureSchema;
|
|
20
|
+
export declare var UploadDocumentsResponse: StaticStructureSchema;
|
|
21
|
+
export declare var __Unit: "unit";
|
|
22
|
+
export declare var CloudSearchDomainServiceException: StaticErrorSchema;
|
|
23
|
+
export declare var BucketList: StaticListSchema;
|
|
24
|
+
export declare var DocumentServiceWarnings: StaticListSchema;
|
|
25
|
+
export declare var FieldValue: number;
|
|
26
|
+
export declare var HitList: StaticListSchema;
|
|
27
|
+
export declare var Suggestions: StaticListSchema;
|
|
28
|
+
export declare var Exprs: number;
|
|
29
|
+
export declare var Facets: StaticMapSchema;
|
|
30
|
+
export declare var Fields: StaticMapSchema;
|
|
31
|
+
export declare var Highlights: number;
|
|
32
|
+
export declare var Stats: StaticMapSchema;
|
|
33
|
+
export declare var Search: StaticOperationSchema;
|
|
34
|
+
export declare var Suggest: StaticOperationSchema;
|
|
35
|
+
export declare var UploadDocuments: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -96,6 +99,7 @@ export interface ClientDefaults
|
|
|
96
99
|
retryMode?: string | __Provider<string>;
|
|
97
100
|
logger?: __Logger;
|
|
98
101
|
extensions?: RuntimeExtension[];
|
|
102
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
99
103
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
100
104
|
}
|
|
101
105
|
export type CloudSearchDomainClientConfigType = Partial<
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
userAgentAppId?:
|
|
45
49
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudSearchDomainHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|