@anweather/game-plugin-ssdk 1.2.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/runtime/defaultService.js +18 -0
- package/dist-cjs/runtime/express.js +39 -0
- package/dist-cjs/runtime/index.js +7 -0
- package/dist-cjs/src/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/src/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/src/endpoint/ruleset.js +38 -0
- package/dist-cjs/src/index.js +7 -0
- package/dist-cjs/src/models/index.js +4 -0
- package/dist-cjs/src/models/models_0.js +860 -0
- package/dist-cjs/src/protocols/Aws_restJson1.js +1077 -0
- package/dist-cjs/src/server/GamePluginService.js +231 -0
- package/dist-cjs/src/server/index.js +5 -0
- package/dist-cjs/src/server/operations/ApplyMove.js +109 -0
- package/dist-cjs/src/server/operations/ApplySaveFileEdit.js +109 -0
- package/dist-cjs/src/server/operations/AssignParticipants.js +101 -0
- package/dist-cjs/src/server/operations/DescribeSaveFile.js +101 -0
- package/dist-cjs/src/server/operations/GetGameResult.js +101 -0
- package/dist-cjs/src/server/operations/GetGameStatus.js +101 -0
- package/dist-cjs/src/server/operations/GetMetadata.js +99 -0
- package/dist-cjs/src/server/operations/GetPlayerView.js +101 -0
- package/dist-cjs/src/server/operations/GetSaveFileEditorState.js +101 -0
- package/dist-cjs/src/server/operations/Health.js +99 -0
- package/dist-cjs/src/server/operations/InitializeGame.js +101 -0
- package/dist-cjs/src/server/operations/IsConfigMove.js +101 -0
- package/dist-cjs/src/server/operations/IsOutOfTurnMove.js +101 -0
- package/dist-cjs/src/server/operations/SelectBotMove.js +101 -0
- package/dist-cjs/src/server/operations/ValidateMove.js +101 -0
- package/dist-cjs/src/server/operations/index.js +18 -0
- package/dist-cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist-es/runtime/defaultService.js +15 -0
- package/dist-es/runtime/express.js +36 -0
- package/dist-es/runtime/index.js +2 -0
- package/dist-es/src/endpoint/EndpointParameters.js +8 -0
- package/dist-es/src/endpoint/endpointResolver.js +12 -0
- package/dist-es/src/endpoint/ruleset.js +35 -0
- package/dist-es/src/index.js +3 -0
- package/dist-es/src/models/index.js +1 -0
- package/dist-es/src/models/models_0.js +855 -0
- package/dist-es/src/protocols/Aws_restJson1.js +1041 -0
- package/dist-es/src/server/GamePluginService.js +226 -0
- package/dist-es/src/server/index.js +2 -0
- package/dist-es/src/server/operations/ApplyMove.js +103 -0
- package/dist-es/src/server/operations/ApplySaveFileEdit.js +103 -0
- package/dist-es/src/server/operations/AssignParticipants.js +95 -0
- package/dist-es/src/server/operations/DescribeSaveFile.js +95 -0
- package/dist-es/src/server/operations/GetGameResult.js +95 -0
- package/dist-es/src/server/operations/GetGameStatus.js +95 -0
- package/dist-es/src/server/operations/GetMetadata.js +93 -0
- package/dist-es/src/server/operations/GetPlayerView.js +95 -0
- package/dist-es/src/server/operations/GetSaveFileEditorState.js +95 -0
- package/dist-es/src/server/operations/Health.js +93 -0
- package/dist-es/src/server/operations/InitializeGame.js +95 -0
- package/dist-es/src/server/operations/IsConfigMove.js +95 -0
- package/dist-es/src/server/operations/IsOutOfTurnMove.js +95 -0
- package/dist-es/src/server/operations/SelectBotMove.js +95 -0
- package/dist-es/src/server/operations/ValidateMove.js +95 -0
- package/dist-es/src/server/operations/index.js +15 -0
- package/dist-es/tsconfig.es.tsbuildinfo +1 -0
- package/dist-types/runtime/defaultService.d.ts +9 -0
- package/dist-types/runtime/express.d.ts +12 -0
- package/dist-types/runtime/index.d.ts +3 -0
- package/dist-types/src/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/src/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/src/endpoint/ruleset.d.ts +2 -0
- package/dist-types/src/index.d.ts +22 -0
- package/dist-types/src/models/index.d.ts +1 -0
- package/dist-types/src/models/models_0.d.ts +402 -0
- package/dist-types/src/protocols/Aws_restJson1.d.ts +52 -0
- package/dist-types/src/server/GamePluginService.d.ts +54 -0
- package/dist-types/src/server/index.d.ts +2 -0
- package/dist-types/src/server/operations/ApplyMove.d.ts +41 -0
- package/dist-types/src/server/operations/ApplySaveFileEdit.d.ts +41 -0
- package/dist-types/src/server/operations/AssignParticipants.d.ts +41 -0
- package/dist-types/src/server/operations/DescribeSaveFile.d.ts +41 -0
- package/dist-types/src/server/operations/GetGameResult.d.ts +41 -0
- package/dist-types/src/server/operations/GetGameStatus.d.ts +41 -0
- package/dist-types/src/server/operations/GetMetadata.d.ts +41 -0
- package/dist-types/src/server/operations/GetPlayerView.d.ts +41 -0
- package/dist-types/src/server/operations/GetSaveFileEditorState.d.ts +41 -0
- package/dist-types/src/server/operations/Health.d.ts +41 -0
- package/dist-types/src/server/operations/InitializeGame.d.ts +41 -0
- package/dist-types/src/server/operations/IsConfigMove.d.ts +41 -0
- package/dist-types/src/server/operations/IsOutOfTurnMove.d.ts +41 -0
- package/dist-types/src/server/operations/SelectBotMove.d.ts +41 -0
- package/dist-types/src/server/operations/ValidateMove.d.ts +41 -0
- package/dist-types/src/server/operations/index.d.ts +15 -0
- package/package.json +88 -0
- package/runtime/package.json +5 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { ServiceException as __BaseException, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface Move {
|
|
8
|
+
participantId: string | undefined;
|
|
9
|
+
payload: __DocumentType | undefined;
|
|
10
|
+
sequenceNumber: number | undefined;
|
|
11
|
+
timestamp: Date | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Move {
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
const validate: (obj: Move, path?: string) => __ValidationFailure[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface ApplyMoveInput {
|
|
23
|
+
pluginState: __DocumentType | undefined;
|
|
24
|
+
move: Move | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace ApplyMoveInput {
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
const validate: (obj: ApplyMoveInput, path?: string) => __ValidationFailure[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export declare class InvalidMoveError extends __BaseException {
|
|
36
|
+
readonly name: "InvalidMoveError";
|
|
37
|
+
readonly $fault: "client";
|
|
38
|
+
constructor(opts: __ExceptionOptionType<InvalidMoveError, __BaseException>);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export interface PluginStateUpdate {
|
|
44
|
+
nextTurnParticipantId?: string | undefined;
|
|
45
|
+
pluginState: __DocumentType | undefined;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace PluginStateUpdate {
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
const validate: (obj: PluginStateUpdate, path?: string) => __ValidationFailure[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export interface ApplySaveFileEditInput {
|
|
57
|
+
profile: __DocumentType | undefined;
|
|
58
|
+
edit: __DocumentType | undefined;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace ApplySaveFileEditInput {
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
const validate: (obj: ApplySaveFileEditInput, path?: string) => __ValidationFailure[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export interface ApplySaveFileEditOutput {
|
|
70
|
+
profile: __DocumentType | undefined;
|
|
71
|
+
state: __DocumentType | undefined;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace ApplySaveFileEditOutput {
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
const validate: (obj: ApplySaveFileEditOutput, path?: string) => __ValidationFailure[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class SaveFileEditRejectedError extends __BaseException {
|
|
83
|
+
readonly name: "SaveFileEditRejectedError";
|
|
84
|
+
readonly $fault: "client";
|
|
85
|
+
reason: string | undefined;
|
|
86
|
+
constructor(opts: __ExceptionOptionType<SaveFileEditRejectedError, __BaseException>);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export interface AssignParticipantsInput {
|
|
92
|
+
participants: (string)[] | undefined;
|
|
93
|
+
config?: __DocumentType | undefined;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace AssignParticipantsInput {
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
const validate: (obj: AssignParticipantsInput, path?: string) => __ValidationFailure[];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export interface AssignParticipantsOutput {
|
|
105
|
+
participants: (string)[] | undefined;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace AssignParticipantsOutput {
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
const validate: (obj: AssignParticipantsOutput, path?: string) => __ValidationFailure[];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export interface BotSkillLevelEntry {
|
|
117
|
+
id: string | undefined;
|
|
118
|
+
displayName: string | undefined;
|
|
119
|
+
}
|
|
120
|
+
export declare namespace BotSkillLevelEntry {
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
const validate: (obj: BotSkillLevelEntry, path?: string) => __ValidationFailure[];
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export interface DescribeSaveFileInput {
|
|
130
|
+
profile: __DocumentType | undefined;
|
|
131
|
+
}
|
|
132
|
+
export declare namespace DescribeSaveFileInput {
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
const validate: (obj: DescribeSaveFileInput, path?: string) => __ValidationFailure[];
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export interface DescribeSaveFileOutput {
|
|
142
|
+
summary?: string | undefined;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace DescribeSaveFileOutput {
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
const validate: (obj: DescribeSaveFileOutput, path?: string) => __ValidationFailure[];
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
* @enum
|
|
153
|
+
*/
|
|
154
|
+
export declare const Outcome: {
|
|
155
|
+
readonly ABANDONED: "ABANDONED";
|
|
156
|
+
readonly DRAW: "DRAW";
|
|
157
|
+
readonly WIN: "WIN";
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export type Outcome = typeof Outcome[keyof typeof Outcome];
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export interface GameResultOutput {
|
|
167
|
+
outcome?: Outcome | undefined;
|
|
168
|
+
winners?: (string)[] | undefined;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace GameResultOutput {
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
const validate: (obj: GameResultOutput, path?: string) => __ValidationFailure[];
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export interface PluginStateOnlyInput {
|
|
180
|
+
pluginState: __DocumentType | undefined;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace PluginStateOnlyInput {
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
const validate: (obj: PluginStateOnlyInput, path?: string) => __ValidationFailure[];
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
export interface GameStatusOutput {
|
|
192
|
+
isGameOver: boolean | undefined;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace GameStatusOutput {
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
const validate: (obj: GameStatusOutput, path?: string) => __ValidationFailure[];
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
export interface GameTypeMetadata {
|
|
204
|
+
id: string | undefined;
|
|
205
|
+
minPlayers: number | undefined;
|
|
206
|
+
maxPlayers: number | undefined;
|
|
207
|
+
displayName?: string | undefined;
|
|
208
|
+
hasBotStrategy: boolean | undefined;
|
|
209
|
+
teamPlay: boolean | undefined;
|
|
210
|
+
spectatorSafe: boolean | undefined;
|
|
211
|
+
configSchema?: __DocumentType | undefined;
|
|
212
|
+
botSkillLevels?: (BotSkillLevelEntry)[] | undefined;
|
|
213
|
+
hasConfigMove?: boolean | undefined;
|
|
214
|
+
hasOutOfTurnMove?: boolean | undefined;
|
|
215
|
+
hasCustomPlayerView?: boolean | undefined;
|
|
216
|
+
hasSaveFiles?: boolean | undefined;
|
|
217
|
+
hasSaveSummary?: boolean | undefined;
|
|
218
|
+
hasSaveFileEditor?: boolean | undefined;
|
|
219
|
+
}
|
|
220
|
+
export declare namespace GameTypeMetadata {
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
const validate: (obj: GameTypeMetadata, path?: string) => __ValidationFailure[];
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* @public
|
|
228
|
+
*/
|
|
229
|
+
export interface GetPlayerViewInput {
|
|
230
|
+
pluginState: __DocumentType | undefined;
|
|
231
|
+
participantId: string | undefined;
|
|
232
|
+
}
|
|
233
|
+
export declare namespace GetPlayerViewInput {
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
const validate: (obj: GetPlayerViewInput, path?: string) => __ValidationFailure[];
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
export interface GetPlayerViewOutput {
|
|
243
|
+
pluginState: __DocumentType | undefined;
|
|
244
|
+
}
|
|
245
|
+
export declare namespace GetPlayerViewOutput {
|
|
246
|
+
/**
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
const validate: (obj: GetPlayerViewOutput, path?: string) => __ValidationFailure[];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
export interface GetSaveFileEditorStateInput {
|
|
255
|
+
profile: __DocumentType | undefined;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace GetSaveFileEditorStateInput {
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
const validate: (obj: GetSaveFileEditorStateInput, path?: string) => __ValidationFailure[];
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
export interface GetSaveFileEditorStateOutput {
|
|
267
|
+
state: __DocumentType | undefined;
|
|
268
|
+
}
|
|
269
|
+
export declare namespace GetSaveFileEditorStateOutput {
|
|
270
|
+
/**
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
const validate: (obj: GetSaveFileEditorStateOutput, path?: string) => __ValidationFailure[];
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
export interface HealthOutput {
|
|
279
|
+
status: string | undefined;
|
|
280
|
+
gameType: string | undefined;
|
|
281
|
+
protocolVersion: number | undefined;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace HealthOutput {
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
*/
|
|
287
|
+
const validate: (obj: HealthOutput, path?: string) => __ValidationFailure[];
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
export interface InitializeGameInput {
|
|
293
|
+
config?: __DocumentType | undefined;
|
|
294
|
+
participants: (string)[] | undefined;
|
|
295
|
+
}
|
|
296
|
+
export declare namespace InitializeGameInput {
|
|
297
|
+
/**
|
|
298
|
+
* @internal
|
|
299
|
+
*/
|
|
300
|
+
const validate: (obj: InitializeGameInput, path?: string) => __ValidationFailure[];
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
export interface IsConfigMoveInput {
|
|
306
|
+
payload: __DocumentType | undefined;
|
|
307
|
+
}
|
|
308
|
+
export declare namespace IsConfigMoveInput {
|
|
309
|
+
/**
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
const validate: (obj: IsConfigMoveInput, path?: string) => __ValidationFailure[];
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
export interface IsConfigMoveOutput {
|
|
318
|
+
isConfigMove: boolean | undefined;
|
|
319
|
+
}
|
|
320
|
+
export declare namespace IsConfigMoveOutput {
|
|
321
|
+
/**
|
|
322
|
+
* @internal
|
|
323
|
+
*/
|
|
324
|
+
const validate: (obj: IsConfigMoveOutput, path?: string) => __ValidationFailure[];
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
export interface IsOutOfTurnMoveInput {
|
|
330
|
+
payload: __DocumentType | undefined;
|
|
331
|
+
}
|
|
332
|
+
export declare namespace IsOutOfTurnMoveInput {
|
|
333
|
+
/**
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
const validate: (obj: IsOutOfTurnMoveInput, path?: string) => __ValidationFailure[];
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
341
|
+
export interface IsOutOfTurnMoveOutput {
|
|
342
|
+
isOutOfTurnMove: boolean | undefined;
|
|
343
|
+
}
|
|
344
|
+
export declare namespace IsOutOfTurnMoveOutput {
|
|
345
|
+
/**
|
|
346
|
+
* @internal
|
|
347
|
+
*/
|
|
348
|
+
const validate: (obj: IsOutOfTurnMoveOutput, path?: string) => __ValidationFailure[];
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @public
|
|
352
|
+
*/
|
|
353
|
+
export interface SelectBotMoveInput {
|
|
354
|
+
pluginState: __DocumentType | undefined;
|
|
355
|
+
participantId: string | undefined;
|
|
356
|
+
skillLevel?: string | undefined;
|
|
357
|
+
}
|
|
358
|
+
export declare namespace SelectBotMoveInput {
|
|
359
|
+
/**
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
362
|
+
const validate: (obj: SelectBotMoveInput, path?: string) => __ValidationFailure[];
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
export interface SelectBotMoveOutput {
|
|
368
|
+
payload: __DocumentType | undefined;
|
|
369
|
+
}
|
|
370
|
+
export declare namespace SelectBotMoveOutput {
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
374
|
+
const validate: (obj: SelectBotMoveOutput, path?: string) => __ValidationFailure[];
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @public
|
|
378
|
+
*/
|
|
379
|
+
export interface MoveValidation {
|
|
380
|
+
valid: boolean | undefined;
|
|
381
|
+
reason?: string | undefined;
|
|
382
|
+
}
|
|
383
|
+
export declare namespace MoveValidation {
|
|
384
|
+
/**
|
|
385
|
+
* @internal
|
|
386
|
+
*/
|
|
387
|
+
const validate: (obj: MoveValidation, path?: string) => __ValidationFailure[];
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
export interface ValidateMoveInput {
|
|
393
|
+
pluginState: __DocumentType | undefined;
|
|
394
|
+
move: Move | undefined;
|
|
395
|
+
participantId: string | undefined;
|
|
396
|
+
}
|
|
397
|
+
export declare namespace ValidateMoveInput {
|
|
398
|
+
/**
|
|
399
|
+
* @internal
|
|
400
|
+
*/
|
|
401
|
+
const validate: (obj: ValidateMoveInput, path?: string) => __ValidationFailure[];
|
|
402
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { InvalidMoveError, SaveFileEditRejectedError } from "../models/models_0";
|
|
2
|
+
import { ApplyMoveServerInput, ApplyMoveServerOutput } from "../server/operations/ApplyMove";
|
|
3
|
+
import { ApplySaveFileEditServerInput, ApplySaveFileEditServerOutput } from "../server/operations/ApplySaveFileEdit";
|
|
4
|
+
import { AssignParticipantsServerInput, AssignParticipantsServerOutput } from "../server/operations/AssignParticipants";
|
|
5
|
+
import { DescribeSaveFileServerInput, DescribeSaveFileServerOutput } from "../server/operations/DescribeSaveFile";
|
|
6
|
+
import { GetGameResultServerInput, GetGameResultServerOutput } from "../server/operations/GetGameResult";
|
|
7
|
+
import { GetGameStatusServerInput, GetGameStatusServerOutput } from "../server/operations/GetGameStatus";
|
|
8
|
+
import { GetMetadataServerInput, GetMetadataServerOutput } from "../server/operations/GetMetadata";
|
|
9
|
+
import { GetPlayerViewServerInput, GetPlayerViewServerOutput } from "../server/operations/GetPlayerView";
|
|
10
|
+
import { GetSaveFileEditorStateServerInput, GetSaveFileEditorStateServerOutput } from "../server/operations/GetSaveFileEditorState";
|
|
11
|
+
import { HealthServerInput, HealthServerOutput } from "../server/operations/Health";
|
|
12
|
+
import { InitializeGameServerInput, InitializeGameServerOutput } from "../server/operations/InitializeGame";
|
|
13
|
+
import { IsConfigMoveServerInput, IsConfigMoveServerOutput } from "../server/operations/IsConfigMove";
|
|
14
|
+
import { IsOutOfTurnMoveServerInput, IsOutOfTurnMoveServerOutput } from "../server/operations/IsOutOfTurnMove";
|
|
15
|
+
import { SelectBotMoveServerInput, SelectBotMoveServerOutput } from "../server/operations/SelectBotMove";
|
|
16
|
+
import { ValidateMoveServerInput, ValidateMoveServerOutput } from "../server/operations/ValidateMove";
|
|
17
|
+
import { ServerSerdeContext, SmithyFrameworkException as __SmithyFrameworkException } from "@aws-smithy/server-common";
|
|
18
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
19
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
20
|
+
export declare const deserializeApplyMoveRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<ApplyMoveServerInput>;
|
|
21
|
+
export declare const deserializeApplySaveFileEditRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<ApplySaveFileEditServerInput>;
|
|
22
|
+
export declare const deserializeAssignParticipantsRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<AssignParticipantsServerInput>;
|
|
23
|
+
export declare const deserializeDescribeSaveFileRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<DescribeSaveFileServerInput>;
|
|
24
|
+
export declare const deserializeGetGameResultRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetGameResultServerInput>;
|
|
25
|
+
export declare const deserializeGetGameStatusRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetGameStatusServerInput>;
|
|
26
|
+
export declare const deserializeGetMetadataRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetMetadataServerInput>;
|
|
27
|
+
export declare const deserializeGetPlayerViewRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetPlayerViewServerInput>;
|
|
28
|
+
export declare const deserializeGetSaveFileEditorStateRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetSaveFileEditorStateServerInput>;
|
|
29
|
+
export declare const deserializeHealthRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<HealthServerInput>;
|
|
30
|
+
export declare const deserializeInitializeGameRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<InitializeGameServerInput>;
|
|
31
|
+
export declare const deserializeIsConfigMoveRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<IsConfigMoveServerInput>;
|
|
32
|
+
export declare const deserializeIsOutOfTurnMoveRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<IsOutOfTurnMoveServerInput>;
|
|
33
|
+
export declare const deserializeSelectBotMoveRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<SelectBotMoveServerInput>;
|
|
34
|
+
export declare const deserializeValidateMoveRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<ValidateMoveServerInput>;
|
|
35
|
+
export declare const serializeApplyMoveResponse: (input: ApplyMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
36
|
+
export declare const serializeApplySaveFileEditResponse: (input: ApplySaveFileEditServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
37
|
+
export declare const serializeAssignParticipantsResponse: (input: AssignParticipantsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
38
|
+
export declare const serializeDescribeSaveFileResponse: (input: DescribeSaveFileServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
39
|
+
export declare const serializeGetGameResultResponse: (input: GetGameResultServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
40
|
+
export declare const serializeGetGameStatusResponse: (input: GetGameStatusServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
41
|
+
export declare const serializeGetMetadataResponse: (input: GetMetadataServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
42
|
+
export declare const serializeGetPlayerViewResponse: (input: GetPlayerViewServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
43
|
+
export declare const serializeGetSaveFileEditorStateResponse: (input: GetSaveFileEditorStateServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
44
|
+
export declare const serializeHealthResponse: (input: HealthServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
45
|
+
export declare const serializeInitializeGameResponse: (input: InitializeGameServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
46
|
+
export declare const serializeIsConfigMoveResponse: (input: IsConfigMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
47
|
+
export declare const serializeIsOutOfTurnMoveResponse: (input: IsOutOfTurnMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
48
|
+
export declare const serializeSelectBotMoveResponse: (input: SelectBotMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
49
|
+
export declare const serializeValidateMoveResponse: (input: ValidateMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
50
|
+
export declare const serializeFrameworkException: (input: __SmithyFrameworkException, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
51
|
+
export declare const serializeInvalidMoveErrorError: (input: InvalidMoveError, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
52
|
+
export declare const serializeSaveFileEditRejectedErrorError: (input: SaveFileEditRejectedError, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ApplyMove } from "./operations/ApplyMove";
|
|
2
|
+
import { ApplySaveFileEdit } from "./operations/ApplySaveFileEdit";
|
|
3
|
+
import { AssignParticipants } from "./operations/AssignParticipants";
|
|
4
|
+
import { DescribeSaveFile } from "./operations/DescribeSaveFile";
|
|
5
|
+
import { GetGameResult } from "./operations/GetGameResult";
|
|
6
|
+
import { GetGameStatus } from "./operations/GetGameStatus";
|
|
7
|
+
import { GetMetadata } from "./operations/GetMetadata";
|
|
8
|
+
import { GetPlayerView } from "./operations/GetPlayerView";
|
|
9
|
+
import { GetSaveFileEditorState } from "./operations/GetSaveFileEditorState";
|
|
10
|
+
import { Health } from "./operations/Health";
|
|
11
|
+
import { InitializeGame } from "./operations/InitializeGame";
|
|
12
|
+
import { IsConfigMove } from "./operations/IsConfigMove";
|
|
13
|
+
import { IsOutOfTurnMove } from "./operations/IsOutOfTurnMove";
|
|
14
|
+
import { SelectBotMove } from "./operations/SelectBotMove";
|
|
15
|
+
import { ValidateMove } from "./operations/ValidateMove";
|
|
16
|
+
import { Mux as __Mux, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceException as __ServiceException, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer } from "@aws-smithy/server-common";
|
|
17
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
18
|
+
export type GamePluginServiceOperations = "ApplyMove" | "ApplySaveFileEdit" | "AssignParticipants" | "DescribeSaveFile" | "GetGameResult" | "GetGameStatus" | "GetMetadata" | "GetPlayerView" | "GetSaveFileEditorState" | "Health" | "InitializeGame" | "IsConfigMove" | "IsOutOfTurnMove" | "SelectBotMove" | "ValidateMove";
|
|
19
|
+
export interface GamePluginService<Context> {
|
|
20
|
+
ApplyMove: ApplyMove<Context>;
|
|
21
|
+
ApplySaveFileEdit: ApplySaveFileEdit<Context>;
|
|
22
|
+
AssignParticipants: AssignParticipants<Context>;
|
|
23
|
+
DescribeSaveFile: DescribeSaveFile<Context>;
|
|
24
|
+
GetGameResult: GetGameResult<Context>;
|
|
25
|
+
GetGameStatus: GetGameStatus<Context>;
|
|
26
|
+
GetMetadata: GetMetadata<Context>;
|
|
27
|
+
GetPlayerView: GetPlayerView<Context>;
|
|
28
|
+
GetSaveFileEditorState: GetSaveFileEditorState<Context>;
|
|
29
|
+
Health: Health<Context>;
|
|
30
|
+
InitializeGame: InitializeGame<Context>;
|
|
31
|
+
IsConfigMove: IsConfigMove<Context>;
|
|
32
|
+
IsOutOfTurnMove: IsOutOfTurnMove<Context>;
|
|
33
|
+
SelectBotMove: SelectBotMove<Context>;
|
|
34
|
+
ValidateMove: ValidateMove<Context>;
|
|
35
|
+
}
|
|
36
|
+
export declare class GamePluginServiceHandler<Context> implements __ServiceHandler<Context> {
|
|
37
|
+
private readonly service;
|
|
38
|
+
private readonly mux;
|
|
39
|
+
private readonly serializerFactory;
|
|
40
|
+
private readonly serializeFrameworkException;
|
|
41
|
+
private readonly validationCustomizer;
|
|
42
|
+
/**
|
|
43
|
+
* Construct a GamePluginService handler.
|
|
44
|
+
* @param service The {@link GamePluginService} implementation that supplies the business logic for GamePluginService
|
|
45
|
+
* @param mux The {@link __Mux} that determines which service and operation are being invoked by a given {@link __HttpRequest}
|
|
46
|
+
* @param serializerFactory A factory for an {@link __OperationSerializer} for each operation in GamePluginService that
|
|
47
|
+
* handles deserialization of requests and serialization of responses
|
|
48
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
49
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
50
|
+
*/
|
|
51
|
+
constructor(service: GamePluginService<Context>, mux: __Mux<"GamePlugin", GamePluginServiceOperations>, serializerFactory: <T extends GamePluginServiceOperations>(op: T) => __OperationSerializer<GamePluginService<Context>, T, __ServiceException>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<GamePluginServiceOperations>);
|
|
52
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
53
|
+
}
|
|
54
|
+
export declare const getGamePluginServiceHandler: <Context>(service: GamePluginService<Context>, customizer: __ValidationCustomizer<GamePluginServiceOperations>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ApplyMoveInput, InvalidMoveError, PluginStateUpdate } from "../../models/models_0";
|
|
2
|
+
import { GamePluginService } from "../GamePluginService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type ApplyMove<Context> = __Operation<ApplyMoveServerInput, ApplyMoveServerOutput, Context>;
|
|
6
|
+
export interface ApplyMoveServerInput extends ApplyMoveInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace ApplyMoveServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof ApplyMoveInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface ApplyMoveServerOutput extends PluginStateUpdate {
|
|
15
|
+
}
|
|
16
|
+
export type ApplyMoveErrors = InvalidMoveError;
|
|
17
|
+
export declare class ApplyMoveSerializer implements __OperationSerializer<GamePluginService<any>, "ApplyMove", ApplyMoveErrors> {
|
|
18
|
+
serialize: (input: ApplyMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<ApplyMoveServerInput>;
|
|
20
|
+
isOperationError(error: any): error is ApplyMoveErrors;
|
|
21
|
+
serializeError(error: ApplyMoveErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getApplyMoveHandler: <Context>(operation: __Operation<ApplyMoveServerInput, ApplyMoveServerOutput, Context>, customizer: __ValidationCustomizer<"ApplyMove">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class ApplyMoveHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a ApplyMove handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for ApplyMove
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for ApplyMove that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<ApplyMoveServerInput, ApplyMoveServerOutput, Context>, mux: __Mux<"GamePlugin", "ApplyMove">, serializer: __OperationSerializer<GamePluginService<Context>, "ApplyMove", ApplyMoveErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"ApplyMove">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ApplySaveFileEditInput, ApplySaveFileEditOutput, SaveFileEditRejectedError } from "../../models/models_0";
|
|
2
|
+
import { GamePluginService } from "../GamePluginService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type ApplySaveFileEdit<Context> = __Operation<ApplySaveFileEditServerInput, ApplySaveFileEditServerOutput, Context>;
|
|
6
|
+
export interface ApplySaveFileEditServerInput extends ApplySaveFileEditInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace ApplySaveFileEditServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof ApplySaveFileEditInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface ApplySaveFileEditServerOutput extends ApplySaveFileEditOutput {
|
|
15
|
+
}
|
|
16
|
+
export type ApplySaveFileEditErrors = SaveFileEditRejectedError;
|
|
17
|
+
export declare class ApplySaveFileEditSerializer implements __OperationSerializer<GamePluginService<any>, "ApplySaveFileEdit", ApplySaveFileEditErrors> {
|
|
18
|
+
serialize: (input: ApplySaveFileEditServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<ApplySaveFileEditServerInput>;
|
|
20
|
+
isOperationError(error: any): error is ApplySaveFileEditErrors;
|
|
21
|
+
serializeError(error: ApplySaveFileEditErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getApplySaveFileEditHandler: <Context>(operation: __Operation<ApplySaveFileEditServerInput, ApplySaveFileEditServerOutput, Context>, customizer: __ValidationCustomizer<"ApplySaveFileEdit">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class ApplySaveFileEditHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a ApplySaveFileEdit handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for ApplySaveFileEdit
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for ApplySaveFileEdit that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<ApplySaveFileEditServerInput, ApplySaveFileEditServerOutput, Context>, mux: __Mux<"GamePlugin", "ApplySaveFileEdit">, serializer: __OperationSerializer<GamePluginService<Context>, "ApplySaveFileEdit", ApplySaveFileEditErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"ApplySaveFileEdit">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AssignParticipantsInput, AssignParticipantsOutput } from "../../models/models_0";
|
|
2
|
+
import { GamePluginService } from "../GamePluginService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type AssignParticipants<Context> = __Operation<AssignParticipantsServerInput, AssignParticipantsServerOutput, Context>;
|
|
6
|
+
export interface AssignParticipantsServerInput extends AssignParticipantsInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace AssignParticipantsServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof AssignParticipantsInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface AssignParticipantsServerOutput extends AssignParticipantsOutput {
|
|
15
|
+
}
|
|
16
|
+
export type AssignParticipantsErrors = never;
|
|
17
|
+
export declare class AssignParticipantsSerializer implements __OperationSerializer<GamePluginService<any>, "AssignParticipants", AssignParticipantsErrors> {
|
|
18
|
+
serialize: (input: AssignParticipantsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<AssignParticipantsServerInput>;
|
|
20
|
+
isOperationError(error: any): error is AssignParticipantsErrors;
|
|
21
|
+
serializeError(error: AssignParticipantsErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getAssignParticipantsHandler: <Context>(operation: __Operation<AssignParticipantsServerInput, AssignParticipantsServerOutput, Context>, customizer: __ValidationCustomizer<"AssignParticipants">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class AssignParticipantsHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a AssignParticipants handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for AssignParticipants
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for AssignParticipants that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<AssignParticipantsServerInput, AssignParticipantsServerOutput, Context>, mux: __Mux<"GamePlugin", "AssignParticipants">, serializer: __OperationSerializer<GamePluginService<Context>, "AssignParticipants", AssignParticipantsErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"AssignParticipants">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|